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 642366 - NAN vs. PATH_MAX
NAN vs. PATH_MAX
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: build
0.0.14
Other Solaris
: Normal normal
: ---
Assigned To: Default Gegl Component Owner
Depends on: 617416
Blocks:
 
 
Reported: 2011-02-15 12:00 UTC by Jörn Clausen
Modified: 2011-03-28 21:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jörn Clausen 2011-02-15 12:00:33 UTC
Compiling gegl 0.1.4 on Solaris with gcc 3.4.6 fails with

  CC      exp-combine.c
exp-combine.c: In function `gegl_expcombine_new_exposure':
exp-combine.c:149: error: `NAN' undeclared (first use in this function)
exp-combine.c:149: error: (Each undeclared identifier is reported only once
exp-combine.c:149: error: for each function it appears in.)
exp-combine.c: In function `gegl_expcombine_normalize':

When adding "-std=c99 -D_XOPEN_SOURCE=600" to CFLAGS, compilation breaks at

 CC     gegl-xml.lo
gegl-xml.c:21:1: warning: "_XOPEN_SOURCE" redefined
<command line>:6:1: warning: this is the location of the previous definition
...
/usr/include/sys/feature_tests.h:332:2: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications         and pre-2001 POSIX applications"

because gegl-xml.c contains

/* For clang, remove when getting rid of using PATH_MAX */
#define _XOPEN_SOURCE 500

This is probably another reason to evaluate Bug 617416 and the proposed patch.
Comment 1 Jon Nordby 2011-03-28 21:49:18 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

http://git.gnome.org/browse/gegl/commit/?id=7d12e628b7fc112ee7a7b6ac7bcf79cd529d00e4