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

Martin Michlmayr tbm at cyrius.com
Tue Nov 11 21:30:22 UTC 2008


Package: antlr
Version: 2.7.7-9
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 antlr_2.7.7-9 on em64t by sbuild/amd64 0.53
...
> *** compiling /build/tbm/antlr-2.7.7/lib/cpp/src/../../../lib/cpp/src/CharScanner.cpp
> In file included from /build/tbm/antlr-2.7.7/lib/cpp/src/../../../lib/cpp/src/CharScanner.cpp:10:
> /build/tbm/antlr-2.7.7/scripts/../lib/cpp/antlr/CharScanner.hpp:475: error: 'EOF' was not declared in this scope

--- lib/cpp/antlr/CharScanner.hpp~	2008-11-11 21:24:02.000000000 +0000
+++ lib/cpp/antlr/CharScanner.hpp	2008-11-11 21:24:33.000000000 +0000
@@ -10,6 +10,7 @@
 
 #include <antlr/config.hpp>
 
+#include <cstdio>
 #include <map>
 
 #ifdef HAS_NOT_CCTYPE_H

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





More information about the pkg-java-maintainers mailing list