Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356841 - www-apache/mod_vhs-1.0.32 doesn't compile with USE=php, USE=debug doesn't work
Summary: www-apache/mod_vhs-1.0.32 doesn't compile with USE=php, USE=debug doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 10:43 UTC by Marcin Mirosław
Modified: 2013-02-20 23:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2011-02-28 10:43:09 UTC
* 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
Comment 1 Marcin Mirosław 2011-02-28 11:38:18 UTC
Line:
use debug myconf="${myconf} -DVH_DEBUG"
should be lik this:
use debug && myconf="${myconf} -DVH_DEBUG"
to have USE=debug working.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-02-28 20:22:18 UTC
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
Comment 3 Adrian 2012-08-08 13:13:27 UTC
(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
Comment 4 Pacho Ramos gentoo-dev 2013-01-01 19:35:29 UTC
(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
Comment 5 Ole Markus With (RETIRED) gentoo-dev 2013-01-01 20:02:46 UTC
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.
Comment 6 Pacho Ramos gentoo-dev 2013-01-01 20:05:12 UTC
Thanks a lot for your opinion, there are a lots of apache modules that need review :(
Comment 7 Sergey Popov (RETIRED) gentoo-dev 2013-02-20 23:34:27 UTC
Package is removed from tree