Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538020 - dev-lang/php-5.5.21 - configure: checking for Apache 2.0 handler-module support via DSO through APXS... Sorry, I cannot run apxs.
Summary: dev-lang/php-5.5.21 - configure: checking for Apache 2.0 handler-module suppo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-28 01:26 UTC by Puggan
Modified: 2016-09-29 18:53 UTC (History)
0 users

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


Attachments
config.log (config.log,32.47 KB, text/plain)
2015-01-28 01:26 UTC, Puggan
Details
emerge --info www-servers/apache (apache.emerge-info,16.56 KB, text/plain)
2015-01-28 10:51 UTC, Puggan
Details
emerge --info dev-lang/php (php.emerge-info,16.33 KB, text/plain)
2015-01-28 10:51 UTC, Puggan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Puggan 2015-01-28 01:26:02 UTC
Created attachment 395038 [details]
config.log

running "emerge php" give the folowing configuration error:
---
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... 

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/sbin/apxs follows:
apxs:Error: /usr/sbin/apache2 not found or not executable.
configure: error: Aborting
---
Comment 1 Puggan 2015-01-28 01:39:39 UTC
running "/usr/sbin/apxs -q CFLAGS" in bash gives "-O2 -march=native -pipe"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-28 08:08:51 UTC
Please post your `emerge --info www-servers/apache' output in a comment.
Comment 3 Puggan 2015-01-28 10:51:24 UTC
Created attachment 395044 [details]
emerge --info www-servers/apache
Comment 4 Puggan 2015-01-28 10:51:58 UTC
Created attachment 395046 [details]
emerge --info dev-lang/php
Comment 5 Puggan 2015-01-28 11:41:39 UTC
after re-emerging www-servers/apache, the error disepered.
had "www-servers/apache-2.2.27-r4:2" both before and after.
and run "revdep-rebuild" yesterday before reporting the bug.
Comment 6 totony 2015-05-20 22:56:46 UTC
I had the same problem, it was caused by directory permissions on /usr/sbin being restricted to root.

Maybe change the path to /usr/bin/apxs would fix this, since /usr/sbin/apxs is a symlink.
Comment 7 Michael Orlitzky gentoo-dev 2015-11-24 16:39:12 UTC
It looks like we can fix the depend.apache eclass at this point...
Comment 8 Michael Orlitzky gentoo-dev 2016-09-29 18:53:34 UTC
I've since dropped the depend.apache eclass, and updated the path to /usr/bin/apxs. This shouldn't be a problem for PHP any longer.