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 641350 - Build with Sun/Oracle cc fails due to empty struct in glib/tests/mem-overflow.c
Build with Sun/Oracle cc fails due to empty struct in glib/tests/mem-overflow.c
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: build
2.26.x
Other Solaris
: Normal major
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-02-03 14:35 UTC by Jim Wise
Modified: 2013-11-24 01:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jim Wise 2011-02-03 14:35:55 UTC
glib/tests/mem-overflow.c contains:

  typedef struct
  {
  } Empty;

This is not valid Ansi C, and is rejected by the Sun c compiler, preventing a build of glib.

Skipping this test when compiling with the Sun c compiler, either at a file level, or within mem-overflow.c would work around the problem.

Thanks,
Comment 1 Patrick Welche 2012-01-10 15:25:43 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=615379#c1

seems to preempt this bug...
Comment 2 Matthias Clasen 2013-11-24 01:29:59 UTC
the test is now protected by #ifdef __GNUC__