ID: 31883 Updated by: [EMAIL PROTECTED] Reported By: mcihar at suse dot cz -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem Operating System: Linux, IA64 PHP Version: 5.0.3 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 Previous Comments: ------------------------------------------------------------------------ [2005-02-08 14:28:11] mcihar at suse dot cz Just forgot to mention that same applies on 4.3.10 ------------------------------------------------------------------------ [2005-02-08 14:27:25] mcihar at suse dot cz Here is patch for this issue (why is here no way to attach patches?). It also adds rather #error directive instead of text. --- php-5.0.3/Zend/zend_strtod.c.orig 2005-01-26 20:14:32.000000000 +0100 +++ php-5.0.3/Zend/zend_strtod.c 2005-02-08 13:05:34.898089577 +0100 @@ -96,6 +96,7 @@ #endif /* LIBC_SCCS and not lint */ #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ + defined(__ia64__) || \ defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \ defined(__powerpc__) || defined(__ppc__) || defined(__m88k__) || \ defined(__hppa__) || defined(__x86_64__) || (defined(__arm__) && \ @@ -230,8 +231,7 @@ #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. +#error Exactly one of IEEE_LITTLE_ENDIAN IEEE_BIG_ENDIAN, VAX, or IBM should be defined. #endif typedef union { ------------------------------------------------------------------------ [2005-02-08 14:25:34] mcihar at suse dot cz Description: ------------ Current php sources doesn't compile on IA64 machines. Reproduce code: --------------- ./configure make Expected result: ---------------- working php Actual result: -------------- /bin/sh /usr/src/packages/BUILD/php-5.0.3/build-apache2/libtool --silent --preserve-dup-deps --mode=compile gcc -IZend/ -I/usr/src/packages/BUILD/php-5.0.3/Zend/ -DPHP_ATOM_INC -I/usr/src/packages/BUILD/php-5.0.3/build-apache2/include -I/usr/src/packages/BUILD/php-5.0.3/build-apache2/main -I/usr/src/packages/BUILD/php-5.0.3 -I/usr/src/packages/BUILD/php-5.0.3/build-apache2/Zend -I/usr/include/libxml2 -I/usr/src/packages/BUILD/php-5.0.3/main -I/usr/src/packages/BUILD/php-5.0.3/Zend -I/usr/src/packages/BUILD/php-5.0.3/TSRM -I/usr/src/packages/BUILD/php-5.0.3/build-apache2/ -I/usr/src/packages/BUILD/php-5.0.3/build-apache2/TSRM -O2 -fmessage-length=0 -Wall -fno-strict-aliasing -DOLD_READLINE -prefer-pic -c /usr/src/packages/BUILD/php-5.0.3/Zend/zend_strtod.c -o Zend/zend_strtod.lo /usr/src/packages/BUILD/php-5.0.3/Zend/zend_strtod.c:233: error: syntax error before "one" /usr/src/packages/BUILD/php-5.0.3/Zend/zend_strtod.c:233: warning: type defaults to `int' in declaration of `IEEE_BIG_ENDIAN' /usr/src/packages/BUILD/php-5.0.3/Zend/zend_strtod.c:233: warning: type defaults to `int' in declaration of `VAX' /usr/src/packages/BUILD/php-5.0.3/Zend/zend_strtod.c:234: warning: type defaults to `int' in declaration of `or' /usr/src/packages/BUILD/php-5.0.3/Zend/zend_strtod.c:234: error: syntax error before "IBM" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31883&edit=1
