cc: Warning: /php/php-src/ext/sockets/sockets.c, line 266: In this statement, the referenced type of the pointer value "&salen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
out_sock->bsd_socket = accept(in_sock->bsd_socket, la, &salen);
---------------------------------------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 348: In this statement, "hstrerror(...)" of type "int", is being converted to "pointer to const char". (cvtdiftypes)
buf = hstrerror(error);
----------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 880: In this statement, the referenced type of the pointer value "&salen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
if (getsockname(php_sock->bsd_socket, sa, &salen) != 0) {
--------------------------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 956: In this statement, the referenced type of the pointer value "&salen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
if (getpeername(php_sock->bsd_socket, sa, &salen) < 0) {
--------------------------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 1536: In this statement, the referenced type of the pointer value "(socklen_t ...)&slen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&s_un, (socklen_t *)&slen);
----------------------------------------------------------------------------------------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 1560: In this statement, the referenced type of the pointer value "(socklen_t ...)&slen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
retval = recvfrom(php_sock->bsd_socket, recv_buf, arg3, arg4, (struct sockaddr *)&sin, (socklen_t *)&slen);
---------------------------------------------------------------------------------------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 1718: In this statement, the referenced type of the pointer value "&salen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
if (getsockname(php_sock->bsd_socket, sa, &salen) != 0) {
--------------------------------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1798: In this statement, "msg_control" is not a member of "hdr". (needmember)
hdr.msg_control = ctl_buf ? (void *) ctl_buf : NULL;
------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1799: In this statement, "msg_controllen" is not a member of "hdr". (needmember)
hdr.msg_controllen = ctl_buf ? Z_LVAL_P(arg4) : 0;
------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1808: In the initializer for mhdr, "msg_control" is not a member of "hdr". (needmember)
struct cmsghdr *mhdr = (struct cmsghdr *) hdr.msg_control;
--------------------------------------------------------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1816: In this statement, "msg_controllen" is not a member of "hdr". (needmember)
ZVAL_LONG(arg4, hdr.msg_controllen);
--------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 1827: In this statement, the referenced type of the pointer value "((unsigned char ...)(mhdr)+(sizeof(struct cmsghdr)+0))" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
add_assoc_string(arg3, "cmsg_data", CMSG_DATA(mhdr), 1);
----------------------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1851: In this statement, "msg_control" is not a member of "hdr". (needmember)
hdr.msg_control = (void ) ctl_buf;
------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1852: In this statement, "msg_controllen" is not a member of "hdr". (needmember)
hdr.msg_controllen = Z_LVAL_P(arg4);
------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1854: In this statement, "msg_control" is not a member of "hdr". (needmember)
hdr.msg_control = NULL;
------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1855: In this statement, "msg_controllen" is not a member of "hdr". (needmember)
hdr.msg_controllen = 0;
------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1866: In the initializer for mhdr, "msg_control" is not a member of "hdr". (needmember)
struct cmsghdr mhdr = (struct cmsghdr ) hdr.msg_control;
------------------------------------------------------------------^
cc: Error: /php/php-src/ext/sockets/sockets.c, line 1875: In this statement, "msg_controllen" is not a member of "hdr". (needmember)
ZVAL_LONG(arg4, hdr.msg_controllen);
--------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 1884: In this statement, the referenced type of the pointer value "((unsigned char ...)(mhdr)+(sizeof(struct cmsghdr)+0))" is "unsigned char", which is not compatible with "char" because they differ by signed/unsigned attribute. (ptrmismatch1)
add_assoc_string(arg3, "cmsg_data", CMSG_DATA(mhdr), 1);
--------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 1921: In this statement, the referenced type of the pointer value "&salen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
if (getsockname(php_sock->bsd_socket, &sa, &salen) != 0) {
---------------------------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 2042: In this statement, the referenced type of the pointer value "&optlen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
if (getsockopt(php_sock->bsd_socket, level, optname, (char)&linger_val, &optlen) != 0) {
-------------------------------------------------------------------------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 2057: In this statement, the referenced type of the pointer value "&optlen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
if (getsockopt(php_sock->bsd_socket, level, optname, (char)&tv, &optlen) != 0) {
-----------------------------------------------------------------------------------------^
cc: Warning: /php/php-src/ext/sockets/sockets.c, line 2071: In this statement, the referenced type of the pointer value "&optlen" is "unsigned int", which is not compatible with "int" because they differ by signed/unsigned attribute. (ptrmismatch1)
if (getsockopt(php_sock->bsd_socket, level, optname, (char)&other_val, &optlen) != 0) {
------------------------------------------------------------------------------------------------^
gmake: *** [ext/sockets/sockets.lo] Error 1
gmake: *** Waiting for unfinished jobs....
15:36 root@netsrv5:/php/php-src #
--
Nobody ever ruined their eyesight by looking at the bright side of something.
Some more info.. if it matters..
here is msghdr from sys/socket.h
/*
- NOTE: The POSIX msghdr structure takes precedence over the XOPEN flavor
-
if both environments are defined. The two structs differ in the -
size of the msg_iovlen element.
*/
#ifdef _POSIX_PII_SOCKET
struct msghdr {
#else
struct __Pmsghdr {
#endif
void msg_name; / optional address /
#ifdef _POSIX_PII_SOCKET
socklen_t msg_namelen; / size of address /
#else
size_t msg_namelen; / size of address */
#endif
struct iovec msg_iov; / scatter/gather array /
size_t msg_iovlen; / # elements in msg_iov */
void msg_control; / ancillary data, see below /
#ifdef _POSIX_PII_SOCKET
socklen_t msg_controllen; / ancillary data buffer len /
#else
size_t msg_controllen; / ancillary data buffer len /
#endif
int msg_flags; / flags on received message */
};
#if defined(_XOPEN_SOURCE_EXTENDED) && !defined(_POSIX_PII_SOCKET)
struct msghdr {
#else
struct __Xmsghdr {
#endif
void msg_name; / optional address /
#if _XOPEN_SOURCE>=500
socklen_t msg_namelen; / size of address /
#else
size_t msg_namelen; / size of address */
#endif
struct iovec msg_iov; / scatter/gather array /
int msg_iovlen; / # elements in msg_iov */
void msg_control; / ancillary data, see below /
#if _XOPEN_SOURCE>=500
socklen_t msg_controllen; / ancillary data buffer len /
#else
size_t msg_controllen; / ancillary data buffer len /
#endif
int msg_flags; / flags on received message */
};
#if defined(_XOPEN_SOURCE_EXTENDED) || defined(_POSIX_PII_SOCKET)
struct __Omsghdr {
#else
/* The msghdr structure the kernel uses /
struct msghdr {
#endif
caddr_t msg_name; / optional address /
unsigned int msg_namelen; / size of address */
#if defined(_XOPEN_SOURCE_EXTENDED) || defined(_POSIX_PII_SOCKET)
struct __Oiovec msg_iov; / scatter/gather array */
#else
struct iovec msg_iov; / scatter/gather array /
#endif
unsigned int msg_iovlen; / # elements in msg_iov /
caddr_t msg_control; / ancillary data, see below /
unsigned int msg_controllen; / ancillary data buffer len /
int msg_flags; / flags on received message */
};
And my configure line:
C="cc" ./configure
--prefix=/usr/local/php
--disable-all
--enable-debug
--disable-cgi
--enable-sockets
--with-sqlite
--enable-simplexml
--enable-wddx
--with-libxml-dir=/usr/local
--enable-xml
--disable-yp
--enable-cli
--disable-ipv6
--enable-posix
--enable-session
--enable-short-path
--enable-rpath
--with-pear
--with-pcre-regex
--enable-recode
--with-mysql=/my_db
--enable-sysvmsg
--enable-sysvshm
--enable-sysvsem
--
Laundry is the fifth dimension!! ... um ... um ... th' washing machine
is a black hole and the pink socks are bus drivers who just fell in!!