[gdal-dev] gdal1.5.1 make error on RedHat Linux
Gong, Shawn (Contractor)
Shawn.Gong at drdc-rddc.gc.ca
Wed May 7 17:03:08 EDT 2008
hi list,
gdal 1.5.1 make gave the following error message
I ran these prior to building:
setenv PATH "/home/sgong/dev18/dist/bin:/usr/bin:/bin:/usr/X11R6/bin"
setenv PYTHONHOME "/home/sgong/dev18/dist"
setenv LD_LIBRARY_PATH "/home/sgong/dev18/dist/lib"
libcurl.so.4 and libexpat.so.1 have be updated and put in my
localinstall/lib ("/home/sgong/dev18/dist/lib")
I try not to rely on /usr/local/lib, you can see it is not in
LD_LIBRARY_PATH. Was it the cause?
thanks,
Shawn
=============================
.....
echo '#!/bin/sh' > gdal-config-inst
echo 'CONFIG_LIBS="-L/home/sgong/dev18/dist/lib -lgdal"' >>
gdal-config-inst
echo 'CONFIG_DEP_LIBS=" -L/usr/local/lib -lexpat -ljasper
-L/home/sgong/dev18/dist/lib -lhdf5 -L/home/sgong/dev18/dist/lib
-lmfhdf -ldf -lsz -logdi31 -L/home/sgong/dev18/dist
-L/home/sgong/dev18/dist/lib -ljpeg -L/usr/lib -lpq -lz
-L/home/sgong/dev18/dist -L/home/sgong/dev18/dist/lib -lpthread -lm -lrt
-ldl -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5
-lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl
-lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto
-lresolv -ldl -lz -lz "' >> gdal-config-inst
echo 'CONFIG_PREFIX="/home/sgong/dev18/dist"' >> gdal-config-inst
echo 'CONFIG_CFLAGS="-I/home/sgong/dev18/dist/include"' >>
gdal-config-inst
echo 'CONFIG_DATA="/home/sgong/dev18/dist/share"' >> gdal-config-inst
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config-inst
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config-inst
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211
xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp
pcidsk airsar rs2 ilwis rmf rik leveller sgi srtmhgt idrisi gsg ingr ers
jaxapalsar dimap gff cosar pds adrg coasp tsx terragen wcs wms bsb
jpeg2000 hdf5 hdf4 ogdi gif jpeg png pcraster "' >> gdal-config-inst
cat gdal-config.in >> gdal-config-inst
chmod a+x gdal-config-inst
rm -f gdal-config
echo '#!/bin/sh' > gdal-config
echo 'CONFIG_LIBS="/home/sgong/dev18/gdal-1.5.1/libgdal.la"' >>
gdal-config
echo 'CONFIG_DEP_LIBS=" -L/usr/local/lib -lexpat -ljasper
-L/home/sgong/dev18/dist/lib -lhdf5 -L/home/sgong/dev18/dist/lib
-lmfhdf -ldf -lsz -logdi31 -L/home/sgong/dev18/dist
-L/home/sgong/dev18/dist/lib -ljpeg -L/usr/lib -lpq -lz
-L/home/sgong/dev18/dist -L/home/sgong/dev18/dist/lib -lpthread -lm -lrt
-ldl -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5
-lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl
-lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto
-lresolv -ldl -lz -lz "' >> gdal-config
echo 'CONFIG_PREFIX="/home/sgong/dev18/gdal-1.5.1"' >> gdal-config
echo 'CONFIG_CFLAGS="-I/home/sgong/dev18/gdal-1.5.1/port
-I/home/sgong/dev18/gdal-1.5.1/gcore -I/home/sgong/dev18/gdal-1.5.1/alg
-I/home/sgong/dev18/gdal-1.5.1/ogr
-I/home/sgong/dev18/gdal-1.5.1/ogr/ogrsf_frmts"' >> gdal-config
echo 'CONFIG_DATA="/home/sgong/dev18/gdal-1.5.1/data"' >> gdal-config
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211
xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp
pcidsk airsar rs2 ilwis rmf rik leveller sgi srtmhgt idrisi gsg ingr ers
jaxapalsar dimap gff cosar pds adrg coasp tsx terragen wcs wms bsb
jpeg2000 hdf5 hdf4 ogdi gif jpeg png pcraster "' >> gdal-configcat
gdal-config.in >> gdal-config
chmod a+x gdal-config
/bin/sh /home/sgong/dev18/gdal-1.5.1/libtool --mode=compile --tag=CC gcc
-g -O2 -Wall -Wdeclaration-after-statement
-I/home/sgong/dev18/gdal-1.5.1/port -I/home/sgong/dev18/gdal-1.5.1/gcore
-I/home/sgong/dev18/gdal-1.5.1/alg -I/home/sgong/dev18/gdal-1.5.1/ogr
-I/home/sgong/dev18/gdal-1.5.1/ogr/ogrsf_frmts
-I/home/sgong/dev18/gdal-1.5.1/frmts -DOGR_ENABLED
-I/home/sgong/dev18/gdal-1.5.1/port -I/home/sgong/dev18/dist
-I/home/sgong/dev18/dist/include -c -o gdalinfo.o gdalinfo.c
libtool: compile: gcc -g -O2 -Wall -Wdeclaration-after-statement
-I/home/sgong/dev18/gdal-1.5.1/port -I/home/sgong/dev18/gdal-1.5.1/gcore
-I/home/sgong/dev18/gdal-1.5.1/alg -I/home/sgong/dev18/gdal-1.5.1/ogr
-I/home/sgong/dev18/gdal-1.5.1/ogr/ogrsf_frmts
-I/home/sgong/dev18/gdal-1.5.1/frmts -DOGR_ENABLED
-I/home/sgong/dev18/gdal-1.5.1/port -I/home/sgong/dev18/dist
-I/home/sgong/dev18/dist/include -c gdalinfo.c -fPIC -DPIC -o
.libs/gdalinfo.o
libtool: compile: gcc -g -O2 -Wall -Wdeclaration-after-statement
-I/home/sgong/dev18/gdal-1.5.1/port -I/home/sgong/dev18/gdal-1.5.1/gcore
-I/home/sgong/dev18/gdal-1.5.1/alg -I/home/sgong/dev18/gdal-1.5.1/ogr
-I/home/sgong/dev18/gdal-1.5.1/ogr/ogrsf_frmts
-I/home/sgong/dev18/gdal-1.5.1/frmts -DOGR_ENABLED
-I/home/sgong/dev18/gdal-1.5.1/port -I/home/sgong/dev18/dist
-I/home/sgong/dev18/dist/include -c gdalinfo.c -o gdalinfo.o >/dev/null
2>&1
/bin/sh /home/sgong/dev18/gdal-1.5.1/libtool --mode=link g++
gdalinfo.o \
/home/sgong/dev18/gdal-1.5.1/libgdal.la -o gdalinfo
libtool: link: g++ gdalinfo.o -o .libs/gdalinfo
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so -L/usr/local/lib
-L/home/sgong/dev18/dist/lib -L/home/sgong/dev171/dist/lib
-L/home/sgong/dev18/dist -L/usr/lib -L/usr/kerberos/lib
-L/home/marinier/gcc-4.2.2-build/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/marinier/gcc-4.2.2-build/i686-pc-linux-gnu/libstdc++-v3/src/.lib
s -L/home/marinier/gcc-4.2.2-build/./gcc /usr/local/lib/libexpat.so
/home/sgong/dev171/dist/lib/libhdf5.so
/home/sgong/dev171/dist/lib/libsz.so -lmfhdf -ldf
/usr/local/lib/libsz.so -logdi31 /usr/lib/libjpeg.so -lpq -lpthread -lrt
/usr/local/lib/libcurl.so -lldap -lssl -lcrypto -lgssapi_krb5 -lkrb5
-lcom_err -lk5crypto -lresolv -ldl -lz /usr/local/lib/libstdc++.so -lm
-lc -lgcc_s -Wl,-rpath -Wl,/home/sgong/dev18/dist/lib -Wl,-rpath
-Wl,/usr/local/lib -Wl,-rpath -Wl,/home/sgong/dev171/dist/lib
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/libssl.so, may
conflict with libcom_err.so.2
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true, 0>::allocate(unsigned int)'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true, 0>::_S_free_list'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true, 0>::_Lock::~_Lock()'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true, 0>::_S_force_new'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true, 0>::_Lock::_Lock()'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_create(unsigned int, std::allocator<char> const&)'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true, 0>::_S_refill(unsigned int)'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_S_empty_rep_storage'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true, 0>::_S_node_allocator_lock'
/home/sgong/dev18/gdal-1.5.1/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned
int)'
collect2: ld returned 1 exit status
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory `/home/sgong/dev18/gdal-1.5.1/apps'
make: *** [apps-target] Error 2
More information about the gdal-dev
mailing list