I'm running x64-macos. Step to reproduces : emerge PHP without the gd-external use flag. checking for fabsf... yes checking for floorf... yes checking for jpeg_read_header in -ljpeg... yes configure: error: libpng.(a|so) not found. * ERROR: dev-lang/php-5.2.13 failed: * configure failed * * Call stack: * ebuild.sh, line 54: Called call-ebuildshell 'src_compile' * environment, line 980: Called src_compile * environment, line 4992: Called src_compile_normal * environment, line 5119: Called php5_2-sapi_src_compile * environment, line 3994: Called die * The specific snippet of code: * ./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir="${EPREFIX}"/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed"; * * If you need support, post the output of 'emerge --info =dev-lang/php-5.2.13', * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.2.13'. * The complete build log is located at '/Users/superflo/Gentoo/var/tmp/portage/dev-lang/php-5.2.13/temp/build.log'. * The ebuild environment file is located at '/Users/superflo/Gentoo/var/tmp/portage/dev-lang/php-5.2.13/temp/environment'. * S: '/Users/superflo/Gentoo/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13' >>> Failed to emerge dev-lang/php-5.2.13, Log file: >>> '/Users/superflo/Gentoo/var/tmp/portage/dev-lang/php-5.2.13/temp/build.log' * Messages for package dev-lang/php-5.2.13: * Darwin patch set 'darwin-conf' failed to apply! * ERROR: dev-lang/php-5.2.13 failed: * configure failed * * Call stack: * ebuild.sh, line 54: Called call-ebuildshell 'src_compile' * environment, line 980: Called src_compile * environment, line 4992: Called src_compile_normal * environment, line 5119: Called php5_2-sapi_src_compile * environment, line 3994: Called die * The specific snippet of code: * ./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir="${EPREFIX}"/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed"; * * If you need support, post the output of 'emerge --info =dev-lang/php-5.2.13', * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.2.13'. * The complete build log is located at '/Users/superflo/Gentoo/var/tmp/portage/dev-lang/php-5.2.13/temp/build.log'. * The ebuild environment file is located at '/Users/superflo/Gentoo/var/tmp/portage/dev-lang/php-5.2.13/temp/environment'. * S: '/Users/superflo/Gentoo/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13'
Updating libpng to libpng-1.4.2 fixed the issue. See Changeset 58061