Bug#510848: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Mon Jan 5 11:25:09 UTC 2009
Package: performous
Version: 0.3.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 performous_0.3.0-2 on em64t by sbuild/amd64 0.53
...
> [ 33%] Building CXX object game/CMakeFiles/performous.dir/engine.o
> In file included from /build/tbm/performous-0.3.0/game/audio.hh:6,
> from /build/tbm/performous-0.3.0/game/engine.hh:1,
> from /build/tbm/performous-0.3.0/game/engine.cc:1:
> /build/tbm/performous-0.3.0/game/ffmpeg.hh:21: error: 'uint8_t' was not declared in this scope
> /build/tbm/performous-0.3.0/game/ffmpeg.hh:21: error: template argument 1 is invalid
> /build/tbm/performous-0.3.0/game/ffmpeg.hh:21: error: template argument 2 is invalid
> /build/tbm/performous-0.3.0/game/ffmpeg.hh: In member function 'void VideoFrame::swap(VideoFrame&)':
> /build/tbm/performous-0.3.0/game/ffmpeg.hh:26: error: request for member 'swap' in '((VideoFrame*)this)->VideoFrame::data', which is of non-class type 'int'
> make[3]: *** [game/CMakeFiles/performous.dir/engine.o] Error 1
and:
> [ 44%] Building CXX object game/CMakeFiles/performous.dir/color.o
> /home/tbm/src/performous-0.3.0/game/color.cc: In constructor 'Color::Color(const std::string&)':
> /home/tbm/src/performous-0.3.0/game/color.cc:32: error: 'sscanf' was not declared in this scope
--- game/ffmpeg.hh~ 2009-01-05 11:07:50.000000000 +0000
+++ game/ffmpeg.hh 2009-01-05 11:08:07.000000000 +0000
@@ -10,6 +10,7 @@
#include <iostream>
#include <vector>
#include <limits>
+#include <stdint.h>
struct AudioFrame {
double timestamp;
--- game/color.cc~ 2009-01-05 11:14:42.000000000 +0000
+++ game/color.cc 2009-01-05 11:14:47.000000000 +0000
@@ -1,4 +1,5 @@
#include "color.hh"
+#include <cstdio>
#include <iostream>
namespace {
--
Martin Michlmayr
http://www.cyrius.com/
More information about the Pkg-games-devel
mailing list