[Gdal-dev] building gdal on solaris
Peter.Rushforth at statcan.ca
Peter.Rushforth at statcan.ca
Fri Apr 21 15:41:58 EDT 2006
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
More information about the Gdal-dev
mailing list