GNOME Bugzilla – Bug 425876
Fails to build with GCC 4.3: missing #includes
Last modified: 2008-01-29 13:10:59 UTC
Hi, Martin Michlmayr reported in Debian bug http://bugs.debian.org/417209 that gnome-cups-manager 0.31 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 [...] > 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 """ He provided a patch which I'll attach. Bye,
Created attachment 85765 [details] [review] Fix missing #include in libgnomecups
Commited on trunk.
Moving all gnome-cups-manager bugs to new product. Filter on Kjartan's spring cleaning.