I see.
Can you try applying the following patch and see if it now
compiles? If not, please attach the new errors as well.
- Markus
On Wed, Nov 21, 2001 at 09:33:13PM -0000, [EMAIL PROTECTED] wrote :
> ID: 13666
> User updated by: [EMAIL PROTECTED]
> Reported By: [EMAIL PROTECTED]
> Old Status: Feedback
> Status: Open
> Bug Type: Sockets related
> Operating System: linux mips glibc2 cobalt raq
> PHP Version: 4.0.6
> New Comment:
>
> well, maybe its because im using an older kernel...
> 2.0.34C52_SK
>
> the constants were not found in socket.h, but heres a dump of what is :
>
> #ifndef __ASM_MIPS_SOCKET_H
> #define __ASM_MIPS_SOCKET_H
>
> #include <asm/sockios.h>
>
> /*
> * For setsockoptions(2)
> *
> * This defines are ABI conformant as far as Linux supports these ...
> */
> #define SOL_SOCKET 0xffff
>
> #define SO_DEBUG 0x0001 /* Record debugging information. */
> #define SO_REUSEADDR 0x0004 /* Allow reuse of local addresses. */
> #define SO_KEEPALIVE 0x0008 /* Keep connections alive and send
> SIGPIPE when they die. */
> #define SO_DONTROUTE 0x0010 /* Don't do local routing. */
> #define SO_BROADCAST 0x0020 /* Allow transmission of
> broadcast messages. */
> #define SO_LINGER 0x0080 /* Block on close of a reliable
> socket to transmit pending data. */
> #define SO_OOBINLINE 0x0100 /* Receive out-of-band data in-band. */
> #if 0
> To add: #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */
> #endif
>
> #define SO_TYPE 0x1008 /* Compatible name for SO_STYLE. */
> #define SO_STYLE SO_TYPE /* Synonym */
> #define SO_ERROR 0x1007 /* get error status and clear */
> #define SO_SNDBUF 0x1001 /* Send buffer size. */
> #define SO_RCVBUF 0x1002 /* Receive buffer. */
>
> /* linux-specific, might as well be the same as on i386 */
> #define SO_NO_CHECK 11
> #define SO_PRIORITY 12
> #define SO_BSDCOMPAT 14
>
> #define SO_BINDTODEVICE 25
>
> /* Types of sockets. */
> #define SOCK_DGRAM 1 /* Connectionless, unreliable datagrams
> of fixed maximum length. */
> #define SOCK_STREAM 2 /* Sequenced, reliable, connection-based
> byte streams. */
> #define SOCK_RAW 3 /* Raw protocol interface. */
> #define SOCK_RDM 4 /* Reliably-delivered messages. */
> #define SOCK_SEQPACKET 5 /* Sequenced, reliable, connection-based,
> #define SOCK_PACKET 10 /* Linux specific way of
>getting packets at
> the dev level. For writing rarp and
> other similar things on the user level. */
>
> #endif /* __ASM_MIPS_SOCKET_H */
> datagrams of fixed maximum length. */
>
> i dont think trying the lastes RC would help seeing as i dont think those constants
>are defined anywhere, would you be able to define them for yourself if they are not
>already defined?
>
> ill try the lastest RC anyway, for the sake of completeness...
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-11-21 07:04:16] [EMAIL PROTECTED]
>
> 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.
>
> ------------------------------------------------------------------------
>
> [2001-10-23 17:50:21] [EMAIL PROTECTED]
>
> 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] [EMAIL PROTECTED]
>
> Does this happen with latest CVS snapshot from http://snaps.php.net/ ?
>
>
>
> ------------------------------------------------------------------------
>
> [2001-10-14 15:18:48] [EMAIL PROTECTED]
>
> 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
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0
-All your scripts are belong to Zend-
? oldlinux.diff
Index: sockets.c
===================================================================
RCS file: /repository/php4/ext/sockets/sockets.c,v
retrieving revision 1.78
diff -u -r1.78 sockets.c
--- sockets.c 12 Nov 2001 01:54:55 -0000 1.78
+++ sockets.c 21 Nov 2001 23:35:49 -0000
@@ -391,10 +391,18 @@
REGISTER_LONG_CONSTANT("SO_OOBINLINE", SO_OOBINLINE, CONST_CS |
CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SO_SNDBUF", SO_SNDBUF,
CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SO_RCVBUF", SO_RCVBUF,
CONST_CS | CONST_PERSISTENT);
+#ifdef SO_SNDLOWAT
REGISTER_LONG_CONSTANT("SO_SNDLOWAT", SO_SNDLOWAT, CONST_CS |
CONST_PERSISTENT);
+#endif
+#ifdef SO_RCVLOWAT
REGISTER_LONG_CONSTANT("SO_RCVLOWAT", SO_RCVLOWAT, CONST_CS |
CONST_PERSISTENT);
+#endif
+#ifdef SO_SNDTIMEO
REGISTER_LONG_CONSTANT("SO_SNDTIMEO", SO_SNDTIMEO, CONST_CS |
CONST_PERSISTENT);
+#endif
+#ifdef SO_RCVTIMEO
REGISTER_LONG_CONSTANT("SO_RCVTIMEO", SO_RCVTIMEO, CONST_CS |
CONST_PERSISTENT);
+#endif
REGISTER_LONG_CONSTANT("SO_TYPE", SO_TYPE,
CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SO_ERROR", SO_ERROR,
CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SOL_SOCKET", SOL_SOCKET, CONST_CS |
CONST_PERSISTENT);
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]