Re: PHP 4.0 Bug #8201 Updated: Compile failure with --enable-sockets
| From: | chrisv at b0rked dot dhs dot org | Date: | Fri, 15 Dec 2000 04:14:01 +0000 |
| Subject: | Re: PHP 4.0 Bug #8201 Updated: Compile failure with --enable-sockets | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-41428@lists.php.net to get a copy of this message | ||
Try this version. It's a slightly modified version from the current php4
rc. If it works, let me know so I can commit it to CVS.
Chris
------
give me life
give me pain
give me myself again
-- tori amos - little earthquakes
On 12 Dec 2000 youngd@digiship.com wrote:
> ID: 8201
> User Update by: youngd@digiship.com
> Status: Open
> Bug Type: Compile Failure
> Description: Compile failure with --enable-sockets
>
> 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
>
>
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2000-12-11 19:19:33] youngd@digiship.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
>
>
> ---------------------------------------------------------------------------
>
>
> Full Bug description available at: http://bugs.php.net/?id=8201
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>