pkgsrc-Users archive

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

Re: 2017Q2 devel/libuv on Solaris 10 workaround



Jonathan, 

I’ve added the line to the  www/apache24/Makefile , but the result is still the same. Maybe I missed something. gcc is the lang/gcc5 compiled from 2017Q2

CC_VERSION=5-9
CFLAGS.SunOS+=  -D__EXTENSIONS__
.if !empty(CC_VERSION:Mgcc-[7-9]*)
CFLAGS.SunOS+=  -D_XOPEN_SOURCE=600
.else
CFLAGS.SunOS+=  -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
#CFLAGS.SunOS+= -D_XOPEN_SOURCE_EXTENDED=1
.endif


Cheers,

Michel

On 7 Aug 2017, at 19:38, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:

* On 2017-08-07 at 17:49 BST, Michel Jansens wrote:

Hi Jonathan,

Thanks for all.

For the Apache24 problem, I think its coming from
42  CFLAGS.SunOS+=  -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1

Specifically the first part -D_XOPEN_SOURCE : when I remove it, it works

Ok, so for some reason your GCC5 is compiling in C99 mode by default.
If you change the CC_VERSION line just above that to be 5-9 does it
work too?

If so we'll need to dig into this a bit further to see how we can
better detect them.

Cheers,

--
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com



Home | Main Index | Thread Index | Old Index