Got it: the problem proved to be libtool! I've successfully built a working
version of GDAL 1.6.0 by adding the '--without-libtool' to configure and tested
this version using ogr2ogr to translate a gml file to ESRI Shapefile format.
Fascinating, as libtool itself is unchanged between 1.5.x and 1.6.0, yet will
build the one and not the other! Ho hum.
Best wishes,
Peter
Rushforth, Peter wrote:
Peter,
Is it possible that what's in /usr/appl/bin/solaris/sparc/include/
is xerces 2.8 or other?
Looks like a version issue to me, going by memory.
Peter
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Peter J Halls
Sent: April 16, 2009 8:49 AM
To: [email protected]
Subject: [gdal-dev] Problems building 1.6.0 with Xerces 2.7
on Solaris 10 / Sparc (1.5.x work)
Dear All,
I'm sure that I've done something wrong, but cannot see
it! I've pulled GDAL 1.6.0 and ran the same configure
command as for 1.5.x, seeking to include xerces (for GML).
Configure failed to find the xerces libraries with both gcc
3.3 and the Sun compilers; I also had to drop Jasper, as I do
not currently have this. I got round the xerces problem for
the Sun compilers (but get a new set of errors from gcc) by
editing configure to add a reference to the XMLUni header
file, as follows:
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/util/XMLUni.hpp>
#include <xercesc/util/PlatformUtils.hpp>
However, GDAL then fails to build, with multiple link errors
of the same form as originally generated by configure:
Undefined first referenced
symbol in file
int xercesc_2_7::XMLString::compareString(const unsigned
short*const,const unsigned short*const)
/usr/postel/gdal-1.6.0/ogr/ogrsf_frmts/o/.libs/iom_basket.o
unsigned short*xercesc_2_7::XMLString::replicate(const
unsigned short*const)
/usr/postel/gdal-1.6.0/ogr/ogrsf_frmts/o/.libs/iom_basket.o
xercesc_2_7::XMLFormatter&xercesc_2_7::XMLFormatter::operator<
<(const unsigned
short*const) /usr/postel/gdal-1.6.0/ogr/ogrsf_frmts/o/.libs/writer.o
void xercesc_2_7::XMLString::catString(unsigned
short*const,const unsigned
short*const) /usr/postel/gdal-1.6.0/ogr/ogrsf_frmts/o/.libs/writer.o
xercesc_2_7::LocalFileFormatTarget::LocalFileFormatTarget(const
char*const,xercesc_2_7::MemoryManager*const)
/usr/postel/gdal-1.6.0/ogr/ogrsf_frmts/o/.libs/writer.o
Checking the sources, the header file requests appear to be
in order, so it would appear that I have some other problem
that is masked by my edit to configure.
My current configure statement is
./configure 'CC=cc' 'CCC=CC'
'--with-oci-include=/usr/appl/oracle/solaris/solaris32/instant
client10_1/sdk/include'
'--with-oci-lib=/usr/appl/oracle/solaris/solaris32/instantclie
nt10_1/lib'
'--prefix=/usr/appl/bin/solaris/sparc' '--with-pcraster=internal'
'--with-png=internal' '--with-libtiff=internal'
'--with-geotiff=internal'
'--with-jpeg=internal' '--with-xerces'
'--with-xerces-inc=/usr/appl/bin/solaris/sparc/include/'
'--with-xerces-lib=/usr/appl/bin/solaris/sparc/lib/libxerces-c.so.27'
'--without-python' '--without-jasper'
Note that I have had to specify the libxerces-c.so.27, rather
than just libxerces-c.so as I did at GDAL 1.5.x - they are
the same version.
I can provide compilation logs, etc., should these be needed
to identify where I've gone wrong.
Thanks and best wishes,
Peter
--------------------------------------------------------------
------------------
Peter J Halls, GIS Advisor, University of York
Telephone: 01904 433806 Fax: 01904 433740
Snail mail: Computing Service, University of York,
Heslington, York YO10 5DD This message has the status of a
private and personal communication
--------------------------------------------------------------
------------------
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
--------------------------------------------------------------------------------
Peter J Halls, GIS Advisor, University of York
Telephone: 01904 433806 Fax: 01904 433740
Snail mail: Computing Service, University of York, Heslington, York YO10 5DD
This message has the status of a private and personal communication
--------------------------------------------------------------------------------
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev