Bug#504898: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Fri Nov 7 20:43:56 UTC 2008
Package: qonk
Version: 0.3.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 qonk_0.3.1-1 on em64t by sbuild/amd64 0.53
...
> g++ -DHAVE_CONFIG_H -I. -I../.. -g -O2 -g -Wall -O2 -c -o lexer.o lexer.cpp
> lexer.cpp: In member function 'lisp::Lexer::TokenType lisp::Lexer::getNextToken()':
> lexer.cpp:153: error: 'snprintf' was not declared in this scope
> lexer.cpp:177: error: 'snprintf' was not declared in this scope
> lexer.cpp:193: error: 'snprintf' was not declared in this scope
> make[4]: *** [lexer.o] Error 1
> make[4]: Leaving directory `/build/tbm/qonk-0.3.1/src/lisp'
--- src/lisp/lexer.cpp~ 2008-11-07 20:36:43.000000000 +0000
+++ src/lisp/lexer.cpp 2008-11-07 20:36:51.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"
--- src/lisp/lisp.cpp~ 2008-11-07 20:37:53.000000000 +0000
+++ src/lisp/lisp.cpp 2008-11-07 20:37:58.000000000 +0000
@@ -19,6 +19,8 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "lisp.hpp"
+#include <cstdio>
+
namespace lisp
{
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-games-devel
mailing list