Bug#417209: FTBFS with GCC 4.3: missing #includes
Martin Michlmayr
tbm at cyrius.com
Sun Apr 1 20:17:57 UTC 2007
Package: gnome-cups-manager
Version: 0.31-3
Usertags: ftbfs-gcc-4.3
Tags: patch
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. In GCC 4.3, the C++ header
dependencies have been cleaned up. The advantage of this is that
programs will compile faster. The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC). Some background of this can be found at
http://gcc.gnu.org/PR28080
You can reproduce this problem with gcc-snapshot from unstable.
> Automatic build of gnome-cups-manager_0.31-3 on coconut0 by sbuild/ia64 0.49
...
> cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC but not for C++
> snmpinter.C: In function 'void* do_req(SNMP_session*)':
> snmpinter.C:161: error: 'realloc' was not declared in this scope
> make[4]: *** [snmpinter.lo] Error 1
--- libgnomecups/snmpinter.C~ 2007-04-01 20:11:00.000000000 +0000
+++ libgnomecups/snmpinter.C 2007-04-01 20:11:07.000000000 +0000
@@ -3,6 +3,7 @@
#include "snmpkit/snmpkit"
+#include <cstdlib>
#include <stdio.h>
#include <string.h>
--
Martin Michlmayr
http://www.cyrius.com/
More information about the pkg-gnome-maintainers
mailing list