After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 425876 - Fails to build with GCC 4.3: missing #includes
Fails to build with GCC 4.3: missing #includes
Status: RESOLVED FIXED
Product: gnome-cups-manager
Classification: Deprecated
Component: gnome-cups-manager
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2007-04-03 14:39 UTC by Loïc Minier
Modified: 2008-01-29 13:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix missing #include in libgnomecups (299 bytes, patch)
2007-04-03 14:40 UTC, Loïc Minier
none Details | Review

Description Loïc Minier 2007-04-03 14:39: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,
Comment 1 Loïc Minier 2007-04-03 14:40:24 UTC
Created attachment 85765 [details] [review]
Fix missing #include in libgnomecups
Comment 2 Kjartan Maraas 2007-04-17 14:01:20 UTC
Commited on trunk.
Comment 3 Kjartan Maraas 2008-01-29 13:10:59 UTC
Moving all gnome-cups-manager bugs to new product. Filter on Kjartan's spring cleaning.