Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mod_php, libgd, libpng problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
masaclaw
n00b
n00b


Joined: 18 Jul 2002
Posts: 23
Location: Welly, NZ

PostPosted: Thu Jul 18, 2002 3:28 am    Post subject: mod_php, libgd, libpng problem Reply with quote

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
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Thu Jul 18, 2002 12:05 pm    Post subject: Reply with quote

Did you file this on bugs.gentoo.org?

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
masaclaw
n00b
n00b


Joined: 18 Jul 2002
Posts: 23
Location: Welly, NZ

PostPosted: Thu Jul 18, 2002 10:40 pm    Post subject: Reply with quote

Not yet - wasn't sure what sort of bugs are to be posted to bugs.gentoo - so I should?

-Tom
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Jul 19, 2002 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message
masaclaw
n00b
n00b


Joined: 18 Jul 2002
Posts: 23
Location: Welly, NZ

PostPosted: Fri Jul 19, 2002 12:30 am    Post subject: Reply with quote

done :-

https://bugs.gentoo.org/show_bug.cgi?id=5216

-Tom
Back to top
View user's profile Send private message
zapdafish
n00b
n00b


Joined: 29 May 2003
Posts: 18

PostPosted: Wed Jul 16, 2003 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message
masaclaw
n00b
n00b


Joined: 18 Jul 2002
Posts: 23
Location: Welly, NZ

PostPosted: Wed Jul 16, 2003 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum