Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 29th February 18:14
php-bugs
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


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 http://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
root@spinus:/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 With Quote


  sponsored links


2 29th February 18:15
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
Updated by: iliaa@php.net
Reported By: Bjorn dot Wiberg at its dot uu dot se
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: IBM AIX 5.2.0.0 ML3
PHP Version: 5.0.3
-Assigned To:
+Assigned To: derick


Previous Comments:
------------------------------------------------------------------------

[2004-12-16 18:41:59] Bjorn dot Wiberg at its dot uu dot se

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 http://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
root@spinus:/usr/local/src/php-5.0.3#


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
3 29th February 21:43
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
Updated by: derick@php.net
Reported By: Bjorn dot Wiberg at its dot uu dot se
-Status: Assigned
+Status: Feedback
Bug Type: Compile Failure
Operating System: IBM AIX 5.2.0.0 ML3
PHP Version: 5.0.3
Assigned To: derick
New Comment:

If you can provide me with an account, I would be happy to debug it for
you.

Derick


Previous Comments:
------------------------------------------------------------------------

[2004-12-16 18:41:59] Bjorn dot Wiberg at its dot uu dot se

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 http://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
root@spinus:/usr/local/src/php-5.0.3#


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
4 29th February 21:45
php-bugs
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
User updated by: Bjorn dot Wiberg at its dot uu dot se
Reported By: Bjorn dot Wiberg at its dot uu dot se
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
-Operating System: IBM AIX 5.2.0.0 ML3
+Operating System: IBM AIX 5.2.0.0 ML4
PHP Version: 5.0.3
Assigned To: derick
New Comment:

Hi Derick!

Thanks for your reply!

I'm afraid I can't provide you wiht an account on the machine, but I'd
be very happy to try to do whatever else is possible to find what is
causing the bug. Feel free to e-mail me if this sounds OK.

Best regards,
Björn


Previous Comments:
------------------------------------------------------------------------

[2004-12-16 22:28:00] derick@php.net

If you can provide me with an account, I would be happy to debug it for
you.

Derick

------------------------------------------------------------------------

[2004-12-16 18:41:59] Bjorn dot Wiberg at its dot uu dot se

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 http://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
root@spinus:/usr/local/src/php-5.0.3#


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
5 1st March 04:31
php-bugs
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
Comment by: robin_j77 at hotmail dot com
Reported By: Bjorn dot Wiberg at its dot uu dot se
Status: Open
Bug Type: Compile Failure
Operating System: IBM AIX 5.2.0.0 ML4
PHP Version: 5.0.3
Assigned To: derick
New Comment:

I got this a similar installation to compile on AIX 5.2 by commenting
out the line "Exactly one of the ....." mentioned in the code snippet
in the original bug report. I'm not a programmer to me but it looks
like this should be a comment and not actually code.

Hope that helps,
Robin


Previous Comments:
------------------------------------------------------------------------

[2004-12-17 08:29:00] Bjorn dot Wiberg at its dot uu dot se

Hi Derick!

Thanks for your reply!

I'm afraid I can't provide you wiht an account on the machine, but I'd
be very happy to try to do whatever else is possible to find what is
causing the bug. Feel free to e-mail me if this sounds OK.

Best regards,
Björn

------------------------------------------------------------------------

[2004-12-16 22:28:00] derick@php.net

If you can provide me with an account, I would be happy to debug it for
you.

Derick

------------------------------------------------------------------------

[2004-12-16 18:41:59] Bjorn dot Wiberg at its dot uu dot se

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 http://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
root@spinus:/usr/local/src/php-5.0.3#


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
6 1st March 04:31
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
Updated by: derick@php.net
Reported By: Bjorn dot Wiberg at its dot uu dot se
-Status: Open
+Status: Assigned
Bug Type: Compile Failure
Operating System: IBM AIX 5.2.0.0 ML4
PHP Version: 5.0.3
Assigned To: derick
New Comment:

Incorrect, it should NOT be a comment.
Bjorn, I'm making a patch now to solve it in a more generic way. Will
send you a patch with this after the weekend.


Previous Comments:
------------------------------------------------------------------------

[2004-12-17 15:35:22] robin_j77 at hotmail dot com

I got this a similar installation to compile on AIX 5.2 by commenting
out the line "Exactly one of the ....." mentioned in the code snippet
in the original bug report. I'm not a programmer to me but it looks
like this should be a comment and not actually code.

Hope that helps,
Robin

------------------------------------------------------------------------

[2004-12-17 08:29:00] Bjorn dot Wiberg at its dot uu dot se

Hi Derick!

Thanks for your reply!

I'm afraid I can't provide you wiht an account on the machine, but I'd
be very happy to try to do whatever else is possible to find what is
causing the bug. Feel free to e-mail me if this sounds OK.

