Bug#505703: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Fri Nov 14 14:16:50 UTC 2008
Package: love
Version: 0.4.0-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 love_0.4.0-2 on em64t by sbuild/amd64 0.53
...
> g++ -fPIC -g -O2 -I/usr/include/lua5.1 -I/usr/include/SDL -Isrc/liblove/include -I/usr/include/freetype2 -c src/opengl/ImageFont.cpp -o obj/opengl/ImageFont.o
> src/opengl/ImageFont.cpp: In member function 'virtual bool love_opengl::ImageFont::loadVolatile()':
> src/opengl/ImageFont.cpp:103: error: 'printf' was not declared in this scope
> src/opengl/ImageFont.cpp:120: error: 'printf' was not declared in this scope
> make[1]: *** [obj/opengl/ImageFont.o] Error 1
> make[1]: Leaving directory `/build/tbm/love-0.4.0'
--- src/opengl/ImageFont.cpp~ 2008-11-14 14:00:39.000000000 +0000
+++ src/opengl/ImageFont.cpp 2008-11-14 14:00:44.000000000 +0000
@@ -1,6 +1,7 @@
#include "ImageFont.h"
#include <SDL_opengl.h>
+#include <cstdio>
using std::string;
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-games-devel
mailing list