Package: sffview Version: 0.4-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 sffview_0.4-1 on em64t by sbuild/amd64 0.53 ... > g++ -g -Os -c `wx-config --cflags` -o common.o common.cpp > common.cpp: In member function 'virtual void CFile::Open(const std::string&, > const char*)': > common.cpp:125: error: 'fopen' was not declared in this scope > common.cpp:127: error: 'fileno' was not declared in this scope > common.cpp: In member function 'virtual void CFile::Close()': > common.cpp:133: error: 'fclose' was not declared in this scope > common.cpp: In member function 'sff_byte CFile::GetC()': > common.cpp:161: error: '::fgetc' has not been declared > common.cpp: In member function 'void CFile::Read(void*, int)': > common.cpp:166: error: '::fread' has not been declared > common.cpp: In member function 'void CFile::Write(void*, int)': > common.cpp:171: error: '::fwrite' has not been declared > common.cpp: In member function 'sff_dword CFile::Tell()': > common.cpp:176: error: '::ftell' has not been declared > common.cpp: In member function 'void CFile::Seek(int, CFile::seek_offset)': > common.cpp:189: error: '::fseek' has not been declared > common.cpp: In member function 'bool CFile::Eof()': > common.cpp:194: error: 'feof' was not declared in this scope > make[1]: *** [common.o] Error 1 > make[1]: Leaving directory `/build/tbm/sffview-0.4' --- common.cpp~ 2008-11-07 17:32:20.000000000 +0000 +++ common.cpp 2008-11-07 17:32:31.000000000 +0000 @@ -45,6 +45,7 @@ #include <sys/stat.h> #include <cassert> +#include <cstdio> #include <iostream> using namespace std; -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

