<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hi all,<br>
<br>
I upgraded my xerces-c now to 2.8.0 by downloading the latest stable
binary release for Solaris 10 x86. This seems fine now, at least gdal´s
configure succeeds as desired.<br>
<br>
Unfortunately, I got stuck at the next step. Making gdal throws the
following error:<br>
<font face="Courier New, Courier, monospace">/bin/sh
/localdata/build/gdal/gdal-1.4.2/libtool --mode=compile g++ -Wall
-O2 -I/usr/local/xerces-c/include
-I/usr/local/xerces-c/include/xercesc -DOGR_ENABLED
-I/localdata/build/gdal/gdal-1.4.2/port -I.. -c -o ../../o/reader.o
reader.cpp<br>
g++ -Wall -O2 -I/usr/local/xerces-c/include
-I/usr/local/xerces-c/include/xercesc -DOGR_ENABLED
-I/localdata/build/gdal/gdal-1.4.2/port -I.. -c reader.cpp -fPIC -DPIC
-o ../../o/.libs/reader.o<br>
reader.cpp: In member function `virtual void
ParserHandler::startElement(const XMLCh*, const XMLCh*, const XMLCh*,
const xercesc_2_8::Attributes&)':<br>
reader.cpp:250: Fehler: invalid use of undefined type `const struct
xercesc_2_8::Attributes'<br>
/usr/local/xerces-c/include/xercesc/sax2/ContentHandler.hpp:30: Fehler:
forward declaration of `const struct xercesc_2_8::Attributes'<br>
reader.cpp:251: Fehler: invalid use of undefined type `const struct
xercesc_2_8::Attributes'<br>
/usr/local/xerces-c/include/xercesc/sax2/ContentHandler.hpp:30: Fehler:
forward declaration of `const struct xercesc_2_8::Attributes'<br>
reader.cpp:252: Fehler: invalid use of undefined type `const struct
xercesc_2_8:</font><br>
(...)<br>
<br>
Anyone knows about this?<br>
<br>
Once again, any help is appreciated.<br>
Thanks in advance and best regards,<br>
Chris<br>
<br>
</font></font><br>
Rushforth, Peter schrieb:
<blockquote
cite="mid:E3942D3EB127854BBBC18511759DD003CA74F3@S0-OTT-X2.nrn.nrcan.gc.ca"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.6000.16525" name="GENERATOR">
<div dir="ltr" align="left"><span class="408280517-28082007"><font
color="#0000ff" face="Arial" size="2">Hi Chris,</font></span></div>
<div dir="ltr" align="left"><span class="408280517-28082007"></span> </div>
<div dir="ltr" align="left"><span class="408280517-28082007"><font
color="#0000ff" face="Arial" size="2">I think your xerces looks a
little old. Here is the text of my my_conf, my configuration</font></span></div>
<div dir="ltr" align="left"><span class="408280517-28082007"><font
color="#0000ff" face="Arial" size="2">for solaris 10 on ultrasparc. I
had to build xerces before I could build gdal. I also</font></span></div>
<div dir="ltr" align="left"><span class="408280517-28082007"><font
color="#0000ff" face="Arial" size="2">found I needed the largefile
stuff to manipulate large gml files.</font></span></div>
<div dir="ltr" align="left"><span class="408280517-28082007"></span> </div>
<span class="408280517-28082007"><font color="#0000ff" face="Arial"
size="2"><font size="2"></font></font>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"
size="2"><font size="2">./configure \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--without-oci \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--without-libtool \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--enable-static=yes \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--disable-shared \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--prefix=/bilbo05/rushpet/gdal/sol10build \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--with-static-proj4=/bilbo05/rushpet/proj/proj_sol10 \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--with-xerces \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--with-xerces-inc=/bilbo05/rushpet/xerces/xerces-c-src_2_7_0/src/xercesc/include
\</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--with-xerces-lib="-L/bilbo05/rushpet/xerces/xerces-c-src_2_7_0/lib
-lxerces-c" \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--with-sde=/software/sdeexe83 \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">--with-sde-version=83 \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">CFLAGS='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' \</font></font></div>
<div align="left"><font color="#0000ff" face="Arial" size="2"><font
size="2">CXXFLAGS='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'</font></font></div>
<div> </div>
<div><font color="#0000ff" face="Arial" size="2"><span
class="408280517-28082007">I hope this helps a bit.</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span
class="408280517-28082007"></span></font> </div>
<div><font color="#0000ff" face="Arial" size="2"><span
class="408280517-28082007">Cheers,</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span
class="408280517-28082007">Peter</span></font></div>
<div> </div>
<div><br>
</div>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
<hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev-bounces@lists.maptools.org">gdal-dev-bounces@lists.maptools.org</a>
[<a class="moz-txt-link-freetext" href="mailto:gdal-dev-bounces@lists.maptools.org">mailto:gdal-dev-bounces@lists.maptools.org</a>] <b>On Behalf Of </b>Christian
Schaffer<br>
<b>Sent:</b> August 28, 2007 07:51<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.maptools.org">gdal-dev@lists.maptools.org</a><br>
<b>Subject:</b> [Gdal-dev] Configure on Solaris 10 --with-xerces fails<br>
</font><br>
</div>
<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 moz-do-not-send="true"
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 moz-do-not-send="true" 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 <util/XercesDefs.hpp><br>
#include <util/PlatformUtils.hpp><br>
#if (_XERCES_VERSION >= 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></span></blockquote>
</body>
</html>