Compile failure with PHP 4.0.4 and --enable-sockets on Solaris 2.8

From: Date: Fri, 22 Dec 2000 14:18:30 +0000
Subject: Compile failure with PHP 4.0.4 and --enable-sockets on Solaris 2.8
Groups: php.install 
Request: Send a blank email to php-install+get-1322@lists.php.net to get a copy of this message
Hi! I can't seem to get PHP 4.0.4 to compile on Solaris 2.8 with --enable-sockets, I tried both gcc and SUNWspro cc. The error message is: ---------------------------------------- "sockets.c", line 1728: undefined struct/union member: msg_control "sockets.c", line 1728: warning: improper pointer/integer combination: op "=" "sockets.c", line 1729: undefined struct/union member: msg_controllen "sockets.c", line 1731: undefined struct/union member: msg_control "sockets.c", line 1732: undefined struct/union member: msg_controllen "sockets.c", line 1735: undefined struct/union member: msg_flags "sockets.c", line 1741: undefined struct/union member: msg_control "sockets.c", line 1750: warning: improper pointer/integer combination: arg #3 "sockets.c", line 1754: undefined struct/union member: msg_controllen "sockets.c", line 1755: improper member use: msg_flags "sockets.c", line 1787: undefined struct/union member: msg_control "sockets.c", line 1787: warning: improper pointer/integer combination: op "=" "sockets.c", line 1788: undefined struct/union member: msg_controllen "sockets.c", line 1790: undefined struct/union member: msg_control "sockets.c", line 1791: undefined struct/union member: msg_controllen "sockets.c", line 1794: undefined struct/union member: msg_flags "sockets.c", line 1800: undefined struct/union member: msg_control "sockets.c", line 1810: warning: improper pointer/integer combination: arg #3 "sockets.c", line 1812: undefined struct/union member: msg_controllen "sockets.c", line 1814: improper member use: msg_flags cc: acomp failed for sockets.c ---------------------------------------- Anybody solved this? The problem is that msghdr is defined like this in /usr/include/sys/socket.h: ---------------------------------------- struct msghdr { void *msg_name; /* optional address */ socklen_t msg_namelen; /* size of address */ struct iovec *msg_iov; /* scatter/gather array */ int msg_iovlen; /* # elements in msg_iov */ #if defined(_XPG4_2) || defined(_KERNEL) void *msg_control; /* ancillary data */ socklen_t msg_controllen; /* ancillary data buffer len */ int msg_flags; /* flags on received message */ #else caddr_t msg_accrights; /* access rights sent/received */ int msg_accrightslen; #endif /* defined(_XPG4_2) || defined(_KERNEL) */ }; ---------------------------------------- But making a '#define _XPG4_2' doesn't help... Thankful for any and all help. Sincerely, /Viktor... --| Viktor Fougstedt, system administrator at dtek.chalmers.se |-- --| http://www.dtek.chalmers.se/~viktor/ |-- --| ...soon we'll be sliding down the razor blade of life. /Tom Lehrer |--

« previous php.install (#1322) next »