[Gdal-dev] Configure on Solaris 10 --with-xerces fails
Rushforth, Peter
prushfor at NRCan.gc.ca
Wed Sep 5 09:39:45 EDT 2007
Chris and list,
Could it be that xerces 2.8 is *too* recent? Is there any idea from
the ogr maintainers which version of xerces one should use when
attempting this?
I can't remember if I did try 2.8 or not, but I do remember the process
being difficult. I also found that having the proj4 libraries built
and available was important in the operation of the ogr commands,
but not having done that did not impede the progress of building the
binaries.
Sorry this is more sympathy than help.
Peter
________________________________
From: Christian Schaffer [mailto:christian.schaffer at muenchen.de]
Sent: Wed 05/09/2007 5:57 AM
To: Rushforth, Peter
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Configure on Solaris 10 --with-xerces fails
Hi all,
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.
Unfortunately, I got stuck at the next step. Making gdal throws the following error:
/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
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
reader.cpp: In member function `virtual void ParserHandler::startElement(const XMLCh*, const XMLCh*, const XMLCh*, const xercesc_2_8::Attributes&)':
reader.cpp:250: Fehler: invalid use of undefined type `const struct xercesc_2_8::Attributes'
/usr/local/xerces-c/include/xercesc/sax2/ContentHandler.hpp:30: Fehler: forward declaration of `const struct xercesc_2_8::Attributes'
reader.cpp:251: Fehler: invalid use of undefined type `const struct xercesc_2_8::Attributes'
/usr/local/xerces-c/include/xercesc/sax2/ContentHandler.hpp:30: Fehler: forward declaration of `const struct xercesc_2_8::Attributes'
reader.cpp:252: Fehler: invalid use of undefined type `const struct xercesc_2_8:
(...)
Anyone knows about this?
Once again, any help is appreciated.
Thanks in advance and best regards,
Chris
Rushforth, Peter schrieb:
Hi Chris,
I think your xerces looks a little old. Here is the text of my my_conf, my configuration
for solaris 10 on ultrasparc. I had to build xerces before I could build gdal. I also
found I needed the largefile stuff to manipulate large gml files.
./configure \
--without-oci \
--without-libtool \
--enable-static=yes \
--disable-shared \
--prefix=/bilbo05/rushpet/gdal/sol10build \
--with-static-proj4=/bilbo05/rushpet/proj/proj_sol10 \
--with-xerces \
--with-xerces-inc=/bilbo05/rushpet/xerces/xerces-c-src_2_7_0/src/xercesc/include \
--with-xerces-lib="-L/bilbo05/rushpet/xerces/xerces-c-src_2_7_0/lib -lxerces-c" \
--with-sde=/software/sdeexe83 \
--with-sde-version=83 \
CFLAGS='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' \
CXXFLAGS='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
I hope this helps a bit.
Cheers,
Peter
________________________________
From: gdal-dev-bounces at lists.maptools.org [mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Christian Schaffer
Sent: August 28, 2007 07:51
To: gdal-dev at lists.maptools.org
Subject: [Gdal-dev] Configure on Solaris 10 --with-xerces fails
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 <http://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
More information about the Gdal-dev
mailing list