Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 2801

Summary: php-4.2.0 ebuild breaks width "libpng not found"
Product: Gentoo Linux Reporter: Peter Stieglecker <pst>
Component: New packagesAssignee: Ryan Phillips (RETIRED) <rphillips>
Status: RESOLVED FIXED    
Severity: normal CC: fraterm
Priority: High    
Version: 1.1a   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Stieglecker 2002-05-17 11:31:53 UTC
Installing a fresh system with Gentoo 1.1a emerging php gives:

[...]
checking for the location of libpng... yes
checking for png_create_info_struct in -lpng... no
configure: error: libpng not found!
 
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 148, Exitcode 1
!!! bad ./configure
 
!!! emerge aborting on  /usr/portage/dev-lang/php/php-4.2.0.ebuild .           
                                 
(libpng is emerged and is there in /usr/lib/libpng*)
Comment 1 SpanKY gentoo-dev 2002-05-17 13:33:51 UTC
Bug 2708 had the solution for this posted in its comments ;)

BEFORE:
  --with-png-dir=/usr/lib \
AFTER:
  --with-png-dir=/usr \
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-19 06:43:11 UTC
*** Bug 2842 has been marked as a duplicate of this bug. ***
Comment 3 Dewet Diener 2003-03-08 16:23:31 UTC
This one just bit me on a mod_php-4.3.1 compile as well.  It didn't happen with the 4.3.0* that 
was installed before...  After changing the ebuild as suggested, it compiled fine.