[Gdal-dev] gdal-1.3.2 - compiling errors on fedora 5

Rainer Spittel rainer.spittel at terralink.co.nz
Thu Oct 19 23:27:15 EDT 2006


Hi,

  I try to compile gdal on fedora 5 (gcc version 4.1.1) and get error
messages during installation. To set up the make files, I run following
configure command:

>> ./configure  --with-ogr --without-python --with-xerces
>> make

  During the compiling, I get following error message:

[...]
make[3]: Entering directory
`/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts/pg'
make[3]: Nothing to be done for `default'.
make[3]: Leaving directory
`/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts/pg'
make -C ili
make[3]: Entering directory
`/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts/ili'
make -C iom
make[4]: Entering directory
`/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts/ili/iom'
make[4]: Nothing to be done for `default'.
make[4]: Leaving directory
`/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts/ili/iom'
/bin/sh /usr/local/src/gdal-1.3.2/libtool --mode=compile g++ -Wall  -O2
-I.. -I../.. -I/usr/local/src/gdal-1.3.2/port
-I/usr/local/src/gdal-1.3.2/gcore -I/usr/local/src/gdal-1.3.2/alg
-I/usr/local/src/gdal-1.3.2/ogr
-I/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts -I/usr/local/include
-I/usr/local/include/xercesc -DHAVE_GEOS=1 -I/usr/local/include
-DOGR_ENABLED -I/usr/local/src/gdal-1.3.2/port  -c -o
../o/ogrili2layer.o ogrili2layer.cpp
 g++ -Wall -O2 -I.. -I../.. -I/usr/local/src/gdal-1.3.2/port
-I/usr/local/src/gdal-1.3.2/gcore -I/usr/local/src/gdal-1.3.2/alg
-I/usr/local/src/gdal-1.3.2/ogr
-I/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts -I/usr/local/include
-I/usr/local/include/xercesc -DHAVE_GEOS=1 -I/usr/local/include
-DOGR_ENABLED -I/usr/local/src/gdal-1.3.2/port -c ogrili2layer.cpp
-fPIC -DPIC -o ../o/.libs/ogrili2layer.o
ogrili2layer.cpp: In constructor 'OGRILI2Layer::OGRILI2Layer(const
char*, OGRSpatialReference*, int, OGRwkbGeometryType,
OGRILI2DataSource*)':
ogrili2layer.cpp:76: error: no match for 'operator=' in
'((OGRILI2Layer*)this)->OGRILI2Layer::listFeatureIt = 0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/
stl_list.h:189: note: candidates are:
std::_List_const_iterator<OGRFeature*>&
std::_List_const_iterator<OGRFeature*>::operator=(const
std::_List_const_iterator<OGRFeature*>&)
ogrili2layer.cpp: In member function 'virtual OGRFeature*
OGRILI2Layer::GetNextFeature()':
ogrili2layer.cpp:135: error: no match for 'operator==' in
'((OGRILI2Layer*)this)->OGRILI2Layer::listFeatureIt == 0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/
stl_list.h:251: note: candidates are: bool
std::_List_const_iterator<_Tp>::operator==(const
std::_List_const_iterator<_Tp>&) const [with _Tp = OGRFeature*]
make[3]: *** [../o/ogrili2layer.o] Error 1
make[3]: Leaving directory
`/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts/ili'
make[2]: *** [ili-target] Error 2
make[2]: Leaving directory `/usr/local/src/gdal-1.3.2/ogr/ogrsf_frmts'
make[1]: *** [sublibs] Error 2
make[1]: Leaving directory `/usr/local/src/gdal-1.3.2/ogr'

I have installed xerces 2.7 from source code.

Any suggestion?

rainer spittel
Senior Developer




More information about the Gdal-dev mailing list