[Gdal-dev] Configure on Solaris 10 --with-xerces fails
Christian Schaffer
christian.schaffer at muenchen.de
Tue Aug 28 07:50:37 EDT 2007
Hello list,
I just tried to build GDAL 1.4.2 with the --with-xerces option.
The system is x86_64
OS: Solaris 10
Xerces 2.5.0 from www.blastwave.org
# pkg-get compare xerces_c
# (From site http://mirrors.sunsite.dk/csw/unstable )
software localrev remoterev
xerces_c 2.5.0,REV=2004.09.12 SAME
my configure scripts looks like this:
./configure \
--with-gif=internal \
--with-jpeg=internal \
--with-geotiff=internal \
--with-libtiff=internal \
--with-libz=internal \
--with-perl \
--with-xerces \
--with-xerces-inc=/opt/csw/include \
--with-oci=/opt/oracle
The error message reads:
checking for Xerces C++... requested, but compile or link fails!
g++ -I/opt/csw/include -I/opt/csw/include/xercesc -o conftest
conftest.cpp -L/usr/lib -lxerces-c -lpthread -lpng -lpq -L/usr/lib -lpq
-lm -lrt -ldl
/opt/csw/bin/ld: warning: libm.so.1, needed by
/opt/csw/gcc3/lib/gcc/i386-pc-solaris2.8/3.4.5/../../../libstdc++.so,
may conflict with libm.so.2
/var/tmp//cckTAZ8O.o: In function `main':
conftest.cpp:(.text+0x23): undefined reference to
`xercesc_2_5::XMLUni::fgXercescDefaultLocale'
conftest.cpp:(.text+0x28): undefined reference to
`xercesc_2_5::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunHex_skip6F_b_'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunIex_alloc6FI_pv_'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunKex_rethrow6F_v_'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunSregister_exit_code6FpG_v_v_'
/opt/csw/lib/libxerces-c.so: undefined reference to `__1c2K6Fpv_v_'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunKpure_error6F_v_'
/opt/csw/lib/libxerces-c.so: undefined reference to `__1c2k6Fpv_v_'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunGex_get6F_pv_'
/opt/csw/lib/libxerces-c.so: undefined reference to `c::c(n6, (int0_t))'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunKvector_del6FpvIpF1_v_1_'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunIex_clean6F_v_'
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunMex_rethrow_q6F_v_'
/opt/csw/lib/libxerces-c.so: undefined reference to `c::c(N6, (int0_t))'
collect2: ld returned 1 exit status
cat conftest.cpp
#include <util/XercesDefs.hpp>
#include <util/PlatformUtils.hpp>
#if (_XERCES_VERSION >= 20200)
XERCES_CPP_NAMESPACE_USE
#endif
int main() { XMLPlatformUtils::Initialize(); }
configure: error: Please correct Xerces options, or don't enable Xerces.
Any help is greatly appreciated.
Thanks in advance and best regards,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070828/c0947069/attachment.html
More information about the Gdal-dev
mailing list