php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31249 bad type in zend_strtod.c
Submitted: 2004-12-22 16:36 UTC Modified: 2005-02-17 05:45 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:1 (33.3%)
From: long+phpbugs at kestrel dot cc dot ku dot edu Assigned: sniper (profile)
Status: Closed Package: Compile Failure
PHP Version: 4CVS-2004-12-22 (stable) OS: Tru64 4.0F
Private report: No CVE-ID: None
 [2004-12-22 16:36 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-17 05:45 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Easy to fix when you can see for yourself. :)
Thank you for the account.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC