[gdal-dev] gdal-1.5.3 build on Linux error (libstdc++.so too old?)

Gong, Shawn (Contractor) Shawn.Gong at drdc-rddc.gc.ca
Fri Nov 21 13:48:07 EST 2008


hi list,

I downloaded the gdal overnight stable branch. When I built it, I got
the error messages below.
I searched web and found:
http://www.nabble.com/MrSID-Cross-Compiler-Information-to684614.html#a68
4614

My Linux is Redhat Enterprise and libstdc++.so.5 in /usr/lib is used

Does it mean that I have to use a newer libstdc++.so.6?  There is
libstdc++.so.6 in /usr/local/lib but I was afraid that different
versions will cause problems.  


thanks,
Shawn


... ...
libtool: compile:  gcc -g -O2 -Wall -Wdeclaration-after-statement
-I/home/sgong/dev181/gdal-1.5.3/port -I/
home/sgong/dev181/gdal-1.5.3/gcore -I/home/sgong/dev181/gdal-1.5.3/alg
-I/home/sgong/dev181/gdal-1.5.3/ogr
-I/home/sgong/dev181/gdal-1.5.3/ogr/ogrsf_frmts
-I/home/sgong/dev181/gdal-1.5.3/frmts -DOGR_ENABLED -I/ho
me/sgong/dev181/gdal-1.5.3/port -I/home/sgong/dev181/dist
-I/home/sgong/dev181/dist/include -c gdalinfo.c -o gdalinfo.o >/dev/null
2>&1
/bin/sh /home/sgong/dev181/gdal-1.5.3/libtool --mode=link       g++
gdalinfo.o  \
        /home/sgong/dev181/gdal-1.5.3/libgdal.la -o gdalinfo
libtool: link: g++ gdalinfo.o -o .libs/gdalinfo
/home/sgong/dev181/gdal-1.5.3/.libs/libgdal.so -L/usr/loc al/lib
-L/home/sgong/dev181/dist/lib -L/home/sgong/dev181/dist -L/usr/lib
-L/usr/kerberos/lib -L/home/mari
nier/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/.libs -L/home/marinier/gcc-4.2.2-build/./gcc
/usr/local/lib/libexpat.so /home/sgong/dev1 81/dist/lib/libhdf5.so
/home/sgong/dev181/dist/lib/libsz.so -lmfhdf -ldf
/usr/local/lib/libsz.so -logdi31 /usr/lib/libjpeg.so -lpq -lrt
/usr/local/lib/libcurl.so -lldap -lssl -lcrypto -lgssapi_krb5 -lkrb5
-lcom_e rr -lk5crypto -lresolv -ldl -lz /usr/local/lib/libstdc++.so -lm
-lc -lgcc_s -Wl,-rpath -Wl,/home/sgong/dev 181/dist/lib -Wl,-rpath
-Wl,/usr/local/lib
/usr/bin/ld: warning: libcom_err.so.3, needed by /usr/lib/libssl.so, may
conflict with libcom_err.so.2
/home/sgong/dev181/gdal-1.5.3/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true , 0>::allocate(unsigned int)'
/home/sgong/dev181/gdal-1.5.3/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true , 0>::_S_free_list'
/home/sgong/dev181/gdal-1.5.3/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true , 0>::_Lock::~_Lock()'
/home/sgong/dev181/gdal-1.5.3/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true , 0>::_S_force_new'
/home/sgong/dev181/gdal-1.5.3/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true , 0>::_Lock::_Lock()'
/home/sgong/dev181/gdal-1.5.3/.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/dev181/gdal-1.5.3/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true , 0>::_S_refill(unsigned int)'
/home/sgong/dev181/gdal-1.5.3/.libs/libgdal.so: undefined reference to
`std::basic_string<char, std::char_ traits<char>, std::allocator<char>
>::_S_empty_rep_storage'
/home/sgong/dev181/gdal-1.5.3/.libs/libgdal.so: undefined reference to
`std::__default_alloc_template<true , 0>::_S_node_allocator_lock'
/home/sgong/dev181/gdal-1.5.3/.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/dev181/gdal-1.5.3/apps'
make: *** [apps-target] Error 2




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081121/07b7e3a1/attachment.html


More information about the gdal-dev mailing list