#50538 [NEW]: php_date.c compliation fails

From: Date: Sun, 20 Dec 2009 15:28:51 +0000
Subject: #50538 [NEW]: php_date.c compliation fails
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3521@lists.php.net to get a copy of this message
From: david at davidfavor dot com Operating system: Ubuntu 9.10 PHP version: 5.3.1 PHP Bug Type: Doc Build problem Bug description: php_date.c compliation fails Description: ------------ The same problem appears with all stable versions of php (5.2.12, 5.3.0, 5.3.1) and Ubuntu Karmic with gcc-4.4.1 where php_date.c compilation fails. Reproduce code: --------------- root@hive1:# ./configure root@hive1:# make /bin/sh /home/dfavor/work/php-5.3.1/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/home/dfavor/work/php-5.3.1/ext/date/ -DPHP_ATOM_INC -I/home/dfavor/work/php-5.3.1/include -I/home/dfavor/work/php-5.3.1/main -I/home/dfavor/work/php-5.3.1 -I/home/dfavor/work/php-5.3.1/ext/date/lib -I/home/dfavor/work/php-5.3.1/ext/ereg/regex -I/usr/include/libxml2 -I/home/dfavor/work/php-5.3.1/ext/sqlite3/libsqlite -I/home/dfavor/work/php-5.3.1/TSRM -I/home/dfavor/work/php-5.3.1/Zend -I/usr/include -g -O2 -fvisibility=hidden -c /home/dfavor/work/php-5.3.1/ext/date/php_date.c -o ext/date/php_date.lo In file included from /usr/include/stdlib.h:33, from /home/dfavor/work/php-5.3.1/include/../main/php_config.h:2845, from /home/dfavor/work/php-5.3.1/Zend/zend_config.h:1, from /home/dfavor/work/php-5.3.1/Zend/zend.h:51, from /home/dfavor/work/php-5.3.1/main/php.h:34, from /home/dfavor/work/php-5.3.1/ext/date/php_date.c:21: /usr/lib/gcc/i486-linux-gnu/4.4.1/include/stddef.h:211: error: duplicate 'unsigned' In file included from /usr/include/stdlib.h:320, from /home/dfavor/work/php-5.3.1/include/../main/php_config.h:2845, from /home/dfavor/work/php-5.3.1/Zend/zend_config.h:1, from /home/dfavor/work/php-5.3.1/Zend/zend.h:51, from /home/dfavor/work/php-5.3.1/main/php.h:34, from /home/dfavor/work/php-5.3.1/ext/date/php_date.c:21: /usr/include/sys/types.h:151: error: duplicate 'unsigned' /usr/include/sys/types.h:153: error: duplicate 'unsigned' /usr/include/sys/types.h:153: error: two or more data types in declaration specifiers make: *** [ext/date/php_date.lo] Error 1 root@hive1:# uname -a Linux hive1.coolsurf.com 2.6.31-10-generic #35-Ubuntu SMP Tue Sep 22 17:33:42 UTC 2009 i686 GNU/Linux root@hive1:# gcc --version gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1 root@hive1:# libtool --version ltmain.sh (GNU libtool) 2.2.6 There are many ways of hacking this to work and I'd prefer someone in the know tell me the correct way to fix this. Thanks. -- Edit bug report at http://bugs.php.net/?id=50538&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50538&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50538&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50538&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50538&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50538&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50538&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50538&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50538&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50538&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50538&r=support Expected behavior: http://bugs.php.net/fix.php?id=50538&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50538&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50538&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50538&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50538&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50538&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50538&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50538&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50538&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50538&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50538&r=mysqlcfg

« previous php.doc.bugs (#3521) next »