PHP 4.0 Bug #6756: sockets.c will not compile on Solaris for several reasons
| From: | Wolfram dot Schmidt at iao dot fhg dot de | Date: | Thu, 14 Sep 2000 12:13:27 +0000 |
| Subject: | PHP 4.0 Bug #6756: sockets.c will not compile on Solaris for several reasons | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33282@lists.php.net to get a copy of this message | ||
From: Wolfram.Schmidt@iao.fhg.de
Operating system: Solaris 2.6
PHP version: 4.0.2
PHP Bug Type: Compile Failure
Bug description: sockets.c will not compile on Solaris for several reasons
socket.c fails to compile in line 849
reason:
struct sockaddr_un *sun;
sun is predefined on SunOS-es.
struct sockaddr_un *1;
will not compile and won't make sense if it would.
Just checked that this is not in CVS yet :-)
Ummm... Just recognized that "sun" is used in several functions in socket.c.
After having exchanged replaced "sun" with "s_un" the following error occures:
"sockets.c", line 1580: undefined struct/union member: msg_control
To get the version of of msghdr in <sys/socket.h> which contains msg_control and some other
undefined members _XPG4_2 has to be defined which must not be defined directly bit can be obtained
via defining _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED=1. See <sys/feature_tests.h>
defining the two constants in CPPFLAGS and rerunnign configure gives me:
...
checking for NSAPI include files... Netscape-Enterprise/3.x style
configure: error: ZTS currently requires working POSIX threads. Your system does not support this.
Now I'm lost.