ID: 31122
User updated by: hans-gunther dot borrmann at rz dot uni-freiburg dot
de
Reported By: hans-gunther dot borrmann at rz dot uni-freiburg dot
de
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: AIX 5.1
PHP Version: 4.3.10
New Comment:
Unfortunately not. I'm a system administrator and not a C
programmer or developper. I used a quick hack which only
works for me. I believe that configure should do the job
of defining the architecture. I grepped over the sources
and didn't find any place where powerpc or ppc or even
sparc gets defined.
Previous Comments:
------------------------------------------------------------------------
[2004-12-17 12:58:43] [EMAIL PROTECTED]
Do you have a patch?
------------------------------------------------------------------------
[2004-12-17 12:51:27] hans-gunther dot borrmann at rz dot uni-freiburg
dot de
I have tried the CVS but the problem remains. The reason
for the compilation to fail seems to be that configure
says "checking host system type... powerpc-ibm-aix5.1.0.0"
but neither powerpc nor ppc get defined. Therefore
IEEE_BIG_ENDIAN does not get defined at line 105 of
zend_strtod.c. Also the include of sys/types.h seems wrong
to me in the case of AIX. I have unconditionally included
sys/param.h and the file compiles. param.h includes
types.h and other files which also define the BYTE_ORDER.
Hope that Helps
------------------------------------------------------------------------
[2004-12-16 14:26:22] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Please try a recent snapshot, or provide me with access to the machine
so that I can debug it.
------------------------------------------------------------------------
[2004-12-16 13:53:40] hans-gunther dot borrmann at rz dot uni-freiburg
dot de
Description:
------------
gcc -IZend/ -I/u/b/borrmann/sw/php/4.3.10/php-4.3.10/
Zend/ -DPHP_ATOM_INC -I/u/b/borrmann/sw/php/4.3.10/
php-4.3.10/include -I/u/b/borrmann/sw/php/4.3.10/
php-4.3.10/main -I/u/b/borrmann/sw/php/4.3.10/php-4.3.10
-I/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend -I/usr/
include/libxml2 -I/client/include -I/opt/freeware/include
-I/sw/@sys/oracle-8.1.6/product/8.1.6/rdbms/public -I/sw/
@sys/oracle-8.1.6/product/8.1.6/rdbms/demo -I/sw/@sys/
oracle-8.1.6/product/8.1.6/network/public -I/u/b/
borrmann/sw/php/4.3.10/php-4.3.10/TSRM -g -O2 -c /u/b/
borrmann/sw/php/4.3.10/php-4.3.10/Zend/zend_strtod.c -o
Zend/zend_strtod.o && echo > Zend/zend_strtod.lo
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:233: error: parse error before "one"
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:234: error: parse error before "IBM"
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:240: error: parse error before '}' token
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:240: warning: data definition has no type or
storage class
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/zend_strtod.c:
In function `ulp':
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:928: error: parse error before "x"
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:930: error: parse error before "a"
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:932: error: `x' undeclared (first use in
this function)
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:932: error: (Each undeclared identifier is
reported only once
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:932: error: for each function it appears
in.)
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:940: error: `a' undeclared (first use in
this function)
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/zend_strtod.c:
In function `b2d':
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:970: error: parse error before "d"
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:988: error: `d' undeclared (first use in
this function)
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/zend_strtod.c:
In function `d2b':
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:1041: error: parse error before "d"
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:1046: error: `d' undeclared (first use in
this function)
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/zend_strtod.c:
In function `ratio':
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:1172: error: parse error before "da"
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:1175: error: `da' undeclared (first use in
this function)
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:1176: error: `db' undeclared (first use in
this function)
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/zend_strtod.c:
In function `zend_strtod':
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:1243: error: parse error before "rv"
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:1252: error: `rv' undeclared (first use in
this function)
/u/b/borrmann/sw/php/4.3.10/php-4.3.10/Zend/
zend_strtod.c:1485: error: `rv0' undeclared (first use in
this function)
make: *** [Zend/zend_strtod.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31122&edit=1