[Gdal-dev] make error

Daniel Isenegger disen at geo.unizh.ch
Wed Jul 14 06:19:41 EDT 2004


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

GDAL is now configured for i686-pc-linux-gnu
  Installation directory:    /usr/local
   C compiler:                gcc -O2
   C++ compiler:              g++ -O2
   LIBTOOL support:           yes
LIBZ support:              external
   GRASS support:             no
   CFITSIO support:           no
   NETCDF support:            no
   LIBPNG support:            external
   LIBTIFF support:           external
   LIBGEOTIFF support:        internal
   LIBJPEG support:           external
   LIBGIF support:            internal
   OGDI support:              no
   HDF4 support:              no
   JASPER support:            yes (GeoJP2=no)
   ECW support:               no
   MrSID support:             no
   POSTGRESQL support:        yes
   XERCES support:            yes
   ODBC support:              yes
   OCI support:               no
   DODS support:              no
Statically link PROJ.4:    yes
  enable OGR building:       yes


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
make[1]: *** [ogrinfo] Error 1
make[1]: Leaving directory `/downloads/gdal-1.2.1/ogr'
make: *** [ogr-apps] Error 2

any ideas why?

thanks dani




More information about the Gdal-dev mailing list