Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 180051

Summary: net-www/apache-2.2.4-r3 missing /usr/sbin/apxs2 , breaks all module emerges
Product: Gentoo Linux Reporter: Timothy Stotts <devel>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major CC: apache-bugs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Timothy Stotts 2007-05-27 20:11:03 UTC
Recent ebuilds of apache httpd 2.2 break building of modules. The ebuilds do not install the `apxs' (or `apxs2') binary. This breaks emerge of any apache module!

apr-0.9.12
apr-util-0.9.12
apr-1.2.8
apr-util-1.2.8
apache-2.2.4-r3
apache-tools-2.2.4-r2



Reproducible: Always

Steps to Reproduce:
1. emerge =apache-2.2*
2. attempt to emerge an apache module, such as php or mod_perl
3.

(this reproduced on 2 different machines)
This must be new to portage within the past 48 hours

Actual Results:  
emerge of apache module fails for apache.eclass not finding /usr/sbin/apxs2.


Expected Results:  
apxs2 should be present on the filesystem, either from apache-2.2* or apache-tools-2.2*.  It's absence breaks all new apache-related emerges.

A re-emerge of above ebuild versions does not provide apxs2 binary.


Example:

sudo emerge -q mod_perl
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) www-apache/mod_perl-2.0.3-r1 to /
/usr/portage/www-apache/mod_perl/mod_perl-2.0.3-r1.ebuild: line 30: /usr/sbin/apxs2: No such file or directory
 * Applying RegistryCooker.patch ...                                                                                                                                                                          [ ok ]
 * Applying mod_perl-2.0.1-sneak-tmpdir.patch ...                                                                                                                                                             [ ok ]
[  error] Unable to determine server version, aborting.
[  error] Invalid MP_APXS specified?
Reading Makefile.PL args from @ARGV
   MP_TRACE = 1
   MP_DEBUG = 1
   MP_USE_DSO = 1
   MP_APXS = /usr/sbin/apxs2
no conflicting prior mod_perl version found - good.

!!! ERROR: www-apache/mod_perl-2.0.3-r1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  mod_perl-2.0.3-r1.ebuild, line 93:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/www-apache:mod_perl-2.0.3-r1:20070527-200754.log'.





Example:

sudo emerge -q php
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-lang/php-5.2.2-r1 to /
 * Determining SAPI(s) to build
 *   Enabled  SAPI: cli
 *   Enabled  SAPI: cgi
 *   Enabled  SAPI: apache2
 * 
 * If this package fails with a fatal error about Apache2 not having
 * been compiled with a compatible MPM, this is normally because you
 * need to toggle the 'threads' USE flag.
 * 
 * If 'threads' is off, try switching it on.
 * If 'threads' is on, try switching it off.
 * 
/usr/portage/eclass/apache-module.eclass: line 227: //usr/sbin/apxs2: No such file or directory
 * The module you are trying to install (php)
 * will only work with one of the following MPMs:
 *     event leader metuxmpm perchild threadpool worker
 * You do not currently have any of these MPMs installed.
 * Please re-install apache with the correct mpm-* USE flag set.

!!! ERROR: dev-lang/php-5.2.2-r1 failed.
Call stack:
  ebuild.sh, line 1631:   Called dyn_setup
  ebuild.sh, line 703:   Called qa_call 'pkg_setup'
  ebuild.sh, line 44:   Called pkg_setup
  php-5.2.2-r1.ebuild, line 64:   Called apache-module_pkg_setup
  apache-module.eclass, line 354:   Called apache2_pkg_setup
  apache-module.eclass, line 239:   Called die

!!! No safe MPM installed.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/dev-lang:php-5.2.2-r1:20070527-200818.log'.
Comment 1 Alexey Bazhin 2007-05-27 20:50:23 UTC
same here, no apxs2 or apxs script installed...

ortage 2.1.2.7 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r2, 2.6.20-gentoo-r4 i686)
=================================================================
System uname: 2.6.20-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 27 May 2007 11:20:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cli-php4/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.KOI8-R"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="alsa apache2 berkdb bitmap-fonts bzip2 cli cracklib crypt dri dvd encode fortran ftp gd gdbm gif gpm iconv imap isdnlog ithreads javascript jpeg libg++ midi mmap mmx mudflap ncurses nls nptl nptlonly openmp pam pcre png ppds pppd readline reflection session slang socks5 spl sse sse2 ssl threads tiff truetype truetype-fonts type1-fonts unicode wmf x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-05-27 21:04:31 UTC

*** This bug has been marked as a duplicate of bug 180006 ***