[Gdal-dev] building gdal on solaris

Howard Butler hobu at iastate.edu
Fri Apr 21 15:52:42 EDT 2006


looks like the binaries you got were 32bit?   ELFCLASS64-type things 
are usually related to mixing 32 and 64 bit stuff.

Your best bet will be to build your own Xerces and remove the package 
(Sunfreeware?)

Howard

At 02:41 PM 4/21/2006, Peter.Rushforth at statcan.ca wrote:
>Hi again,
>
>I'm trying to build gdal now with xerces, but in the configure stage 
>I get this error:
>
>checking for Xerces C++... requested, but compile or link fails!
>
>g++ -I/bilbo05/rushpet/xerces/xerces-c-solaris_28-cc_62/include
>g++ -I/bilbo05/rushpet/xerces/xerces-c-solaris_28-cc_62/include/xercesc
>g++ -o conftest conftest.cpp
>g++ -L/bilbo05/rushpet/xerces/xerces-c-solaris_28-cc_62/lib -ljpeg -lpng
>g++ -lz -lm -lrt -ldl
>
>Undefined                       first referenced
>  symbol                             in file
>xercesc_2_7::XMLPlatformUtils::Initialize(char const*, char const*, 
>xercesc_2_7::PanicHandler*, xercesc_2_7::MemoryManager*, 
>bool)/var/tmp//cceUPWyC.o
>xercesc_2_7::XMLUni::fgXercescDefaultLocale      /var/tmp//cceUPWyC.o
>ld: fatal: Symbol referencing errors. No output written to conftest
>collect2: ld returned 1 exit status
>
>configure: error: Please correct Xerces options, or don't enable Xerces.
>
>I tried using the 64-bit version of xerces, but no success:
>checking for Xerces C++... requested, but compile or link fails!
>
>g++ -I/bilbo05/rushpet/xerces/xerces-c-solaris_28_64-cc_62/include 
>-I/bilbo05/rushpet/xerces/xerces-c-solaris_28_64-cc_62/include/xercesc 
>-o conftest conftest.cpp 
>-L/bilbo05/rushpet/xerces/xerces-c-solaris_28_64-cc_62/lib 
>-lxerces-c -lpthread -ljpeg -lpng -lz -lm -lrt -ldl
>
>ld: fatal: file 
>/bilbo05/rushpet/xerces/xerces-c-solaris_28_64-cc_62/lib/libxerces-c.so: 
>wrong ELF class: ELFCLASS64
>ld: fatal: File processing errors. No output written to conftest
>collect2: ld returned 1 exit status
>
>I've obviously got something way wrong... but what?
>I downloaded the solaris binaries, not the source.  Perhaps that is 
>the problem?
>Maybe the version of xerces is wrong....
>
>Thanks for any ideas,
>
>Peter Rushforth
>Geography Division
>Statistics Canada
>Ottawa Ontario
>K1A 0T6
>
>_______________________________________________
>Gdal-dev mailing list
>Gdal-dev at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list