Opened 15 years ago

Closed 13 years ago

#3074 closed defect (fixed)

GDAL compilation woes on FreeBSD

Reported by: kiorky Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: default Version: unspecified
Severity: normal Keywords:
Cc: kiorky@…

Description

Weither the autotools you have on your freebsd, gdal may not compile at all. See on : http://www.mail-archive.com/gdal-dev@lists.osgeo.org/msg01186.html and useless to say that i reproduced it on a freebsd7 stable. I think it's an autotools issue but i do not understand why $(SHELL)fails toi expand afterall. I made some crappy patch to allow compilation with minitage as i know the target env. will have bash. Here is the patch: http://git.minitage.org/git/minitage/buildouts/dependencies/gdal-1.6.0/tree/sh.patch

Change History (8)

comment:1 by kiorky, 15 years ago

Summary: SVN main trunk compilation woes on FreeBSDGDAL compilation woes on FreeBSD

comment:2 by kiorky, 15 years ago

I ve forgotten to post the useful trace output:

GDAL is now configured for i386-unknown-freebsd6.2

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: internal LIBTIFF support: internal (BigTIFF=yes) LIBGEOTIFF support: internal LIBJPEG support: internal LIBGIF support: internal OGDI support: no HDF4 support: no HDF5 support: no Kakadu support: no JasPer support: no ECW support: no MrSID support: no GRIB support: no cURL support (wms/wcs/...):yes PostgreSQL support: no MySQL support: no Xerces-C support: no Expat support: yes ODBC support: no PGeo support: no OCI support: no SDE support: no DODS support: no SQLite support: no DWGdirect support no PANORAMA GIS support: no INFORMIX DataBlade support:no GEOS support: yes

Old-gen python no SWIG Bindings: no

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

When building I get a couple of :not found errors, which look like these: /bin/sh /home/matej/mapserver/gdal-1.5.3/libtool --mode=link g++

gdalinfo.o \

/home/matej/mapserver/gdal-1.5.3/libgdal.la -o gdalinfo

libtool_args+=: not found compile_command+=: not found finalize_command+=: not found libtool_args+=: not found libtool_args+=: not found compile_command+=: not found finalize_command+=: not found libtool_args+=: not found compile_command+=: not found finalize_command+=: not found libtool: link: g++ /home/matej/mapserver/gdal-1.5.3/.libs/libgdal.so

-L/usr/local/lib /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so /usr/local/lib/libexpat.so /usr/local/lib/libcurl.so -lssl -lcrypto -lz -Wl,-rpath -Wl,/usr/local/lib

/usr/lib/crt1.o(.text+0x72): In function `_start': : undefined reference to `main' gmake[1]: * [gdalinfo] Error 1

comment:3 by kiorky, 15 years ago

oups wiki formating:

