The following was result of running emerge kde (and then emerge kdemultimedia, etc). This build worked 3 days ago and somehow is not longer working here with cvs tree from about 30 minutes ago. It seems like it's not installing kdelibs first. /bin/sh ../../libtool --mode=link --tag=CXX g++ -DEXAMPLES_DIR='"/usr/kde/3/share/apps/artsbuilder/examples"' -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -o libartsbuilder.la.closure libartsbuilder_la_closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3/lib -L/usr/kde/3/lib -no-undefined -module libartsbuilder_la.all_cc.lo -lmcop -lartsflow -ldl -L/usr/lib -lesd -laudiofile -lm libtool: link: cannot find the library `/usr/lib/libasound.la' make[3]: *** [libartsbuilder.la.closure] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0.1.20020604/work/kdemultimedia-3.0.1/arts/runtime' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0.1.20020604/work/kdemultimedia-3.0.1/arts' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdemultimedia-3.0.1.20020604/work/kdemultimedia-3.0.1' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function kde_src_compile, Line -3694, Exitcode 2 !!! died running emake, kde_src_compile:make !!! emerge aborting on /usr/portage/kde-base/kdemultimedia/kdemultimedia-3.0.1.20020604.ebuild .
kdelibs also fails with a similar issue: make[4]: Entering directory `/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs-3.0.1/arts/kde' g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3/include/arts -I../../arts/kde/lib -I../.. -I../../dcop -I../../libltdl -I../../kdecore -I../../kdeui -I../../kio -I../../kio/kio -I../../kio/kfile -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/kde/3/include -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -c libartskde_la_closure.cc -fPIC -DPIC -o .libs/libartskde_la_closure.o /bin/sh ../../libtool --mode=link --tag=CXX g++ -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -o libartskde.la.closure libartskde_la_closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3/lib -no-undefined -version-info 1:0 libartskde_la.all_cpp.lo libartskde_la.all_cc.lo ../../kio/libkio.la -lqtmcop -lsoundserver_idl libtool: link: cannot find the library `/usr/lib/libasound.la' make[4]: *** [libartskde.la.closure] Error 1 make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs-3.0.1/arts/kde' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs-3.0.1/arts/kde' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs-3.0.1/arts' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.0.1.20020604/work/kdelibs-3.0.1' make: *** [all-recursive-am] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function kde_src_compile, Line -3694, Exitcode 2 !!! died running emake, kde_src_compile:make !!! emerge aborting on /usr/portage/kde-base/kdelibs/kdelibs-3.0.1.20020604.ebuild . Missing DEPEND stuff maybe?
It appears this may be related to a portage problem, and is fixed in upcoming portage release (read works for me with newest test portage but not with current release)
The new portage doesn't fix this problem, it looks like for some reason it is trying to use ALSA again, even though i set USE="-alsa" _and_ the alsa stuff is commented out in the ebuild... anyone?
Explanation: kdelibs does, can and should link against alsa (all versions, 0.9 included). ditto for kde-base/arts. When these two link against alsa (i.e. when alsa is in USE), arts has alsa output support and kde apps can use sound with alsa. The kdemultimedia alsa support, which doesn't work, is part of kmidi and kmix. In other words these are individual apps, and even if they don't work kde as a whole (centered around arts) does work with alsa 0.9. So please give kdelibs /usr/lib/libasound.so :-) And, kdemultimeia/artsbuilder (which fails in the output quoted) and kdemultimedia/arts* in general is the arts infrastructure, not needed to run the daemon but having nice things like the arts control program. This also does work with alsa 0.9. Because arts and kdelibs compiled with alsa support, it needs to do so too. It doesn't need those configure parameters I commented out though, because it gets its linking info from looking at how arts was linked. I hope that explains it :-)
hmmm, I have no alsa installed (it doesnt work with my machine) and alsa is not set in USE... I even did USE="-alsa" emerge kdemultimedia and it fails, but it still seems to want alsa to be there to work. It worked on the initial release of this build...
If arts and kdelibs wren't built with atrs support, I've no idea whatsoever why kdemm would try to link against it. :-(
I would just like to say that I am trying to compile Gentoo on a 1 ghz pc and I am receiving the same error. I was using gcc 3.1, then I downgraded and the error still exists.