ID: 40335
Updated by: tony2001@php.net
Reported By: earlej at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: RHEL4
PHP Version: 4.4.4
Previous Comments:
------------------------------------------------------------------------
[2007-02-09 14:26:14] earlej at hotmail dot com
Oh.. found where I got the hint about removing the inline keyword (of
course, I find it _after_ I post my results):
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30153
------------------------------------------------------------------------
[2007-02-09 14:24:59] tony2001@php.net
Does it work for you with this patch:
http://tony2001.phpclub.net/dev/tmp/bug40335.diff
?
------------------------------------------------------------------------
[2007-02-09 14:19:16] earlej at hotmail dot com
Fixed my issue. If this is suitable, can this be incorporated into the
4.4.4 codebase?
I got the idea elsewhere - forget where - to remove the inline keyword
as the compiler (GCC 4.0+, IIRC) seems to put the code for the (inline)
function _after_ the first incantation of the function. I don't profess
to understand how compilers do the magic they do but that is my (very)
basic understanding of what happens. This fixes things (and I see that
inline has also been removed from the 5.x tree).
# Allow PHP 4.4.4 to build on a 64-bit environment using
# GCC 4.1.1. Seems to be correctd in 5.x.
cd ${BUILD}/${SD_PHP}
cp main/output.c main/output.c.bak
$SED -e '53 s/inline//' main/output.c.bak > main/output.c
------------------------------------------------------------------------
[2007-02-07 20:56:28] tony2001@php.net
>Are you trying PHP 4.4.4 or 5.x?
Both.
>Can you suggest anything
I can suggest only using default GCC instead of manually built (unless
you're testing GCC).
------------------------------------------------------------------------
[2007-02-07 20:53:11] earlej at hotmail dot com
Are you trying PHP 4.4.4 or 5.x?
I downloaded GCC 4.1.1 within the last week from gcc.gnu.org and have
had this problem since. Can you suggest anything (build options for
gcc/php, tests to run, magic spells, etc?) to try and troubleshoot
this?
------------------------------------------------------------------------
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/40335--
Edit this bug report at http://bugs.php.net/?id=40335&edit=1