Installing mod_php after building is complete fails. Output from emerge: ---8<--- >>> Install mod_php-5.0.0-r1 into /var/tmp/portage/mod_php-5.0.0-r1/image/ category dev-php Installing PHP SAPI module: apache2handler /usr/lib/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/build/libtool' libphp5.la /var/tmp/portage/mod_php-5.0.0-r1/image//usr/lib/apache2/modules /usr/share/build/libtool --mode=install cp libphp5.la /var/tmp/portage/mod_php-5.0.0-r1/image//usr/lib/apache2/modules/ /usr/lib/apache2/build/instdso.sh: line 53: /usr/share/build/libtool: No such file or directory apxs:Error: Command failed with rc=8323072 . make: *** [install-sapi] Error 1 !!! ERROR: dev-php/mod_php-5.0.0-r1 failed. !!! Function php5-sapi_src_install, Line 432, Exitcode 2 !!! install failed ---8<--- Reproducible: Always Steps to Reproduce: 1. emerge mod_php 2. 3. Actual Results: emerge failed with an error, mod_php was not installed Expected Results: Install mod_php :) Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.7) ================================================================= System uname: 2.6.7 i586 Pentium MMX Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium-mmx -O2 -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium-mmx -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.tiscali.nl/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://128.213.5.34/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 audiofile avi berkdb cdr crypt cups curl dvd encode flac foomaticdb gb gd gdbm gif gmp gpm icq imagemagick imlib innodb ipv6 java jpeg lesstif libg++ libwww mad maildir mbox mikmod mmx mpeg mysql ncurses nls nocd oggvorbis pam pdflib perl png python quicktime readline samba sdl slang speex spell ssl tcpd theora tiff truetype unicode vhosts wmf x86 xml xml2 xvid zlib"
see the announcement I made on the gentoo-dev ML and read it more carefully. you MUST use ~arch! apache-2.0.50 should be pulled in as it's required. emerge sync and try again after setting ~arch.
a) Okay, I completely forgot that dev-php/php and dev-php/mod_php were marked with ~x86 in /etc/portage/package.keyword. b) Apache 2.0.50 IS installed so that can not be it. ---8<--- # emerge -sv apache [...] * net-www/apache Latest version available: 2.0.50 Latest version installed: 2.0.50 [...] ---8<--- Anyway, I removed both php and mod_php from package.keywords. I'm sorry for any inconvenience I caused.