php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18046 sys/socket.h not being included - causing make to fail
Submitted: 2002-06-28 10:53 UTC Modified: 2002-10-07 08:45 UTC
From: jharlap at bic dot mni dot mcgill dot ca Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: IRIX 6.5
Private report: No CVE-ID: None
 [2002-06-28 10:53 UTC] jharlap at bic dot mni dot mcgill dot ca
Compiling PHP 4.2.1 on an Irix64 6.5 machine fails.
In network.c, #if HAVE_SYS_SOCKET_H (line 32) evaluates to false, thus not including sys/socket.h.
Seems to be a problem with the ./configure script, as one line in the output from ./configure reads "checking for sys/socket.h... no".

I added #include <sys/socket.h> to main/php.h as a workaround and it fixed the problem for me.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-28 11:06 UTC] sniper@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
 [2002-10-07 08:01 UTC] jharlap at bic dot mni dot mcgill dot ca
This problem has reoccurred in 4.2.3.
 [2002-10-07 08:45 UTC] kalowsky@php.net
Yeah I don't think that 4.2.3 got that patch backported to it.  Do make sure that the current snapshots of 4.3.0 don't contain it though.

Sorry about this.  A lot of patches weren't backported by the authors, and I missed a bunch... but did get a lot :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 14:01:27 2024 UTC