[PHP-DEV] PHP 4.0 Bug #6756: sockets.c will not compile on Solaris for several reasons From: Wolfram.Schmidt <email protected>
Date: 09/14/00

From: Wolfram.Schmidt <email protected>
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.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>