Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13401 - mod_php-4.3.0-r1 fails to install to image dir
Summary: mod_php-4.3.0-r1 fails to install to image dir
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
Depends on: 11189
  Show dependency tree
Reported: 2003-01-06 21:02 UTC by Joshua Kinard
Modified: 2003-08-17 07:29 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2003-01-06 21:02:13 UTC
mod_php-4.3.0-r1 builds successfully, but the PEAR installer segfaults.  My
CFLAGS are the usual, mcpu/mtune = ultrasparc, -O3, -pipe, and -fomit-frame-pointer.

[root@isengard mod_php]# ebuild mod_php-4.3.0-r1.ebuild install
>>> md5 ;-) php-4.3.0.tar.bz2
>>> Checking php-4.3.0.tar.bz2's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> It appears that mod_php is already compiled; skipping.
>>> (clean to force compilation)

>>> Install mod_php-4.3.0-r1 into /usr/obj/portage/mod_php-4.3.0-r1/image/
category dev-php
Installing PEAR environment:     
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2

!!! ERROR: dev-php/mod_php-4.3.0-r1 failed.
!!! Function src_install, Line 211, Exitcode 2
!!! (no error message)
Comment 1 Joshua Kinard gentoo-dev 2003-01-07 03:49:24 UTC
I tried merging an ebuild off the forums, and that too segfaulted, with no valid
information as to why.  So I decided to un-prelink everything and remove ccache
on my system.  I figure with prelink, I'll wait until the elfutils option is
fixed and merge the newer prelink toolset before using that again.  Lo and
behold, mod_php-4.3.0-r1 merges fine.

So it seems more testing may need to be done with either ccache and/or prelink.
 Maybe it was the older prelink tools causing the problem, I dunno.  More input
if I discover anything else of relevance.
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2003-01-08 09:19:17 UTC
This is due to LD_PRELOAD being used with prelinking, a very unstable
combination. You are right this is prelink's fault. 

prelink your system and use portage-2.0.47, does that fix it?
Also does it fail if you emerge it with -sandbox in your FEATURES or if you
build it manually?
Comment 3 Joshua Kinard gentoo-dev 2003-01-08 13:43:11 UTC
Well, I was using the older prelink ebuild that used libelf.  The newest prelink
requires elfutils, and elfutils hasn't compiled properly on my sparc system due
to -Werror being passed to GCC, and thus, warnings killing off the build. 
Comments in the elfutils bugreport include information for stripping out
-Werror, and I will attempt that patch after attempting elfutils by itself, as a
newer post states the ebuild is updated, which may indicate the original problem
is fixed.

If elfutils works properly, I will merge the newest prelink and prelink my
system.  as for testing mod_php-4.3.0--r1, I already installed it after removing
prelink, but I can rebuild it again to verify.
Comment 4 Joshua Kinard gentoo-dev 2003-01-17 01:44:20 UTC
This error is indeed linked to prelink.  It appears prelink is not 100%
functional yet on sparc, so I plan to keep it uninstalled for the time being. 
This pretty much resolves this bug, but an eye should be kept open for other
similar errors that may be related to prelink.
Comment 5 Ryan Phillips (RETIRED) gentoo-dev 2003-02-07 16:23:23 UTC
Prelink issue with mod_php on some platforms.
Comment 6 Jason Wever (RETIRED) gentoo-dev 2003-08-17 07:29:40 UTC