Bug in GDALDriver? Not setting poDriver in GDALDataset

Simon Perkins s.perkins at l...
Fri Dec 14 20:47:20 EST 2001


Just done a CVS checkout and getting this error during make:



make[1]: Entering directory `/nh/toaster/u/simes/src/gdal/apps'
rm -f gdal-config-inst
echo '#!/bin/sh' > gdal-config-inst
echo 'CONFIG_LIBS="-L/usr/local/lib -lgdal.1.1"' >> gdal-config-inst
echo 'CONFIG_PREFIX="/usr/local"' >> gdal-config-inst
echo 'CONFIG_CFLAGS="-I/usr/local/include"' >> gdal-config-inst
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config-inst
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config-inst
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb sdts
raw dted mem jdem envisat elas fit vrt usgsdem gif jpeg png fits "' >>
gdal-config-inst
cat gdal-config.in >> gdal-config-inst
chmod a+x gdal-config-inst
rm -f gdal-config
echo '#!/bin/sh' > gdal-config
echo 'CONFIG_LIBS="-L/n/toaster/u/simes/src/gdal -lgdal.1.1"' >> gdal-config
echo 'CONFIG_PREFIX="/n/toaster/u/simes/src/gdal"' >> gdal-config
echo 'CONFIG_CFLAGS="-I/n/toaster/u/simes/src/gdal/port
-I/n/toaster/u/simes/src/gdal/core -I/n/toaster/u/simes/src/gdal/ogr
-I/n/toaster/u/simes/src/gdal/ogr/ogrsf_frmts"' >> gdal-config
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb sdts
raw dted mem jdem envisat elas fit vrt usgsdem gif jpeg png fits "' >>
gdal-config
cat gdal-config.in >> gdal-config
chmod a+x gdal-config
c++ gdalinfo.o /n/toaster/u/simes/src/gdal/ogr/ogrsf_frmts/ogrsf_frmts.a 
/n/toaster/u/simes/src/gdal/gdal.a /n/toaster/u/simes/src/gdal/ogr/ogr.a
/n/toaster/u/simes/src/gdal/gdal.a /n/toaster/u/simes/src/gdal/port/cpl.a -lgif
-lpng -lcfitsio -lz -lm -ldl -L/usr/local/lib -lm \
-o gdalinfo
/n/toaster/u/simes/src/gdal/gdal.a(mffdataset.o): In function
`MFFDataset::Open(GDALOpenInfo *)':
mffdataset.o(.text+0x1026): undefined reference to
`RawRasterBand::RawRasterBand(GDALDataset *, int, _IO_FILE *, unsigned int, int,
int, GDALDataType, int)'
/n/toaster/u/simes/src/gdal/gdal.a(pnmdataset.o): In function
`PNMDataset::Open(GDALOpenInfo *)':
pnmdataset.o(.text+0x3b2): undefined reference to
`RawRasterBand::RawRasterBand(GDALDataset *, int, _IO_FILE *, unsigned int, int,
int, GDALDataType, int)'
pnmdataset.o(.text+0x40c): undefined reference to
`RawRasterBand::RawRasterBand(GDALDataset *, int, _IO_FILE *, unsigned int, int,
int, GDALDataType, int)'
pnmdataset.o(.text+0x459): undefined reference to
`RawRasterBand::RawRasterBand(GDALDataset *, int, _IO_FILE *, unsigned int, int,
int, GDALDataType, int)'
pnmdataset.o(.text+0x4a8): undefined reference to
`RawRasterBand::RawRasterBand(GDALDataset *, int, _IO_FILE *, unsigned int, int,
int, GDALDataType, int)'
/n/toaster/u/simes/src/gdal/gdal.a(sar_ceosdataset.o)(.text+0x1b58): more
undefined references to `RawRasterBand::RawRasterBand(GDALDataset *, int,
_IO_FILE *, unsigned int, int, int, GDALDataType, int)' follow
collect2: ld returned 1 exit status
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory `/nh/toaster/u/simes/src/gdal/apps'
make: *** [apps-target] Error 2


Looks like MFFDataset needs to be updated for the new constructors in
RawRasterBand?

Sy




More information about the Gdal-dev mailing list