php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24267 glibc 2.1.92, gcc 2.9.5
Submitted: 2003-06-20 02:56 UTC Modified: 2003-06-26 13:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: robert at artnickel dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.2 OS: Linux 2.2.19
Private report: No CVE-ID: None
 [2003-06-20 02:56 UTC] robert at artnickel dot com
Description:
------------
In file included from /home/tech/dnloads/php-4.3.2/main/php.h:155,
                 from /home/tech/dnloads/php-4.3.2/ext/standard/basic_functions.c:22:
/usr/include/unistd.h:247: warning: redefinition of `socklen_t'
/home/tech/dnloads/php-4.3.2/main/php.h:139: warning: `socklen_t' previously declared here
In file included from /usr/include/netdb.h:31,
                 from /home/tech/dnloads/php-4.3.2/ext/standard/basic_functions.c:42:
/usr/include/sys/socket.h:51: parse error before `0'
make: *** [ext/standard/basic_functions.lo] Error 1
$ gcc -v
gcc version 2.95.2 19991024 (release)
$ rpm -qa | grep glibc
glibc-2.1.92-14
glibc-devel-2.1.92-14


Couldn't find anywhere where this problem was listed on the bug listing.  I went to #php on oftc and ircnet with no luck (it's kinda late 0840 UTC).

It's gagging on the following code segment on the SHUT_RD line:

/* The following constants should be used for the second parameter of
   `shutdown'.  */
enum
{
  SHUT_RD = 0,          /* No more receptions.  */
#define SHUT_RD         SHUT_RD
  SHUT_WR,              /* No more transmissions.  */
#define SHUT_WR         SHUT_WR
  SHUT_RDWR             /* No more receptions or transmissions.  */
#define SHUT_RDWR       SHUT_RDWR
};




Reproduce code:
---------------
N/A

Expected result:
----------------
N/A


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-26 13:00 UTC] sniper@php.net
There's something very wrong within your system,
propably misconfigured linux headers, or something alike.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC