I tried to emerge gxine, but emerging xine-lib-1.0 fails, trying to use the wrong version of the libstdc++.la library. It is trying to use the gcc tools from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/, even though config.guess returns i686-pc-linux as my machine type. As I have the gcc compiler (from a stage3 live CD) for i686-pc-linux, naturally, the grep fails. I fixed the problem (after extensive searching in the makefiles, but failing to find anything) by creating a symbolic link from the /usr/lib/gcc-lib/i686-pc-linux-gnu to /usr/lib/gcc-lib/i386-pc-linux-gnu. Here's the actual error: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine -I ../../src/xine-utils -I../../src/input -I../../src/input -I../../lib -DXINE_COMPILE -I/usr/include/SDL -D_REENTRANT -I../../src/video_out/v idix -I../../src/video_out/vidix -mcpu=athlon -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferre d-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DN DEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-p rototypes -DENABLE_IPV6 -O2 -march=athlon -pipe -frename-registers -mno-sse2 -mno-sse3 -ffunction-sections -MT video_out_sdl.lo -MD -MP -MF .deps/video_out_sdl.Tpo -c video_out_sdl.c -o .libs/video_out_sdl.o /bin/sh ../../libtool-nofpic --mode=link gcc -DXINE_COMPILE -I/usr/include/SDL -D_REENTRANT -I../../src/video_out/vidix -I../../src/video _out/vidix -mcpu=athlon -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary =2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRA NT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENA BLE_IPV6 -O2 -march=athlon -pipe -frename-registers -mno-sse2 -mno-sse3 -ffunction-sections -o xineplug_vo_out_sdl.la -rpath /usr/lib/xin e/plugins/1.0.0 -avoid-version -module alphablend.lo video_out_sdl.lo -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread ../../src/xine-engine /libxine.la grep: /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory /bin/sed: can't read /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory libtool-nofpic: link: `/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive make[4]: *** [xineplug_vo_out_sdl.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0/src/video_out' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0/src/video_out' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/xine-lib-1.0/work/xine-lib-1.0' make: *** [all] Error 2 !!! ERROR: media-libs/xine-lib-1.0 failed. !!! Function src_compile, Line 236, Exitcode 2 !!! Parallel make failed Reproducible: Always Steps to Reproduce: 1. emerge gxine Actual Results: The build fails attempting to emerge xine-libs-1.0. See the details for an error message. Expected Results: It should have emerged cleanly. kropotkin portage # emerge info Portage 2.0.51-r2 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r7 i686) ================================================================= System uname: 2.6.10-gentoo-r7 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" 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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apm arts avi berkdb bindist bitmap-fonts cdr crypt cups curl dvd emboss encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6 java jpeg junit kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb videos xml xml2 xmms xv zlib"
try `fix_libtool_files.sh 3.3.4 --oldarch i386-pc-linux-gnu`
and reopen after trying that.
After running: fix_libtool_files.sh `gcc -dumpversion` --oldarch --oldarch i386-pc-linux-gnu I could successfully emerge xine-libs. fix_libtool.sh generated a lot of messages about fixing KDE, which I had installed as a binary package from the packages CD. Perhaps this should go in the documentation somewhere? I'll try and figure out where this could or should go, and submit it to the documentation herd.