[Pkg-kde-extras] Bug#505118: FTBFS with GCC 4.4: missing #include
Martin Michlmayr
tbm at cyrius.com
Sun Nov 9 17:39:17 UTC 2008
Package: icecc
Version: 0.9.1-1
User: debian-gcc at lists.debian.org
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 icecc_0.9.1-1 on em64t by sbuild/amd64 0.53
...
> g++ -DHAVE_CONFIG_H -I. -I.. -I./../services -g -W -Wall -Wimplicit -Wpointer-arith -Wcast-align -Wwrite-strings -g -O2 -g -Wall -O2 -c -o local.o local.cpp
> local.cpp: In function 'int build_local(CompileJob&, MsgChannel*, rusage*)':
> local.cpp:281: error: 'snprintf' was not declared in this scope
> make[3]: *** [local.o] Error 1
> make[3]: Leaving directory `/build/tbm/icecc-0.9.1/client'
--- client/local.cpp~ 2008-11-09 17:33:45.000000000 +0000
+++ client/local.cpp 2008-11-09 17:34:02.000000000 +0000
@@ -26,6 +26,7 @@
#include <sys/wait.h>
#include <unistd.h>
#include <limits.h>
+#include <stdio.h>
#include <string.h>
#include <errno.h>
#ifdef HAVE_SIGNAL_H
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-kde-extras
mailing list