pkgsrc-Bugs archive

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

Re: pkg/54722: devel/glib2 still does not compile on Solaris 11.3



The following reply was made to PR pkg/54722; it has been noted by GNATS.

From: =?UTF-8?Q?Clausen=2c_J=c3=b6rn?= <joern.clausen%uni-bielefeld.de@localhost>
To: Jonathan Perkin <jperkin%joyent.com@localhost>
Cc: <gnats-bugs%netbsd.org@localhost>, <pkg-manager%netbsd.org@localhost>,
	<gnats-admin%netbsd.org@localhost>, <pkgsrc-bugs%netbsd.org@localhost>
Subject: Re: pkg/54722: devel/glib2 still does not compile on Solaris 11.3
Date: Wed, 27 Nov 2019 11:21:55 +0100

 > The correct way to set _XPG* is via _XOPEN_SOURCE, and setting
 > _XOPEN_SOURCE depends on your C compilation environment.  I've tried
 > to summarise how to fix this here;
 > 
 >    https://gist.github.com/jperkin/b08f9108daf8d0ac695067d71f882a9d
 > 
 > In the case of glib2, we already set USE_LANGUAGES=c99 so in theory do
 > not need to perform any of the __STDC_VERSION__ checks, and can just
 > explicitly require _XOPEN_SOURCE=600.  If you set that I assume it
 > still works for you?
 
 Yes, this also works for me:
 
 CPPFLAGS.SunOS+=-D_XOPEN_SOURCE=600 -D__EXTENSIONS__
 
 -D__EXTENSIONS__ is necessary to define sockaddr_in6.
 
 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum
 https://www.uni-bielefeld.de/bits
 


Home | Main Index | Thread Index | Old Index