When ebuilding any PEAR ebuild a call to an undefined function happens. I presume there is an other dependancy. Reproducible: Always Steps to Reproduce: 1. emerge PEAR-[something] 2. get error Actual Results: fabienne root # emerge PEAR-DB Calculating dependencies ...done! >>> emerge (1 of 1) dev-php/PEAR-DB-1.6.4 to / >>> md5 src_uri ;-) DB-1.6.4.tgz >>> Unpacking source... >>> Unpacking DB-1.6.4.tgz to /var/tmp/portage/PEAR-DB-1.6.4/work tar: A lone zero block at 1117 >>> Source unpacked. >>> Install PEAR-DB-1.6.4 into /var/tmp/portage/PEAR-DB-1.6.4/image/ category dev-php Fatal error: Call to undefined function: _prependpath() in /usr/lib/php/PEAR/Downloader.php on line 143 !!! ERROR: dev-php/PEAR-DB-1.6.4 failed. !!! Function php-pear_src_install, Line 46, Exitcode 255 !!! (no error message) Expected Results: Install done? Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.15 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://louise.tc2.utelisys.net/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://212.219.56.146/sites/www.ibiblio.org/gentoo/ http://212.219.247.18/sites/www.ibiblio.org/gentoo/ http://212.219.247.13/sites/www.ibiblio.org/gentoo/ http://194.83.57.7/sites/www.ibiblio.org/gentoo/ http://ftp.heanet.ie/pub/gentoo/ " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://louise.tc2.utelisys.net/gentoo-portage" USE="acpi alsa apache2 apm berkdb crypt curl fam fastcgi flash gd gif gpm imagemagick imap imlib ipv6 jpeg ldap libg++ libwww maildir mmx mysql ncurses nls nptl odbc oss pam pdflib perl png postgres python readline sasl slang spell sqlite sse ssl svga tiff truetype wmf x86 xml2 zlib"
emerge your php again, and please detail here which version you have installed. I can't produce this with php-4.3.6-r1.
I think the installation was a bit mixed up, by unmerging php itself the pear versions changed back to php4 instead of php5 so lets say it was 'emerge sync'-magic.