Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246073 - media-video/vlc-0.9.6: libvlcplugin.so can't be loaded by opera
Summary: media-video/vlc-0.9.6: libvlcplugin.so can't be loaded by opera
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-08 15:54 UTC by Serge Ratke
Modified: 2010-06-25 17:02 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Ratke 2008-11-08 15:54:20 UTC
opera fails to load the libvlcplugin.so located in /usr/lib/nsbrowser/plugins since it can't find the libxul.so and the libxpcom.so libs located in /usr/lib/xulrunner-1.9. xulrunner is pulled by the vlc with the nsplugin USE flag set.

Reproducible: Always

Steps to Reproduce:
1. install vlc with USE nsplugin
2. start opera with --debugplugin

Actual Results:  
failed to load libvlcplugin.so

Expected Results:  
libvlcplugin.so present as plugin and ready to use

used the opera 9.62 version. however, this plugin isn't loaded with konqueror either.



Portage 2.2_rc13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2 i686)
=================================================================                                    
System uname: Linux-2.6.27-gentoo-r2-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-glibc2.0                    
Timestamp of tree: Sat, 08 Nov 2008 12:45:01 +0000                                                           
ccache version 2.4 [enabled]                                                                                 
app-shells/bash:     3.2_p39                                                                                          
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                                 
dev-lang/python:     2.5.2-r8                                                                                                              
dev-util/ccache:     2.4-r8                                                                                                                
dev-util/cmake:      2.6.2                                                                                                                 
sys-apps/baselayout: 2.0.0                                                                                                                 
sys-apps/openrc:     0.3.0-r1                                                                                                              
sys-apps/sandbox:    1.2.18.1-r3                                                                                                           
sys-devel/autoconf:  2.13, 2.63                                                                                                            
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1                                                                                         
sys-devel/binutils:  2.19                                                                                                                  
sys-devel/gcc-config: 1.4.0-r4                                                                                                             
sys-devel/libtool:   2.2.6a                                                                                                                
virtual/os-headers:  2.6.27-r2                                                                                                             
ACCEPT_KEYWORDS="x86 ~x86"                                                                                                                 
CBUILD="i686-pc-linux-gnu"                                                                                                                 
CFLAGS="-O2 -march=pentium4 -pipe"                                                                                                         
CHOST="i686-pc-linux-gnu"                                                                                                                  
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
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="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl alsa berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd exif fastcgi fortran gdbm gpm hal iconv ipv6 isdnlog jpeg jpeg2kkde matroska midi mmx mp3 mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl phonon plasma png pppd python qt3 qt4 readline reflection samba semantic-desktop session spell spl sse sse2 ssl svg sysfs tcpd tiff unicode userlocales vim-syntax win32codecs x86 xcomposite xine xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexis Ballier gentoo-dev 2008-11-10 10:59:37 UTC
$ pkg-config --libs libxul
-Wl,-R/usr/lib64/nspr -L/usr/lib64/xulrunner-1.9/lib -L/usr/lib64/nspr -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl

$ ldd /usr/lib64/nsbrowser/plugins/libvlcplugin.so
[...]
	libxul.so => not found
	libxpcom.so => not found
[...]

maybe it should set the rpath to /usr/lib64/xulrunner-1.9/lib too; that could fix the issue.

