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