Package: ntl
Version: 5.4.2-2
User: [EMAIL PROTECTED]
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 ntl_5.4.2-2 on em64t by sbuild/amd64 0.53
...
> g++ -I../include -I.  -g -O2 -g -Wall -O2  -c ZZ_pX.c
> g++ -I../include -I.  -g -O2 -g -Wall -O2  -c ZZ_pX1.c
> ZZ_pX1.c: In function 'std::istream& NTL::operator>>(std::istream&, 
> NTL::vec_ZZ_pX&)':
> ZZ_pX1.c:902: error: 'EOF' was not declared in this scope
> ZZ_pX1.c:902: error: 'EOF' was not declared in this scope
> make[3]: *** [ZZ_pX1.o] Error 1
> make[3]: Leaving directory `/build/tbm/ntl-5.4.2/src/small/src'

--- vec_GF2.c~  2008-11-09 19:40:06.000000000 +0000
+++ vec_GF2.c   2008-11-09 19:40:11.000000000 +0000
@@ -3,6 +3,8 @@
 
 #include <NTL/new.h>
 
+#include <cstdio>
+
 NTL_START_IMPL
 
 void vec_GF2::SetLength(long n)
--- tools.c~    2008-11-09 19:40:14.000000000 +0000
+++ tools.c     2008-11-09 19:40:19.000000000 +0000
@@ -1,6 +1,7 @@
 
 #include <NTL/tools.h>
 
+#include <cstdio>
 #include <ctype.h>
 
 #include <NTL/new.h>
--- WordVector.c~       2008-11-09 19:40:28.000000000 +0000
+++ WordVector.c        2008-11-09 19:40:34.000000000 +0000
@@ -3,6 +3,8 @@
 
 #include <NTL/new.h>
 
+#include <cstdio>
+
 NTL_START_IMPL
 
 
--- GF2X.c~     2008-11-09 19:40:39.000000000 +0000
+++ GF2X.c      2008-11-09 19:40:45.000000000 +0000
@@ -4,6 +4,8 @@
 
 #include <NTL/new.h>
 
+#include <cstdio>
+
 NTL_START_IMPL
 
 long GF2X::HexOutput = 0;

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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to