Package: ddd
Version: 1:3.3.11-1
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 ddd_1:3.3.11-1 on em64t by sbuild/amd64 0.53
...
> g++ -DHAVE_CONFIG_H -I. -I/build/tbm/ddd-3.3.11/./ddd -I.  
> -I/build/tbm/ddd-3.3.11/./ddd/..    -O2 -O2 -g -Wall -W -Wwrite-strings -Wall 
> -W -DNDEBUG -trigraphs  -c -o strclass.o 
> /build/tbm/ddd-3.3.11/./ddd/strclass.C
> /build/tbm/ddd-3.3.11/./ddd/strclass.C: In function 'std::istream& 
> operator>>(std::istream&, string&)':
> /build/tbm/ddd-3.3.11/./ddd/strclass.C:1547: error: 'EOF' was not declared in 
> this scope
> /build/tbm/ddd-3.3.11/./ddd/strclass.C:1560: error: 'EOF' was not declared in 
> this scope
> /build/tbm/ddd-3.3.11/./ddd/strclass.C: In function 'int 
> readline(std::istream&, string&, char, int)':
> /build/tbm/ddd-3.3.11/./ddd/strclass.C:1590: error: 'EOF' was not declared in 
> this scope
> /build/tbm/ddd-3.3.11/./ddd/strclass.C:1603: error: 'EOF' was not declared in 
> this scope
> make[3]: *** [strclass.o] Error 1
> make[3]: Leaving directory `/build/tbm/ddd-3.3.11/builddir/ddd'

--- ddd/strclass.C~     2008-11-07 17:57:13.000000000 +0000
+++ ddd/strclass.C      2008-11-07 17:57:27.000000000 +0000
@@ -39,6 +39,7 @@
 #include <ctype.h>
 #include <limits.h>
 #include <new>
+#include <cstdio>
 #include <stdlib.h>
 
 void string::error(const char* msg) const

-- 
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