Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7798 - php-4.2.3 cannot find libgd, libpng, libjpeg
Summary: php-4.2.3 cannot find libgd, libpng, libjpeg
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
Depends on:
Reported: 2002-09-11 07:33 UTC by Rigo
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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

Fix for libgd support. (mod_php-4.2.2-r2.ebuild,7.17 KB, text/plain)
2002-09-12 02:38 UTC, Eric Renfro

Note You need to log in before you can comment on or make changes to this bug.
Description Rigo 2002-09-11 07:33:10 UTC
1.4, gcc 3.2 ix86..Fully loaded/updated

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
[ 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
      Description: A high-quality and portable font engine
[ Results for search key : libgd ]
[ Applications found : 1 ]
*  media-libs/libgd
      Latest version available: 2.0.1
      Latest version installed: 2.0.1
      Description: A graphics library for fast image creation

Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2002-09-11 15:43:05 UTC
USE vars? compilers? portage version?
Comment 2 Rigo 2002-09-11 16:05:57 UTC
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
      Description: Portage ports system
Comment 3 Eric Renfro 2002-09-12 02:38:19 UTC
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.
Comment 4 Benjamin J. 2002-09-12 09:46:27 UTC
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)
Comment 5 Rigo 2002-09-12 15:59:20 UTC
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