Re: php-5.2.12, php-5.3.0 & php-5.3.1 fail to build on latest Ubuntu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I am on Ubuntu Karmic with gcc-4.4.1 as are a number of other PHP devs,
and it builds just fine.

David Favor wrote:
> The same problem appears with all stable versions of php
> and Ubuntu Karmic with gcc-4.4.1 which produce:
> 
> 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.
> 


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux