[Gdal-dev] make error

Frank Warmerdam warmerdam at pobox.com
Wed Jul 14 11:53:28 EDT 2004


Daniel Isenegger wrote:
> Hi
> 
> the configuring the way Frank suggested worked well:
> 
> ./configure --with-pg=/usr/local/pgsql/bin/pg_config --with-xerces 
> --with-xerces-inc=/usr/local/include/xercesc 
> --with-xerces-lib="-L/usr/local/lib/libxerces-c.so.22.0 -lxerces-c 
> -lpthread" --with-odbc=/usr/local/lib 
> --with-static-proj4=/usr/lib/libproj.so | tee configure_disen.log

Daniel,

I don't imagine it is related, but -L/usr/local/lib/libxerces-c.so.22.0 doesn't
make sense. The -L flag should have a directory as it's argument - not the
name of a shared library.  It likely doesn't matter since I imagine
/usr/local/lib is already in your -L path.

> the following make statement failed then (the same thing with gmake)
> make | tee makeOutput_disen.log
> output:
> /bin/sh ../libtool --mode=link  g++  ogrinfo.o ../libgdal.la -o ogrinfo
> g++ ogrinfo.o -o .libs/ogrinfo  ../.libs/libgdal.so 
> -L/usr/lib/libproj.so/src /usr/lib/libproj.so -L/usr/local/lib 
> -L/usr/local/lib/lib -lodbc -L/usr/local/lib/libxerces-c.so.22.0 
> -lxerces-c -lpthread /usr/lib/libjasper.so /usr/lib/libjpeg.so -ltiff 
> -lpng -lz -ldl -L/usr/local/pgsql/lib -lpq /usr/lib/libstdc++.so
> ../.libs/libgdal.so: undefined reference to `GMLReader::PopState()'
> ../.libs/libgdal.so: undefined reference to 
> `GMLReader::IsFeatureElement(char const*)'
> ../.libs/libgdal.so: undefined reference to 
> `GMLReader::SetFeatureProperty(char const*, char const*)'
> ../.libs/libgdal.so: undefined reference to 
> `GMLReader::IsAttributeElement(char const*)'
> ../.libs/libgdal.so: undefined reference to `GMLReader::PushFeature(char 
> const*, xercesc_2_2::Attributes const&)'
> collect2: ld returned 1 exit status

My suspicion is that some object code is out of date with the current
build directives.  Try doing a make clean in the gdal/ogr/ogrsf_frmts/gml
directory or even a full clean and rebuild.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list