[Gdal-dev] GDAL 1.3.0, compile errors

Armin Burger armin.burger at gmx.net
Fri Aug 19 11:51:33 EDT 2005


Hello,

I tried to compile GDAL 1.3.0 on Debian Linux using the configuration

./configure --with-pg=/usr/local/pgsql/bin/pg_config   
--with-geos=yes      --with-xerces --with-xerces-lib="-L/usr/local/lib 
-lxerces-c1_7_0 -lpthread"  --with-xerces-inc=/usr/local/include/xercesc 
--with-ecw=/home/install/mapserver/ecwsdk-3.1.25Jan05-linux/ --with-mysql=no

I got the error starting with

make[4]: Entering directory 
`/home/install/mapserver/gdal-1.3.0/ogr/ogrsf_frmts/ili/iom'
/bin/sh ../../../../libtool --mode=compile g++ -Wall  -O2   
-I/usr/local/include/xercesc -I/usr/local/include/xercesc/xercesc 
-I../../../../port 
-I/home/install/mapserver/ecwsdk-3.1.25Jan05-linux//include  -I.. -c -o 
../../o/iom_attr.o iom_attr.cpp
 g++ -Wall -O2 -I/usr/local/include/xercesc 
-I/usr/local/include/xercesc/xercesc -I../../../../port 
-I/home/install/mapserver/ecwsdk-3.1.25Jan05-linux//include -I.. -c 
iom_attr.cpp  -fPIC -DPIC -o ../../o/.libs/iom_attr.o
In file included from iom_attr.cpp:7:
../iom/iom_p.h:25:55: xercesc/framework/LocalFileFormatTarget.hpp: No 
such file or directory
In file included from iom_attr.cpp:7:
../iom/iom_p.h:46: error: syntax error before `{' token

The complete error text is attached to the mail. It seems to be related 
to Xerces (1.7.0 compiled from source).  I tried also the GDAL CVS 
version from today, the same error.

Any ideas how to solve the problem?

Armin




-------------- next part --------------
./configure --with-pg=/usr/local/pgsql/bin/pg_config   --with-geos=yes      --with-xerces --with-xerces-lib="-L/usr/local/lib -lxerces-c1_7_0 -lpthread"  --with-xerces-inc=/usr/local/include/xercesc --with-ecw=/home/install/mapserver/ecwsdk-3.1.25Jan05-linux/ --with-mysql=no



make[3]: Entering directory `/home/install/mapserver/gdal-1.3.0/ogr/ogrsf_frmts/ili'
make -C iom
make[4]: Entering directory `/home/install/mapserver/gdal-1.3.0/ogr/ogrsf_frmts/ili/iom'
/bin/sh ../../../../libtool --mode=compile g++ -Wall  -O2   -I/usr/local/include/xercesc -I/usr/local/include/xercesc/xercesc -I../../../../port -I/home/install/mapserver/ecwsdk-3.1.25Jan05-linux//include  -I.. -c -o ../../o/iom_attr.o iom_attr.cpp
 g++ -Wall -O2 -I/usr/local/include/xercesc -I/usr/local/include/xercesc/xercesc -I../../../../port -I/home/install/mapserver/ecwsdk-3.1.25Jan05-linux//include -I.. -c iom_attr.cpp  -fPIC -DPIC -o ../../o/.libs/iom_attr.o
In file included from iom_attr.cpp:7:
../iom/iom_p.h:25:55: xercesc/framework/LocalFileFormatTarget.hpp: No such file or directory
In file included from iom_attr.cpp:7:
../iom/iom_p.h:46: error: syntax error before `{' token
../iom/iom_p.h:51: error: parse error before `public'
../iom/iom_p.h:55: error: ISO C++ forbids declaration of `XmlWrtAttr' with no
   type
../iom/iom_p.h:56: error: ISO C++ forbids declaration of `XmlWrtAttr' with no
   type
../iom/iom_p.h:57: error: parse error before `}' token
../iom/iom_p.h:65: error: type specifier omitted for parameter `XmlWrtAttr'
../iom/iom_p.h:65: error: parse error before `[' token
../iom/iom_p.h: In destructor `StrX::~StrX()':
../iom/iom_p.h:665: error: 'class XMLString' has no member named 'release'
../iom/iom_p.h: In destructor `XStr::~XStr()':
../iom/iom_p.h:710: error: 'class XMLString' has no member named 'release'
iom_attr.cpp: In function `const char* iom_getattrname(iom_object*, int)':
iom_attr.cpp:25: error: 'class XMLString' has no member named 'release'
iom_attr.cpp: In function `char* iom_getattrvalue(iom_object*, const char*)':
iom_attr.cpp:48: error: 'class XMLString' has no member named 'release'
iom_attr.cpp: In function `char* iom_getattrprim(iom_object*, const char*, int)
   ':
iom_attr.cpp:85: error: 'class XMLString' has no member named 'release'
iom_attr.cpp: In function `const char* iom_getxmleleattrname(iom_object*, int)
   ':
iom_attr.cpp:160: error: 'class XMLString' has no member named 'release'
iom_attr.cpp: In function `char* iom_getxmleleprim(iom_object*, int)':
iom_attr.cpp:184: error: 'class XMLString' has no member named 'release'
make[4]: *** [../../o/iom_attr.o] Error 1
make[4]: Leaving directory `/home/install/mapserver/gdal-1.3.0/ogr/ogrsf_frmts/ili/iom'
make[3]: *** [iom-target] Error 2
make[3]: Leaving directory `/home/install/mapserver/gdal-1.3.0/ogr/ogrsf_frmts/ili'
make[2]: *** [ili-target] Error 2
make[2]: Leaving directory `/home/install/mapserver/gdal-1.3.0/ogr/ogrsf_frmts'
make[1]: *** [sublibs] Error 2
make[1]: Leaving directory `/home/install/mapserver/gdal-1.3.0/ogr'
make: *** [ogr-target] Error 2


More information about the Gdal-dev mailing list