[gdal-dev] compile error on master

Even Rouault even.rouault at spatialys.com
Fri Dec 12 03:40:27 PST 2014


Le vendredi 12 décembre 2014 10:10:46, Stefan Ziegler a écrit :
> Hi
> 
> I have troubles compiling gdal on Ubuntu 10.04 and 12.04 (worked few weeks
> ago):

Stefan,

Did you "make clean" before ? GDAL makefiles have not the dependencies to the 
headers, so changes in them do not automatically trigger necessary 
recompilations.

Even

> 
> make[1]: Entering directory `/usr/local/src/gdal/gdal-dev/gdal'
> make[1]: `libgdal.la' is up to date.
> make[1]: Leaving directory `/usr/local/src/gdal/gdal-dev/gdal'
> (cd apps; make)
> make[1]: Entering directory `/usr/local/src/gdal/gdal-dev/gdal/apps'
> /bin/bash /usr/local/src/gdal/gdal-dev/gdal/libtool --mode=link    g++
> gdalinfo.lo commonutils.lo  /usr/local/src/gdal/gdal-dev/gdal/libgdal.la -o
> gdalinfo
> libtool: link: g++ .libs/gdalinfo.o .libs/commonutils.o -o .libs/gdalinfo
> /usr/local/src/gdal/gdal-dev/gdal/.libs/libgdal.so -L/usr/lib -lgeos_c
> /usr/lib/libodbc.so /usr/lib/libodbcinst.so /usr/lib/libexpat.so
> /usr/lib/libxerces-c.so -lnsl -licui18n -licuuc -licudata
> /usr/lib/libjasper.so -lnetcdf /usr/lib/libhdf5.so /usr/lib/libmfhdfalt.so
> /usr/lib/libdfalt.so -lm /usr/lib/libgif.so /usr/lib/libjpeg.so -lpng -lpq
> -lrt -lspatialite /usr/lib/libsqlite3.so -lpthread -ldl -lpcre
> /usr/lib/libcurl-gnutls.so /usr/lib/libxml2.so -lz  -Wl,-rpath
> -Wl,/usr/local/gdal/gdal-dev/lib
> /usr/local/src/gdal/gdal-dev/gdal/.libs/libgdal.so: undefined reference to
> `GDALProxyRasterBand::IRasterIO(GDALRWFlag, int, int, int, int, void*, int,
> int, GDALDataType, int, int)'
> /usr/local/src/gdal/gdal-dev/gdal/.libs/libgdal.so: undefined reference to
> `GDALRasterBand::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int,
> GDALDataType, int, int)'
> /usr/local/src/gdal/gdal-dev/gdal/.libs/libgdal.so: undefined reference to
> `VRTDataset::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int,
> GDALDataType, int, int*, int, int, int)'
> /usr/local/src/gdal/gdal-dev/gdal/.libs/libgdal.so: undefined reference to
> `GDALProxyDataset::IRasterIO(GDALRWFlag, int, int, int, int, void*, int,
> int, GDALDataType, int, int*, int, int, int)'
> /usr/local/src/gdal/gdal-dev/gdal/.libs/libgdal.so: undefined reference to
> `RawDataset::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int,
> GDALDataType, int, int*, int, int, int)'
> /usr/local/src/gdal/gdal-dev/gdal/.libs/libgdal.so: undefined reference to
> `RawRasterBand::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int,
> GDALDataType, int, int)'
> /usr/local/src/gdal/gdal-dev/gdal/.libs/libgdal.so: undefined reference to
> `GDALDataset::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int,
> GDALDataType, int, int*, int, int, int)'
> collect2: ld returned 1 exit status
> make[1]: *** [gdalinfo] Error 1
> make[1]: Leaving directory `/usr/local/src/gdal/gdal-dev/gdal/apps'
> make: *** [apps-target] Error 2
> stefan at Ubuntu-1004-lucid-64-minimal:/usr/local/src/gdal/gdal-dev/gdal$
> 
> Any ideas?
> 
> regards
> Stefan

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list