Package: blockattack
Version: 1.3.1-2
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of blockattack_1.3.1-2 on em64t by sbuild/amd64 0.53
...
> g++ -o joypad.o -c -D_GNU_SOURCE=1 -D_REENTRANT 
> -DSHAREDIR=\"/usr/share/games/blockattack\" -I/usr/include/SDL joypad.cpp
> g++ -o listFiles.o -c -D_GNU_SOURCE=1 -D_REENTRANT 
> -DSHAREDIR=\"/usr/share/games/blockattack\" -I/usr/include/SDL listFiles.cpp
> listFiles.cpp: In member function 'void ListFiles::setDictory(std::string)':
> listFiles.cpp:78: error: 'printf' was not declared in this scope
> listFiles.cpp: In member function 'void ListFiles::setDictory2(std::string)':
> listFiles.cpp:110: error: 'printf' was not declared in this scope
> scons: *** [listFiles.o] Error 1
> scons: building terminated because of errors.
> make: *** [build-stamp] Error 2

-- 
Martin Michlmayr
http://www.cyrius.com/
--- listFiles.h~	2008-11-08 17:07:26.000000000 +0000
+++ listFiles.h	2008-11-08 17:07:37.000000000 +0000
@@ -25,6 +25,7 @@
 

 //listFiles.h - List files in a given dictory, 10 files at a time, at most 250 files

 #include <string.h>

+#include <cstdio>

 #include <iostream>

 #if defined(_WIN32)

 #include <windows.h>

Reply via email to