ID: 33175 User updated by: esteban at correo dot unam dot mx Reported By: esteban at correo dot unam dot mx -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: linux PHP Version: 4CVS-2005-05-28 (stable) New Comment:
I'm compiling under i686-pc-linux (fedora core 1) and I want to run in AEL (Arcom Embebed Linux) with arm linux and kernel 2.4.26 plataform. I'm using toolchain of arcom for cross compiling and qemu like a processor emulator in my build pc, with the options: >--target=arm-linux \ >--host=arm-linux \ >--build=i686-pc-linux Part of configure is: loading cache ./config.cache checking host system type... i686-pc-linux-gnu checking for gcc... (cached) arm-linux-gcc checking whether the C compiler (arm-linux-gcc -I/opt/arcom/arm-linux/include ) works... yes checking whether the C compiler (arm-linux-gcc -I/opt/arcom/arm-linux/include ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether arm-linux-gcc accepts -g... (cached) yes checking whether arm-linux-gcc and cc understand -c and -o together... (cached) yes checking how to run the C preprocessor... (cached) arm-linux-gcc -E checking for AIX... no checking if compiler supports -R... (cached) no checking if compiler supports -Wl,-rpath,... (cached) yes checking for re2c... (cached) exit 0; checking whether ln -s works... (cached) yes checking for mawk... (cached) gawk checking for bison... (cached) bison -y checking bison version... 1.875 (ok) checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes checking lex output file root... (cached) lex.yy checking whether yytext is a pointer... (cached) yes checking for working const... (cached) yes checking flex version... 2.5.4 (ok) checking whether byte ordering is bigendian... (cached) no checking whether to force non-PIC code in shared modules... yes checking for pthreads_cflags... (cached) checking for pthreads_lib... (cached) but it's happening what I already described you. Do you really think is just a configuration problem? :$ What about '--without-pear' option? If I change zend_strtod.c file how I already described you and use the option --enable-sockes for configure, the php info page and an simple program with sockets works but i donīt know the possible problems if I work with this environment And thanks a lot for your answers Previous Comments: ------------------------------------------------------------------------ [2005-05-31 08:43:51] [EMAIL PROTECTED] Under what OS/platform are you compiling ? And _for_ what OS/platform? I think you've simply using the wrong configure options, see ./configure --help and options --target and --build (--host is something else) ------------------------------------------------------------------------ [2005-05-31 01:45:26] esteban at correo dot unam dot mx HI !! For this test I used php-4.3.11 I edited the file zend_strtod.c changing the line: #if defined(IEEE_LITTLE_ENDIAN) + defined(IEEE_BIG_ENDIAN) + defined(VAX) + defined(IBM) != 1 for #if defined(IEEE_BIG_ENDIAN) + defined(VAX)\ + defined(IBM) != 1 when I compiled it finished Ok then I ran the command "make install" but this ocurred Installing PEAR environment: /flashcard/usr/local/php-arm/lib/php/ qemu: uncaught target signal 11 (Segmentation fault) - exiting make[1]: *** [install-pear-installer] Error 245 make: *** [install-pear] Error 2 Next I configured php with this line: >CC="arm-linux-gcc" \ >CXX="arm-linux-g++" \ >CFLAGS="-I/opt/arcom/arm-linux/include" \ >LIBS="-L/opt/arcom/arm-linux/lib" \ >RANLIB="arm-linux-ranlib" >./configure '--prefix=/flashcard/usr/local/php-arm \ >--with-pgsql=/flashcard/usr/local/pg7.4.8-arm >--with-apxs=/flashcard/usr/local/apache-arm/bin/apxs \ >--without-pear --without-mysql --host=arm-linux \ >--build=i386-linux' SEE the '--without-pear' option after I executed "make" and "make install" commands this compile and run fine. NOW my question is: This option how affects the performance of php ? And I want to run a web application with sockets and sessions, is this posible with this option ? Finally I want to know if my report is considered like a bug or not. THANKS :D ------------------------------------------------------------------------ [2005-05-28 23:52:06] esteban at correo dot unam dot mx Description: ------------ Hi I try cross compiling php4 to run in a arm linux my configure line is: >CC="arm-linux-gcc" \ >CXX="arm-linux-g++" \ >RANLIB="arm-linux-ranlib" \ >LIBS="-L/opt/arcom/arm-linux/lib" \ >CFLAGS="-I/opt/arcom/arm-linux/include" \ >./configure \ >--prefix=/flashcard/usr/local/php-arm \ >--with-apxs=/www/bin/apxs \ >--host=arm-linux \ >--build=i386-linux Reproduce code: --------------- Here's where the compile fails: /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:240: error: parse error before "one" /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:241: error: parse error before "IBM" /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:247: error: parse error before '}' token /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:247: warning: data definition has no type or storage class /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `ulp': /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:935: error: parse error before "x" /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:937: error: parse error before "a" /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:939: error: `x' undeclared (first use in this function) /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:939: error: (Each undeclared identifier is reported only once /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:939: error: for each function it appears in.) /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:947: error: `a' undeclared (first use in this function) /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `b2d': /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:977: error: parse error before "d" /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:995: error: `d' undeclared (first use in this function) /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `d2b': /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1048: error: parse error before "d" /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1053: error: `d' undeclared (first use in this function) /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `ratio': /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1179: error: parse error before "da" /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1182: error: `da' undeclared (first use in this function) /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1183: error: `db' undeclared (first use in this function) /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c: In function `zend_strtod': /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1250: error: parse error before "rv" /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1259: error: `rv' undeclared (first use in this function) /root/esteban/php4-STABLE-200505282035/Zend/zend_strtod.c:1492: error: `rv0' undeclared (first use in this function) make: *** [Zend/zend_strtod.lo] Error 1 Expected result: ---------------- Compile OK Actual result: -------------- Compile fails ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33175&edit=1