[DebianGIS-dev] Bug#358243: FTBFS with G++ 4.1: extra qualification

Martin Michlmayr tbm at cyrius.com
Tue Mar 21 22:11:03 UTC 2006


Package: libterralib
Version: 3.0.3b2-3
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 attached.


> Automatic build of libterralib_3.0.3b2-3 on bigsur by sbuild/mips 1.106
...
> g++ -c -pipe -Wall -W -g -D_REENTRANT -fPIC  -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I../../src/terralib/kernel -I../../src/terralib/functions -I../../src/tiff -I../../src/zlib -I/usr/include/qt3 -o .obj/TeComputeAttributeStrategies.o ../../src/terralib/kernel/TeComputeAttributeStrategies.cpp
> ../../src/terralib/kernel/TeRaster.h:230: warning: 'class TeRaster::iterator' has virtual functions but non-virtual destructor
> ../../src/terralib/kernel/TeSlice.h:51: error: extra qualification 'TeSlice::' on member 'TeSlice'
> ../../src/terralib/kernel/TeSlice.h:54: error: extra qualification 'TeSlice::' on member 'TeSlice'
> ../../src/terralib/kernel/TeLegendEntry.h:57: error: extra qualification 'TeLegendEntry::' on member 'TeLegendEntry'
> ../../src/terralib/kernel/TeLegendEntry.h:65: error: extra qualification 'TeLegendEntry::' on member 'TeLegendEntry'
> make[2]: *** [.obj/TeComputeAttributeStrategies.o] Error 1
> make[2]: Leaving directory `/build/tbm/libterralib-3.0.3b2/terralibx/terralib'


--- ./src/terralib/kernel/TeSlice.h~	2006-03-21 22:00:07.000000000 +0000
+++ ./src/terralib/kernel/TeSlice.h	2006-03-21 22:00:16.000000000 +0000
@@ -48,10 +48,10 @@
 	string		to_;			//! interval upper value
 	
 	//! Constructor
-	TeSlice::TeSlice () : count_(0),from_(""),to_("") {}
+	TeSlice () : count_(0),from_(""),to_("") {}
 
 	//! Constructor
-	TeSlice::TeSlice(const string& from, const string& to, int count=0) :
+	TeSlice(const string& from, const string& to, int count=0) :
      count_(count),
 		from_(from),
 		to_(to) {}
--- ./src/terralib/kernel/TeLegendEntry.h~	2006-03-21 22:00:28.000000000 +0000
+++ ./src/terralib/kernel/TeLegendEntry.h	2006-03-21 22:00:38.000000000 +0000
@@ -54,7 +54,7 @@
 public:
 
 	//! Constructor
-	TeLegendEntry::TeLegendEntry () : 
+	TeLegendEntry () : 
 		label_(""),
 		id_(-1),
 		theme_(0),
@@ -62,7 +62,7 @@
 		{}
 
 	//! Constructor
-	TeLegendEntry::TeLegendEntry (const TeSlice& slice) :
+	TeLegendEntry (const TeSlice& slice) :
 		slice_(slice),
 		id_(-1),
 		theme_(0),

-- 
Martin Michlmayr
http://www.cyrius.com/




More information about the Pkg-grass-devel mailing list