chmod a+x gdal-config                                                                                                                                                                                                                                                                                                                       
/bin/sh /usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/libtool --mode=compile --tag=CC gcc -I/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/include -I/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/include -I/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/include  -Wall -Wdeclaration-after-statement  -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/port -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/gcore -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/alg -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/ogr -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/ogr/ogrsf_frmts -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/frmts -DOGR_ENABLED -I/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/include -I/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/include -I/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/port -I -I/include  -c -o gdalinfo.lo gdalinfo.c                                                 
libtool: compile:  gcc -I/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/include -I/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/include -I/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/include -Wall -Wdeclaration-after-statement -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/port -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/gcore -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/alg -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/ogr -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/ogr/ogrsf_frmts -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/frmts -DOGR_ENABLED -I/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/include -I/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/include -I/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/port -I -I/include -c gdalinfo.c  -fPIC -DPIC -o .libs/gdalinfo.o                                                                                                                                        
libtool: compile:  gcc -I/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/include -I/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/include -I/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/include -Wall -Wdeclaration-after-statement -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/port -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/gcore -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/alg -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/ogr -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/ogr/ogrsf_frmts -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/frmts -DOGR_ENABLED -I/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/include -I/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/include -I/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/include -I/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/include -I/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/include -I/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/include -I/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/include -I/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/port -I -I/include -c gdalinfo.c  -fPIC -DPIC -o gdalinfo.o >/dev/null 2>&1                                                                                                                              
/bin/sh /usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/libtool --mode=link    g++ -L/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/gdal-1.6/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/gdal-1.6/parts/part/lib gdalinfo.lo /usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/libgdal.la  /usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/libgdal.la -o gdalinfo            
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
libtool_args+=: not found                                                                                                                                                                                                                                                                                                                   
compile_command+=: not found                                                                                                                                                                                                                                                                                                                
finalize_command+=: not found                                                                                                                                                                                                                                                                                                               
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
libobjs+=: not found
non_pic_objects+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
libtool_args+=: not found
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool_args+=: not found
compile_command+=: not found
finalize_command+=: not found
libtool: link: g++  -L/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/openssl-0.9/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/postgis-1.3/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/postgresql-8.3/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/proj-4.6/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/zlib-1.2/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/geotiff-1.2/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/doxygen-1.5/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/gdal-1.6/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/gdal-1.6/../../dependencies/expat-2.0/parts/part/lib/lib -L/usr/home/kiorky/minitage/dependencies/libidn-1.8/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/ncurses-5.6/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/libssh2-1.0/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/openssl-0.9/../zlib-1.2/parts/part/lib -L/usr/home/kiorky/minitage/dependencies/openssl-0.9/../ncurses-5.6/parts/part/lib /usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/.libs/libgdal.so /usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/lib/libgeos_c.so /usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/lib/libgeos.so /usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/lib/libsqlite3.so -lpthread /usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/lib/libexpat.so /usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/lib/libjasper.so /usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/lib/libgif.so -lgeotiff /usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/lib/libtiff.so /usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/lib/libjpeg.so /usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/lib/libpng12.so -lm -lpq -lrt /usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/lib/libcurl.so /usr/home/kiorky/minitage/dependencies/libidn-1.8/parts/part/lib/libidn.so /usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/lib/libiconv.so /usr/home/kiorky/minitage/dependencies/libssh2-1.0/parts/part/lib/libssh2.so -lssl -lcrypto -lz -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/gdal-1.6/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/geos-3.0/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/sqlite-3.5/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/expat-2.0/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/jasper-1.900/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libgif-1.4/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libtiff-3.8/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libjpeg-7/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libpng-1.2/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/curl-7.19/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libidn-1.8/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libiconv-1.12/parts/part/lib -Wl,-rpath -Wl,/usr/home/kiorky/minitage/dependencies/libssh2-1.0/parts/part/lib
/usr/lib/crt1.o(.text+0x81): In function `_start':
: undefined reference to `main'
gmake[1]: *** [gdalinfo] Error 1
gmake[1]: Leaving directory `/usr/home/kiorky/minitage/dependencies/gdal-1.6/__minitage__part__tmp/gdal-1.6.1/apps'
gmake: *** [apps-target] Error 2
While:


comment:4 by Even Rouault, 15 years ago

Priority: highnormal
Severity: blockernormal

libtool buidling works for me with unpatched GDAL trunk on a PC-BSD 7.1 virtual machine image, which is a slight variation of standard FreeBSD I believe

$ uname -a FreeBSD pcbsd 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #10: Wed Apr 1 10:14:22 EDT 2009 root@pcbsdx32-7:/usr/obj/pcbsd-build71/cvs/7.1-src/sys/PCBSD i386

$ echo $SHELL /PCBSD/local/bin/bash

Anyway, libtool is a pain, you should avoid using it unless you really need it. You could try --without-libtool.

comment:5 by kiorky, 15 years ago

OK, so your problem is to reproduce the bug, isn't it? The bug can be easyly fix i think with a more portable version of the given configure diff. The problem occurs when building gdal inside 'minitage' which is a package manager which allows you to build isolated environments. So, You can reproduce it with minitage, i can help you to reproduce the bug with it. You ll just have to remove the workarond i put to make the compilation pass :).

Maybe are you on irc, somewhere, it will be easier to speak.

comment:6 by Even Rouault, 15 years ago

To be honest, I've no strong interest/knowledge in that platform. If you could find the reason why it fails and come with a better patch, we could apply it of course. Perhaps it is a bug in that minitage environment that doesn't define the SHELL variable ? Perhaps minitage mainteners would have a clue. You shouldn't patch 'configure' directly, but 'configure.in' instead, as configure is regenerated from configure.in with autoconf. And I think testing only for 'FreeBSD' is not specific enough if it is just happening in minitage.

comment:7 by kiorky, 15 years ago

I am the minitage creator/maintener.

The bug only occurs on freebsd. It didnt occur on macosx leopard and on linux.

The shell variable is defined and the target is /usr/local/bin/bash, and this is where i don't understand the bug :).

Of course for the configure.in, but there, i am in the context of the execution, so i don't regenerate it. That's why the patched file is directly the "configure" script.

comment:8 by Even Rouault, 13 years ago

Milestone: 1.6.41.9.0
Resolution: fixed
Status: newclosed

I think this should be fixed by ticket #4102 : the $SHELL variable should now be substituated at ./configure time

Note: See TracTickets for help on using tickets.