pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44576: graphics/gegl does not compile on Solaris



>Number:         44576
>Category:       pkg
>Synopsis:       graphics/gegl does not compile on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 11:50:00 +0000 2011
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Compiling graphics/gegl on Solaris 10 with lang/gcc34 breaks in

  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':
exp-combine.c:262: error: `NAN' undeclared (first use in this function)

Adding the usual fix

CFLAGS+=        -std=c99 -D_XOPEN_SOURCE=600

results in

  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


>How-To-Repeat:

>Fix:
Fixing this bug in gegl is probably the real solution:

https://bugzilla.gnome.org/show_bug.cgi?id=617416

I tried this workaround (no matter how unhappy I am with it)

http://lightningismyname.blogspot.com/2010/10/fixing-errors-with-nan-c-const-and-gcc.html

but I wasn't able to find the right combination of quotes to get the define 
through bmake, pdksh and the preprocessor.



Home | Main Index | Thread Index | Old Index