Package: znc
Version: 0.058-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 znc_0.058-2 on em64t by sbuild/amd64 0.53
...
> x86_64-linux-gnu-g++ -DVERSION_EXTRA=\"+deb2\" -D_FORTIFY_SOURCE=2 -fPIC -O2 
> -fomit-frame-pointer -DHAVE_IPV6 -Wall -W -Wno-unused-parameter 
> -Woverloaded-virtual -Wshadow -DHAVE_LIBSSL -D_MODULES 
> -D_MODDIR_=\"/usr/lib/znc\" -D_DATADIR_=\"/usr/share/znc\"  -c -o Utils.o 
> Utils.cpp -MMD -MF .depend/Utils.cpp.dep
> In file included from Utils.cpp:9:
> Utils.h: In function 'bool ReadFile(const CString&, CString&)':
> Utils.h:260: error: 'fopen' was not declared in this scope
> Utils.h:266: error: 'fread' was not declared in this scope
> Utils.h:270: error: 'fclose' was not declared in this scope
> Utils.h: In function 'bool WriteFile(const CString&, const CString&)':
> Utils.h:279: error: 'fopen' was not declared in this scope
> Utils.h:284: error: 'fwrite' was not declared in this scope
> Utils.h:286: error: 'fclose' was not declared in this scope
> make[1]: *** [Utils.o] Error 1

--- Utils.h~    2008-11-08 06:12:26.000000000 +0000
+++ Utils.h     2008-11-08 06:12:40.000000000 +0000
@@ -11,6 +11,7 @@
 
 #include "String.h"
 #include <assert.h>
+#include <cstdio>
 #include <map>
 #include <sys/file.h>
 #include <sys/time.h>

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