Best regards,
Björn

------------------------------------------------------------------------

[2004-12-16 22:28:00] derick@php.net

If you can provide me with an account, I would be happy to debug it for
you.

Derick

------------------------------------------------------------------------

[2004-12-16 18:41:59] Bjorn dot Wiberg at its dot uu dot se

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 http://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
root@spinus:/usr/local/src/php-5.0.3#


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
7 1st March 04:31
php-bugs
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
User updated by: Bjorn dot Wiberg at its dot uu dot se
Reported By: Bjorn dot Wiberg at its dot uu dot se
Status: Assigned
Bug Type: Compile Failure
Operating System: IBM AIX 5.2.0.0 ML4
PHP Version: 5.0.3
Assigned To: derick
New Comment:

Thank you Derick!

I'm experimenting with setting IEEE_BIG_ENDIAN manually right now (as
our system is a big-endian system) too see how that goes.

Glad to hear that you're working on it in a more general way. I'd be
happy to try a compile next week.

Best regards,
Björn


Previous Comments:
------------------------------------------------------------------------

[2004-12-17 15:44:05] derick@php.net

Incorrect, it should NOT be a comment.
Bjorn, I'm making a patch now to solve it in a more generic way. Will
send you a patch with this after the weekend.

------------------------------------------------------------------------

[2004-12-17 15:35:22] robin_j77 at hotmail dot com

I got this a similar installation to compile on AIX 5.2 by commenting
out the line "Exactly one of the ....." mentioned in the code snippet
in the original bug report. I'm not a programmer to me but it looks
like this should be a comment and not actually code.

Hope that helps,
Robin

------------------------------------------------------------------------

[2004-12-17 08:29:00] Bjorn dot Wiberg at its dot uu dot se

Hi Derick!

Thanks for your reply!

I'm afraid I can't provide you wiht an account on the machine, but I'd
be very happy to try to do whatever else is possible to find what is
causing the bug. Feel free to e-mail me if this sounds OK.

Best regards,
Björn

------------------------------------------------------------------------

[2004-12-16 22:28:00] derick@php.net

If you can provide me with an account, I would be happy to debug it for
you.

Derick

------------------------------------------------------------------------

[2004-12-16 18:41:59] Bjorn dot Wiberg at its dot uu dot se

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 http://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
root@spinus:/usr/local/src/php-5.0.3#


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
8 1st March 04:33
php-bugs
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
Comment by: cantelow at csd dot net
Reported By: Bjorn dot Wiberg at its dot uu dot se
Status: Assigned
Bug Type: Compile Failure
Operating System: IBM AIX 5.2.0.0 ML4
PHP Version: 5.0.3
Assigned To: derick
New Comment:

Same error on Tru64 4.0G. If I force definition of little endian with
a separate #define, it bypasses this one but fails on:
cc: Error: /usr/users3/sysop/build/php/php-4.3.10/Zend/zend_strtod.c,
line 246: Missing type specifier or type qualif
ier. (missingtype)
ULong ul[2];

We can also give you an account for debugging if you like, thanks
sincerely.


Previous Comments:
------------------------------------------------------------------------

[2004-12-17 16:09:25] Bjorn dot Wiberg at its dot uu dot se

Thank you Derick!

I'm experimenting with setting IEEE_BIG_ENDIAN manually right now (as
our system is a big-endian system) too see how that goes.

Glad to hear that you're working on it in a more general way. I'd be
happy to try a compile next week.

Best regards,
Björn

------------------------------------------------------------------------

[2004-12-17 15:44:05] derick@php.net

Incorrect, it should NOT be a comment.
Bjorn, I'm making a patch now to solve it in a more generic way. Will
send you a patch with this after the weekend.

------------------------------------------------------------------------

[2004-12-17 15:35:22] robin_j77 at hotmail dot com

I got this a similar installation to compile on AIX 5.2 by commenting
out the line "Exactly one of the ....." mentioned in the code snippet
in the original bug report. I'm not a programmer to me but it looks
like this should be a comment and not actually code.

Hope that helps,
Robin

------------------------------------------------------------------------

[2004-12-17 08:29:00] Bjorn dot Wiberg at its dot uu dot se

Hi Derick!

Thanks for your reply!

I'm afraid I can't provide you wiht an account on the machine, but I'd
be very happy to try to do whatever else is possible to find what is
causing the bug. Feel free to e-mail me if this sounds OK.

Best regards,
Björn

------------------------------------------------------------------------

[2004-12-16 22:28:00] derick@php.net

If you can provide me with an account, I would be happy to debug it for
you.

Derick

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31131

