when trying to emerge dev-php/php-4.3.8 compilation comes to a sudden end: --- libtool: link: cannot find the library `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2 /libstdc++.la' make: *** [sapi/cli/php] Error 1 !!! ERROR: dev-php/php-4.3.8 failed. !!! Function php-sapi_src_compile, Line 511, Exitcode 2 !!! compile problem --- The problem is, that in an up-to-date gentoo distro, there is only gcc-3.3.4 installed, hence the broken library reference. Of course this applies also to libstdc++.so. Obviously the gcc-3.3.2 lib reference is hardcoded somewhere in PHP's make files. Reproducible: Always Steps to Reproduce: 1. make sure the Gentoo distro is up-to-date as of Sep 27, 2004 with php NOT being installed 2. emerge php Actual Results: compilation of dev/php-4.3.8 was aborted with an error message Expected Results: instead of the hardcoded references to the gcc-3.3.2 runtimes /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so the symbolic links in /usr/lib should be used: /usr/lib/libstdc++.la /usr/lib/libstdc++.so my workaround: creating symbolic links for libstdc++.la and libstdc++.so at /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/ makes it possible to compile php emerge info yields: Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8.1) ================================================================= System uname: 2.6.8.1 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /etc/vim/ /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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 /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acpi alsa apache2 apm avi berkdb bitmap-fonts cdr crypt cups dga directfb dvd dvdr encode esd foomaticdb gd gdbm gif gnome gpm gtk gtk2 imap imlib ipv6 java joystick jpeg libg++ libwww mad maildir mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xinerama xml2 xmms xprint xv zlib"
for some reason the libtool fixup script didn't run on your machine. use /sbin/fix_libtool_files.sh