#31883 [WFx]: Doesn't compile on ia64
| From: | mcihar at suse dot cz | Date: | Tue, 08 Feb 2005 14:23:29 +0000 |
| Subject: | #31883 [WFx]: Doesn't compile on ia64 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73652@lists.php.net to get a copy of this message | ||
ID: 31883
User updated by: mcihar at suse dot cz
Reported By: mcihar at suse dot cz
Status: Wont fix
Bug Type: Zend Engine 2 problem
Operating System: Linux, IA64
PHP Version: 5.0.3
New Comment:
And what weird do they do on #error? If they ignore it, there might be
line with #error and then one without it. This way you'd get reasonable
error message in case preprocessor supports it.
CVS snapshot builds fine on IA64, thanks.
Previous Comments:
------------------------------------------------------------------------
[2005-02-08 15:08:56] derick@php.net
Unfortunately we can't - there are some weird preprocessors out there.
------------------------------------------------------------------------
[2005-02-08 15:01:41] mcihar at suse dot cz
Hmm, the rewritten code in cvs looks much better, the endian problem
should not appear (I haven't yet tested it, will do that soon). However
the second part of patch IMHO should be applied anyway. It's better to
get preprocessor error, than getting tons of syntax and undefined
errors from compiler.
------------------------------------------------------------------------
[2005-02-08 14:28:38] derick@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
------------------------------------------------------------------------
[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 {
------------------------------------------------------------------------
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/31883
--
Edit this bug report at http://bugs.php.net/?id=31883&edit=1