1.4, gcc 3.2 ix86..Fully loaded/updated <SNIP> checking for GD support... yes checking whether to enable truetype string function in GD... no checking for the location of libjpeg... no If configure fails try --with-jpeg-dir=<DIR> checking for the location of libpng... no If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR> checking for the location of libXpm... yes checking for XpmFreeXpmImage in -lXpm... yes checking for freetype(2)... no If configure fails try --with-freetype-dir=<DIR> checking for FreeType 1.x support... no checking for T1lib support... no configure: error: Unable to find libgd.(a|so) anywhere under /usr/local /usr !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 171, Exitcode 1 !!! bad ./configure lappy php # emerge search freetype libgd Searching... [ Results for search key : freetype ] [ Applications found : 1 ] * media-libs/freetype Latest version available: 2.1.2-r1 Latest version installed: 2.1.2-r1 Homepage: http://www.freetype.org/ Description: A high-quality and portable font engine Searching... [ Results for search key : libgd ] [ Applications found : 1 ] * media-libs/libgd Latest version available: 2.0.1 Latest version installed: 2.0.1 Homepage: http://www.boutell.com/gd/ Description: A graphics library for fast image creation </SNIP>
USE vars? compilers? portage version?
USE="xmlterm access-builtin ctl p3p interfaceinfo gtk2 mad sndfile -exif canon +wavelan midi css directfb svga aalib gnome opengl lcms python php mmx pcmcia pnp trusted gphoto2 cups slp X opengl xv kde qt qtmt sse apm jack arts evo sdl gd gif jpeg png tiff avi mpeg quicktime alsa dvd xmms oggvorbis flash encode ipv6 pam ssl crypt imap ldap tcpd mozilla mozirc spell truetype xml xml2 pdflib perl berkdb mysql postgres odbc innodb gdbm afs" Compiler is there (3.2), i686 * sys-apps/portage Latest version available: 2.0.36 Latest version installed: 2.0.36 Homepage: http://www.gentoo.org Description: Portage ports system
Created attachment 3848 [details] Fix for libgd support. This fixes the problem with libgd not detecting. PHP 4.2.2 needs gd 1.8.x, not gd 2.x, so changing the dependancy for using ~media-libs/libgd-1.8.3 was the fix there. Also added a clause to gd, enabling gd's native ttf support by checking if gd, and freetype USE flags are enabled.
php works fine with gd2 and freetype2 (for freetype2 i had to add --with- freetype-dir to make it work) but its a problem with the gd ebuild (see #7810)
Well....Just compiled php with old libgd (try to build using tips from bug #7810 , but that didn't help..) ebuild (bumped to r1) included.. Thanx all, Rigo