php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31941 Make Fails at Zend/zend_strtod.c, line 239
Submitted: 2005-02-11 23:26 UTC Modified: 2005-02-17 05:49 UTC
From: buffalo at radix dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.10 OS: Solaris 2.5.0 / 5.5
Private report: No CVE-ID: None
 [2005-02-11 23:26 UTC] buffalo at radix dot net
Description:
------------
During a normal build from source on Solaris 2.5.0/GCC 2.95.2, with the the configure line:

./configure  --prefix=/usr/local/php-4.3.10 --with-mysql=/usr/local/mysql-3.23
.58 --with-apxs=/usr/local/apache_1.3.33/bin/apxs --enable-memory-limit

The make process fails at Zend/zend_strtod.c, line 239, complaining about definitions for uint32_t or int32_t

Earlier versions of PHP 4.3.x had built without incident on the same box. Trying the lates snapshot did not solve the problem.

A C programmer friend figured it out for me.:

Under Solaris 2.5.0, there doesn't seem to be a definition for uint32_t or int32_t.

To get php 4.3.10 to compile, edit Zend/zend_strtod.c and at line 131 change:

#if defined(__sparc__) || defined(__ppc__)
#define u_int32_t uint32_t
#endif

to:

#if defined(__sparc__) || defined(__ppc__)
#define u_int32_t unsigned int
#define int32_t int
#endif





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-17 05:49 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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 16:01:33 2025 UTC