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 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
|