I had this error while compiling the latest kdelibs in portage (gentoo cvs latest ebuild): /bin/sh ../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ -Wnon-v irtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcas t-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -g3 -fno-inline -mtune=pentium3 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno -common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT _NO_TRANSLATION -o libkdeinit_dcopserver.la -rpath /usr/kde/3.3/lib -no-undef ined -avoid-version -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib dcopser ver.lo dcopsignals.lo libDCOP.la /usr/lib/libjpeg.a(jcapimin.o)(.text+0x0): In function `jpeg_CreateCompress': : multiple definition of `jpeg_CreateCompress' /usr/lib/libjpeg.a(jcapimin.o)(.text+0x0): first defined here /usr/lib/libjpeg.a(jcapimin.o)(.text+0xf0): In function `jpeg_destroy_compress': : multiple definition of `jpeg_destroy_compress' /usr/lib/libjpeg.a(jcapimin.o)(.text+0xf0): first defined here /usr/lib/libjpeg.a(jcapimin.o)(.text+0x100): In function `jpeg_abort_compress': : multiple definition of `jpeg_abort_compress' /usr/lib/libjpeg.a(jcapimin.o)(.text+0x100): first defined here /usr/lib/libjpeg.a(jcapimin.o)(.text+0x110): In function `jpeg_suppress_tables': : multiple definition of `jpeg_suppress_tables' /usr/lib/libjpeg.a(jcapimin.o)(.text+0x110): first defined here /usr/lib/libjpeg.a(jcapimin.o)(.text+0x170): In function `jpeg_finish_compress': : multiple definition of `jpeg_finish_compress' /usr/lib/libjpeg.a(jcapimin.o)(.text+0x170): first defined here /usr/lib/libjpeg.a(jcapimin.o)(.text+0x2a0): In function `jpeg_write_marker': etc. with undefines. I looked at the Makefile.in and tracked the actual command down to here: dcopserver.la: $(dcopserver_la_OBJECTS) $(dcopserver_la_DEPENDENCIES) $(CXXLINK) -rpath $(kdeinitdir) $(dcopserver_la_LDFLAGS) $(dcopserver_la_OBJECTS) $(dcopserver_la_LIBADD) $(LIBS) Everything else looks ok, except: LIBRESOLV = -lresolv LIBS = LIBSM = -lSM -lICE LIBS isn't defined. I checked config.status to make sure Makefile.in was getting the correct value: s,@LIBS@,,;t t and sure enough it was getting a blank entry. I haven't had a chance to look over the configure code, but that code definately seems at fault. This is causing kdelibs to die during the first dependancy (dcop). Usual emerge --info: Portage 2.0.51-r3 (gcc34-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.6.6 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mtune=pentium3 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/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" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mtune=pentium3 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs cvs distlocks fixpackages keepwork nostrip sandbox sign" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://gentoo.osuosl.org" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/gentoo-x86" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa anthy apm arts avi berkdb bitmap-fonts canna cdparanoia cdr chroot cjk codecs crypt cups curl debug doc dv dvd dvdr encode erandom esd esound f77 firebird flac foomatic foomaticdb freewnn gdbm ggi gif gimpprint gnome gnomedb gnutls gpm gstreamer gtk gtk2 guile hal imlib immqt immqt-bc ithreads jacktiff jpeg kde ldap libcaca libg++ libwww live lzo mad mikmod ming mmx motif mozcalendar mozdevelop mozilla moznocompose moznoirc moznomail mp3 mpeg mysql nas ncurses network nls nomalloccheck nptl nvidia oggvorbis opengl oss pam pdflib perl png portaudio python qt quicktime readline real ruby sane sdk sdl skey slang sndfile spell sse ssl svg svga tcltk tcpd tga theora threads truetype truetype-fonts userlocales vcd x86 xanim xine xml xml2 xmms xprint xv xvid xvmc zlib linguas_ja_JP linguas_en linguas_en_US"
I think this is caused by bug #71539. Please take a look at that. I've explained the problem and I think that the right solution is to remove that strange check...
Err... bug #70947
Bug #70947 was fixed so I'm declaring fixed also this one.