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 329031 - G_GNUC_INTERNAL fails with gcc-2.95
G_GNUC_INTERNAL fails with gcc-2.95
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.9.x
Other Linux
: Normal minor
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-01-29 01:22 UTC by David Schleef
Modified: 2011-02-18 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
only define G_GNUC_INTERNAL if gcc >= 2.95 is used (442 bytes, patch)
2007-01-09 16:11 UTC, Marc Brockschmidt
none Details | Review

Description David Schleef 2006-01-29 01:22:31 UTC
In my current installation, I get the following definition of G_GNUC_INTERNAL:

  #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))

When used by other header files (gmessages.h, for example) in a function prototype, gcc-2.95 chokes on it.

Arguably, because of the age of gcc-2.95, this isn't high priority, but should be easy to fix.  Also, if this is a distro error, please advise.
Comment 1 Marc Brockschmidt 2007-01-09 16:11:00 UTC
Created attachment 79854 [details] [review]
only define G_GNUC_INTERNAL if gcc >= 2.95 is used

This patch should fix the problem (which is based on the few lines proposed in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=303124;msg=15)
Comment 2 Matthias Clasen 2007-01-12 15:34:07 UTC
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Make G_GNUC_INTERNAL a no-op for
        gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)