Bug #45068: SIZEOF_LONG, etc. when cross compiling
| From: | Matt Wilmas | Date: | Mon, 01 Sep 2008 13:30:44 +0000 |
| Subject: | Bug #45068: SIZEOF_LONG, etc. when cross compiling | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-40199@lists.php.net to get a copy of this message | ||
Hi all,
SIZEOF_LONG is getting #define'd as 8 when compiling for 32-bit on 64-bit
(is it possible to do the opposite, maybe switched there too?). It also
makes MAX_LENGTH_OF_LONG be set wrong, causing the problem in Bug #45068.
There are some other places in the code where incorrect code may be used
because of wrong SIZEOF_LONG.
Is this something that can be easily fixed by one of the build system
people? If not, what about setting it (or checking and correcting if
needed) in a PHP .h file, instead of the configure script, according to the
value of LONG_MAX or something? *shrug* BTW, it looks like the same thing
is probably happening for other SIZEOF_* #define's.
Well, hopefully someone can look into it! :-]
Thanks,
Matt