Bug#504950: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Sat Nov 8 06:54:18 UTC 2008
Package: opencity
Version: 0.0.5.1stable-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 opencity_0.0.5.1stable-1 on em64t by sbuild/amd64 0.53
...
> if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/triangulation/ -I../../src/ -I/usr/X11R6/include -DNDEBUG -Wall -Wmissing-braces -Wparentheses -ansi -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -MT ac3dobject.o -MD -MP -MF ".deps/ac3dobject.Tpo" -c -o ac3dobject.o ac3dobject.cpp; \
> then mv -f ".deps/ac3dobject.Tpo" ".deps/ac3dobject.Po"; else rm -f ".deps/ac3dobject.Tpo"; exit 1; fi
> ac3dobject.cpp: In member function 'void AC3D::AC3DObject::Parse(std::stringstream&)':
> ac3dobject.cpp:186: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:196: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:201: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:217: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:228: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:238: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:242: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:246: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:250: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:255: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:259: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp:263: error: 'sscanf' was not declared in this scope
> ac3dobject.cpp: In member function 'void AC3D::AC3DObject::ac3dobjectParseVertex(unsigned int, std::stringstream&, char*)':
> ac3dobject.cpp:360: error: 'sscanf' was not declared in this scope
> make[4]: *** [ac3dobject.o] Error 1
> make[4]: Leaving directory `/build/tbm/opencity-0.0.5.1stable/src/model'
--- src/model/ac3dobject.cpp~ 2008-11-08 06:43:45.000000000 +0000
+++ src/model/ac3dobject.cpp 2008-11-08 06:43:58.000000000 +0000
@@ -23,6 +23,7 @@
#include "ac3dmacros.h" // AC3D specific macros
#include <cstring>
+#include <cstdio>
#include <cstdlib>
--- src/model/ac3dmaterial.cpp~ 2008-11-08 06:46:34.000000000 +0000
+++ src/model/ac3dmaterial.cpp 2008-11-08 06:46:41.000000000 +0000
@@ -22,6 +22,7 @@
#include "macros.h" // for debugging macros
#include "ac3dmacros.h"
+#include <cstdio>
#include <sstream>
using std::stringstream;
--- src/model/ac3dsurface.cpp~ 2008-11-08 06:46:47.000000000 +0000
+++ src/model/ac3dsurface.cpp 2008-11-08 06:46:54.000000000 +0000
@@ -22,6 +22,7 @@
#include "macros.h" // debug macros
#include "ac3dmacros.h"
+#include <cstdio>
#include <cstring>
namespace AC3D {
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-games-devel
mailing list