ID: 42299 Comment by: vapier at gentoo dot org Reported By: volkmar dot glauche at uniklinik-freiburg dot de Status: Open Bug Type: Compile Failure Operating System: Gentoo Linux PHP Version: 5.2.4_pre200708051230-rc2 New Comment:
instead of going into pointless distro bashing, why dont you actually review the issue ... this is not a Gentoo specific problem nor are there any "Gentoo hacks" in place here. the problem is that the php script incorrectly throws -rpath's into binaries without checking to see if they are actually needed. it starts with the -lXpm check coming from ext/gd/config.m4 but quickly filters down into PHP_ADD_LIBRARY_WITH_PATH in the acinclude.m4. that function should really test to see if the -L and/or -rpath is needed in the first place: (1) see if the requested -llib works (2) see if the requested -llib + -Lpath works (3) see if the requested -llib + -Lpath + -Wl,-rpath,path works Previous Comments: ------------------------------------------------------------------------ [2007-08-20 09:44:54] volkmar dot glauche at uniklinik-freiburg dot de re-opened for downstream comments. ------------------------------------------------------------------------ [2007-08-16 10:28:25] [EMAIL PROTECTED] Using proper configure line and not defining any LDFLAGS/CFLAGS when not necessary works just fine. And only -Wl, rpath stuff is in configure to check whether compiler supports it or not. For me configure works just fine under Fedora. If Gentoo chooses to do some hacks of their own, that is none of our business. ------------------------------------------------------------------------ [2007-08-16 08:53:23] volkmar dot glauche at uniklinik-freiburg dot de I don't know whether this is just Gentoo specific, but there are numerous occurrences of -Wl,-rpath switches in the top level configure and acinclude.m4 scripts. On my system, these switches force ld.so to look for libedit.so in /usr/X11R6/lib, where it does not find an ELF library but a linker script. With -Wl,-rpath these scripts are not followed, and therefore linking the conftests fails. ------------------------------------------------------------------------ [2007-08-16 08:30:46] [EMAIL PROTECTED] I didn't ask you to test some gentoo crap, this is PHP, report bugs in Gentoo to their system. ------------------------------------------------------------------------ [2007-08-16 08:12:49] volkmar dot glauche at uniklinik-freiburg dot de This is the latest version I have tested: 5.2.4_pre200708051230-rc2 I don't have the time to create an ebuild for newer snapshots, but I will be happy to test once a new ebuild is in gentoo portage. ------------------------------------------------------------------------ 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/42299 -- Edit this bug report at http://bugs.php.net/?id=42299&edit=1