From:             Bjorn dot Wiberg at its dot uu dot se
Operating system: IBM AIX 5.2.0.0 ML3
PHP version:      5.0.3
PHP Bug Type:     Compile Failure
Bug description:  zend_strtod.c compilation fails: Exactly one of 
IEEE_LITTLE_ENDIAN ...

Description:
------------
Compilation of zend_strtod.c fails. Similar to
http://bugs.php.net/bug.php?id=31129, but under AIX and with PHP 5.0.3.

(5.0.2 worked fine in this regard.)

Seems to be caused by some define not being set:

#if defined(IEEE_LITTLE_ENDIAN) + defined(IEEE_BIG_ENDIAN) + defined(VAX)
+ \
    defined(IBM) != 1
Exactly one of IEEE_LITTLE_ENDIAN IEEE_BIG_ENDIAN, VAX, or
IBM should be defined.
#endif


Reproduce code:
---------------
[config.nice excerpt]

'./configure' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-dba' \
'--enable-exif' \
'--enable-embedded-mysqli' \
'--enable-filepro' \
'--enable-ftp' \
'--enable-gd-jis-conv' \
'--enable-gd-native-ttf' \
'--enable-mbstring' \
'--enable-memory-limit' \
'--enable-sockets' \
'--enable-versioning' \
'--enable-zend-multibyte' \
'--prefix=/apache/php' \
'--with-apxs2=/apache/bin/apxs' \
'--with-bz2' \
'--with-freetype-dir' \
'--with-gd' \
'--with-gdbm' \
'--with-gettext' \
'--with-imagick' \
'--with-inifile' \
'--with-jpeg-dir' \
'--with-ldap' \
'--with-libxml-dir' \
'--with-mime-magic' \
'--with-mnogosearch' \
'--with-mysql=/usr/local/mysql' \
'--with-openssl=/opt/freeware' \
'--with-png-dir' \
'--with-tiff-dir' \
'--with-ttf' \
'--with-xpm-dir' \
'--with-zlib' \
'--with-zlib-dir' \


/usr/local/bin/gcc --version
gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

gcc 3.3.2 installed as .bff package from www.bullfreeware.com.

LIBPATH=/usr/lib:/lib:/opt/freeware/lib:/usr/local/lib:/usr/ccs/lib:/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2:/opt/freeware/GNUPro/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/:/usr/local/lib/graphviz


Expected result:
----------------
Successful compilation.

Actual result:
--------------
>From the compile output:

/../

/bin/sh /usr/local/src/php-5.0.3/libtool --silent --preserve-dup-deps
--mode=compile /usr/local/bin/gcc  -IZend/
-I/usr/local/src/php-5.0.3/Zend/ -DPHP_ATOM_INC
-I/usr/local/src/php-5.0.3/include -I/usr/local/src/php-5.0.3/main
-I/usr/local/src/php-5.0.3 -I/usr/local/src/php-5.0.3/Zend
-I/opt/freeware/include/libxml2 -I/opt/freeware/include
-I/usr/local/include -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/local/src/php-5.0.3/ext/mbstring/oniguruma
-I/usr/local/src/php-5.0.3/ext/mbstring/libmbfl
-I/usr/local/src/php-5.0.3/ext/mbstring/libmbfl/mbfl
-I/usr/local/mnogosearch/include -I/usr/local/mysql/include/mysql 
-I/usr/local/include -I/usr/local/src/php-5.0.3/TSRM  -g -O2 
-prefer-pic -c /usr/local/src/php-5.0.3/Zend/zend_strtod.c -o
Zend/zend_strtod.lo 
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:233: error: parse error
before "one"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:234: error: parse error
before "IBM"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:240: error: parse error
before '}' token
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:240: warning: data
definition has no type or storage class
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `ulp':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:928: error: parse error
before "x"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:930: error: parse error
before "a"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:932: error: `x' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:932: error: (Each undeclared
identifier is reported only once
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:932: error: for each
function it appears in.)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:940: error: `a' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `b2d':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:970: error: parse error
before "d"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:988: error: `d' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `d2b':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1041: error: parse error
before "d"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1046: error: `d' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `ratio':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1172: error: parse error
before "da"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1175: error: `da' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1176: error: `db' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c: In function `zend_strtod':
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1243: error: parse error
before "rv"
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1252: error: `rv' undeclared
(first use in this function)
/usr/local/src/php-5.0.3/Zend/zend_strtod.c:1485: error: `rv0'
undeclared (first use in this function)
make: *** [Zend/zend_strtod.lo] Error 1
[EMAIL PROTECTED]:/usr/local/src/php-5.0.3#

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

Reply via email to