Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85182 - mod_php-5.0.3-r2 fails
Summary: mod_php-5.0.3-r2 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-14 02:11 UTC by Bill Roberts
Modified: 2005-03-14 05:10 UTC (History)
0 users

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


Attachments
/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/config.log (config.log,23.66 KB, text/plain)
2005-03-14 02:18 UTC, Bill Roberts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Roberts 2005-03-14 02:11:43 UTC
emerge mod_php-5.0.3-r2 fails with the following errors:

checking for Apache 1.x module support via DSO through APXS...

Sorry, I was not able to successfully run APXS.  Possible reasons:

1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
The output of /usr/sbin/apxs follows
./configure: line 4709: /usr/sbin/apxs: No such file or directory
configure: error: Aborting
 /var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/config.log

I am currently ~x86 and unmasked for apache, php, mod_php.

Per instructions, /var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/config.log
will follow as attachment.
Comment 1 Bill Roberts 2005-03-14 02:18:16 UTC
Created attachment 53399 [details]
/var/tmp/portage/mod_php-5.0.3-r2/work/php-5.0.3/config.log

Per instructions.
Comment 2 Bill Roberts 2005-03-14 02:26:10 UTC
I forgot to add this from #gentoo-apache: 

vericgar | it may expect /usr/sbin/apxs while if you have apache-2.x it'll be /usr/sbin/apxs2

In fact I have /usr/sbin/apxs2. vericgar suggested the php guys may have to fix their ebuild.
Comment 3 Stephan Hermann 2005-03-14 03:57:39 UTC
Guys,

there is an error in function src_compile() of the ebuild.

in the original ebuild its written:
my_conf="${my_conf} --with-apxs${USE_APACHE2}=/usr/sbin/apxs${USE_APACHE2}"
but it should be
my_conf="${my_conf} --with-apxs${APACHE_VERSION}=/usr/sbin/apxs${APACHE_VERSION}"

cause in the beginning:

if useq apache2 ; then
        APACHE_VERSION=2
else
        APACHE_VERSION=1
fi

u can fix this.

really stupid to break it.
Comment 4 Stuart Herbert (RETIRED) gentoo-dev 2005-03-14 05:10:53 UTC
Fixed in CVS.  Problem was it relies on some fixes to depend.apache.eclass which I'd forgotten to commit.

Best regards,
Stu