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 582739 - metacity-mag.c doesn't compile on solaris
metacity-mag.c doesn't compile on solaris
Status: RESOLVED OBSOLETE
Product: metacity
Classification: Other
Component: general
trunk
Other Solaris
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2009-05-15 09:37 UTC by James Andrewartha
Modified: 2017-03-18 18:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description James Andrewartha 2009-05-15 09:37:50 UTC
Thanks to the #define _XOPEN_SOURCE 600 /* C99 -- for rint() */ in metacity-mag.c, compiling on solaris gives:
/usr/include/sys/feature_tests.h:357:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications      require the use of c99"
http://wiki.netbsd.se/Typical_pkgsrc_error_messages#Compiler_or_options_invalid_for_pre-UNIX_03_X.2FOpen_applications__and_pre-2001_POSIX_applications has some ideas.
Comment 1 James Andrewartha 2009-05-17 10:42:59 UTC
OK, looking into it further you need to remove -ansi from CFLAGS, and add -std=c99 to CFLAGS. Or just remove #define completely which seems to work OK on Solaris and Linux, and is what Sun does: http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/metacity-06-remove-xopen-source-posix.diff