[gdal-dev] Building GDAL 2.0.0 without ogr on Linux fails

Kor de Jong kor at jemig.eu
Tue Jun 23 08:15:23 PDT 2015


Dear all,

I may have found an issue in the build scripts of gdal 2.0.0. Building 
gdal without ogr on Linux fails on my machine:

./configure --without-ogr
make -j8

I attached the output of configure and copied the snippets from the 
build output detailing the errors below.

When I change --without-ogr into --with-ogr, the build succeeds.

Maybe something OGR-ish is building while it shouldn't(?).

Best regards,
Kor de Jong




libtool: compile:  /opt/gcc-4.9/bin/g++ -I/tmp/blah/gdal-2.0.0/port 
-I/tmp/blah/gdal-2.0.0/gcore -I/tmp/blah/gdal-2.0.0/alg 
-I/tmp/blah/gdal-2.0.0/ogr -I/tmp/blah/gdal-2.0.0/ogr/ogrsf_frmts -g -O2 
-Wall -I/tmp/blah/gdal-2.0.0/port -I/usr/include -DGDAL_COMPILATION -c 
mffdataset.cpp -o ../o/mffdataset.o >/dev/null 2>&1
ogrutils.cpp: In function ‘int OGRGeneralCmdLineProcessor(int, char***, 
int)’:
ogrutils.cpp:526:60: error: ‘GDAL_OF_VECTOR’ was not declared in this scope
      return GDALGeneralCmdLineProcessor( nArgc, ppapszArgv, 
GDAL_OF_VECTOR );
                                                             ^
ogrutils.cpp:526:75: error: ‘GDALGeneralCmdLineProcessor’ was not 
declared in this scope
      return GDALGeneralCmdLineProcessor( nArgc, ppapszArgv, 
GDAL_OF_VECTOR );
 
     ^
ogrutils.cpp:527:1: warning: control reaches end of non-void function 
[-Wreturn-type]
  }
  ^
make[1]: *** [ogrutils.lo] Error 1
make[1]: *** Waiting for unfinished jobs....





