I used kde 3.0.5 for a while and then updated to 3.1 when it appeared. To save space I removed the kde 3.0.5 which deleted /usr/kde/3/lib (used emerge depclean for it, iirc). Today I did a emerge sync and started emerge -u world. But it complained about the missing -lartsc. I narrowed the problem down to this: -lartsc is searched in /usr/kde/3/lib but not in /usr/kde/3.1/lib. To workaround I exported CFLAGS=-L/usr/kde/3.1/lib which solved the problem for libmpeg2. That doesn't work for avifile though. As another workaround I symlinked the libdir. This worked for avifile. Reproducible: Always Steps to Reproduce: 1. emerge kde 3.0.5 and then kde 3.1. kde 3.0.5 should be the the default before installing kde 3.1 I think. 2. unmerge kde3.0.5 deleting /usr/kde/3/lib (emerge depclean should do this among other things) 3. try to emerge libmpeg2 or avifile Actual Results: Didn't have the chance to try it due to the lack of a test system but it should reproduce the error. Results see above Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19 i686 AMD Duron(tm) Processor GENTOO_MIRRORS="ftp://sunsite.dk/mirrors/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl cdr" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon -O3 -pipe" CXXFLAGS="-mcpu=athlon -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Have you tried env-update'ing? Check your /etc/ld.so.conf so it contains /usr/kde/3.1/lib, if it doesn't, even after an env-update, check your /etc/env.d directory. If it does.. I don't know. ;/
Yes. Tried env-update but it doesn't help. ld.so.conf contains the correct kde3.1 dir. The only problem is that the kde builds still try to link against the libs in the nonexistant kde3 dir. gcc -lartsc gives an error if no library is given. Checked the information in /etc/env.d. The kde-related info is correct. No mistakes found there.
same as bug #10869, please look there. *** This bug has been marked as a duplicate of 10869 ***