View previous topic :: View next topic |
Author |
Message |
masaclaw n00b
Joined: 18 Jul 2002 Posts: 23 Location: Welly, NZ
|
Posted: Thu Jul 18, 2002 3:28 am Post subject: mod_php, libgd, libpng problem |
|
|
Problem occured on two separate systems, running an uptodate (as of now) system.
PROBLEM DESCRIPTION
----------------------------
When trying to use any of the 'png' functions from the GD library built into the mod_php, apache would return no data to the browser, and a line like:
Code: | [Thu Jul 18 14:35:39 2002] [notice] child pid 32045 exit signal Segmentation fault (11) |
would appear in the apache error logs.
After some testing, I narrowed down the problem to be the version of libpng which has been built into PHP / GD.
Version's installed:
mod_php
/usr/portage/dev-php/mod_php/mod_php-4.2.1-r5.ebuild
libgd
/usr/portage/media-libs/libgd/libgd-1.8.3-r5.ebuild
libpng
/usr/portage/media-libs/libpng/libpng-1.2.4.ebuild
TO FIX THE PROBLEM
-------------------------
To 'fix' this problem, I had to:
Code: | # remove the old libpng
unmerge libpng
# manually emerge the older version
/usr/portage/media-libs/libpng/ebuild libpng-1.0.12-r1.ebuild merge
# re-emerge libgd
emerge libgd
# manually edit the ebuild mod_php file you want to emerge
# in my case, it was this one
nano -w /usr/portage/dev-php/mod_php/mod_php-4.2.1-r5.ebuild
# under the depends, hash out the existing reference to libpng
# and put in the older version which we emerged earlier
# >=media-libs/libpng-1.2.1 <- hash this line
>=media-libs/libpng-1.0.12 <- enter in this one
# re-emerge mod_php, which will use the older libpng to build from
emerge mod_php
# restart apache
/etc/init.d/apache restart |
And that has fixed the problem. I don't know where this bug lies (php, or libgd, or libpng?) but this is a working temporary fix.
- Tom |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Thu Jul 18, 2002 12:05 pm Post subject: |
|
|
Did you file this on bugs.gentoo.org?
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
masaclaw n00b
Joined: 18 Jul 2002 Posts: 23 Location: Welly, NZ
|
Posted: Thu Jul 18, 2002 10:40 pm Post subject: |
|
|
Not yet - wasn't sure what sort of bugs are to be posted to bugs.gentoo - so I should?
-Tom |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Fri Jul 19, 2002 12:22 am Post subject: |
|
|
masaclaw wrote: | Not yet - wasn't sure what sort of bugs are to be posted to bugs.gentoo - so I should? |
Yes -- bugs.gentoo.org are for any and all bugs that are gentoo-related.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
masaclaw n00b
Joined: 18 Jul 2002 Posts: 23 Location: Welly, NZ
|
|
Back to top |
|
|
zapdafish n00b
Joined: 29 May 2003 Posts: 18
|
Posted: Wed Jul 16, 2003 11:44 am Post subject: |
|
|
Quote: | # under the depends, hash out the existing reference to libpng
# and put in the older version which we emerged earlier
# >=media-libs/libpng-1.2.1 <- hash this line
>=media-libs/libpng-1.0.12 <- enter in this one
|
Can someone tell me how this works? I've tried countless versions of this and when I do an emerge -p mod_php it has a big U next to my libpng package and promlptly tries to upgrade it on me.
I did not find a newer version to hash out so just added the older version under DEPEND but it never sees it |
|
Back to top |
|
|
masaclaw n00b
Joined: 18 Jul 2002 Posts: 23 Location: Welly, NZ
|
Posted: Wed Jul 16, 2003 10:24 pm Post subject: |
|
|
Hey zapdafish
I'd ignore this now - it was written exactly a year ago, when there was a problem .. All should be fixed up by now.
-Tom |
|
Back to top |
|
|
|