* Using dev-lang/php-5.3.5-r1 * * Checking for compatible SAPI(s) * Discovered compatible SAPI apache2 /var/tmp/portage/www-apache/mod_vhs-1.0.32/temp/environment: line 3149: /usr/lib64/php5/bin/php-config: Nie ma takiego pliku ani katalogu /usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -march=native -pipe -fpeel-loops -fomit-frame-pointer -frename-registers -fpredictive-commoning -fweb -ftree-vectorize -floop-interchange -ftree-loop-distribution -fivopts -floop-block -floop-strip-mine -fira-loop-pressure -floop-interchange -ftree-loop-linear -s -floop-parallelize-all -fipa-sra -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/home -DHAVE_MOD_PHP_SUPPORT -c -o mod_vhs.lo mod_vhs.c && touch mod_vhs.slo mod_vhs.c:145:18: fatal error: zend.h: No such file or directory compilation terminated. apxs:Error: Command failed with rc=65536 . * ERROR: www-apache/mod_vhs-1.0.32 failed (compile phase): * /usr/sbin/apxs2 -c -I/usr/include/home -lhome -DHAVE_MOD_PHP_SUPPORT mod_vhs.c failed * The reason is in line 33 in ebuild: myconf="${myconf} $(${PHPCONFIG} --includes) -DHAVE_MOD_PHP_SUPPORT" Variable PHPCONFIG contains incorrect path to php-config: /usr/lib64/php5/bin/php-config , this is path to unslotted version of php, variable is taken from depend.php eclass Reproducible: Always
Line: use debug myconf="${myconf} -DVH_DEBUG" should be lik this: use debug && myconf="${myconf} -DVH_DEBUG" to have USE=debug working.
Index: mod_vhs-1.0.32.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_vhs/mod_vhs-1.0.32.ebuild,v retrieving revision 1.3 diff -u -B -r1.3 mod_vhs-1.0.32.ebuild --- mod_vhs-1.0.32.ebuild 6 Feb 2008 21:49:27 -0000 1.3 +++ mod_vhs-1.0.32.ebuild 28 Feb 2011 20:22:03 -0000 @@ -34,7 +34,7 @@ fi use suphp && myconf="${myconf} -DHAVE_MOD_SUPHP_SUPPORT" - use debug myconf="${myconf} -DVH_DEBUG" + use debug && myconf="${myconf} -DVH_DEBUG" APXS2_ARGS="-c ${myconf} ${PN}.c" apache-module_src_compile
(In reply to comment #0) > * Using dev-lang/php-5.3.5-r1 > * > * Checking for compatible SAPI(s) > * Discovered compatible SAPI apache2 > /var/tmp/portage/www-apache/mod_vhs-1.0.32/temp/environment: line 3149: > /usr/lib64/php5/bin/php-config: Nie ma takiego pliku ani katalogu > /usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic > -O2 -march=native -pipe -fpeel-loops -fomit-frame-pointer -frename-registers > -fpredictive-commoning -fweb -ftree-vectorize -floop-interchange > -ftree-loop-distribution -fivopts -floop-block -floop-strip-mine > -fira-loop-pressure -floop-interchange -ftree-loop-linear -s > -floop-parallelize-all -fipa-sra -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE > -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 > -I/usr/include/home -DHAVE_MOD_PHP_SUPPORT -c -o mod_vhs.lo mod_vhs.c && > touch mod_vhs.slo > mod_vhs.c:145:18: fatal error: zend.h: No such file or directory > compilation terminated. > apxs:Error: Command failed with rc=65536 > . > * ERROR: www-apache/mod_vhs-1.0.32 failed (compile phase): > * /usr/sbin/apxs2 -c -I/usr/include/home -lhome -DHAVE_MOD_PHP_SUPPORT > mod_vhs.c failed > * > > The reason is in line 33 in ebuild: > myconf="${myconf} $(${PHPCONFIG} --includes) -DHAVE_MOD_PHP_SUPPORT" > > Variable PHPCONFIG contains incorrect path to php-config: > /usr/lib64/php5/bin/php-config , this is path to unslotted version of php, > variable is taken from depend.php eclass > > Reproducible: Always The patch here fixes the compile erros asociated with USE=php http://forums.gentoo.org/viewtopic-p-6522102.html#6522102
(In reply to comment #3) > The patch here fixes the compile erros asociated with USE=php > http://forums.gentoo.org/viewtopic-p-6522102.html#6522102 This looks caused by a depend.php.eclass bug, CCing its maintainers then
This package is using depend.php in a way that no longer works (and has not been working for a few years now). And I do not see how it could work with the way PHP works on Gentoo anymore. That patch is certainly not a solution. Given the age of this bug, and the lack of noise around it, I would prefer if this package was dropped. There does not seem to be much life left in upstream either.
Thanks a lot for your opinion, there are a lots of apache modules that need review :(
Package is removed from tree