@mozilla: is that normal?
@Jeroen: I have absolutely no clue how opera does use nsplugins, so I'm cc'ing you in case you can help.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-10 18:21:56 UTC
(In reply to comment #1)

> @Jeroen: I have absolutely no clue how opera does use nsplugins, so I'm cc'ing
> you in case you can help.

Well, generally I might be able to help, but Opera specifically doesn't do anything that konqueror's or mozilla's NS plugin API wouldn't.

It would really help if the reporter posted the output of
  ldd /usr/lib*/nsbrowser/plugins/libvlcplugin.so
Comment 3 Serge Ratke 2008-11-10 18:41:04 UTC
ldd /usr/lib/nsbrowser/plugins/libvlcplugin.so 
        linux-gate.so.1 =>  (0xb7f5c000)                            
        libvlc.so.2 => /usr/lib/libvlc.so.2 (0xb7f14000)            
        libvlccore.so.0 => /usr/lib/libvlccore.so.0 (0xb7e70000)    
        libhal.so.1 => /usr/lib/libhal.so.1 (0xb7e5f000)            
        libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb7e2a000)      
        librt.so.1 => /lib/librt.so.1 (0xb7e20000)                  
        libxul.so => not found                                      
        libxpcom.so => not found                                    
        libplds4.so.7 => /usr/lib/nspr/libplds4.so.7 (0xb7e1c000)   
        libplc4.so.7 => /usr/lib/nspr/libplc4.so.7 (0xb7e17000)     
        libnspr4.so.7 => /usr/lib/nspr/libnspr4.so.7 (0xb7de4000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7dcc000)
        libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7dbb000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb7d6c000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7c83000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7c7f000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7c78000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7c74000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7c6b000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb7c66000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb7c4d000)
        libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libstdc++.so.6 (0xb7b68000)
        libm.so.6 => /lib/libm.so.6 (0xb7b41000)
        libc.so.6 => /lib/libc.so.6 (0xb7a07000)
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 (0xb79fa000)
        /lib/ld-linux.so.2 (0xb7f5d000)
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2008-11-24 10:39:23 UTC
(In reply to comment #1)
> $ pkg-config --libs libxul
> -Wl,-R/usr/lib64/nspr -L/usr/lib64/xulrunner-1.9/lib -L/usr/lib64/nspr
> -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl
> 
> $ ldd /usr/lib64/nsbrowser/plugins/libvlcplugin.so
> [...]
>         libxul.so => not found
>         libxpcom.so => not found
> [...]
> 
> maybe it should set the rpath to /usr/lib64/xulrunner-1.9/lib too; that could
> fix the issue.
> 
> @mozilla: is that normal?
> @Jeroen: I have absolutely no clue how opera does use nsplugins, so I'm cc'ing
> you in case you can help.
> 

I have no clue how does this works, but libxul.so is there...

Vadim, what version of xulrunner-1.9 are you using?
Comment 5 Serge Ratke 2008-11-24 19:04:43 UTC
i'm using xulrunner 1.9.0.4-r1. so your libxul.so is getting picked up by libvlcplugin.so? the only thing which is missing is the directory where libxul.so is located not being in the LD_PATH, isn't it?
Comment 6 Alexis Ballier gentoo-dev 2008-11-24 20:26:20 UTC
(In reply to comment #5)
> i'm using xulrunner 1.9.0.4-r1. so your libxul.so is getting picked up by
> libvlcplugin.so? the only thing which is missing is the directory where
> libxul.so is located not being in the LD_PATH, isn't it?

yes, i think libxul.pc should probably advertise the rpath of libxul.so too when asked for libs.
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2008-12-11 10:53:10 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > i'm using xulrunner 1.9.0.4-r1. so your libxul.so is getting picked up by
> > libvlcplugin.so? the only thing which is missing is the directory where
> > libxul.so is located not being in the LD_PATH, isn't it?
> 
> yes, i think libxul.pc should probably advertise the rpath of libxul.so too
> when asked for libs.
> 

Can you check how ubuntu does it? I don't see any reference to libxul.so on their plugin. Although i think they use xul-1.8...
Comment 8 Thomas 2009-01-03 19:16:29 UTC
The vlc plugin cannot be loaded by mozilla-firefox-2 as well:

LoadPlugin: failed to initialize shared library /usr/lib/nsbrowser/plugins/libvlcplugin.so [libxul.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden]

(means "file not found".)

Versions:
www-client/mozilla-firefox-2.0.0.19
media-video/vlc-0.9.8a
net-libs/xulrunner-1.8.1.19 
net-libs/xulrunner-1.9.0.5

yelp still requires xulrunner 1.8:

$ equery d xulrunner
...
gnome-extra/yelp-2.22.1-r2 (xulrunner? =net-libs/xulrunner-1.8*)
...
Comment 9 Thomas 2009-01-03 19:42:06 UTC
A work around for me currently is to add /usr/lib/xulrunner to the LD_LIBRARY_PATH in /usr/bin/firefox:

export LD_LIBRARY_PATH=/usr/lib/xulrunner${LD_LIBRARY_PATH:+":$LD_LIBRARY_PATH"}

Interesting enough, the vlc plugin seems to be compiled against xulrunner-1.8 (although 1.9 was installed when vlc was compiled), as putting /usr/lib/xulrunner-1.9 leads to undefined symbols:

LoadPlugin: failed to initialize shared library /usr/lib/nsbrowser/plugins/libvlcplugin.so [/usr/lib/xulrunner-1.9/libxul.so: undefined symbol: js_CallClass]
Comment 10 Thomas 2009-01-03 19:55:58 UTC
So the plugin can be loaded, but it doesn't work ("No running windows found").  As it seems, a xulrunner based plugin requires a xulrunner based browser. 
Comment 11 Gef 2010-05-08 14:29:47 UTC
~media-video/vlc-0.9.6 is no longer in tree. Is this reproductible in any way with recent vlc/opera setup ?
Comment 12 Alexis Ballier gentoo-dev 2010-06-25 11:19:17 UTC
(In reply to comment #11)
> ~media-video/vlc-0.9.6 is no longer in tree. Is this reproductible in any way
> with recent vlc/opera setup ?
> 

please try this
Comment 13 Serge Ratke 2010-06-25 17:02:43 UTC
works here with vlc-1.1.0 and opera-10.11. though, i have no controls (play, pause, etc.)