ID: 40335 User updated by: earlej at hotmail dot com -Reported By: earlej at hotmail dot copm +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:
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 Previous Comments: ------------------------------------------------------------------------ [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). ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ [2007-02-06 17:14:45] [EMAIL PROTECTED] Works just fine with GCC 4.1.1 and GCC 4.1.2. ------------------------------------------------------------------------ [2007-02-06 16:13:52] earlej at hotmail dot com Yes.. for various reasons, we also cannot upgrade to 5.x. Perhaps, one day, time permitting, I will again be able to test the building of 5.x on all our systems, but so far, we've found the 4.x series to be the most (easily) compilable (via scripted operations) across our systems. ------------------------------------------------------------------------ [2007-02-05 15:40:00] shane at hemc dot coop Is there a fix for the 4.4.4 version? I cannot upgrade to v5 quite yet...please help. ------------------------------------------------------------------------ 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