PHP 4.0 Bug #6756 Updated: sockets.c will not compile on Solaris for several reasons

From: Date: Fri, 24 Nov 2000 03:40:26 +0000
Subject: PHP 4.0 Bug #6756 Updated: sockets.c will not compile on Solaris for several reasons
Groups: php.dev 
Request: Send a blank email to php-dev+get-39066@lists.php.net to get a copy of this message
ID: 6756 Updated by: chrisv Reported By: Wolfram.Schmidt@iao.fhg.de Status: Closed Bug Type: Compile Failure Assigned To: chrisv Comments: I believe this bug is corrected in the current CVS. No reply, so closing. Please reopen this report if the problem persists. Previous Comments: --------------------------------------------------------------------------- [2000-10-22 03:58:44] chrisv@php.net It should compile now, I made the appropriate changes as were noted in your bug report to correct those. If this doesn't correct the problem, please reply. Chris --------------------------------------------------------------------------- [2000-09-14 08:13:27] Wolfram.Schmidt@iao.fhg.de 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. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6756

« previous php.dev (#39066) next »