Edit report at https://bugs.php.net/bug.php?id=66013&edit=1
ID: 66013
Comment by: norm dot jacobs at oracle dot com
Reported by: Pete_Wall at symantec dot com
Summary: Solaris build failure with 5.5
Status: Assigned
Type: Bug
Package: Compile Failure
Operating System: Solaris 10 (x86 and SPARC)
PHP Version: 5.5.5
Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
FWIW, _XPG4_2 is an internal implementation detail in Solaris and should not be used directly,
instead defining _XOPEN_SOURCE >=500 is a possible option. See the standards(5) man page and/or
sys/feature_tests.h on Solaris for more detail.
Previous Comments:
------------------------------------------------------------------------
[2016-07-17 14:58:49] eugene at zhegan dot in
Still there in 5.6.21 / Solaris 11.2.
------------------------------------------------------------------------
[2015-07-17 19:02:52] g dot fischer at ah-consulting dot net
this is still present in 5.6.11, solaris 11.2, sunpro 5.12.
5.3.x and 5.4.x are fine so it seems it was re-introduced in 5.5.x.
also see https://bugs.php.net/bug.php?id=8468 for
historical reasons.
------------------------------------------------------------------------
[2014-02-06 18:07:38] alp at rsu dot ru
One more workaround, which we use in OpenIndiana /hipster:
https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/php-5_5/patches/ext_socket_config.m4.patch
------------------------------------------------------------------------
[2014-01-27 19:28:39] rainer dot jung at kippdata dot de
My workaround is adding
#define _XOPEN_SOURCE 500
#define _XOPEN_SOURCE_EXTENDED 1
#define __EXTENSIONS__
at the top of the files ext/sockets/conversions.c and ext/sockets/sendrecvmsg.c.
------------------------------------------------------------------------
[2014-01-16 13:26:03] christian dot lachner at gmail dot com
On Solaris 5.11, the problem's source is in /usr/include/sys/socket.h where the struct
'msghdr' is declared. The missing two elements '*msg_control' and
'msg_controllen' are IFDEFed out and can only be enabled by setting __lint, _XPG4_2 or
_KERNEL. However, neither of these three values is set by the configure-script.
As a result, using export EXTRA_CFLAGS="-D__lint" makes socket.so as well as the rest of
php build fine. Don't use EXTRA_CFLAGS="-D_XPG4_2" as it probably breaks other stuff.
Dunno about older Solaris releases though.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66013
--
Edit this bug report at https://bugs.php.net/bug.php?id=66013&edit=1