<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.25">
<TITLE>Error compiling gdal against mrsid dsdk on solaris</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello mailing-list!</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">We have tried to compile the Geoexpress 5 DSDK against gdal 1.3.1 on a Solaris/</FONT>

<BR><FONT SIZE=2 FACE="Arial">Sparc8 System. We are using gcc 2.95.3, libgcc 3.0.3 and we downloaded the </FONT>

<BR><FONT SIZE=2 FACE="Arial">DSDK-Version &quot;GeoExpress SDK for Sun Solaris 8 and 9 - SPARC, gcc 2.95&quot; from </FONT>

<BR><FONT SIZE=2 FACE="Arial">developer.lizardtech.com. We configured gdal with the options:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">./configure --with-mrsid=/usr/local/Geo_DSDK-5.0.6.955/ --with-jp2mrsid=no </FONT>

<BR><FONT SIZE=2 FACE="Arial">--without-pcraster</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The make aborts with the following error:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">make[1]: Entering directory `/user/weick/gdal-1.3.1/apps'</FONT>

<BR><FONT SIZE=2 FACE="Arial">/bin/sh /user/weick/gdal-1.3.1/libtool --mode=link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g++&nbsp; gdalinfo.o&nbsp; \</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /user/weick/gdal-1.3.1/libgdal.la -o gdalinfo</FONT>

<BR><FONT SIZE=2 FACE="Arial">g++ gdalinfo.o -o .libs/gdalinfo&nbsp; /user/weick/gdal-1.3.1/.libs/libgdal.so -L/usr</FONT>

<BR><FONT SIZE=2 FACE="Arial">/local/Geo_DSDK-5.0.6.955//lib/Release -L/usr/local/Geo_DSDK-5.0.6.955//3rd-part</FONT>

<BR><FONT SIZE=2 FACE="Arial">y/lib/Release -lltidsdk /usr/local/lib/libexpat.so -L/usr/lib -L/usr/openwin/lib</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;-L/usr/local/ssl/lib -lpthread /usr/local/lib/libjpeg.so -lpng -lz -lrt -ldl /u</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;sr/local/lib/libstdc++.so -L/usr2/SOURCES/S8/gcc-3.0.3/objdir/sparc-sun-solaris</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;2.8/libstdc++-v3/src -L/usr2/SOURCES/S8/gcc-3.0.3/objdir/sparc-sun-solaris2.8/l</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;ibstdc++-v3/src/.libs -L/usr2/SOURCES/S8/gcc-3.0.3/objdir/gcc -L/usr/local/spar</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;c-sun-solaris2.8/bin -L/usr/local/sparc-sun-solaris2.8/lib -lgcc_s -Wl,-R -Wl,/</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;usr/local/lib</FONT>

<BR><FONT SIZE=2 FACE="Arial">ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (file /usr/local/lib/libgcc_s.so value=LOCL);</FONT>

<BR><FONT SIZE=2 FACE="Arial">Undefined&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; first referenced</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;symbol&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in file</FONT>

<BR><FONT SIZE=2 FACE="Arial">alterToStdMV(void *, unsigned int, CSF_CR, double)/user/weick/gdal-1.3.1/.libs/l</FONT>

<BR><FONT SIZE=2 FACE="Arial">ibgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">GDALType2CellRepresentation(GDALDataType, bool)/user/weick/gdal-1.3.1/.libs/libg</FONT>

<BR><FONT SIZE=2 FACE="Arial">dal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">valueScale2String(CSF_VS)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /user/weick/gdal-1.3.1/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">alterFromStdMV(void *, unsigned int, CSF_CR, double)/user/weick/gdal-1.3.1/.libs</FONT>

<BR><FONT SIZE=2 FACE="Arial">/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">string2ValueScale(basic_string&lt;char, string_char_traits&lt;char&gt;, __default_alloc_t</FONT>

<BR><FONT SIZE=2 FACE="Arial">emplate&lt;false, 0&gt; &gt; const &amp;)/user/weick/gdal-1.3.1/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">cellRepresentation2GDALType(CSF_CR)&nbsp;&nbsp; /user/weick/gdal-1.3.1/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">fitValueScale(CSF_VS, CSF_CR)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /user/weick/gdal-1.3.1/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">open__FRCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template</FONT>

<BR><FONT SIZE=2 FACE="Arial">2b0i010MOPEN_PERM /user/weick/gdal-1.3.1/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">GDALType2ValueScale(GDALDataType)&nbsp;&nbsp;&nbsp; /user/weick/gdal-1.3.1/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">missingValue(CSF_CR)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /user/weick/gdal-1.3.1/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">ld: fatal: Symbol referencing errors. No output written to .libs/gdalinfo</FONT>

<BR><FONT SIZE=2 FACE="Arial">collect2: ld returned 1 exit status</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[1]: *** [gdalinfo] Error 1</FONT>

