sockets.c : compilation fails with gcc 2.7.2.3 on Digital Unix (too many warnings)
| From: | Olivier Cahagne | Date: | Mon, 11 Sep 2000 15:38:57 +0000 |
| Subject: | sockets.c : compilation fails with gcc 2.7.2.3 on Digital Unix (too many warnings) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32924@lists.php.net to get a copy of this message | ||
Well, here's a report with latest snapshot 200009110745 + gcc 2.7.2.3 on Digital Unix V4.0.
Compilation actually fails.
./configure --enable-sockets
sockets.c: In function `php_if_getsockname':
sockets.c:636: warning: passing arg 2 of `getsockname' from incompatible pointer type
sockets.c: In function `php_if_getpeername':
sockets.c:732: warning: passing arg 2 of `getpeername' from incompatible pointer type
sockets.c: In function `php_if_connect':
sockets.c:866: warning: passing arg 1 of `bzero' from incompatible pointer type
sockets.c: In function `php_if_strerror':
sockets.c:927: warning: assignment makes pointer from integer without a cast
sockets.c: In function `php_if_bind':
sockets.c:971: warning: passing arg 2 of `bind' from incompatible pointer type
sockets.c:994: warning: passing arg 2 of `bind' from incompatible pointer type
sockets.c: In function `php_if_add_iovec':
sockets.c:1118: warning: passing arg 1 of `bcopy' from incompatible pointer type
sockets.c:1118: warning: passing arg 2 of `bcopy' from incompatible pointer type
sockets.c: In function `php_if_delete_iovec':
sockets.c:1156: warning: passing arg 1 of `bcopy' from incompatible pointer type
sockets.c:1156: warning: passing arg 2 of `bcopy' from incompatible pointer type
sockets.c:1158: warning: passing arg 2 of `bcopy' from incompatible pointer type
sockets.c: In function `php_if_sendto':
sockets.c:1466: warning: passing arg 1 of `bzero' from incompatible pointer type
sockets.c:1471: warning: passing arg 5 of `sendto' from incompatible pointer type
sockets.c:1484: warning: passing arg 1 of `bzero' from incompatible pointer type
sockets.c:1501: warning: passing arg 5 of `sendto' from incompatible pointer type
sockets.c: In function `php_if_recvmsg':
sockets.c:1573: warning: passing arg 1 of `bzero' from incompatible pointer type
sockets.c:1574: warning: assignment from incompatible pointer type
sockets.c:1580: structure has no member named `msg_control'
sockets.c:1581: structure has no member named `msg_controllen'
sockets.c:1583: structure has no member named `msg_control'
sockets.c:1584: structure has no member named `msg_controllen'
sockets.c:1587: structure has no member named `msg_flags'
sockets.c:1593: structure has no member named `msg_control'
sockets.c:1606: structure has no member named `msg_controllen'
sockets.c:1607: structure has no member named `msg_flags'
sockets.c:1632: warning: passing arg 1 of `bzero' from incompatible pointer type
sockets.c:1633: warning: assignment from incompatible pointer type
sockets.c:1639: structure has no member named `msg_control'
sockets.c:1640: structure has no member named `msg_controllen'
sockets.c:1642: structure has no member named `msg_control'
sockets.c:1643: structure has no member named `msg_controllen'
sockets.c:1646: structure has no member named `msg_flags'
sockets.c:1652: structure has no member named `msg_control'
sockets.c:1663: structure has no member named `msg_controllen'
sockets.c:1664: structure has no member named `msg_flags'
sockets.c: In function `php_if_sendmsg':
sockets.c:1711: warning: passing arg 1 of `bzero' from incompatible pointer type
sockets.c:1712: warning: assignment from incompatible pointer type
sockets.c:1736: warning: assignment from incompatible pointer type
Stop.
Stop.
Stop.
Stop.
There're also other warnings on this platform: bug #6461
--
Olivier.Cahagne@epita.fr