cross compile php problems

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



hi im tring to cross compile php with this command lines:

export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC=${CROSS_COMPILE}"gcc"
export CXX=${CROSS_COMPILE}"g++"
./configure --host=arm-linux --target=arm --with-libxml-dir=/opt/libxml --prefix=/opt/php

but  this its the mistake:

cc1: warning: include location "/usr/include" is unsafe for cross-compilation
/home/felipe/Escritorio/php-5.3.1/ext/standard/basic_functions.c: In function 'zif_getservbyport':
/home/felipe/Escritorio/php-5.3.1/ext/standard/basic_functions.c:5589: error: invalid 'asm': invalid operand for code 'w'
make: *** [ext/standard/basic_functions.lo] Error 1

what am i doing wrong??


Explore the seven wonders of the world Learn more!

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