ID: 31249
Updated by: sniper@php.net
Reported By: long+phpbugs at kestrel dot cc dot ku dot edu
-Status: Assigned
+Status: Feedback
Bug Type: Compile Failure
Operating System: Tru64 4.0F
PHP Version: 4CVS-2004-12-22 (stable)
Assigned To: sniper
New Comment:
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
And it would help a lot if I could get an account on this machine and
test stuff myself..
Previous Comments:
------------------------------------------------------------------------
[2005-01-24 18:12:13] long+phpbugs at kestrel dot cc dot ku dot edu
With php4-STABLE-200501241530 I now get:
cc -IZend/ -I/homeb/long/src/php4-STABLE-200501241530/Zend/
-DPHP_ATOM_INC -I/homeb/long/src/php4-STABLE-200501241530/include
-I/homeb/long/src/php4-STABLE-200501241530/main
-I/homeb/long/src/php4-STABLE-200501241530
-I/homeb/long/src/php4-STABLE-200501241530/Zend
-I/homeb/long/src/php4-STABLE-200501241530/ext/xml/expat
-I/homeb/long/src/php4-STABLE-200501241530/TSRM -g -c
/homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c -o
Zend/zend_strtod.o && echo > Zend/zend_strtod.lo
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 492: In this declaration, "int32_t" must specify a type.
(badparsedecl)
Long x, y;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 851: In this declaration, "int32_t" must specify a type.
(badparsedecl)
Long borrow, y; /* We need signed shifts here. */
--------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 854: In this declaration, "int32_t" must specify a type.
(badparsedecl)
Long z;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 932: Missing ";". (nosemi)
register Long L;
----------------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 1247: In this declaration, "int32_t" must specify a type.
(badparsedecl)
Long L;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 412: In this statement, "int32_t" is not declared. (undeclared)
rv = (Bigint *)MALLOC(sizeof(Bigint) +
(x-1)*sizeof(Long));
--------------------------------------------------------------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 472: In this statement, "int32_t" is not declared. (undeclared)
Bcopy(b1, b);
------------------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 494: In this statement, "x" is not declared. (undeclared)
x = (nd + 8) / 9;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 495: In this statement, "y" is not declared. (undeclared)
for(k = 0, y = 1; x > y; y <<= 1, k++) ;
-------------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 881: In this statement, "borrow" is not declared. (undeclared)
borrow = 0;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 884: In this statement, "y" is not declared. (undeclared)
y = (*xa & 0xffff) - (*xb & 0xffff) + borrow;
----------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 887: In this statement, "z" is not declared. (undeclared)
z = (*xa++ >> 16) - (*xb++ >> 16) + borrow;
----------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 894: In this statement, "y" is not declared. (undeclared)
y = (*xa & 0xffff) + borrow;
----------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 897: In this statement, "z" is not declared. (undeclared)
z = (*xa++ >> 16) + borrow;
----------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 936: In this statement, "L" is not declared. (undeclared)
L = (word0(x) & Exp_mask) - (P-1)*Exp_msk1;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 1337: In this statement, "L" is not declared. (undeclared)
L = c - '0';
--------------------------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 1518: In this statement, "int32_t" is not declared. (undeclared)
Bcopy(bd, bd0);
----------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 1616: In this statement, "L" is not declared. (undeclared)
L = (word0(rv) & Exp_mask) - Exp_msk1;
--------------------------------^
cc: Error: /homeb/long/src/php4-STABLE-200501241530/Zend/zend_strtod.c,
line 1749: In this statement, "L" is not declared. (undeclared)
L = aadj;
------------------------^
*** Exit 1
Stop.
------------------------------------------------------------------------
[2004-12-22 16:36:45] long+phpbugs at kestrel dot cc dot ku dot edu
Description:
------------
When I try building php4-STABLE-200412221330 it ends up failing with:
cc -IZend/ -I/homeb/long/src/php4-STABLE-200412221330/Zend/
-DPHP_ATOM_INC -I/homeb/long/src/php4-STABLE-200412221330/include
-I/homeb/long/src/php4-STABLE-200412221330/main
-I/homeb/long/src/php4-STABLE-200412221330
-I/homeb/long/src/php4-STABLE-200412221330/Zend
-I/homeb/long/src/php4-STABLE-200412221330/ext/xml/expat
-I/homeb/long/src/php4-STABLE-200412221330/TSRM -g -c
/homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c -o
Zend/zend_strtod.o && echo > Zend/zend_strtod.lo
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 234: Missing type specifier or type qualifier. (missingtype)
ULong ul[2];
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 381: Missing type specifier or type qualifier. (missingtype)
ULong x[1];
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 440: Missing ";". (nosemi)
ULong xi, z;
--------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 479: Ill-formed parameter type list. (parmtyplist)
(CONST char *s, int nd0, int nd, ULong y9)
-----------------------------------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 484: In this declaration, "int32_t" must specify a type.
(badparsedecl)
Long x, y;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 517: Error parsing parameter list. Found "x" when expecting one of:
",", ")". (notexpecting)
(register ULong x)
------------------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 551: Error parsing parameter list. Found "*" when expecting one of:
",", ")". (notexpecting)
(ULong *y)
---------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 555: Missing ";". (nosemi)
register ULong x = *y;
-----------------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 620: In this declaration, "uint32_t" must specify a type.
(badparsedecl)
ULong carry, y, z;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 623: Missing ";". (nosemi)
ULong z2;
--------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 808: Invalid statement. (badstmt)
int i, j;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 843: In this declaration, "int32_t" must specify a type.
(badparsedecl)
Long borrow, y; /* We need signed shifts here. */
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 846: Missing ";". (nosemi)
Long z;
-------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 924: Missing ";". (nosemi)
register Long L;
----------------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 964: Invalid statement. (badstmt)
int k;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 965: Missing ";". (nosemi)
_double d;
----------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 1036: Missing ";". (nosemi)
_double d;
----------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 1239: In this declaration, "int32_t" must specify a type.
(badparsedecl)
Long L;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 1240: In this declaration, "uint32_t" must specify a type.
(badparsedecl)
ULong y, z;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 928: In this statement, "L" is not declared. (undeclared)
L = (word0(x) & Exp_mask) - (P-1)*Exp_msk1;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 1272: In this statement, "y" is not declared. (undeclared)
y = z = 0;
--------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 1272: In this statement, "z" is not declared. (undeclared)
y = z = 0;
------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 1329: In this statement, "L" is not declared. (undeclared)
L = c - '0';
--------------------------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 1608: In this statement, "L" is not declared. (undeclared)
L = (word0(rv) & Exp_mask) - Exp_msk1;
--------------------------------^
cc: Error: /homeb/long/src/php4-STABLE-200412221330/Zend/zend_strtod.c,
line 1741: In this statement, "L" is not declared. (undeclared)
L = aadj;
------------------------^
*** Exit 1
Stop.
Reproduce code:
---------------
Find a Tru64 4.0F system, unpack php4-STABLE-200412221330, run:
CC=cc CXX=cxx ./configure
make
and you get the error above.
Expected result:
----------------
The code to build.
Actual result:
--------------
See description
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31249&edit=1