From:             robert at artnickel dot com
Operating system: Linux 2.2.19
PHP version:      4.3.2
PHP Bug Type:     Compile Failure
Bug description:  glibc 2.1.92, gcc 2.9.5

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


-- 
Edit bug report at http://bugs.php.net/?id=24267&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24267&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24267&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24267&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24267&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24267&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24267&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24267&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24267&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24267&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24267&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24267&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24267&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24267&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24267&r=gnused

Reply via email to