Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14255 - mod_php-4.3.0-r2 fails to correctly support libgd while compiled with "enable-gd-native-ttf"
Summary: mod_php-4.3.0-r2 fails to correctly support libgd while compiled with "enable...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-20 15:49 UTC by Jörg Lübbert
Modified: 2003-03-03 13:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Lübbert 2003-01-20 15:49:55 UTC
As the summary already says. If mod_php is compiled using --enable-gd-native-ttf
(which is the default), then gd seems to break. jpg images rendered via GD are
displayed in 16 colors while .png seems to completely break. Simply removing
that line from the ebuild fixed the problem for me. btw, I'm using the latest
stable packages as of 01-20-2003.
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2003-02-07 16:31:13 UTC
is this reproducable on anyone else's box?
Comment 2 SpanKY gentoo-dev 2003-02-23 21:51:48 UTC
if you configure php with the option '--with-gd' then it'll use the built in gd
module ... you have to use '--with-gd=/usr' in order to use external libgd library ...

i was going to file a bug about this ... i'd suggest something along the lines of:
if [ `use gd` ] ; then
    myconf="${myconf} --with-gd=/usr"
else
    myconf="${myconf} --with-gd"
fi

oooooooor even just doing this:
use gd && myconf="${myconf} --with-gd=/usr"
(and not turning on bundled gd library at all ...)

i had horrible quality jpeg images because i had been using 'imagecreate' rather
than 'imagecreatetruecolor' ...
Comment 3 SpanKY gentoo-dev 2003-02-23 21:52:15 UTC
oh, and add libgd to DEPEND ;)
Comment 4 Dewet Diener 2003-02-26 06:58:18 UTC
Yes, this one bit me as well.  I'm running websites needing imagettftext() to work, and this 
(obviously) got terribly b0rked.  Took me about a day to find out what was wrong. 
 
:( 
 
4.3.0-r1 works, and as reported, the --enable-gd-native-ttf causes all the headaches. 
Comment 5 SpanKY gentoo-dev 2003-03-03 13:18:10 UTC
ok, i disabled the native truetype stuff with gd ... now it'll use external
freetype libraries (which it really should, as far as i can tell ...)

also, i updated gd support so that it uses the external gd library ...
it supports libgd-1.x and libgd-2.x, so there shouldnt be any troubles ;)

http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-php/mod_php/mod_php-4.3.1.ebuild.diff?r1=1.6&r2=1.7