[DebianGIS-dev] Bug#357189: FTBFS with G++ 4.1: extra qualification
Martin Michlmayr
tbm at cyrius.com
Thu Mar 16 03:41:47 UTC 2006
Package: gdal
Version: 1.3.1-4
Severity: important
Tags: patch
Your package fails to build with G++ 4.1. I'm filing this bug as
important for now, but when 4.1 will be the default compiler in
unstable (probably in a few weeks) I'll upgrade this to serious.
A patch is below.
> Automatic build of gdal_1.3.1-4 on bigsur by sbuild/mips 1.94
...
> /bin/sh ../../libtool --mode=compile g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts -I../../port -c -o ../o/fitdataset.o fitdataset.cpp
> g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts -I../../port -c fitdataset.cpp -fPIC -DPIC -o ../o/.libs/fitdataset.o
> fitdataset.cpp:177: error: extra qualification 'FITRasterBand::' on member 'FITRasterBand'
> fitdataset.cpp: In static member function 'static GDALDataset* FITDataset::Open(GDALOpenInfo*)':
> fitdataset.cpp:1019: warning: dereferencing type-punned pointer will break strict-aliasing rules
> make[3]: *** [../o/fitdataset.o] Error 1
> make[3]: Leaving directory `/build/tbm/gdal-1.3.1/frmts/fit'
> make[2]: *** [fit-install-obj] Error 2
--- ./frmts/fit/fitdataset.cpp~ 2006-03-16 03:14:38.000000000 +0000
+++ ./frmts/fit/fitdataset.cpp 2006-03-16 03:14:48.000000000 +0000
@@ -174,7 +174,7 @@
public:
- FITRasterBand::FITRasterBand( FITDataset *, int );
+ FITRasterBand( FITDataset *, int );
~FITRasterBand();
// should override RasterIO eventually.
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-grass-devel
mailing list