[Pkg-telepathy-maintainers] Bug#505699: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Fri Nov 14 13:38:10 UTC 2008


Package: libjingle0.3
Version: 0.3.11-5
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 libjingle0.3_0.3.11-5 on em64t by sbuild/amd64 0.53
...
> /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../..    -DPOSIX  -g -O2 -g -Wall -O2   -c -o logging.lo logging.cc
> logging.cc: In function 'std::string ErrorName(int, const ConstantLabel*)':
> logging.cc:65: error: 'snprintf' was not declared in this scope
> make[4]: *** [logging.lo] Error 1
> make[4]: Leaving directory `/build/tbm/libjingle0.3-0.3.11/talk/base'

--- talk/xmpp/xmpplogintask.cc~	2008-11-14 13:25:23.000000000 +0000
+++ talk/xmpp/xmpplogintask.cc	2008-11-14 13:25:30.000000000 +0000
@@ -33,6 +33,7 @@
 #endif
 #endif
 
+#include <cstdio>
 #include <iostream>
 #include <string>
 #include <vector>
--- talk/base/logging.cc~	2008-11-14 13:20:06.000000000 +0000
+++ talk/base/logging.cc	2008-11-14 13:20:13.000000000 +0000
@@ -33,6 +33,7 @@
 
 #include <iostream>
 #include <iomanip>
+#include <cstdio>
 #include <cstring>
 
 #include "talk/base/logging.h"
--- talk/base/stream.cc~	2008-11-14 13:20:58.000000000 +0000
+++ talk/base/stream.cc	2008-11-14 13:21:08.000000000 +0000
@@ -27,6 +27,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <cstdio>
 #include <errno.h>
 #include <string.h>
 #include <string>

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-telepathy-maintainers mailing list