I'm sure this has to do with my environment, or everybody would have noticed it, but I couldn't isolate it. In any way, PHP5 should compile without problems (like php4), that's why I'm submiting this bug. The error I've got is: Installing helper programs: /var/tmp/portage/php-5.0.3/image//usr/bin/ program: phpize program: php-config program: phpextdist make: Nothing to be done for `install'. make: Nothing to be done for `install'. make: Nothing to be done for `install'. make: Nothing to be done for `install'. Installing shared extensions: /var/tmp/portage/php-5.0.3/image//usr/lib/extensions/no-debug-non-zts-20041030/ cp: cannot stat `modules/*': No such file or directory make: *** [install-modules] Error 1 !!! ERROR: dev-php/php-5.0.3 failed. !!! Function php5-sapi_src_install, Line 452, Exitcode 2 !!! install failed I think the rest of the information is in emerge info. Reproducible: Always Steps to Reproduce: 1. echo "dev-php/php ~x86" >> /etc/portage/packages.keywords 2. echo "dev-php/mod_php ~x86" >> /etc/portage/packages.keywords 3. emerge -C php mod_php 4. emerge --oneshot php mod_php Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 20 2005, 04:36:12)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.seren.com/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://www.gigaload.org/gentoo.org/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.linux.ee/pub/gentoo/distfiles/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X aalib acl acpi alsa apache2 apm arts audiofile avi bash-completion bcmath bdf berkdb bitmap-fonts bzlib calendar cdparanoia cdr crypt ctype cups curl curlwrappers dba dbx dga directfb divx4linux dv dvb dvd dvdr emacs emboss encode esd exif f77 faad fam fbcon flac flash font-server foomaticdb fortran fpx ftp gcj gd gdbm gif gimpprint gnome gpm graphviz gstreamer gtk gtk2 imagemagick imap imlib inifile innodb ipv6 jabber jack java joystick jpeg jpeg2k junit kde lcms ldap leim libg++ libwww live lzo mad maildir matroska mbox mcal mhash mikmod mime mmx mmx2 mng moilla motif mozilla mpeg mule mysql nasncurses network nls objc oggvorbis opengl oss pam pda pdflib pear-db perl php pic plotutils png portaudio posix povray ppds python qt quicktime readline real rtc sasl scanner sdl shared simplexml slang slp sndfile sockets speel speex spell sqlite ssl svg svga tcpd tetex tga theora tidy tiff truetype truetype-fonts trutype type1-fonts unicode usb v4l v4l2 vhosts videos vim-with-x wmf xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid yv12 zeo zlib linguas_en linguas_es linguas_eo" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS
Same problem here. Seems like PHP isn't building any modules (whether it should be is questionable?). The Makefile checks for the modules directory, but does not check to see if it contains any files, and dies when it can't move them. This may be an upstream bug?
On further investigation, I've found this to be duplicate of bug #83055, which was a bit difficult to find based on these symptoms. This can be resolved by apply the patch attached to bug #83055.
I was told to remove the "shared" USE flag from php, that made it work.
Correct. Removing the presumably old "shared" use flag, php builds fine.
*** Bug 83534 has been marked as a duplicate of this bug. ***
Fixed in php5-sapi-r1.eclass.