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

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)



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

[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

Reply via email to