Package: apt-watch
Version: 0.3.2-11
User: [email protected]
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has 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 or
gcc-4.4 from experimental.

> Automatic build of apt-watch_0.3.2-11 on em64t by sbuild/amd64 0.53
...
> make[3]: Entering directory `/build/tbm/apt-watch-0.3.2/common'
> x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Werror -MT 
> apt-watch-common.o -MD -MP -MF .deps/apt-watch-common.Tpo -c -o 
> apt-watch-common.o apt-watch-common.cc
> apt-watch-common.cc: In function 'void write_errno(int, unsigned char, const 
> std::string&, int)':
> apt-watch-common.cc:59: error: 'snprintf' was not declared in this scope
> make[3]: *** [apt-watch-common.o] Error 1
> make[3]: Leaving directory `/build/tbm/apt-watch-0.3.2/common'

--- common/apt-watch-common.cc~ 2009-04-29 17:30:26.000000000 +0000
+++ common/apt-watch-common.cc  2009-04-29 17:30:31.000000000 +0000
@@ -4,6 +4,7 @@
 
 #include "apt-watch-common.h"
 
+#include <cstdio>
 #include <cstdlib>
 #include <cstring>
 #include <errno.h>
--- common/fileutl.cc~  2009-04-29 17:30:38.000000000 +0000
+++ common/fileutl.cc   2009-04-29 17:30:44.000000000 +0000
@@ -4,6 +4,7 @@
 
 #include "fileutl.h"
 
+#include <cstdio>
 #include <cstring>
 #include <dirent.h>
 #include <errno.h>
--- common/test_fileutl.cc~     2009-04-29 17:30:54.000000000 +0000
+++ common/test_fileutl.cc      2009-04-29 17:30:59.000000000 +0000
@@ -2,6 +2,7 @@
 
 #include "fileutl.h"
 
+#include <cstdio>
 #include <string>
 
 using namespace std;
--- backend/apt-watch-auth-helper.cc~   2009-04-29 17:31:41.000000000 +0000
+++ backend/apt-watch-auth-helper.cc    2009-04-29 17:31:48.000000000 +0000
@@ -16,6 +16,7 @@
 
 #include <security/pam_appl.h>
 
+#include <cstdio>
 #include <cstring>
 #include <stdlib.h>
 #include <signal.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