pdfwritabledataset.cpp: In member function ‘virtual OGRErr 
PDFWritableVectorDataset::SyncToDisk()’:
pdfwritabledataset.cpp:307:17: error: ‘class GDALPDFWriter’ has no 
member named ‘WriteOGRLayer’
          oWriter.WriteOGRLayer((OGRDataSourceH)this,
                  ^
make[2]: *** [../o/pdfwritabledataset.lo] Error 1
make[2]: *** Waiting for unfinished jobs....



make[1]: *** [pdf-install-obj] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [frmts-target] Error 2

-------------- next part --------------
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... /opt/gcc-4.9/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/gcc-4.9/bin/gcc accepts -g... yes
checking for /opt/gcc-4.9/bin/gcc option to accept ISO C89... none needed
checking C_WFLAGS for maximum warnings... -Wall -Wdeclaration-after-statement
checking whether we are using the GNU C++ compiler... yes
checking whether /opt/gcc-4.9/bin/g++ accepts -g... yes
checking CXX_WFLAGS for maximum warnings... -Wall
checking for gcc... (cached) /opt/gcc-4.9/bin/gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /opt/gcc-4.9/bin/gcc accepts -g... (cached) yes
checking for /opt/gcc-4.9/bin/gcc option to accept ISO C89... (cached) none needed
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /opt/gcc-4.9/bin/g++ accepts -g... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by /opt/gcc-4.9/bin/gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from /opt/gcc-4.9/bin/gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /opt/gcc-4.9/bin/gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /opt/gcc-4.9/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /opt/gcc-4.9/bin/gcc option to produce PIC... -fPIC -DPIC
checking if /opt/gcc-4.9/bin/gcc PIC flag -fPIC -DPIC works... yes
checking if /opt/gcc-4.9/bin/gcc static flag -static works... yes
checking if /opt/gcc-4.9/bin/gcc supports -c -o file.o... yes
checking if /opt/gcc-4.9/bin/gcc supports -c -o file.o... (cached) yes
checking whether the /opt/gcc-4.9/bin/gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... /opt/gcc-4.9/bin/g++ -E
checking for ld used by /opt/gcc-4.9/bin/g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the /opt/gcc-4.9/bin/g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for /opt/gcc-4.9/bin/g++ option to produce PIC... -fPIC -DPIC
checking if /opt/gcc-4.9/bin/g++ PIC flag -fPIC -DPIC works... yes
checking if /opt/gcc-4.9/bin/g++ static flag -static works... yes
checking if /opt/gcc-4.9/bin/g++ supports -c -o file.o... yes
checking if /opt/gcc-4.9/bin/g++ supports -c -o file.o... (cached) yes
checking whether the /opt/gcc-4.9/bin/g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for dlopen in -ldl... yes
checking for nanosleep in -lrt... yes
checking for sin in -lm... yes
checking for ANSI C header files... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking dbmalloc.h usability... no
checking dbmalloc.h presence... no
checking for dbmalloc.h... no
checking for dlfcn.h... (cached) yes
checking for stdint.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking whether byte ordering is bigendian... no
checking for 64bit integer type... long long
checking for 64bit file io... yes
checking for stat64... yes
checking for fopen64... yes
checking for ftruncate64... yes
checking size of int... 4
checking size of unsigned long... 8
checking size of void*... 8
checking for int8... no
checking for int16... no
checking for int32... no
checking native cpu bit order... lsb2msb
checking for vprintf... yes
checking for _doprnt... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for atoll... yes
checking for strtof... yes
checking for getcwd... yes
checking whether strtof is declared... yes
checking for readlink... yes
checking for lstat... yes
checking for posix_spawnp... yes
checking for vfork... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for setlocale... yes
checking to enable debug build... no, CFLAGS="-g -O2"
checking whether GCC 4.1 atomic builtins are available... yes
checking whether SSE is available at compile time... yes
checking whether AVX is available at compile time... yes
checking whether we should hide internal symbols... no
checking for local include/lib path... none
checking for pthread_create in -lpthread... yes
checking for PTHREAD_MUTEX_RECURSIVE... yes
checking for PTHREAD_MUTEX_ADAPTIVE_NP... yes
checking for pthread_spinlock_t... yes
checking for 5 args mremap()... yes
checking for _SC_PHYS_PAGES... yes
checking for deflateInit_ in -lz... yes
checking for inflateCopy in -lz... yes
using pre-installed libz
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... /bin/bash: ./config.rpath: No such file or directory
done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
using ICONV_CPP_CONST=""
checking for pg_config... /usr/bin/pg_config
checking for PostgreSQL... yes
checking for PQconnectdb in -lpq... yes
checking for PQputCopyData in -lpq... yes
checking for PQescapeStringConn in -lpq... yes
checking for G_gisinit_2 in -lgrass5... no
checking for ffopen in -lcfitsio... no
libcfitsio not found - FITS support disabled
checking for Mopen in -lcsf... no
checking csf.h usability... no
checking csf.h presence... no
checking for csf.h... no
using internal csf code.
checking for libpng... checking for png_set_IHDR in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
using pre-installed libpng.
checking for libcrunch... dds support disabled.
checking for gta_version in -lgta... no
libgta not found - GTA support disabled
checking for PCIDSK... using internal libpcidsk.
checking for libtiff... checking for TIFFScanlineSize64 in -ltiff... yes
checking for _TIFFsetDoubleArray in -ltiff... yes
using pre-installed libtiff.
BigTIFF support enabled.
checking for XTIFFClientOpen in -lgeotiff... no
using internal GeoTIFF code.
checking for jpeg_read_scanlines in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
using pre-installed libjpeg.
checking for jpeg12... disabled, libjpeg or libtiff not internal
checking for DGifOpenFileName in -lgif... yes
checking gif_lib.h usability... yes
checking gif_lib.h presence... yes
checking for gif_lib.h... yes
using pre-installed libgif.
checking ecs.h usability... no
checking ecs.h presence... no
checking for ecs.h... no
checking for FMEObjects... no
SOSI support disabled.
checking for SDreaddata in -lmfhdfalt... yes
checking for SDget_maxopenfiles in -lmfhdfalt... yes
checking for H5Fopen in -lhdf5... no
checking for kea-config... no
checking for kea... no
checking for nc-config... /usr/bin/nc-config
checking libnetcdf compiler and linker flags with nc-config... 
 got version="netCDF 4.1.3", prefix="/usr",
 libs="-L/usr/lib -lnetcdf", includedir="/usr/include"
checking for nc_open in -lnetcdf... yes
checking for netcdf-4 (and HDF5) support in libnetcdf... yes
checking for HDF4 support in libnetcdf... no
checking for jpc_decode in -ljasper... yes
checking for jp2_decode in -ljasper... yes
checking for pgx_decode in -ljasper... yes
checking for jp2_encode_uuid in -ljasper... yes
configure: hacked JasPer version found (JasPer UUID), GeoJP2 enabled.
checking openjpeg-2.0/openjpeg.h usability... no
checking openjpeg-2.0/openjpeg.h presence... no
checking for openjpeg-2.0/openjpeg.h... no
checking openjpeg-2.1/openjpeg.h usability... no
checking openjpeg-2.1/openjpeg.h presence... no
checking for openjpeg-2.1/openjpeg.h... no
checking for FileGDBAPI... FileGDBAPI not found.
checking for NCScbmOpenFileView in -lNCSEcw... no
checking for NCScbmOpenFileView in -lecwj2... no
checking for Kakadu JPEG2000 support... not requested.
configure: MrSID support disabled.
configure: MrSID/MG4 Lidar support disabled.
checking for MSG... not requested
checking for BSB... enabled
checking if Oracle support is enabled... no
checking for GRIB... enabled
checking for OGR ... disabled by user
checking for MySQL... no
checking for Ingres... no
checking for Xerces C++ Parser headers in /usr/include and /usr/include/xercesc... found
checking for Xerces C++ Parser libraries... found
checking for Xerces C++ Parser... yes
checking if Xerces C++ Parser version is >= 2.7.0... yes
checking for XML_ParserCreate in -lexpat... yes
checking for Expat XML Parser headers in /usr/include... found
checking for Expat XML Parser... yes
checking if Expat XML Parser version is >= 1.95.0... yes
checking for Google libkml... no
checking for SQLConnect in -lodbc... yes
checking for SQLInstallDriverEx in -lodbcinst... yes
checking if Oracle support is enabled... no
checking Checking for DODS... disabled
checking for curl-config... /usr/bin/curl-config
        found libcurl version 7.35.0
checking for curl_global_init in -lcurl... yes
checking for xml2-config... /usr/bin/xml2-config
checking for xmlParseDoc in -lxml2... yes
disabled
checking for sqlite3_open in -lsqlite3... yes
checking for SQLite3 library >= 3.0.0... yes
checking for sqlite3_column_table_name in -lsqlite3... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for pcre_compile in -lpcre... yes
checking Checking for DWGdirect... disabled
configure: IBM Informix DataBlade not supported.
configure: checking whether we should include ESRI SDE support...
        ESRI SDE support not requested.
checking for geos-config... /usr/bin/geos-config
checking for GEOS version >= 3.1.0... yes
checking for GEOSversion in -lgeos_c... yes
configure: Using C API from GEOS 3.4.2
checking for OpenCL support... no
checking for FreeXL support... checking freexl.h usability... no
checking freexl.h presence... no
checking for freexl.h... no
checking for freexl_open in -lfreexl... no
checking for freexl_open in -lfreexl... no
checking for freexl_open in -lfreexl... no
checking for freexl_open in -lfreexl... no
checking for freexl_open in -lfreexl... no
libfreexl not found - FreeXL support disabled
checking for json_object_set_serializer in -ljson-c... no
using internal libjson-c code
checking whether to enable PAM... yes
checking for poppler... disabled
checking for podofo... disabled
checking how to link PROJ.4 library... link dynamically.
checking GDAL version information from gdal_version.h: 2.0.0
checking for perl bindings... disabled
checking for php bindings... disabled
checking for python bindings... disabled
checking whether we should include Java support... no
checking whether we should include MDB support... no
configure: checking whether we should include rasdaman support...
        rasdaman support not requested.
checking whether we should include Armadillo support... no
configure: creating ./config.status
config.status: creating GDALmake.opt
config.status: WARNING:  'GDALmake.opt.in' seems to ignore the --datarootdir setting
config.status: creating port/cpl_config.h
config.status: executing libtool commands

GDAL is now configured for x86_64-unknown-linux-gnu

  Installation directory:    /usr/local
  C compiler:                /opt/gcc-4.9/bin/gcc -g -O2
  C++ compiler:              /opt/gcc-4.9/bin/g++ -g -O2

  LIBTOOL support:           yes

  LIBZ support:              external
  LIBLZMA support:           no
  GRASS support:             no
  CFITSIO support:           no
  PCRaster support:          internal
  LIBPNG support:            external
  DDS support:               no
  GTA support:               no
  LIBTIFF support:           external (BigTIFF=yes)
  LIBGEOTIFF support:        internal
  LIBJPEG support:           external
  12 bit JPEG:               no
  12 bit JPEG-in-TIFF:       no
  LIBGIF support:            external
  OGDI support:              no
  HDF4 support:              yes
  HDF5 support:              no
  Kea support:               no
  NetCDF support:            yes
  Kakadu support:            no
  JasPer support:            yes (GeoJP2=yes)
  OpenJPEG support:          no
  ECW support:               no
  MrSID support:             no
  MrSID/MG4 Lidar support:   no
  MSG support:               no
  GRIB support:              yes
  EPSILON support:           no
  WebP support:              no
  cURL support (wms/wcs/...):yes
  PostgreSQL support:        yes
  MySQL support:             no
  Ingres support:            no
  Xerces-C support:          yes
  NAS support:               yes
  Expat support:             yes
  libxml2 support:           yes
  Google libkml support:     no
  ODBC support:              yes
  PGeo support:              yes
  FGDB support:              no
  MDB support:               no
  PCIDSK support:            internal
  OCI support:               no
  GEORASTER support:         no
  SDE support:               no
  Rasdaman support:          no
  DODS support:              no
  SQLite support:            yes
  PCRE support:              yes
  SpatiaLite support:        no
  DWGdirect support          no
  INFORMIX DataBlade support:no
  GEOS support:              yes
  Poppler support:           no
  Podofo support:            no
  OpenCL support:            no
  Armadillo support:         no
  FreeXL support:            no
  SOSI support:              no


  SWIG Bindings:             no

  Statically link PROJ.4:    no
  enable OGR building:       no
  enable pthread support:    yes
  enable POSIX iconv support:yes
  hide internal symbols:     no


More information about the gdal-dev mailing list