Bug#368081: FTBFS with G++ 4.1: extra qualification

Martin Michlmayr tbm at cyrius.com
Fri May 19 18:33:33 UTC 2006


Package: enemylines3
Version: 1.2-1
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 I'll upgrade this to serious.  The 0 day NMU policy applies
already so please fix this soon.  Thanks.

A patch is attached.


> Automatic build of enemylines3_1.2-1 on bilbao by sbuild/sparc 85
...
> g++ -O2 -Wall `sdl-config --cflags` -I./ -Ielements/   -c -o font.o font.cc
> font_ttf.h:10: error: extra qualification 'Font_ttf::' on member 'gen_dl'
> make[1]: *** [font.o] Error 1
> make[1]: Leaving directory `/build/tbm/enemylines3-1.2'


--- font_ttf.h~	2006-05-19 18:30:24.000000000 +0000
+++ font_ttf.h	2006-05-19 18:30:29.000000000 +0000
@@ -7,7 +7,7 @@
 
 class Font_ttf{
 public:
-	static unsigned int Font_ttf::gen_dl(std::string fontname,unsigned int size,C3 col=C3(255,255,255));
+	static unsigned int gen_dl(std::string fontname,unsigned int size,C3 col=C3(255,255,255));
 	static int dx();
 	static int dy();
 };
--- map.h~	2006-05-19 18:30:51.000000000 +0000
+++ map.h	2006-05-19 18:30:55.000000000 +0000
@@ -24,7 +24,7 @@
 	unsigned int dz();
 
 
-	bool Map::inside(C3 c);
+	bool inside(C3 c);
 	
 	e_tiletype get(C3);
 	void set(C3,e_tiletype);

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




More information about the Pkg-games-devel mailing list