[Gdal-dev] building gdal on solaris
Peter.Rushforth at statcan.ca
Peter.Rushforth at statcan.ca
Fri Apr 21 16:13:03 EDT 2006
Thanks for your comments. I tried both 32 and 64 bit xerces.
The ELF business came about when I tried the 64 bit stuff.
The 32 bit errors, listed a bit higher up (below) give me
the undefined symbol messages.
I tried configuring with 32-bit xerces 2.3 but I get similar error
messages to the 32-bit 2.7 experience.
Peter Rushforth
Geography Division
Statistics Canada
Ottawa Ontario
K1A 0T6
xerces 32-bit configure:
> >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
> >g++ -lpng -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.
> >
64-bit xerces configure:
> >g++ -I/bilbo05/rushpet/xerces/xerces-c-solaris_28_64-cc_62/include
> >-I/bilbo05/rushpet/xerces/xerces-c-solaris_28_64-cc_62/includ
> e/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/libx
> erces-c.so:
> >wrong ELF class: ELFCLASS64
> >ld: fatal: File processing errors. No output written to conftest
> >collect2: ld returned 1 exit status
> >
More information about the Gdal-dev
mailing list