PHP 4.0 Bug #7423: XPG4_2 required?!?

From: Date: Tue, 24 Oct 2000 09:49:38 +0000
Subject: PHP 4.0 Bug #7423: XPG4_2 required?!?
Groups: php.dev 
Request: Send a blank email to php-dev+get-35911@lists.php.net to get a copy of this message
From: lupe@lupe-christoph.de Operating system: Solaris 8 x86 PHP version: 4.0.3pl1 PHP Bug Type: Compile Failure Bug description: XPG4_2 required?!? Even after fixing the variable name 'sun', compiling PHP with --enable-sockets configured fails on Solaris 8 x86. Most certainly SPARC is also affected. Early versions of Solaris probably, too. /bin/sh /sw/WORK/www/php-4.0.3pl1/libtool --silent --mode=compile gcc -I. -I/sw/WORK/www/php-4.0.3pl1/ext/sockets -I/sw/WORK/www/php-4.0.3pl1 -I/sw/WORK/www/php-4.0.3pl1/main -I/opt/local/i386/apache/include -I/sw/WORK/www/php-4.0.3pl1/Zend -I/sw/WORK/www/php-4.0.3pl1 -I/opt/local/i386/include -I/opt/local/i386/include/freetype -I/opt/local/i386/imap/include -I/opt/local/i386/mysql/include -I/sw/WORK/www/php-4.0.3pl1/ext/xml/expat/xmltok -I/sw/WORK/www/php-4.0.3pl1/ext/xml/expat/xmlparse -I/sw/WORK/www/php-4.0.3pl1/TSRM -I/opt/local/i386/include/bind -I/opt/local/i386/include -D_POSIX_PTHREAD_SEMANTICS -DEAPI -DXML_BYTE_ORDER=12 -g -O2 -c sockets.c sockets.c: In function `php_if_recvmsg': sockets.c:1614: structure has no member named `msg_control' sockets.c:1615: structure has no member named `msg_controllen' sockets.c:1617: structure has no member named `msg_control' sockets.c:1618: structure has no member named `msg_controllen' sockets.c:1621: structure has no member named `msg_flags' sockets.c:1627: structure has no member named `msg_control' sockets.c:1636: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1640: structure has no member named `msg_controllen' sockets.c:1641: structure has no member named `msg_flags' sockets.c:1673: structure has no member named `msg_control' sockets.c:1674: structure has no member named `msg_controllen' sockets.c:1676: structure has no member named `msg_control' sockets.c:1677: structure has no member named `msg_controllen' sockets.c:1680: structure has no member named `msg_flags' sockets.c:1686: structure has no member named `msg_control' sockets.c:1695: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1697: structure has no member named `msg_controllen' sockets.c:1698: structure has no member named `msg_flags' *** Error code 1 Looking at /usr/include/sys/socket.h, I see this: /* * Message header for recvmsg and sendmsg calls. */ struct msghdr { void *msg_name; /* optional address */ socklen_t msg_namelen; /* size of address */ struct iovec *msg_iov; /* scatter/gather array */ int msg_iovlen; /* # elements in msg_iov */ #if defined(_XPG4_2) || defined(_KERNEL) void *msg_control; /* ancillary data */ socklen_t msg_controllen; /* ancillary data buffer len */ int msg_flags; /* flags on received message */ #else caddr_t msg_accrights; /* access rights sent/received */ int msg_accrightslen; #endif /* defined(_XPG4_2) || defined(_KERNEL) */ }; Using the requires a non-standard library (-lxnet rather than the usual -lsocket). The recvmsg(3XNET) does not tell the "canonical" method of activating the X/Open Networking features. -- Edit Bug report at: http://bugs.php.net/?id=7423&edit=1

« previous php.dev (#35911) next »