Bug#505694: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Fri Nov 14 13:18:34 UTC 2008
Package: stormbaancoureur
Version: 2.1.5-2.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 stormbaancoureur_2.1.5-2.1 on em64t by sbuild/amd64 0.53
...
> g++ -c -I/usr/include -I/usr/include -I/usr/include -I../src-common -I. -DGAMEVERSION=2.1.5-generic -Wall -g -O2 controllerkey.cxx
> controllerkey.cxx: In constructor 'ControllerKey::ControllerKey(const std::string&)':
> controllerkey.cxx:28: error: 'fopen' was not declared in this scope
> controllerkey.cxx:35: error: 'fgets' was not declared in this scope
> controllerkey.cxx:40: error: 'sscanf' was not declared in this scope
> controllerkey.cxx:45: error: 'stderr' was not declared in this scope
> controllerkey.cxx:45: error: 'fprintf' was not declared in this scope
> controllerkey.cxx:50: error: 'stderr' was not declared in this scope
> controllerkey.cxx:50: error: 'fprintf' was not declared in this scope
> make[1]: *** [controllerkey.o] Error 1
> make[1]: Leaving directory `/build/tbm/stormbaancoureur-2.1.5/src-stormbaancoureur'
> make: *** [build-stamp] Error 2
--- src-stormbaancoureur/controllerkey.cxx~ 2008-11-14 13:12:40.000000000 +0000
+++ src-stormbaancoureur/controllerkey.cxx 2008-11-14 13:12:51.000000000 +0000
@@ -9,6 +9,7 @@
#include <math.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdio.h>
#include "controller.h"
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-games-devel
mailing list