Bug #13666 Updated: --enable-sockets fails to compile
| From: | mfischer@php.net | Date: | Wed, 21 Nov 2001 12:04:16 +0000 |
| Subject: | Bug #13666 Updated: --enable-sockets fails to compile | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71199@lists.php.net to get a copy of this message | ||
ID: 13666
Updated by: mfischer
Reported By: bonnej@prairie.lakes.com
Old Status: Open
Status: Feedback
Bug Type: Sockets related
Operating System: linux mips glibc2 cobalt raq
PHP Version: 4.0.6
New Comment:
Ok, I probably don't have to ask if it works about current CVS or RC. SO_SNDLOWAT and friends
are still in ext/socket.
Anyway, cany ou grep your system header files if the constants SO_SNDLOWAT , SO_RCVLOWAT ,
SO_SNDTIMEO and SO_RCVTIMEO are defined somewhere?
The 'should' be in /usr/include/asm/socket.h, the linux kernel defines them in
include/asm-i386/socket.h:#define SO_SNDLOWAT 19
include/asm-mips/socket.h:#define SO_SNDLOWAT 0x1003
Maybe it's a problem with your header files?
If you find anything, please also try latest RC
http://www.php.net/~zeev/php-4.1.0RC3.tar.gz
Feedback.
Previous Comments:
------------------------------------------------------------------------
[2001-10-23 17:50:21] bonnej@prairie.lakes.com
yep :
/bin/sh /usr/src/php4-200110231200/libtool --silent --mode=compile gcc -I.
-I/usr/src/php4-200110231200/ext/sockets -I/usr/src/php4-200110231200/main
-I/usr/src/php4-200110231200 -I/usr/include/apache -I/usr/src/php4-200110231200/Zend
-I/usr/src/php4-200110231200/ext/xml/expat -DCOBALT_RAQ_LED -DLINUX=2
-I/usr/src/php4-200110231200/TSRM -g -O2 -prefer-pic -c sockets.c
sockets.c: In function `zm_startup_sockets':
sockets.c:361: `SO_SNDLOWAT' undeclared (first use this function)
sockets.c:361: (Each undeclared identifier is reported only once
sockets.c:361: for each function it appears in.)
sockets.c:362: `SO_RCVLOWAT' undeclared (first use this function)
sockets.c:363: `SO_SNDTIMEO' undeclared (first use this function)
sockets.c:364: `SO_RCVTIMEO' undeclared (first use this function)
make[3]: *** [sockets.lo] Error 1
make[3]: Leaving directory `/usr/src/php4-200110231200/ext/sockets'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php4-200110231200/ext/sockets'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php4-200110231200/ext'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------
[2001-10-23 10:57:52] sniper@php.net
Does this happen with latest CVS snapshot from http://snaps.php.net/ ?
------------------------------------------------------------------------
[2001-10-14 15:18:48] bonnej@prairie.lakes.com
configed with --with-apxs --enable-sockets
Making all in sockets
make[2]: Entering directory `/usr/src/php-4.0.6/ext/sockets'
make[3]: Entering directory `/usr/src/php-4.0.6/ext/sockets'
/bin/sh /usr/src/php-4.0.6/libtool --silent --mode=compile gcc -I. -I/usr/src/php-4.0.6/ext/sockets
-I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6 -I/usr/include/apache -I/usr/src/php-4.0.6/Zend
-I/usr/src/php-4.0.6/ext/mysql/libmysql -I/usr/src/php-4.0.6/ext/xml/expat/xmltok
-I/usr/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/src/php-4.0.6/TSRM -DCOBALT_RAQ_LED -DLINUX=2
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c sockets.c
sockets.c: In function `php_minit_sockets':
sockets.c:233: `SO_SNDLOWAT' undeclared (first use this function)
sockets.c:233: (Each undeclared identifier is reported only once
sockets.c:233: for each function it appears in.)
sockets.c:234: `SO_RCVLOWAT' undeclared (first use this function)
sockets.c:235: `SO_SNDTIMEO' undeclared (first use this function)
sockets.c:236: `SO_RCVTIMEO' undeclared (first use this function)
make[3]: *** [sockets.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.6/ext/sockets'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.0.6/ext/sockets'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.6/ext'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13666&edit=1