When I start kde (3.1.1a), the following output is logged to the console: kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: init_keyboard_layout 10 20 kdecore (KLibLoader): WARNING: library=/usr/lib/nsbrowser/plugins/flashplayer.xpt: file=/usr/lib/nsbrowser/plugins/flashplayer.xpt: /usr/lib/nsbrowser/plugins/flashplayer.xpt: invalid ELF header kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: NP_GetValue nspluginscan: WARNING: Plugin doesn't implement NP_GetValue kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: NP_GetMIMEDescription kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: NP_GetValue nspluginscan: WARNING: Plugin doesn't implement NP_GetValue kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: NP_GetValue nspluginscan: WARNING: Plugin doesn't implement NP_GetValue 25 kdecore (KLibLoader): WARNING: library=/usr/lib/mozilla/plugins/flashplayer.xpt: file=/usr/lib/mozilla/plugins/flashplayer.xpt: /usr/lib/mozilla/plugins/flashplayer.xpt: invalid ELF header kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: NP_GetValue nspluginscan: WARNING: Plugin doesn't implement NP_GetValue kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: NP_GetMIMEDescription kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: NP_GetValue nspluginscan: WARNING: Plugin doesn't implement NP_GetValue kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.1/lib/libkdecore.so.4: undefined symbol: NP_GetValue nspluginscan: WARNING: Plugin doesn't implement NP_GetValue Reproducible: Always Steps to Reproduce: 1. 2. 3. ~ $ emerge info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r2 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/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="/usr/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="3dnow zlib bonobo opengl ldap aalib acl acpi alsa apm arts atlas avi berkdb bobobo cdr crypt cups dga directfb doc dvb dvd encode esd evo fbcon flash gb gd gdbm ggi gif gnome gphoto2 gpm gps gtk gtk2 gtkhtml guile imap imlib innodb ipv6 java jikes jpeg junit kde kerberos lcms ldam leim libg++ libgda libwww mbox mikmod mmx motif mozilla mpeg mule mysql nas ncurses nls odbc oggvorbis oss pam pcmcia pda pdflib perl pic plotutils png pnp postgres python qt quicktime radeon readline ruby samba sasl scanner sdl slang slp snmp socks5 spell sse ssl svga tcltk tcpd tetex tiff truetype trusted usb wmf X xml xml2 xmms xv x86 threads mozsvg mozcalendar mozxmlterm" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4 " CXXFLAGS="-march=pentium3 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4 " ACCEPT_KEYWORDS="x86 jer" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache sandbox buildpkg userpriv usersandbox"
You should try to re-emerge kdelibs with less aggressive optimization (try -march=pentium3 -mcpu=pentium4 -O2 for now), this could solve the issue
Also the errors are correct. That file is not an elf executable, it are javascript bindings for mozilla.