Bug#505026: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Sat Nov 8 17:13:40 UTC 2008
Package: blockattack
Version: 1.3.1-2
User: debian-gcc at lists.debian.org
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p
Type: text/x-pascal
Size: 322 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20081108/159debc7/attachment.pas
More information about the Pkg-games-devel
mailing list