[Gdal-dev] GDAL/MrSid-5 on Solaris 9

Sheykhet, Rostic rsheykhet at sanz.com
Tue Jun 14 19:56:48 EDT 2005


Hi all,

I am trying to compile GDAL with MrSid support on Solaris 9 platform.  
The LizardTech MrSid SDK version is 5.0.6.955 built for Solaris with GCC
3.2 compiler.
I am using GCC 3.4.x and getting problems during make (see below).  The
xdr_??? Undefined symbols can be fixed by building with -lnsl library.
I am not able to resolve the other undefined symbols.  Has anyone had
success building a similar setup?  

Thanks a lot.

Rostic Sheykhet

....
make[1]: Entering directory `gdal/apps'
g++  gdalinfo.o  \
        /export/home/rsheykhe/sources/gdal/libgdal.a
/export/home/rsheykhe/sources/gdal/libgdal.a
-L/export/home/rsheykhe/sources/../binaries/solaris/mrsid/3rd-party/lib/
Release -lltiesdk
-L/export/home/rsheykhe/sources/../binaries/solaris/mrsid/lib/Release
-lltidsdk -lpthread
-L/export/home/rsheykhe/sources/../binaries/solaris/hdf/lib -lmfhdf -ldf
-lsz -ljpeg -lz -lm -ldl -L/export/home/rsheykhe/sources/kakadu/lib
-lkdu -lcryptopp   -o gdalinfo
Undefined                       first referenced
 symbol                             in file
std::allocator<char>::allocate(unsigned int, void
const*)/export/home/rsheykhe/sources/../binaries/solaris/mrsid/lib/Relea
se/libltidsdk.a(lt_stringUtils.o)
std::__default_alloc_template<true, 0>::allocate(unsigned
int)/export/home/rsheykhe/sources/../binaries/solaris/mrsid/lib/Release/
libltidsdk.a(lt_fileUtils.o)
xdr_float
/export/home/rsheykhe/sources/../binaries/solaris/hdf/lib/libmfhdf.a(put
get.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
xdr_long
/export/home/rsheykhe/sources/../binaries/solaris/hdf/lib/libmfhdf.a(put
get.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
OGRSpatialReference::Validate()
/export/home/rsheykhe/sources/../binaries/solaris/mrsid/lib/Release/libl
tidsdk.a(lti_doqMetadata.o)
xdr_u_long
/export/home/rsheykhe/sources/../binaries/solaris/hdf/lib/libmfhdf.a(str
ing.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
xdr_int
/export/home/rsheykhe/sources/../binaries/solaris/hdf/lib/libmfhdf.a(iar
ray.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
xdr_double
/export/home/rsheykhe/sources/../binaries/solaris/hdf/lib/libmfhdf.a(put
get.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
xdr_enum
/export/home/rsheykhe/sources/../binaries/solaris/hdf/lib/libmfhdf.a(var
.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
xdr_opaque
/export/home/rsheykhe/sources/../binaries/solaris/hdf/lib/libmfhdf.a(put
get.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_create(unsigned int, std::allocator<char>
const&)/export/home/rsheykhe/sources/../binaries/solaris/mrsid/lib/Relea
se/libltidsdk.a(MrSIDPasswordDelegate.o)
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_S_empty_rep_storage/export/home/rsheykhe/sources/../binaries/solaris
/mrsid/lib/Release/libltidsdk.a(MrSIDPasswordDelegate.o)
std::__default_alloc_template<true, 0>::deallocate(void*, unsigned
int)/export/home/rsheykhe/sources/../binaries/solaris/mrsid/lib/Release/
libltidsdk.a(MrSIDPasswordDelegate.o)
OGRSpatialReference::exportToWkt(char**)
const/export/home/rsheykhe/sources/../binaries/solaris/mrsid/lib/Release
/libltidsdk.a(lti_doqMetadata.o)
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_M_check(unsigned int)
const/export/home/rsheykhe/sources/../binaries/solaris/mrsid/lib/Release
/libltidsdk.a(lt_url.o)
ld: fatal: Symbol referencing errors. No output written to gdalinfo
collect2: ld returned 1 exit status
make: *** [gdalinfo] Error 1



More information about the Gdal-dev mailing list