--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
9 2nd March 01:56
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
Updated by: sniper@php.net
Reported By: Bjorn dot Wiberg at its dot uu dot se
-Status: Assigned
+Status: Feedback
Bug Type: Compile Failure
Operating System: IBM AIX 5.2.0.0 ML4
PHP Version: 5.0.3
Assigned To: derick
New Comment:

Please try using this CVS snapshot:

http://snaps.php.net/php5-STABLE-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.0-win32-latest.zip

All mentioned platforms tested succesfully. (compiles just fine)

Previous Comments:
------------------------------------------------------------------------

[2004-12-17 22:23:23] cantelow at csd dot net

Same error on Tru64 4.0G. If I force definition of little endian with
a separate #define, it bypasses this one but fails on:
cc: Error: /usr/users3/sysop/build/php/php-4.3.10/Zend/zend_strtod.c,
line 246: Missing type specifier or type qualif
ier. (missingtype)
ULong ul[2];

We can also give you an account for debugging if you like, thanks
sincerely.

------------------------------------------------------------------------

[2004-12-17 16:09:25] Bjorn dot Wiberg at its dot uu dot se

Thank you Derick!

I'm experimenting with setting IEEE_BIG_ENDIAN manually right now (as
our system is a big-endian system) too see how that goes.

Glad to hear that you're working on it in a more general way. I'd be
happy to try a compile next week.

Best regards,
Björn

------------------------------------------------------------------------

[2004-12-17 15:44:05] derick@php.net

Incorrect, it should NOT be a comment.
Bjorn, I'm making a patch now to solve it in a more generic way. Will
send you a patch with this after the weekend.

------------------------------------------------------------------------

[2004-12-17 15:35:22] robin_j77 at hotmail dot com

I got this a similar installation to compile on AIX 5.2 by commenting
out the line "Exactly one of the ....." mentioned in the code snippet
in the original bug report. I'm not a programmer to me but it looks
like this should be a comment and not actually code.

Hope that helps,
Robin

------------------------------------------------------------------------

[2004-12-17 08:29:00] Bjorn dot Wiberg at its dot uu dot se

Hi Derick!

Thanks for your reply!

I'm afraid I can't provide you wiht an account on the machine, but I'd
be very happy to try to do whatever else is possible to find what is
causing the bug. Feel free to e-mail me if this sounds OK.

Best regards,
Björn

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31131

--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
10 2nd March 05:26
php-bugs
External User
 
Posts: 1
Default #31131 : zend_strtod.c compilation fails: Exactly one of IEEE_LITTLE_ENDIAN ...


ID: 31131
User updated by: Bjorn dot Wiberg at its dot uu dot se
Reported By: Bjorn dot Wiberg at its dot uu dot se
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: IBM AIX 5.2.0.0 ML4
PHP Version: 5.0.3
Assigned To: derick
New Comment:

Thank you Derick, seems to compile just fine now on AIX.

Wishing you a Merry Christmas and a Happy New Year!

Best regards,
Björn


Previous Comments:
------------------------------------------------------------------------

[2004-12-21 05:52:31] sniper@php.net

Please try using this CVS snapshot:

http://snaps.php.net/php5-STABLE-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.0-win32-latest.zip

All mentioned platforms tested succesfully. (compiles just fine)


------------------------------------------------------------------------

[2004-12-17 22:23:23] cantelow at csd dot net

Same error on Tru64 4.0G. If I force definition of little endian with
a separate #define, it bypasses this one but fails on:
cc: Error: /usr/users3/sysop/build/php/php-4.3.10/Zend/zend_strtod.c,
line 246: Missing type specifier or type qualif
ier. (missingtype)
ULong ul[2];

We can also give you an account for debugging if you like, thanks
sincerely.

------------------------------------------------------------------------

[2004-12-17 16:09:25] Bjorn dot Wiberg at its dot uu dot se

Thank you Derick!

I'm experimenting with setting IEEE_BIG_ENDIAN manually right now (as
our system is a big-endian system) too see how that goes.

Glad to hear that you're working on it in a more general way. I'd be
happy to try a compile next week.

Best regards,
Björn

------------------------------------------------------------------------

[2004-12-17 15:44:05] derick@php.net

Incorrect, it should NOT be a comment.
Bjorn, I'm making a patch now to solve it in a more generic way. Will
send you a patch with this after the weekend.

------------------------------------------------------------------------

[2004-12-17 15:35:22] robin_j77 at hotmail dot com

I got this a similar installation to compile on AIX 5.2 by commenting
out the line "Exactly one of the ....." mentioned in the code snippet
in the original bug report. I'm not a programmer to me but it looks
like this should be a comment and not actually code.

Hope that helps,
Robin

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31131

--
Edit this bug report at http://bugs.php.net/?id=31131&edit=1
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666