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



Sorry for that Jonathan, I can be daft sometimes...

Ok ".if !empty(CC_VERSION:Mgcc-[5-9]*)” does the job.

Does this means I should use gcc7 insead of gcc5 (provided I get it to compile)?


In a similar line, I had problem building net/php-sockets and managed to compile if I change line:
CFLAGS.SunOS+=         -D_XOPEN_SOURCE=500     # msghdr extensions

into:

CFLAGS.SunOS+=  -D_XOPEN_SOURCE=600

in the Makefile.

Thanks again,

Michel


On 8 Aug 2017, at 02:12, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:

* On 2017-08-07 at 20:50 BST, Michel Jansens wrote:

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

Yeh, I guess I wasn't clear, what I meant was to change this line:

.if !empty(CC_VERSION:Mgcc-[7-9]*)

to be this:

.if !empty(CC_VERSION:Mgcc-[5-9]*)

so that your gcc5 is a valid match for that test and you use

CFLAGS.SunOS+=  -D_XOPEN_SOURCE=600

instead of

CFLAGS.SunOS+=  -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1

Cheers,

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



Home | Main Index | Thread Index | Old Index