Opened 15 years ago
Closed 9 years ago
#2899 closed defect (wontfix)
error when building from autogen.sh
Reported by: | tomkralidis | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ConfigBuild | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description
Steps per below:
using: Fedora Core 10 autoconf: 2.63 libtool: 1.5.26
[devgeo:/home/tkralidi/foss4g/gdal/trunk/gdal]$ ./autogen.sh + aclocal -I ./m4 configure.in:56: warning: AC_CACHE_VAL(_LT_TAGVAR(lt_prog_compiler_pic_works, ), ...): suspicious cache-id, must contain _cv_ to be cached ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from... m4/libtool.m4:1261: _LT_COMPILER_OPTION is expanded from... m4/libtool.m4:3377: _LT_COMPILER_PIC is expanded from... m4/libtool.m4:5077: _LT_LANG_C_CONFIG is expanded from... m4/libtool.m4:122: _LT_SETUP is expanded from... m4/libtool.m4:56: LT_INIT is expanded from... m4/libtool.m4:86: AC_PROG_LIBTOOL is expanded from... configure.in:56: the top level configure.in:56: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached m4/libtool.m4:1313: _LT_LINKER_OPTION is expanded from... configure.in:56: warning: AC_CACHE_VAL(_LT_TAGVAR(lt_prog_compiler_pic_works, CXX), ...): suspicious cache-id, must contain _cv_ to be cached m4/libtool.m4:5184: _LT_LANG_CXX_CONFIG is expanded from... m4/libtool.m4:771: _LT_LANG is expanded from... m4/libtool.m4:754: LT_LANG is expanded from... m4/libtool.m4:782: _LT_LANG_DEFAULT_CONFIG is expanded from... configure.in:56: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached + autoconf configure.in:56: warning: AC_CACHE_VAL(_LT_TAGVAR(lt_prog_compiler_pic_works, ), ...): suspicious cache-id, must contain _cv_ to be cached ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from... m4/libtool.m4:1261: _LT_COMPILER_OPTION is expanded from... m4/libtool.m4:3377: _LT_COMPILER_PIC is expanded from... m4/libtool.m4:5077: _LT_LANG_C_CONFIG is expanded from... m4/libtool.m4:122: _LT_SETUP is expanded from... m4/libtool.m4:56: LT_INIT is expanded from... m4/libtool.m4:86: AC_PROG_LIBTOOL is expanded from... configure.in:56: the top level configure.in:56: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached m4/libtool.m4:1313: _LT_LINKER_OPTION is expanded from... configure.in:56: warning: AC_CACHE_VAL(_LT_TAGVAR(lt_prog_compiler_pic_works, CXX), ...): suspicious cache-id, must contain _cv_ to be cached m4/libtool.m4:5184: _LT_LANG_CXX_CONFIG is expanded from... m4/libtool.m4:771: _LT_LANG is expanded from... m4/libtool.m4:754: LT_LANG is expanded from... m4/libtool.m4:782: _LT_LANG_DEFAULT_CONFIG is expanded from... configure.in:56: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached [devgeo:/home/tkralidi/foss4g/gdal/trunk/gdal]$ cat ./setup ./configure --with-png --with-libtiff=internal --with-geotiff=internal --with-jpeg --with-xerces --with-geos=no --with-pg=/usr/bin/pg_config --with-mysql=/usr/bin/mysql_config --with-sqlite --with-curl=/usr/bin/curl-config --with-python --with-expat [devgeo:/home/tkralidi/foss4g/gdal/trunk/gdal]$ ./setup configure: WARNING: unrecognized options: --with-sqlite checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking C_WFLAGS for maximum warnings... -Wall -Wdeclaration-after-statement checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking CXX_WFLAGS for maximum warnings... -Wall checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes 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 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... 32768 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking how to run the C preprocessor... 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 whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes checking how to run the C++ preprocessor... g++ -E checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) 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 for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... 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 size of int... 4 checking size of long... 4 checking size of unsigned long... 4 checking size of void*... 4 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... no 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 we should hide internal symbols... no checking for local include/lib path... none configure: checking whether we should include thread/mutex support...... thread safe support disabled. checking for deflateInit_ in -lz... yes checking for inflateCopy in -lz... yes using pre-installed libz 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 nc_open in -lnetcdf... no libnetcdf not found - netCDF support disabled 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. using internal TIFF code. BigTIFF support enabled. 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 checking for width_in_blocks in jpeglib.h... yes using pre-installed libjpeg. checking for DGifOpenFileName in -lgif... yes using pre-installed libgif. checking for cln_GetLayerCapabilities in -logdi31... no checking for FMEObjects... no checking for SDreaddata in -lmfhdf... no checking for SDreaddata in -lhdf4... no checking for SDreaddata in -lmfhdf... no checking for SDreaddata in -lmfhdf... no checking for H5Fopen in -lhdf5... no checking for jpc_decode in -ljasper... no checking for jp2_decode in -ljasper... no checking for pgx_decode in -ljasper... no checking for NCScbmOpenFileView in -lNCSEcw... no checking for NCScbmOpenFileView in -lecwj2... no checking for Kakadu JPEG2000 support... not requested. configure: MrSID 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 ... enabled checking for MySQL... yes 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 Expat XML Parser headers in /usr/include... found checking for Expat XML Parser libraries... found checking for Expat XML Parser... yes checking if Expat XML Parser version is >= 1.95.0... yes checking for SQLConnect in -lodbc... no checking for SQLInstallDriverEx in -lodbcinst... no checking if Oracle support is enabled... no checking Checking for DODS... disabled found libcurl version 7.19.4 checking for SQLite3 library >= 3.0.0... 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. GEOS support disabled checking whether to enable PAM... yes checking how to link PROJ.4 library... link dynamically. checking GDAL version information from gdal_version.h: 1.7.0 checking for perl bindings... disabled checking for php bindings... disabled checking for ruby bindings... disabled checking for python bindings... enabled checking for python setuptools... found checking for old-gen python bindings... disabled 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: port/cpl_config.h is unchanged config.status: executing libtool commands configure: WARNING: unrecognized options: --with-sqlite GDAL is now configured for i686-pc-linux-gnu Installation directory: /usr/local C compiler: gcc -g -O2 C++ compiler: g++ -g -O2 LIBTOOL support: yes LIBZ support: external GRASS support: no CFITSIO support: no PCRaster support: internal NetCDF support: no LIBPNG support: external LIBTIFF support: internal (BigTIFF=yes) LIBGEOTIFF support: internal LIBJPEG support: external LIBGIF support: external OGDI support: no HDF4 support: no HDF5 support: no Kakadu support: no JasPer support: no ECW support: no MrSID support: no MSG support: no GRIB support: yes cURL support (wms/wcs/...):yes PostgreSQL support: yes MySQL support: yes Ingres support: no Xerces-C support: yes NAS support: no Expat support: yes ODBC support: no PGeo support: no OCI support: no GEORASTER support: no SDE support: no DODS support: no SQLite support: yes DWGdirect support no INFORMIX DataBlade support:no GEOS support: no Old-gen python no SWIG Bindings: python Statically link PROJ.4: no enable OGR building: yes enable pthread support: no hide internal symbols: no [devgeo:/home/tkralidi/foss4g/gdal/trunk/gdal]$ make (cd port; make) make[1]: Entering directory `/home/tkralidi/foss4g/gdal/trunk/gdal/port' make[1]: Nothing to be done for `default'. make[1]: Leaving directory `/home/tkralidi/foss4g/gdal/trunk/gdal/port' (cd gcore; make) make[1]: Entering directory `/home/tkralidi/foss4g/gdal/trunk/gdal/gcore' /bin/sh /home/tkralidi/foss4g/gdal/trunk/gdal/libtool --mode=compile --tag=CXX g++ -c -I/home/tkralidi/foss4g/gdal/trunk/gdal/port -I/home/tkralidi/foss4g/gdal/trunk/gdal/gcore -I/home/tkralidi/foss4g/gdal/trunk/gdal/alg -I/home/tkralidi/foss4g/gdal/trunk/gdal/ogr -I/home/tkralidi/foss4g/gdal/trunk/gdal/ogr/ogrsf_frmts -g -O2 -Wall -DINST_DATA=\"/usr/local/share/gdal\" \ gdaldrivermanager.cpp -o gdaldrivermanager.lo /home/tkralidi/foss4g/gdal/trunk/gdal/libtool: line 152: CDPATH: command not found libtool: Version mismatch error. This is libtool 2.1a, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.1a libtool: and run autoconf again. make[1]: *** [gdaldrivermanager.lo] Error 63 make[1]: Leaving directory `/home/tkralidi/foss4g/gdal/trunk/gdal/gcore' make: *** [core-target] Error 2
Change History (7)
comment:1 by , 15 years ago
comment:2 by , 14 years ago
I also have the same problem, using libtool 2.2.6a and autoconf 2.63. Anyone know the solution?
$ uname -a Linux azvoleff-laptop 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:49:34 UTC 2009 i686 GNU/Linux
comment:3 by , 14 years ago
Status: | new → assigned |
---|
Is there a reason that people are running autogen.sh? GDAL should be distributed with quiet adequate configure and related machinery. It should only be necessary to run autogen.sh if you are modifying configure.in.
follow-up: 5 comment:4 by , 14 years ago
I would add, it may be possible to run "libtoolize --force --copy" before running autogen.sh. Potentially we could reintroduce this into autogen.sh though I had not realized all these damn components were so tightly interdependent.
comment:5 by , 14 years ago
Replying to warmerdam:
I would add, it may be possible to run "libtoolize --force --copy" before running autogen.sh.
yes, it helped, thanks. Martin
comment:6 by , 10 years ago
I wonder if this is any issue or not? No new comments within four last years so obviously people have been able to compile somehow.
comment:7 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Closing now after 8 months feedback period. Label as wontfix because obviously nobody ever fixed anything.
I have the same problem on Debian GNU/Linux Sid compiling GDAL SVN trunk
Martin