Firefox crashes immediately if i try to open Tools --> Add-ons menu or after some seconds of usage with the following error: /usr/lib64/mozilla-firefox/firefox: symbol lookup error: /usr/lib64/nsbrowser/plugins/gecko-mediaplayer-dvx.so: undefined symbol: gconf_client_get_default This only occurs if gecko-mediaplayer-0.9.6 is built with --as-needed ldflag Also version 0.9.5 (not in portage anymore) works fine even with --as-needed enabled. Reproducible: Always Steps to Reproduce: emerge --info Portage 2.1.6.13 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30.3 x86_64) ================================================================= System uname: Linux-2.6.30.3-x86_64-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 27 Jul 2009 23:00:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.2-r1 dev-util/cmake: 2.6.4-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/" LANG="C" LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 berkdb bzip2 cli cracklib crypt cups dri gdbm gpm iconv isdnlog midi mmx ncurses nptl nptlonly pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I have been unable to duplicate this. I know when I ran core2 for -march I had problems with xorg-server and other apps. Could you just test gecko-mediaplayer with -march=native and --as-needed ldflag please.
emerge gentoolkit revdep-rebuild
and/or USE=-gnome or USE=gnome (pick one) emerge mozilla-firefox gnome-mplayer gecko-mediaplayer
Reopening because this is a real bug. I hit it after a full world rebuild, so no need to say that gecko-mediaplayer, gnome-mplayer, mplayer and all their dependencies had been rebuilt. Not surprisingly either revdep-rebuild doesn't find anything to rebuild. Removing --as-needed and rebuilding gecko-mediaplayer only fixes the issue. Probably some wrongly linked library that triggers an erroneous removal of a symbol, but I haven't had time to check what exactly it is. Denis.
Bug still exist when building the newest version 0.9.7 with --as-needed. Firefox crashes while trying to stream a wmp file. Output to console is the following: NPP_New called /usr/lib64/mozilla-firefox/firefox: symbol lookup error: /usr/lib64/nsbrowser/plugins/gecko-mediaplayer-wmp.so: undefined symbol: dbus_connection_setup_with_g_main Building with --as-needed disabled solves the problem immediately.
Created attachment 205410 [details, diff] gecko-mediaplayer-as-needed.patch That should fix the issues.
Fixed in 0.9.7-r1, thanks!