LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cross compiling php-5.2.9 for arm (https://www.linuxquestions.org/questions/linux-newbie-8/cross-compiling-php-5-2-9-for-arm-4175544910/)

MagicPhoton 06-09-2015 10:42 AM

cross compiling php-5.2.9 for arm
 
Dear all,

I am trying to cross compile php-5.2.9 for ARM, but after solving some errors I arrived to a point where I get an error in the make process that I do not know how to solve it.

For configure the compilation I use:

Code:

./configure --prefix=/home/usr/Xilinx/Software_arm/mysql_php_apache/php-5.2.9 --host=arm-xilinx-linux-gnueabi --enable-pdo --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql --with-zlib=/home/usr/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin --without-iconv

The output is:

p_apache_v2/php-5.2.9-arm/Zend -g -O2 -c /home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/dom/element.c -o ext/dom/element.lo
/bin/sh /home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/dom/ -DPHP_ATOM_INC -I/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/include -I/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/main -I/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm -I/usr/include/libxml2 -I/home/usr/CodeSourcery_v2/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin/include -I/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/date/lib -I/usr/local/mysql/include/mysql -I/usr/include/mysql -I/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/TSRM -I/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/Zend -g -O2 -c /home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/dom/node.c -o ext/dom/node.lo
/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/dom/node.c: In function 'dom_canonicalization':
/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/dom/node.c:1950:21: error: dereferencing pointer to incomplete type
ret = buf->buffer->use;
^
In file included from /home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/main/php.h:38:0,
from /home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/dom/node.c:26:
/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/dom/node.c:1952:40: error: dereferencing pointer to incomplete type
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/Zend/zend_API.h:472:14: note: in definition of macro 'ZVAL_STRINGL'
char *__s=(s); int __l=l; \
^
/home/usr/Xilinx/Software_arm/mysql_php_apache_v2/php-5.2.9-arm/ext/dom/node.c:1952:5: note: in expansion of macro 'RETVAL_STRINGL'
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
make: *** [ext/dom/node.lo] Error 1


Could anyone please help me? Any suggestion suggestions?
Thanks in advance and best regards.


All times are GMT -5. The time now is 10:26 PM.