Package: wmcube
Version: 0.99-pre1-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 wmcube_0.99-pre1-2 on em64t by sbuild/amd64 0.53
...
> make[2]: Leaving directory `/build/tbm/wmcube-0.99-pre1/wmapp'
> g++ -O2 -DLINUX -Wno-write-strings   -c -o WmcObject.o WmcObject.cc
> In file included from WmcObject.cc:8:
> WmcObject.h:10: warning: 'typedef' was ignored in this declaration
> WmcObject.cc: In constructor 'WmcObject::WmcObject()':
> WmcObject.cc:43: error: 'fopen' was not declared in this scope
> WmcObject.cc:44: error: 'fwrite' was not declared in this scope
> WmcObject.cc:45: error: 'fclose' was not declared in this scope
> WmcObject.cc: In member function 'void WmcObject::setMode(int)':
> WmcObject.cc:99: error: 'printf' was not declared in this scope
> WmcObject.cc:103: error: 'printf' was not declared in this scope
> WmcObject.cc:107: error: 'printf' was not declared in this scope
> WmcObject.cc:111: error: 'printf' was not declared in this scope
> WmcObject.cc: In member function 'int WmcObject::freadline(FILE*, int, 
> char*)':
> WmcObject.cc:151: error: 'feof' was not declared in this scope
> WmcObject.cc:152: error: 'fread' was not declared in this scope
> WmcObject.cc:153: error: 'feof' was not declared in this scope
> WmcObject.cc: In member function 'bool WmcObject::loadVertices(const char*)':
> WmcObject.cc:172: error: 'printf' was not declared in this scope
> WmcObject.cc:174: error: 'fopen' was not declared in this scope
> WmcObject.cc:180: error: 'feof' was not declared in this scope
> WmcObject.cc:192: error: 'sscanf' was not declared in this scope
> WmcObject.cc:194: error: 'sscanf' was not declared in this scope
> WmcObject.cc:207: error: 'fclose' was not declared in this scope
> WmcObject.cc:214: error: 'feof' was not declared in this scope
> WmcObject.cc:225: error: 'fclose' was not declared in this scope
> WmcObject.cc: In member function 'bool WmcObject::loadLines(const char*)':
> WmcObject.cc:242: error: 'fopen' was not declared in this scope
> WmcObject.cc:248: error: 'feof' was not declared in this scope
> WmcObject.cc:252: error: 'printf' was not declared in this scope
> WmcObject.cc:260: error: 'sscanf' was not declared in this scope
> WmcObject.cc:264: error: 'fclose' was not declared in this scope
> WmcObject.cc:275: error: 'feof' was not declared in this scope
> WmcObject.cc:277: error: 'fclose' was not declared in this scope
> WmcObject.cc: In member function 'bool WmcObject::loadPlanes(const char*)':
> WmcObject.cc:294: error: 'fopen' was not declared in this scope
> WmcObject.cc:300: error: 'feof' was not declared in this scope
> WmcObject.cc:304: error: 'printf' was not declared in this scope
> WmcObject.cc:312: error: 'sscanf' was not declared in this scope
> WmcObject.cc:318: error: 'fclose' was not declared in this scope
> WmcObject.cc:333: error: 'feof' was not declared in this scope
> WmcObject.cc:335: error: 'fclose' was not declared in this scope
> make[1]: *** [WmcObject.o] Error 1

--- WmcObject.cc~       2008-11-07 16:14:37.000000000 +0000
+++ WmcObject.cc        2008-11-07 16:15:06.000000000 +0000
@@ -1,6 +1,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
+#include <cstdio>
 #include <iostream>
 #include <stdexcept>
 #include <vector>

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