Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177710 - Error compiling dev-lang/php
Summary: Error compiling dev-lang/php
Status: RESOLVED DUPLICATE of bug 177697
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-08 20:06 UTC by Pascariu Olimpiu
Modified: 2007-05-08 20:10 UTC (History)
0 users

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 Pascariu Olimpiu 2007-05-08 20:06:58 UTC
When I try to recompile dev-lang/php, I receive the following error : 
* 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 243: //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.

But apache is compiled with the mpm-worker use flag:
emerge -pv apache

[ebuild   R   ] net-www/apache-2.2.4  USE="mpm-worker ssl threads -debug -doc -ldap -mpm-event -mpm-peruser -mpm-prefork -no-suexec (-selinux) -static-modules" 0 kB

It seems that the error is caused because the file /usr/bin/apxs2 does not exist, and according to the file /usr/portage/eclass/apache-module.eclass, that file should be used to detect what MPM style is used by apache :

bigguy ~ # grep apxs2  /usr/portage/eclass/apache-module.eclass 
                INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)"
                INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)"

I have get around this error by creating a symlink to the file /usr/sbin/apxs, named apxs2

***************************************

bigguy ~ # emerge --info
Portage 2.1.2.7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.19-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 08 May 2007 16:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4
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="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS=""
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/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.ro.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl acpi alsa amd64 aoss apache2 arj asf authdaemond authfile authlib berkdb bitmap-fonts bzip2 cairo cdparanoia cdr clamav cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo exif ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv imagemagick iproute2 isdnlog java jpeg kerberos libg++ mad matroska midi mikmod mmx mono mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdf perl php png postgres pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb vorbis wmf xine xml xorg xpm xv xvid zip zlib" ALSA_CARDS="intel8x0" 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="keyboard mouse" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-08 20:10:49 UTC

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