ID: 31129
Comment by: pkwarren at gmail dot com
Reported By: long+phpbugs at kestrel dot cc dot ku dot edu
Status: Assigned
Bug Type: Compile Failure
Operating System: Tru64 4.0F
PHP Version: 4.3.10
Assigned To: derick
New Comment:
I think the tests in that file should be for __sparc, not __sparc__.
GCC defines both, but the Sun compiler only defines __sparc. Maybe the
best solution for other platforms would be to use the WORDS_BIGENDIAN
macro defined in php_config.h.
Previous Comments:
------------------------------------------------------------------------
[2004-12-16 22:57:57] [EMAIL PROTECTED]
@pkwarren at gmail dot com:
please try the latest snapshot first, slowaris should already work
again!
------------------------------------------------------------------------
[2004-12-16 22:05:17] pkwarren at gmail dot com
This also happens on Solaris 9 with the Sun compiler:
cc: Sun C 5.5 Patch 112760-15 2004/11/10
/bin/sh /export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/libtool
--silent --preserve-dup-deps --mode=compile cc -IZend/
-I/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/
-DPHP_ATOM_INC
-I/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/include
-I/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/main
-I/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10
-I/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend
-I/usr/local/include -I/usr/local/include/mysql -I/usr/local/include
-D_POSIX_PTHREAD_SEMANTICS
-I/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/TSRM -fast
-xlibmil -xtarget=ultra -I/usr/local/include -L/usr/local/lib
-prefer-pic -c
/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c
-o Zend/zend_strtod.lo
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 233: warning: old-style declaration or incorrect type for: Exactly
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 233: syntax error before or at: one
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 233: warning: old-style declaration or incorrect type for: one
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 233: warning: old-style declaration or incorrect type for: of
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 233: warning: old-style declaration or incorrect type for:
IEEE_LITTLE_ENDIAN
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 233: warning: old-style declaration or incorrect type for:
IEEE_BIG_ENDIAN
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 233: warning: old-style declaration or incorrect type for: VAX
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 234: warning: old-style declaration or incorrect type for: or
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 234: syntax error before or at: IBM
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 234: warning: old-style declaration or incorrect type for: IBM
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 234: warning: old-style declaration or incorrect type for: should
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 234: warning: old-style declaration or incorrect type for: be
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 234: warning: old-style declaration or incorrect type for: defined
"/export/home/pkw/devel/pkgs/build/php/work/php-4.3.10/Zend/zend_strtod.c",
line 239: syntax error before or at: u_int32_t
.... (a lot more errors follow)
------------------------------------------------------------------------
[2004-12-16 18:58:15] long+phpbugs at kestrel dot cc dot ku dot edu
Ok, I lied. It looks like it shouldn't be a problem to get you an
account on the Tru64 box. Details to follow.
------------------------------------------------------------------------
[2004-12-16 18:30:59] long+phpbugs at kestrel dot cc dot ku dot edu
There is a good chance my sys admins won't allow me to give you an
account on the Tru64 system. Bjorn: do you think it is more likely you
could get derick an account on the AIX system?
------------------------------------------------------------------------
[2004-12-16 18:28:22] Bjorn dot Wiberg at its dot uu dot se
This also happens on IBM AIX 5.2.0.0 ML4 with PHP 5.0.3:
/../
/bin/sh /usr/local/src/php-5.0.3/libtool --silent --preserve-dup-deps
--mode=compile /usr/local/bin/gcc -IZend/
-I/usr/local/src/php-5.0.3/Zend/ -DPHP_ATOM_INC
-I/usr/local/src/php-5.0.3/include -I/usr/local/src/php-5.0.3/main
-I/usr/local/src/php-5.0.3 -I/usr/local/src/php-5.0.3/Zend
-I/opt/freeware/include/libxml2 -I/opt/freeware/include
-I/usr/local/include -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/local/src/php-5.0.3/ext/mbstring/oniguruma
-I/usr/local/src/php-5.0.3/ext/mbstring/libmbfl
-I/usr/local/src/php-5.0.3/ext/mbstring/libmbfl/mbfl
-I/usr/local/mnogosearch/include -I/usr/local/mysql/include/mysql
-I/usr/local/include -I/usr/local/src/php-5.0.3/TSRM -g -O2
-prefer-pic -c /usr/local/src/php-5.0.3/Zend/zend_strtod.c -o
Zend/zend_strtod.lo
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:233: error: parse error
before "one"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:234: error: parse error
before "IBM"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:240: error: parse error
before '}' token
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:240: warning: data
definition has no type or storage class
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `ulp':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:928: error: parse error
before "x"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:930: error: parse error
before "a"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:932: error: `x' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:932: error: (Each
undeclared identifier is reported only once
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:932: error: for each
function it appears in.)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:940: error: `a' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `b2d':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:970: error: parse error
before "d"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:988: error: `d' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `d2b':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1041: error: parse error
before "d"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1046: error: `d' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `ratio':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1172: error: parse error
before "da"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1175: error: `da'
undeclared (first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1176: error: `db'
undeclared (first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function
`zend_strtod':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1243: error: parse error
before "rv"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1252: error: `rv'
undeclared (first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1485: error: `rv0'
undeclared (first use in this function)
make: *** [Zend/zend_strtod.lo] Error 1
[EMAIL PROTECTED]:/usr/local/src/php-5.0.3#
------------------------------------------------------------------------
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/31129
--
Edit this bug report at http://bugs.php.net/?id=31129&edit=1