<BR><FONT SIZE=2 FACE="Arial">make[1]: Leaving directory `/user/weick/gdal-1.3.1/apps'</FONT>

<BR><FONT SIZE=2 FACE="Arial">make: *** [apps-target] Error 2</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>

<BR><FONT SIZE=2 FACE="Arial">We fixed an earlier error complaining that the library xmlparse is missing by su</FONT>

<BR><FONT SIZE=2 FACE="Arial">bstituting &quot;xmlparse&quot; for &quot;expat&quot;.</FONT>

<BR><FONT SIZE=2 FACE="Arial">The compilation of gdal without MrSID-Support works fine.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">We also tried to compile gdal with mrsid-support using gcc 3.4.2, libgcc 3.4.2 o</FONT>

<BR><FONT SIZE=2 FACE="Arial">n the same architecture. We downloaded &quot;GeoExpress SDK for Sun Solaris 8 and 9 -</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;SPARC, gcc 3.2.3&quot; for this purpose. The make aborts with the following error:</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>

<BR><FONT SIZE=2 FACE="Arial">g++ gdalinfo.o -o .libs/gdalinfo&nbsp; /application/lika-services/docs/src/gdal/gdal-</FONT>

<BR><FONT SIZE=2 FACE="Arial">1.3.1-installed-mrsid/.libs/libgdal.so -L/usr/local/Geo_DSDK-5.0.6.955/lib/Relea</FONT>

<BR><FONT SIZE=2 FACE="Arial">se -L/usr/local/Geo_DSDK-5.0.6.955/3rd-party/lib/Release -lltidsdk /usr/local/li</FONT>

<BR><FONT SIZE=2 FACE="Arial">b/libexpat.so -L/usr/lib -L/usr/openwin/lib -L/usr/local/lib -L/usr/local/ssl/li</FONT>

<BR><FONT SIZE=2 FACE="Arial">b -lpthread /usr/local/lib/libjpeg.so -lpng -lz -lrt -ldl /usr/local/lib/libstdc</FONT>

<BR><FONT SIZE=2 FACE="Arial">++.so -L/usr2/SOURCES/S8/gcc-3.4.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src </FONT>

<BR><FONT SIZE=2 FACE="Arial">-L/usr2/SOURCES/S8/gcc-3.4.2/objdir/sparc-sun-solaris2.8/libstdc++-v3/src/.libs </FONT>

<BR><FONT SIZE=2 FACE="Arial">-L/usr2/SOURCES/S8/gcc-3.4.2/objdir/gcc -L/usr/local/sparc-sun-solaris2.8/bin -L</FONT>

<BR><FONT SIZE=2 FACE="Arial">/usr/local/sparc-sun-solaris2.8/lib -L/usr/local/lib/../sparc-sun-solaris2.8/lib</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;-Wl,-R -Wl,/usr/local/gdal/lib -Wl,-R -Wl,/usr/local/lib</FONT>

<BR><FONT SIZE=2 FACE="Arial">ld: warning: file /usr/local/lib/libstdc++.so: attempted multiple inclusion of f</FONT>

<BR><FONT SIZE=2 FACE="Arial">ile</FONT>

<BR><FONT SIZE=2 FACE="Arial">Undefined&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; first referenced</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;symbol&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in file</FONT>

<BR><FONT SIZE=2 FACE="Arial">std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::_S_empty</FONT>

<BR><FONT SIZE=2 FACE="Arial">_rep_storage/application/lika-services/docs/src/gdal/gdal-1.3.1-installed-mrsid/</FONT>

<BR><FONT SIZE=2 FACE="Arial">.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::_M_check</FONT>

<BR><FONT SIZE=2 FACE="Arial">(unsigned int) const/application/lika-services/docs/src/gdal/gdal-1.3.1-installe</FONT>

<BR><FONT SIZE=2 FACE="Arial">d-mrsid/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">std::__default_alloc_template&lt;true, 0&gt;::allocate(unsigned int)/application/lika-</FONT>

<BR><FONT SIZE=2 FACE="Arial">services/docs/src/gdal/gdal-1.3.1-installed-mrsid/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">std::__default_alloc_template&lt;true, 0&gt;::deallocate(void*, unsigned int)/applicat</FONT>

<BR><FONT SIZE=2 FACE="Arial">ion/lika-services/docs/src/gdal/gdal-1.3.1-installed-mrsid/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">std::allocator&lt;char&gt;::allocate(unsigned int, void const*)/application/lika-servi</FONT>

<BR><FONT SIZE=2 FACE="Arial">ces/docs/src/gdal/gdal-1.3.1-installed-mrsid/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::_Rep::_S</FONT>

<BR><FONT SIZE=2 FACE="Arial">_create(unsigned int, std::allocator&lt;char&gt; const&amp;)/application/lika-services/doc</FONT>

<BR><FONT SIZE=2 FACE="Arial">s/src/gdal/gdal-1.3.1-installed-mrsid/.libs/libgdal.so</FONT>

<BR><FONT SIZE=2 FACE="Arial">ld: fatal: Symbol referencing errors. No output written to .libs/gdalinfo</FONT>

<BR><FONT SIZE=2 FACE="Arial">collect2: ld returned 1 exit status</FONT>

<BR><FONT SIZE=2 FACE="Arial">make: *** [gdalinfo] Error 1</FONT>

<BR><FONT SIZE=2 FACE="Arial">/application/lika-services/docs/src/gdal/gdal-1.3.1-installed-mrsid/apps-&gt; </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">It would be nice if someone could help us solving this problem especially in the</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;second case (gcc 3.4.2). Thanks in advance.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Holger</FONT>
</P>

</BODY>
</HTML>