<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hello list,<br>
<br>
I just tried to build GDAL 1.4.2 with the --with-xerces option.<br>
The system is x86_64<br>
OS: Solaris 10<br>
Xerces 2.5.0 from <a class="moz-txt-link-abbreviated" href="http://www.blastwave.org">www.blastwave.org</a><br>
<font face="Courier New, Courier, monospace"># pkg-get compare xerces_c<br>
# (From site <a class="moz-txt-link-freetext" href="http://mirrors.sunsite.dk/csw/unstable">http://mirrors.sunsite.dk/csw/unstable</a> )<br>
       software                    localrev                   remoterev<br>
       xerces_c        2.5.0,REV=2004.09.12                        SAME</font><br>
<br>
my configure scripts looks like this:<br>
<font face="Courier New, Courier, monospace">./configure \<br>
--with-gif=internal     \<br>
--with-jpeg=internal    \<br>
--with-geotiff=internal \<br>
--with-libtiff=internal \<br>
--with-libz=internal    \<br>
--with-perl \<br>
--with-xerces \<br>
--with-xerces-inc=/opt/csw/include \<br>
--with-oci=/opt/oracle<br>
</font><br>
The error message reads:<br>
<font face="Courier New, Courier, monospace">checking for Xerces C++...
requested, but compile or link fails!<br>
<br>
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<br>
<br>
/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<br>
/var/tmp//cckTAZ8O.o: In function `main':<br>
conftest.cpp:(.text+0x23): undefined reference to
`xercesc_2_5::XMLUni::fgXercescDefaultLocale'<br>
conftest.cpp:(.text+0x28): undefined reference to
`xercesc_2_5::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunHex_skip6F_b_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunIex_alloc6FI_pv_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunKex_rethrow6F_v_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunSregister_exit_code6FpG_v_v_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to `__1c2K6Fpv_v_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunKpure_error6F_v_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to `__1c2k6Fpv_v_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunGex_get6F_pv_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to `c::c(n6, 
(int0_t))'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunKvector_del6FpvIpF1_v_1_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunIex_clean6F_v_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to
`__1cG__CrunMex_rethrow_q6F_v_'<br>
/opt/csw/lib/libxerces-c.so: undefined reference to `c::c(N6, 
(int0_t))'<br>
collect2: ld returned 1 exit status<br>
<br>
cat conftest.cpp<br>
#include &lt;util/XercesDefs.hpp&gt;<br>
#include &lt;util/PlatformUtils.hpp&gt;<br>
#if (_XERCES_VERSION &gt;= 20200)<br>
    XERCES_CPP_NAMESPACE_USE<br>
#endif<br>
int main() {  XMLPlatformUtils::Initialize(); }<br>
configure: error: Please correct Xerces options, or don't enable Xerces.<br>
</font><br>
Any help is greatly appreciated.<br>
Thanks in advance and best regards,<br>
Chris<br>
</font></font>
</body>
</html>