From:             buffalo at radix dot net
Operating system: Solaris 2.5.0 / 5.5
PHP version:      4.3.10
PHP Bug Type:     Compile Failure
Bug description:  Make Fails at Zend/zend_strtod.c, line 239

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





-- 
Edit bug report at http://bugs.php.net/?id=31941&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31941&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31941&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31941&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31941&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31941&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31941&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31941&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31941&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31941&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31941&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31941&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31941&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31941&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31941&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31941&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31941&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31941&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31941&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31941&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31941&r=mysqlcfg

Reply via email to