If pdf is in the use variable mod_php will fail to configure. mod_php 4.2.3 The ebuild file is missing a line to add png parameters to the command line of the configure script. This patch fixes the problem: --- mod_php-4.2.3.ebuild 2002-12-08 23:42:46.000000000 -0500 +++ mod_php-4.2.3-fixed.ebuild 2002-12-10 12:27:54.000000000 -0500 @@ -117,6 +117,7 @@ use gd && myconf="${myconf} --with-gd" use jpeg && myconf="${myconf} --with-jpeg-dir=/usr/lib" use tiff && myconf="${myconf} --with-tiff-dir=/usr" + use png && myconf="${myconf} --with-png-dir=/usr" # only include support for png if pdflib is not in USE # fixes #5444
Created attachment 6370 [details, diff] The fix. The attached patch is just the same patch outlined in my first comment.
this was for bug #5444... I've tested to remove this #5444 bug around and added two lines to ebuild like here: use png && myconf="${myconf} --with-png-dir=/usr" use pdf ... and compile was without errors and small test from #5444 bug (ImageCreateFromPng) also... So now is the time to change the ebuild :-)
I should have looked at the change log. Okay, if libpng can't be included whenever libpdf is included then we have a problem. The configure script fails at the libpdf detection because it can't find libpng. I am going to check out my libpdf if it is indead using libpng and not the internal png support. Does anyone know if this png fix in libpdf has been commited?
maybe I was not clear... I have libpng and libpdf compiled in my mod_php and it is not crashing and compile and configure is without problem...
Roman: can you attach your ebuild here?
*** Bug 11946 has been marked as a duplicate of this bug. ***
this fix works for me
mod_php-4.2.3-r2.ebuild seems to be exactly as my ebuild... So you have probably catched my idea... anyway mod_php-4.2.3-r2.ebuild works for me without problems... even the test with ImageCreateFromPng is successful Great work Ryan... I think this bug can be closed...
don't close it 1.2 has mod_php 4.2.3 as stable so this has to be fixed
Created attachment 6524 [details] the fixed ebuild
I've unmasked -r2 of dev-php... I'll tweak the dev-php/php ebuild also and unmask. Thanks for the help everyone.