Starting spotify pops up an error message: "Spotify is already running, but not responding. Please close it and try again" But spotify is not running! Using strace I found out that it is actually dbus-launcher that is failing to start. It fails to load libplc4.so.9 (looking in /lib64 and /usr/lib64). I have saved the strace, just ask and I can attach it (~60kb gziped). The spotify ebuild makes symlink from /usr/lib64/libplc4.so to /opt/spotify/spotify-client/libplc4.so.9 and /usr/bin/spotify sets up LP_PRELOAD. I guess that something goes wrong because of this. As a workaround the following lets me start spotify: cd /usr/lib6 ln -s libplc4.so libplc4.so.9 ln -s libnspr4.so libnspr4.so.9 Reproducible: Always [ebuild R ] sys-apps/dbus-1.6.12 USE="X -debug -doc (-selinux) -static-libs -systemd {-test}" 0 kB [ebuild R *] media-sound/spotify-0.9.1.55 USE="-gnome -pax_kernel -pulseaudio" 0 kB [ebuild R ] dev-libs/nspr-4.10 USE="-debug" 0 kB Portage 2.2.1 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo x86_64) ================================================================= System uname: Linux-3.7.10-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.2 KiB Mem: 6107052 total, 2070848 free KiB Swap: 1959924 total, 1946128 free Timestamp of tree: Wed, 25 Sep 2013 14:15:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.5-r2 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13::<unknown repository>, 2.69 sys-devel/automake: 1.11.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo java-overlay local ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA googleearth AdobeFlash-11.x Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/var/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo/ http://ftp.ing.umu.se/linux/gentoo/ http://ftp.df.lth.se/pub/gentoo/ ftp://trumpetti.atm.fi/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5 -l4.5" PKGDIR="/var/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" PORTDIR_OVERLAY="/var/overlays/layman/java-overlay /var/overlays/local" SYNC="rsync://rsync.se.gentoo.org/gentoo-portage" USE="X Xaw3d a52 aac alsa amd64 apache2 bash-completion berkdb branding bzip2 cairo cdda cdr cli cracklib cups curl cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gimp gnutls gtk gtkstyle hddtemp iconv java jpeg lcms lzma mad midi mmx mmxext modules mp3 mp4 mpeg mudflap multilib ncurses nptl nsplugin offensive ogg openexr opengl openmp pam pango pcre png ppds readline sdl sieve source sse sse2 ssl ssse3 startup-notification subversion svg threads tiff tk truetype udev unicode upower usb vdpau vim-syntax vorbis wxwidgets xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hpp1005" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
I had to patch the ebuild because of nss and nspr library name changes: # different NSPR / NSS library names for some reason sed -i \ -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1\x00\x00\x00/g' \ -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1\x00\x00\3\3/g' \ opt/spotify/spotify-client/libcef.so || die "sed failed" So far it seems to work for me.
I'm holding out for the new release (this one has security issues), so I'm going to keep this open for now, but the fix is in tree.
I tested the new, patched, version of the ebuild and I can confirm that it works. I no longer need my workaround. Since Jorge's patch removed the ".9" I though that the symlinks in opt/spotify/spotify-client/ might no longer be needed. I tested to remove that hack from the ebuild, and it still works! Removed these lines: #hack to fix the nspr linking in spotify dosym /usr/lib/libnspr4.so /opt/spotify/spotify-client/libnspr4.so.9 dosym /usr/lib/libplc4.so /opt/spotify/spotify-client/libplc4.so.9 sed -i 's/libcef\.so/libcef\.so\ \/opt\/spotify\/spotify\-client\/libnsp r4\.so\.9\ \/opt\/spotify\/spotify\-client\/libplc4\.so\.9/g' "${ED}/usr/bin/spotify" Looking forward to the next official release. A big thank you to everyone helping to get Spotify working in Linux!