Build fails on several errors regarding libraries that need to be relinked. Reproducible: Always Steps to Reproduce: 1. emerge yafray Actual Results: /bin/sh ../../libtool --mode=install /bin/install -c libspherelight.la /var/tmp/portage/yafray-0.0.6/image//usr/lib/yafray/libspherelight.la libtool: install: warning: relinking `libspherelight.la' (cd /var/tmp/portage/yafray-0.0.6/work/yafray-0.0.6/src/lights; /bin/sh ../../libtool --mode=relink g++ -O3 -fomit-frame-pointer -ffast-math -Wall -D_PTHREADS -I../yafraycore -O2 -pipe -march=athlon64 -fweb -ftracer -o libspherelight.la -rpath /usr/lib/yafray -no-undefined -module -export-dynamic -avoid-version spherelight.lo ../yafraycore/libyafraycore.la -inst-prefix-dir /var/tmp/portage/yafray-0.0.6/image/) g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/crtbeginS.o .libs/spherelight.o -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/../.. -L/usr/x86_64-pc-linux-gnu/bin -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1 -L/usr/lib64 -L/usr/lib -L/var/tmp/portage/yafray-0.0.6/image//usr/lib -lyafraycore -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../.. -L/var/tmp/portage/yafray-0.0.6/image//usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../crtn.o -march=athlon64 -Wl,-soname -Wl,libspherelight -o .libs/libspherelight /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lyafraycore collect2: ld returned 1 exit status libtool: install: error: relink `libspherelight.la' with the above command before installing it make[3]: *** [install-libLTLIBRARIES] Error 1 make[3]: Leaving directory `/var/tmp/portage/yafray-0.0.6/work/yafray-0.0.6/src/lights' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/var/tmp/portage/yafray-0.0.6/work/yafray-0.0.6/src/lights' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/yafray-0.0.6/work/yafray-0.0.6/src' make: *** [install-recursive] Error 1 !!! ERROR: media-gfx/yafray-0.0.6 failed. !!! Function einstall, Line 385, Exitcode 2 !!! einstall failed Expected Results: Installed as normal Portage 2.0.50-r9 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 x86_64 4 Gentoo Base System version 1.5.1 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -march=athlon64 -fweb -ftracer" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=athlon64 -fweb -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://194.83.57.11/sites/www.ibiblio.org/gentoo/ http://194.83.57.3/sites/www.ibiblio.org/gentoo/ http://194.83.57.2/sites/www.ibiblio.org/gentoo/ http://194.83.57.7/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm avi berkdb cdr crypt dvd esd foomaticdb gdbm gif gpm gtk2 imlib java jpeg libg++ libwww mikmod mozilla moznocompose moznoirc mpeg mysql ncurses nls nptl oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell ssl tcltk tcpd truetype xinerama xml2 xmms xv xvid zlib"
Hmmmm... merged fine with gcc 3.4.1 here. Was this a fresh install of yafray or an upgrade? commodore64 malc # yafray -v Starting YafRay ... Yet Another Free RayTracer version 0.0.6 commodore64 malc # genlop -t yafray * media-gfx/yafray Sun Jul 25 14:07:47 2004 >>> media-gfx/yafray-0.0.6 merge time: 4 minutes and 2 seconds. commodore64 malc # gcc --version gcc (GCC) 3.4.1 (Gentoo Linux 3.4.1, ssp-3.4-2, pie-8.7.6.3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
After examining the error messages in the emerge output I discovered this: libtool: install: warning: remember to run `libtool --finish /usr/lib' libtool: install: warning: relinking `libpathlight.la' /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lyafraycore I ran `libtool --finish /usr/lib' - yafray then emerged with no errors. Perhaps `libtool --finish /usr/lib' is missing from an ebuild somewhere..
Closing with the blessing of the submitter as WORKSFORUSNOW(tm) ;-) Thanks.