Bug#528942: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Sat May 16 14:56:21 UTC 2009
Package: clanlib
Version: 0.8.1-2
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch
Your package fails to build with GCC 4.4, which has 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-4.4/g++-4.4 from unstable.
> Automatic build of clanlib_0.8.1-2 on em64t by sbuild/amd64 0.53
...
> g++ -DPACKAGE_NAME=\"ClanLib\" -DPACKAGE_TARNAME=\"clanlib\" -DPACKAGE_VERSION=\"0.8.1\" "-DPACKAGE_STRING=\"ClanLib 0.8.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"clanlib\" -DVERSION=\"0.8.1\" -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_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DUSE_DYN=1 -DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_LIBSDL_GFX=1 -DHAVE_GLX_GETPROCADDRESSARB=1 -DUSE_GETADDR=1 -I. -I/usr/include/X11 -fPIC -DDEBUG=1 -I/usr/include/lua40 -I../../Sources -MT canvas_opengl.lo -MD -MP -MF .deps/canvas_opengl.Tpo -c canvas_opengl.cpp -fPIC -DPIC -o .libs/canvas_opengl.o
> canvas_opengl.cpp: In member function 'virtual CL_GraphicContext* CL_Canvas_OpenGL::get_gc()':
> canvas_opengl.cpp:236: error: 'stderr' was not declared in this scope
> canvas_opengl.cpp:236: error: 'fprintf' was not declared in this scope
> canvas_opengl.cpp:244: error: 'stderr' was not declared in this scope
> canvas_opengl.cpp:244: error: 'fprintf' was not declared in this scope
> canvas_opengl.cpp:251: error: 'stderr' was not declared in this scope
> canvas_opengl.cpp:251: error: 'fprintf' was not declared in this scope
> make[3]: *** [canvas_opengl.lo] Error 1
> make[3]: Leaving directory `/build/tbm/clanlib-0.8.1/Sources/GL'
--- Sources/GL/GLX/input_device_linuxevent.cpp~ 2009-05-16 14:41:42.000000000 +0000
+++ Sources/GL/GLX/input_device_linuxevent.cpp 2009-05-16 14:41:53.000000000 +0000
@@ -34,6 +34,7 @@
#include <unistd.h>
#include <iostream>
#include <errno.h>
+#include <cstdio>
#include <cstring>
#include "API/Core/System/error.h"
--- Sources/GL/GLX/input_device_xinput.cpp~ 2009-05-16 14:42:22.000000000 +0000
+++ Sources/GL/GLX/input_device_xinput.cpp 2009-05-16 14:42:29.000000000 +0000
@@ -28,6 +28,7 @@
*/
#include <iostream>
+#include <cstdio>
#include <cstring>
#include "API/Core/System/log.h"
#include "API/Display/input_device.h"
--- Sources/GL/canvas_opengl.cpp~ 2009-05-16 14:33:34.000000000 +0000
+++ Sources/GL/canvas_opengl.cpp 2009-05-16 14:33:42.000000000 +0000
@@ -47,6 +47,7 @@
#endif
#include "graphic_context_opengl.h"
#include "surface_target_opengl.h"
+#include <cstdio>
#include <cstring>
/////////////////////////////////////////////////////////////////////////////
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-games-devel
mailing list