ID:               40335
 User updated by:  earlej at hotmail dot com
 Reported By:      earlej at hotmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: RHEL4
 PHP Version:      4.4.4
 New Comment:

Hi,

Thank you.  Yes, I tested the patch - it builds without error on RHEL
with GCC 4.1.1 and 3.4.6 as well as on AIX5.3 with GCC 4.0.0.  Both
systems are using 64-bit builds.

Cheers!
Jon


Previous Comments:
------------------------------------------------------------------------

[2007-02-09 14:49:26] [EMAIL PROTECTED]

Could you please test the patch from the previous comment?

------------------------------------------------------------------------

[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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

>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).

------------------------------------------------------------------------

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

Reply via email to