php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6756 sockets.c will not compile on Solaris for several reasons
Submitted: 2000-09-14 08:13 UTC Modified: 2000-11-23 22:40 UTC
From: Wolfram dot Schmidt at iao dot fhg dot de Assigned: chrisv (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.0.2 OS: Solaris 2.6
Private report: No CVE-ID: None
 [2000-09-14 08:13 UTC] Wolfram dot Schmidt at iao dot fhg dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-22 03:58 UTC] 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-11-23 22:40 UTC] chrisv@php.net
I believe this bug is corrected in the current CVS. No reply, so closing. Please reopen this report if the problem persists.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 05:00:01 2026 UTC