|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-02-08 14:25 UTC] 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" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 15:00:01 2025 UTC |
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 {