php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31122 zend_strtod.c does not compile
Submitted: 2004-12-16 13:53 UTC Modified: 2004-12-21 15:30 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: hans-gunther dot borrmann at rz dot uni-freiburg dot de Assigned: derick (profile)
Status: Closed Package: Compile Failure
PHP Version: 4.3.10 OS: AIX 5.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hans-gunther dot borrmann at rz dot uni-freiburg dot de
New email:
PHP Version: OS:

 

 [2004-12-16 13:53 UTC] 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 
 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-16 14:26 UTC] derick@php.net
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-17 12:51 UTC] 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-17 12:58 UTC] derick@php.net
Do you have a patch?
 [2004-12-17 14:49 UTC] derick@php.net
So what is your quick hack?
 [2004-12-17 15:09 UTC] hans-gunther dot borrmann at rz dot uni-freiburg dot de
*** php4-STABLE-200412170730/Zend/zend_strtod.c 2004-12-17 
11:31:31.000000000 +0100 
--- php-4.3.10/Zend/zend_strtod.c       2004-12-14 
09:35:26.000000000 +0100 
*************** 
*** 95,106 **** 
  static char *rcsid = "$OpenBSD: strtod.c,v 1.19 
2004/02/03 16:52:11 drahn Exp $"; 
  #endif /* LIBC_SCCS and not lint */ 
 
! #include <sys/param.h>  
  #if BYTE_ORDER == BIG_ENDIAN 
  #define IEEE_BIG_ENDIAN 
  #else 
  #define IEEE_LITTLE_ENDIAN 
  #endif 
 
  #if defined(__arm__) && !defined(__VFP_FP__) 
  /* 
--- 95,112 ---- 
  static char *rcsid = "$OpenBSD: strtod.c,v 1.19 
2004/02/03 16:52:11 drahn Exp $"; 
  #endif /* LIBC_SCCS and not lint */ 
 
! #if defined(__m68k__) || defined(__sparc__) || 
defined(__i386__) || \ 
!     defined(__mips__) || defined(__ns32k__) || 
defined(__alpha__) || \ 
!     defined(__powerpc__) || defined(__ppc__) || 
defined(__m88k__) || \ 
!     defined(__hppa__) || defined(__x86_64__) || 
(defined(__arm__) && \ 
!     defined(__VFP_FP__)) 
! #include  
  #if BYTE_ORDER == BIG_ENDIAN 
  #define IEEE_BIG_ENDIAN 
  #else 
  #define IEEE_LITTLE_ENDIAN 
  #endif 
+ #endif 
 
  #if defined(__arm__) && !defined(__VFP_FP__) 
  /* 
 
 
) && !defined(__VFP_FP__) 
  /*
 [2004-12-21 15:23 UTC] hans-gunther dot borrmann at rz dot uni-freiburg dot de
This CVS snapshot compiles. 
Thank you!!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 21:01:35 2025 UTC