Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165633 - dev-lang/php-5.1.6-r8 fails to configure with libedit
Summary: dev-lang/php-5.1.6-r8 fails to configure with libedit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL: http://bugs.php.net/42299
Whiteboard:
Keywords:
: 187818 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-06 15:10 UTC by Volkmar Glauche
Modified: 2007-10-07 11:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.06 KB, text/plain)
2007-02-06 15:13 UTC, Volkmar Glauche
Details
config.log (config.log,667.00 KB, text/plain)
2007-02-06 15:13 UTC, Volkmar Glauche
Details
emerge log file (dev-lang:php-5.1.6-r8:20070206-150006.log,35.21 KB, text/plain)
2007-02-06 15:14 UTC, Volkmar Glauche
Details
php5_1-sapi.eclass.diff (php5_1-sapi.eclass.diff,576 bytes, patch)
2007-08-20 07:56 UTC, Jakub Moc (RETIRED)
Details | Diff
php5_2-sapi.eclass.diff (php5_2-sapi.eclass.diff,576 bytes, patch)
2007-08-20 07:58 UTC, Jakub Moc (RETIRED)
Details | Diff
php5_2-sapi.eclass.diff (php5_2-sapi.eclass.diff2,583 bytes, patch)
2007-08-20 09:18 UTC, Jakub Moc (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Volkmar Glauche 2007-02-06 15:10:02 UTC
dev-lang/php-5.1.6-r8 fails to configure - one configure-test tries to link /usr/X11R6/lib64/libedit.so, which is a linker script but not an ELF library. See lengthy discussion in bug #4411.

Reproducible: Always
Comment 1 Volkmar Glauche 2007-02-06 15:13:26 UTC
Created attachment 109331 [details]
emerge --info
Comment 2 Volkmar Glauche 2007-02-06 15:13:49 UTC
Created attachment 109332 [details]
config.log
Comment 3 Volkmar Glauche 2007-02-06 15:14:45 UTC
Created attachment 109333 [details]
emerge log file
Comment 4 SpanKY gentoo-dev 2007-02-06 23:07:35 UTC
not a toolchain bug ... this is expected behavior

libedit's SONAME is "libedit.so"

php (for some stupid reason) does -Wl,-rpath,/usr/X11R6/lib64 -ledit

the ldso searches DT_RPATH first for DT_SONAME, "libedit.so" in this case

it finds a file named "libedit.so" and then aborts because it isnt actually an ELF

solution: stop using pointless -Wl,-rpath
Comment 5 Volkmar Glauche 2007-08-14 17:07:07 UTC
This bug is still open - at least up to and including php-5.2.4_pre200708051230-rc2...
Comment 6 Volkmar Glauche 2007-08-14 17:59:38 UTC
also reported upstream: http://bugs.php.net/42299
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-08-14 19:50:09 UTC
(In reply to comment #6)
> also reported upstream: http://bugs.php.net/42299

Thanks. 

Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-08-15 19:15:19 UTC
*** Bug 187818 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2007-08-20 07:42:00 UTC
php can work around the issue i think by simply dropping the old /usr/X11R6 path in the php eclasses
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-08-20 07:56:14 UTC
Created attachment 128653 [details, diff]
php5_1-sapi.eclass.diff
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-08-20 07:58:47 UTC
Created attachment 128654 [details, diff]
php5_2-sapi.eclass.diff

Please, test the above patches; the first one is for php-5.1.x in case you are still using this old version (will be masked soon, you'd better upgrade fast), the second one is for php-5.2.x.

You can use `patch -p0 < php5_2-sapi.eclass` if you download the above to /usr/portage.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2007-08-20 08:02:04 UTC
Eh, `patch -p0 < php5_2-sapi.eclass.diff` obviously.
Comment 13 Volkmar Glauche 2007-08-20 09:09:12 UTC
doesn't work for me (trying to emerge 5.2.4_pre200708051230-r2) - still the same error...
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-08-20 09:18:01 UTC
Created attachment 128658 [details, diff]
php5_2-sapi.eclass.diff

(In reply to comment #13)
> doesn't work for me (trying to emerge 5.2.4_pre200708051230-r2) - still the
> same error...

Well, then try this instead; if it still doesn't work, you are out of luck until someone usptream wakes up instead of blaming Gentoo for the breakage, no time to mess with this autotools nonsense ATM.
Comment 15 Volkmar Glauche 2007-08-20 09:38:04 UTC
Now, this seems to do its job as a work-around. Still, there seem to be too many uses of -Wl,-rpath during configure, but that is probably an upstream issue. Thanks for your help!
Volkmar
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2007-08-20 09:40:48 UTC
Please, don't resolve bugs where nothing has been done about them in the tree. And yes, you should reopen the upstream bug as vapier mailed you.
Comment 17 Volkmar Glauche 2007-08-20 09:45:45 UTC
upstream reopened.
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2007-08-20 12:09:27 UTC
Please, revert the above eclass changes and try with `EXTRA_ECONF="--disable-rpath" emerge php`; I'm getting really tired of upstream attitude.
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2007-08-20 21:35:10 UTC
The work-around from Comment #14 in CVS now; emerge --sync in an hour or so. A proper upstream patch will hopefully :P be included in final 5.2.4 release, leaving this bug open until then.
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2007-09-13 15:00:56 UTC
Volkmar, can you test whether you can still reproduce this with php-5.2.4 and with the current workaround [1] reverted (i.e., change it back to /usr/X11R6) please? emerge php like this:

EXTRA_ECONF="--disable-rpath" emerge =dev-lang/php-5.2.4

and see if anything breaks or not.

[1] http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/php5_2-sapi.eclass?r1=1.8&r2=1.9
Comment 21 Volkmar Glauche 2007-09-26 16:22:52 UTC
(In reply to comment #20)
> Volkmar, can you test whether you can still reproduce this with php-5.2.4 and
> with the current workaround [1] reverted (i.e., change it back to /usr/X11R6)
> please? emerge php like this:
> 
> EXTRA_ECONF="--disable-rpath" emerge =dev-lang/php-5.2.4
> 
> and see if anything breaks or not.
> 
> [1]

No, the bug is not reproducible in dev-lang/php-5.2.4_p20070914-r2 any more (neither with the current workaround, nor with the original eclass and the EXTRA_ECONF from above). Both cases compile fine.

Comment 22 Jakub Moc (RETIRED) gentoo-dev 2007-10-07 11:15:22 UTC
Closing.