Discussion:
[PHP-INSTALL] cross compile php problems
andres felipe tamayo cortes
2010-06-16 21:59:14 UTC
Permalink
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
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
andres felipe tamayo cortes
2010-06-16 22:56:08 UTC
Permalink
hi i change some lines:

Code:

export CROSS_COMPILE=arm-none-linux-gnueabi-
export CC=${CROSS_COMPILE}"gcc"
export CXX=${CROSS_COMPILE}"g++"
./configure --host=arm-linux --target=arm --prefix=/opt/php \
--disable-short-tags \
--without-mysql --without-pear --disable-all --disable-short-tags \
--enable-libxml \
--with-libxml-dir=/opt/libxml

but now it is throw me this mistake:

/home/felipe/Escritorio/php-5.3.1/main/php_ini.c:349: undefined reference
to `php_load_extension'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1

what am i doing wrong??

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

Continue reading on narkive:
Loading...