Package: glaurung
Version: 2.0.1-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 glaurung_2.0.1-2 on em64t by sbuild/amd64 0.53
...
> g++  -O3 -DNDEBUG -g -funroll-loops -fomit-frame-pointer -fstrict-aliasing 
> -fno-exceptions -Wall   -c -o main.o main.cpp
> main.cpp: In function 'int main(int, char**)':
> main.cpp:50: error: 'stdin' was not declared in this scope
> main.cpp:50: error: 'setbuf' was not declared in this scope
> main.cpp:51: error: 'stdout' was not declared in this scope
> make[1]: *** [main.o] Error 1
> make[1]: Leaving directory `/build/tbm/glaurung-2.0.1/src'

--- src/main.cpp~       2008-11-08 06:50:26.000000000 +0000
+++ src/main.cpp        2008-11-08 06:50:36.000000000 +0000
@@ -21,6 +21,7 @@
 //// Includes
 ////
 
+#include <cstdio>
 #include <cstdlib>
 #include <iostream>
 

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