Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-09-2015, 11:42 AM   #1
LQ Newbie
Registered: Jun 2015
Posts: 5

Rep: Reputation: Disabled
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:

 ./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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cross compiling php-5.6.9 for arm MagicPhoton Linux - Newbie 0 06-09-2015 12:45 AM
Cross Compiling For ARM ExternalUse Linux - Software 1 06-27-2014 02:39 AM
[SOLVED] cross compiling for arm with buildroot brooko Slackware 3 01-29-2011 12:42 PM
Cross compiling for ARM Hachaso Programming 1 06-26-2009 07:07 AM
Cross compiling utftpd for arm SachinTCS Linux - Desktop 1 04-13-2007 03:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration