Error while cross-compiling PHP 5.2.1

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



Greets,

I'm a new subscriber, so I hope that I've targeted the correct list for this issue.

I'm attempting to cross-compile PHP on x86 for 386. I'm using uClibc and gcc4.

Here's the error I'm getting:

[root /mnt/vj/sources/php-5.2.1]# make
/bin/sh /mnt/vj/sources/php-5.2.1/libtool --silent --preserve-dup-deps --mode=compile i486-pc-linux-uclibc-gcc -Iext/reflection/ -I/mnt/vj/sources/php-5.2.1/ext/reflection/ -DPHP_ATOM_INC -I/mnt/vj/sources/php-5.2.1/include -I/mnt/vj/sources/php-5.2.1/main -I/mnt/vj/sources/php-5.2.1 -I/mnt/vj/sources/php-5.2.1/ext/date/lib -I/mnt/vj/sources/php-5.2.1/TSRM -I/mnt/vj/sources/php-5.2.1/Zend -g -O2 -c /mnt/vj/sources/php-5.2.1/ext/reflection/php_reflection.c -o ext/reflection/php_reflection.lo
In file included from /mnt/vj/sources/php-5.2.1/Zend/zend_modules.h:26,
                 from /mnt/vj/sources/php-5.2.1/Zend/zend_API.h:26,
                 from /mnt/vj/sources/php-5.2.1/main/php.h:38,
from /mnt/vj/sources/php-5.2.1/ext/reflection/php_reflection.c:29: /mnt/vj/sources/php-5.2.1/Zend/zend_compile.h:265: warning: declaration does not declare anything /mnt/vj/sources/php-5.2.1/ext/reflection/php_reflection.c: In function 'zim_reflection_function_isDisabled': /mnt/vj/sources/php-5.2.1/ext/reflection/php_reflection.c:1461: error: expected identifier before '__attribute__'
make: *** [ext/reflection/php_reflection.lo] Error 1
[root /mnt/vj/sources/php-5.2.1]#

My configure command:
./configure \
--prefix=/mnt/vj/usr --sysconfdir=/mnt/vj/etc \
--disable-all \
--with-flatfile \
--with-config-file-path=/etc/php \

I'll need to later add the necessary things to run nanoweb, but I want to try to get a base php install working first.

Any ideas what may be causing this? Something tells me it might have something to do with uClibc, but this post https://www.geexbox.org/sympa/arc/devel/2006-11/msg00031.html seems to think otherwise. I've also brought this problem to the attention of clfs-support, but couldn't resolve it (http://www.mail-archive.com/clfs-support@xxxxxxxxxxxxxxxxxxx/msg00643.html).

Thanks for your help.

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