[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#505428: FTBFS with GCC 4.4: missing #include



Package: kdesdk
Version: 4:3.5.9-2
User: debian-gcc@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 kdesdk_4:3.5.9-2 on em64t by sbuild/amd64 0.53
...
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I/build/tbm/kdesdk-3.5.9/./kbabel/common/libgettext -I../../.. -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -O2 -g -Wall -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c pofiles.cc  -fPIC -DPIC -o .libs/pofiles.o
> pofiles.cc: In member function 'int GettextBaseFlexLexer::yyinput()':
> pofiles.cc:1263: error: 'EOF' was not declared in this scope
> make[5]: *** [pofiles.lo] Error 1

--- poxml/antlr/antlr/CharScanner.hpp~	2008-11-12 08:35:50.000000000 +0000
+++ poxml/antlr/antlr/CharScanner.hpp	2008-11-12 08:35:57.000000000 +0000
@@ -41,6 +41,7 @@
 #include "antlr/InputBuffer.hpp"
 #include "antlr/BitSet.hpp"
 #include "antlr/LexerSharedInputState.hpp"
+#include <cstdio>
 #include <map>
 
 ANTLR_BEGIN_NAMESPACE(antlr)
--- kbabel/common/libgettext/pofiles.cc~	2008-11-12 08:13:03.000000000 +0000
+++ kbabel/common/libgettext/pofiles.cc	2008-11-12 08:13:26.000000000 +0000
@@ -95,6 +95,7 @@
 /* begin standard C++ headers. */
 #include <iostream> 
 #include <errno.h>
+#include <cstdio>
 #include <cstdlib>
 #include <cstring>
 /* end standard C++ headers. */

-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: