php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8201 Compile failure with --enable-sockets
Submitted: 2000-12-11 19:19 UTC Modified: 2001-06-03 12:04 UTC
From: youngd at digiship dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: Solaris 5.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: youngd at digiship dot com
New email:
PHP Version: OS:

 

 [2000-12-11 19:19 UTC] youngd at digiship dot com
Happens with dist tarball as well as CVS source:

Making all in sockets
make[2]: Entering directory `/usr/local/build/php/php4/ext/sockets'
make[3]: Entering directory `/usr/local/build/php/php4/ext/sockets'
/bin/sh /usr/local/build/php/php4/libtool --silent --mode=compile gcc  -I. -I/usr/local/build/php/php4/ext/sockets -I/usr/local/build/php/php4/main -I/usr/local/build/php/php4 -I/usr/local/apache/include -I/usr/local/build/php/php4/Zend -I/usr/local/build/php/php4/ext/mysql/libmysql -I/usr/local/build/php/php4/ext/xml/expat/xmltok -I/usr/local/build/php/php4/ext/xml/expat/xmlparse -I/usr/local/build/php/php4/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=270 -DUSE_EXPAT -DXML_BYTE_ORDER=21 -g -O2  -c sockets.c
sockets.c: In function `php_if_recvmsg':
sockets.c:1734: structure has no member named `msg_control'
sockets.c:1735: structure has no member named `msg_controllen'
sockets.c:1737: structure has no member named `msg_control'
sockets.c:1738: structure has no member named `msg_controllen'
sockets.c:1741: structure has no member named `msg_flags'
sockets.c:1747: structure has no member named `msg_control'
sockets.c:1756: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast
sockets.c:1760: structure has no member named `msg_controllen'
sockets.c:1761: structure has no member named `msg_flags'
sockets.c:1793: structure has no member named `msg_control'
sockets.c:1794: structure has no member named `msg_controllen'
sockets.c:1796: structure has no member named `msg_control'
sockets.c:1797: structure has no member named `msg_controllen'
sockets.c:1800: structure has no member named `msg_flags'
sockets.c:1806: structure has no member named `msg_control'
sockets.c:1816: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast
sockets.c:1818: structure has no member named `msg_controllen'
sockets.c:1820: structure has no member named `msg_flags'
make[3]: *** [sockets.lo] Error 1
make[3]: Leaving directory `/usr/local/build/php/php4/ext/sockets'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/build/php/php4/ext/sockets'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/build/php/php4/ext'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-12 13:05 UTC] youngd at digiship dot com
I added :

#define _XPG4_2 to sockets.c and now get:

make[1]: Entering directory `/usr/local/build/php/php4/ext/sockets'
/bin/sh /usr/local/build/php/php4/libtool --silent --mode=compile gcc  -I. -I/usr/local/build/php/php4/ext/soc
kets -I/usr/local/build/php/php4/main -I/usr/local/build/php/php4 -I/usr/local/apache/include -I/usr/local/bui
ld/php/php4/Zend -I/usr/local/build/php/php4/ext/mysql/libmysql -I/usr/local/build/php/php4/ext/xml/expat/xmlt
ok -I/usr/local/build/php/php4/ext/xml/expat/xmlparse -I/usr/local/build/php/php4/TSRM  -D_POSIX_PTHREAD_SEMAN
TICS -DSOLARIS2=270 -DUSE_EXPAT -DXML_BYTE_ORDER=21 -g -O2   -c sockets.c
In file included from sockets.c:49:
/usr/include/signal.h:73: parse error before `*'
sockets.c:108: `php_if___xnet_listen' undeclared here (not in a function)
sockets.c:108: initializer element is not constant
sockets.c:108: (near initialization for `sockets_functions[10].handler')
sockets.c:129: `php_if___xnet_socket' undeclared here (not in a function)
sockets.c:129: initializer element is not constant
sockets.c:129: (near initialization for `sockets_functions[16].handler')
sockets.c:130: `php_if___xnet_connect' undeclared here (not in a function)
sockets.c:130: initializer element is not constant
sockets.c:130: (near initialization for `sockets_functions[17].handler')
sockets.c:132: `php_if___xnet_bind' undeclared here (not in a function)
sockets.c:132: initializer element is not constant
sockets.c:132: (near initialization for `sockets_functions[19].handler')
sockets.c:136: `php_if___xnet_sendto' undeclared here (not in a function)
sockets.c:136: initializer element is not constant
sockets.c:136: (near initialization for `sockets_functions[23].handler')
sockets.c:143: `php_if___xnet_recvmsg' undeclared here (not in a function)
sockets.c:143: initializer element is not constant
sockets.c:143: (near initialization for `sockets_functions[30].handler')
sockets.c:144: `php_if___xnet_sendmsg' undeclared here (not in a function)
sockets.c:144: initializer element is not constant
sockets.c:144: (near initialization for `sockets_functions[31].handler')
sockets.c:147: `php_if___xnet_getsockopt' undeclared here (not in a function)
sockets.c:147: initializer element is not constant
sockets.c:147: (near initialization for `sockets_functions[34].handler')
sockets.c:149: `php_if___xnet_socketpair' undeclared here (not in a function)
sockets.c:149: initializer element is not constant
sockets.c:149: (near initialization for `sockets_functions[36].handler')
sockets.c: In function `php_if_strerror':
sockets.c:1084: warning: assignment makes pointer from integer without a cast
make[1]: *** [sockets.lo] Error 1
make[1]: Leaving directory `/usr/local/build/php/php4/ext/sockets'
make: *** [all-recursive] Error 1


 [2000-12-18 10:52 UTC] sniper@php.net
Duplicate of #7423
 [2001-06-03 12:04 UTC] sniper@php.net
This should be fixed in PHP 4.0.6. Please try the
latest release candidate from:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 04:00:01 2026 UTC