Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159359

Summary: php-4.3.11-r5 with xmlrpc useflag doesn't compile on gcc4
Product: Gentoo Linux Reporter: Ramon <ramon>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    
Attachments: patch for ebuild
gcc4 compat patch for xmlrpc

Description Ramon 2006-12-29 03:38:00 UTC
The xmlrpc ext in php-4.3.11 isn't compatible with gcc4.
It fails compiling in xmlelement.c 

Yes I know it's ancient but we're still using it in production for the next two months at least until we've rewritten for php5

This guy:
http://www.mjmwired.net/linux/2005/10/23/php4-rpms-for-fedora-core-4/
has patched src.rpms for fedora3/4/5

I pulled the patch out and added it to the ebuild and all compiles magically again for me on amd64

Patch attached
Patch for the ebuild attached (also includes stable keyword on amd64)

Ramon
Comment 1 Ramon 2006-12-29 03:39:05 UTC
Created attachment 104922 [details, diff]
patch for ebuild

This patch adds the gcc4 patch, stable amd64 keyword and WANT_AUTOMAKE=1.5 to the ebuild
Comment 2 Ramon 2006-12-29 03:39:55 UTC
Created attachment 104923 [details, diff]
gcc4 compat patch for xmlrpc
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2006-12-29 07:29:45 UTC
The bug is known and was fixed in later 4.4 series releases, 4.3.11 is dead and unsupported, only kept for compatibility purposes for a few people who really still need it... Go for 4.4.4 at least, 4.3 has too much security issues too.
Best regards, CHTEKK.
Comment 4 Ramon 2006-12-29 08:45:19 UTC
I agree, but I am one of the few people that still need it until we finally make the move to php-5 somewhere next month.

I hoped the bug would provide reference for others with the same problem.
Closing it is fine as well