Re: PHP 4.0 Bug #7950 Updated: socket.c fails to compile

From: Date: Fri, 24 Nov 2000 16:38:49 +0000
Subject: Re: PHP 4.0 Bug #7950 Updated: socket.c fails to compile
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-39102@lists.php.net to get a copy of this message
# cc -V cc: WorkShop Compilers 5.0 98/12/15 C 5.0 # uname -a SunOS phys-staff2 5.6 Generic_105181-15 sun4u sparc SUNW,Ultra-2 # make make[1]: Entering directory `/datan/data3/home/sniper/testsite/php4/ext/sockets' /bin/sh /datan/data3/home/sniper/testsite/php4/libtool --silent --mode=compile cc -I. -I/datan/data3/home/sniper/testsite/php4/ext/sockets -I/datan/data3/home/sniper/testsite/php4 -I/datan/data3/home/sniper/testsite/php4/main -I/data/server/apache/include -I/datan/data3/home/sniper/testsite/php4/Zend -I/datan/data3/home/sniper/testsite/php4 -I/data/server/imap/include -I/data/server/openldap/include -I/datan/data3/home/sniper/testsite/php4/ext/xml/expat/xmltok -I/datan/data3/home/sniper/testsite/php4/ext/xml/expat/xmlparse -I/datan/data3/home/sniper/testsite/php4/TSRM -D_POSIX_PTHREAD_SEMANTICS -DEAPI -DXML_BYTE_ORDER=21 -g -c sockets.c "sockets.c", line 1033: warning: argument #3 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 337 argument : pointer to uint "sockets.c", line 1131: warning: argument #3 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 337 argument : pointer to uint "sockets.c", line 1494: warning: argument #3 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 337 argument : pointer to uint "sockets.c", line 1514: warning: argument #6 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 353 argument : pointer to uint "sockets.c", line 1553: warning: argument #6 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 353 argument : pointer to uint "sockets.c", line 1624: warning: argument #3 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 337 argument : pointer to uint "sockets.c", line 1727: warning: argument #3 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 337 argument : pointer to uint "sockets.c", line 1747: warning: assignment type mismatch: pointer to char "=" pointer to struct sockaddr_in {ushort sin_family, ushort sin_port, struct in_addr {..} sin_addr, array[8] of char sin_zero} "sockets.c", line 1753: undefined struct/union member: msg_control "sockets.c", line 1753: warning: improper pointer/integer combination: op "=" "sockets.c", line 1754: undefined struct/union member: msg_controllen "sockets.c", line 1756: undefined struct/union member: msg_control "sockets.c", line 1757: undefined struct/union member: msg_controllen "sockets.c", line 1760: undefined struct/union member: msg_flags "sockets.c", line 1766: undefined struct/union member: msg_control "sockets.c", line 1775: warning: improper pointer/integer combination: arg #3 "sockets.c", line 1779: undefined struct/union member: msg_controllen "sockets.c", line 1780: improper member use: msg_flags "sockets.c", line 1806: warning: assignment type mismatch: pointer to char "=" pointer to struct sockaddr_un {ushort sun_family, array[108] of char sun_path} "sockets.c", line 1812: undefined struct/union member: msg_control "sockets.c", line 1812: warning: improper pointer/integer combination: op "=" "sockets.c", line 1813: undefined struct/union member: msg_controllen "sockets.c", line 1815: undefined struct/union member: msg_control "sockets.c", line 1816: undefined struct/union member: msg_controllen "sockets.c", line 1819: undefined struct/union member: msg_flags "sockets.c", line 1825: undefined struct/union member: msg_control "sockets.c", line 1835: warning: improper pointer/integer combination: arg #3 "sockets.c", line 1837: undefined struct/union member: msg_controllen "sockets.c", line 1839: improper member use: msg_flags "sockets.c", line 1887: warning: assignment type mismatch: pointer to char "=" pointer to struct sockaddr {ushort sa_family, array[14] of char sa_data} "sockets.c", line 1911: warning: assignment type mismatch: pointer to char "=" pointer to struct sockaddr_un {ushort sun_family, array[108] of char sun_path} "sockets.c", line 1956: warning: argument #4 is incompatible with prototype: prototype: pointer to char : "/usr/include/sys/socket.h", line 338 argument : pointer to struct linger {int l_onoff, int l_linger} "sockets.c", line 1956: warning: argument #5 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 338 argument : pointer to uint "sockets.c", line 1973: warning: argument #4 is incompatible with prototype: prototype: pointer to char : "/usr/include/sys/socket.h", line 338 argument : pointer to int "sockets.c", line 1973: warning: argument #5 is incompatible with prototype: prototype: pointer to int : "/usr/include/sys/socket.h", line 338 argument : pointer to uint "sockets.c", line 2029: warning: argument #4 is incompatible with prototype: prototype: pointer to const char : "/usr/include/sys/socket.h", line 358 argument : pointer to struct linger {int l_onoff, int l_linger} "sockets.c", line 2036: warning: argument #4 is incompatible with prototype: prototype: pointer to const char : "/usr/include/sys/socket.h", line 358 argument : pointer to int cc: acomp failed for sockets.c make[1]: *** [sockets.lo] Error 1 make[1]: Leaving directory `/datan/data3/home/sniper/testsite/php4/ext/sockets' make: *** [all-recursive] Error 1 So I would say this is fixed yet.. =) --Jani On 24 Nov 2000 chrisv@php.net wrote: >ID: 7950 >Updated by: chrisv >Reported By: sbanks@lucent.com >Status: Closed >Bug Type: Compile Failure >Assigned To: >Comments: > >This bug has already been fixed in the current CVS -- please try that and reopen this bug report >if it still exists. > >Previous Comments: >--------------------------------------------------------------------------- > >[2000-11-23 10:40:49] sbanks@lucent.com >The socket module (socket.c) fails to compile >which has to do with the use of a varable called "sun" this is not a good idea!. I >changed all varables from sun to zun and I then get a error message which looks like:- > >"sockets.c:1618: structure has no member named `msg_control' > >This appears to be an attempt to use a XPG2 msghdr structure but for the life of me I can't >compile anything with the XOPEN flags set. > >--------------------------------------------------------------------------- > > >Full Bug description available at: http://bugs.php.net/?id=7950 > > >

« previous php.dev (#39102) next »