ID:               33175
 Updated by:       [EMAIL PROTECTED]
 Reported By:      esteban at correo dot unam dot mx
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: linux
 PHP Version:      4CVS-2005-05-28 (stable)
 New Comment:

We really don't support cross compiling. You really need to know what
you're doing yourself and know how to do it.
In this case: You need a compiler that sets __arm__ 



Previous Comments:
------------------------------------------------------------------------

[2005-06-02 19:29:04] esteban at correo dot unam dot mx

If I try with php5-200506021430, I need the correct vesion of the
libxml2 if I want to configure with the pear and xml options but if I
disable this options and compile I have the same error.

------------------------------------------------------------------------

[2005-06-02 00:39:13] [EMAIL PROTECTED]

DO NOT use --host! And do not paste any more long configure outputs
here if not asked for..

Try again, WITHOUT it and this time using FRESH sources.
(get the latest PHP 5 snapshot!)




------------------------------------------------------------------------

[2005-05-31 17:12:00] esteban at correo dot unam dot mx

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

------------------------------------------------------------------------

[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

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33175

-- 
Edit this bug report at http://bugs.php.net/?id=33175&edit=1

Reply via email to