Bug#505671: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Fri Nov 14 10:28:28 UTC 2008


Package: supertuxkart
Version: 0.5-1.1
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 supertuxkart_0.5-1.1 on em64t by sbuild/amd64 0.53
...
> mv -f .deps/lisp.Tpo .deps/lisp.Po
> x86_64-linux-gnu-g++ -DPACKAGE_NAME=\"supertuxkart\" -DPACKAGE_TARNAME=\"supertuxkart\" -DPACKAGE_VERSION=\"0.5\" -DPACKAGE_STRING=\"supertuxkart\ 0.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"supertuxkart\" -DVERSION=\"0.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OPENAL=1 -DHAVE_OGGVORBIS=1 -DBT_NO_PROFILE= -I.  -DSUPERTUXKART_DATADIR="\"/usr/share/games/supertuxkart/\""   -Wall -g -O2 -Wall -DHAS_GETTEXT -DNDEBUG -O2 -Ibullet/src -MT lexer.o -MD -MP -MF .deps/lexer.Tpo -c -o lexer.o `test -f 'lisp/lexer.cpp' || echo './'`lisp/lexer.cpp
> lisp/lexer.cpp: In member function 'lisp::Lexer::TokenType lisp::Lexer::getNextToken()':
> lisp/lexer.cpp:155: error: 'snprintf' was not declared in this scope
> lisp/lexer.cpp:179: error: 'snprintf' was not declared in this scope
> lisp/lexer.cpp:195: error: 'snprintf' was not declared in this scope
> make[3]: *** [lexer.o] Error 1
> make[3]: Leaving directory `/build/tbm/supertuxkart-0.5/src'

--- src/lisp/lexer.cpp~	2008-11-14 10:21:39.000000000 +0000
+++ src/lisp/lexer.cpp	2008-11-14 10:21:46.000000000 +0000
@@ -19,6 +19,7 @@
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include <sstream>
 #include <stdexcept>
+#include <cstdio>
 #include <cstring>
 
 #include "lexer.hpp"

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





More information about the Pkg-games-devel mailing list