php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7171 with --enable-sockets complie error
Submitted: 2000-10-12 22:29 UTC Modified: 2000-11-23 22:54 UTC
From: solarischan at 21cn dot com Assigned: chrisv (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.0.3 OS: solaris 8 for x86
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: solarischan at 21cn dot com
New email:
PHP Version: OS:

 

 [2000-10-12 22:29 UTC] solarischan at 21cn dot com
gcc  -I. -I/work/web/php-4.0.3/ext/sockets -I/work/web/php-4.0.3 -I/work/web/php-4.0.3/main -I/work/web/php-4.0.3/Zend -I/work/web/php-4.0.3 -I/usr/local/include/freetype -I/usr/local/include -I/usr/local/include/mysql -I/work/web/php-4.0.3/ext/xml/expat/xmltok -I/work/web/php-4.0.3/ext/xml/expat/xmlparse -I/work/web/php-4.0.3/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=12 -g -O2  -c sockets.c && touch sockets.lo
sockets.c: In function `php_if_connect':
sockets.c:883: parse error before `1'
sockets.c:934: invalid lvalue in assignment
sockets.c:935: invalid type argument of `->'
sockets.c: In function `php_if_recvfrom':
sockets.c:1367: parse error before `1'
sockets.c:1377: invalid lvalue in unary `&'
sockets.c:1395: request for member `sun_path' in something not a structure or union
sockets.c:1396: request for member `sun_path' in something not a structure or union
sockets.c: In function `php_if_sendto':
sockets.c:1495: parse error before `1'
sockets.c:1500: invalid lvalue in unary `&'
sockets.c:1501: request for member `sun_family' in something not a structure or union
sockets.c:1502: request for member `sun_path' in something not a structure or union
sockets.c:1505: invalid lvalue in unary `&'
sockets.c:1505: invalid lvalue in unary `&'
sockets.c: In function `php_if_recvmsg':
sockets.c:1557: parse error before `1'
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:1667: warning: assignment makes pointer from integer without a cast
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'
sockets.c:1702: invalid type argument of `->'
sockets.c: In function `php_if_sendmsg':
sockets.c:1768: parse error before `1'
sockets.c:1770: warning: assignment makes pointer from integer without a cast
sockets.c:1774: invalid type argument of `->'
make[3]: *** [sockets.lo] Error 1
make[3]: Leaving directory `/work/web/php-4.0.3/ext/sockets'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/web/php-4.0.3/ext/sockets'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/web/php-4.0.3/ext'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-22 04:07 UTC] chrisv@php.net
I've corrected some problems with the code recently, which should fix the compile error you've seen. Try downloading the current CVS source and compiling that. If you have any more problems, please reply.
 [2000-11-23 22:54 UTC] chrisv@php.net
Bug fixed to my knowledge, no reply on report, closing. Please reopen if bug(s) persist.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jul 15 18:00:01 2026 UTC