[Pkg-scicomp-devel] Bug#504845: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Fri Nov 7 16:51:58 UTC 2008


Package: freefem3d
Version: 1.0pre10-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 freefem3d_1.0pre10-2 on em64t by sbuild/amd64 0.53
...
> make[4]: Entering directory `/build/tbm/freefem3d-1.0pre10/language'
> g++ -DHAVE_CONFIG_H -I. -I..   -I.. -I../solver -I../algebra -I../geometry -I../utils -I../language -I../graphics  -Wall -DNDEBUG -O2 -funroll-all-loops -fargument-noalias-global -fno-gcse -c -o FFLexer.o FFLexer.cpp
> FFLexer.cpp: In member function 'virtual int FFLexer::yylex()':
> FFLexer.cpp:667: error: 'EOF' was not declared in this scope
> make[4]: *** [FFLexer.o] Error 1
> make[4]: Leaving directory `/build/tbm/freefem3d-1.0pre10/language'

--- language/FFLexer.cpp~	2008-11-07 16:19:32.000000000 +0000
+++ language/FFLexer.cpp	2008-11-07 16:19:45.000000000 +0000
@@ -75,6 +75,7 @@
 #include <parse.ff.h>
 
 #include <cstdlib>
+#include <cstdio>
 #include <cstring>
 #include <cctype>
 
--- language/POVLexer.cpp~	2008-11-07 16:27:45.000000000 +0000
+++ language/POVLexer.cpp	2008-11-07 16:27:58.000000000 +0000
@@ -26,6 +26,7 @@
 #include <Stringify.hpp>
 #include <ErrorHandler.hpp>
 
+#include <cstdio>
 #include <cctype>
 #include <sstream>
 

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





More information about the Pkg-scicomp-devel mailing list