Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2005 14:00:14 +0100
From:      Sebastian Strollo <seb@strollo.org>
To:        "Adam McLaurin" <adam.freebsd@fastmail.fm>
Cc:        nork@freebsd.org
Subject:   Re: Problems with nphelix.so in new linuxpluginwrapper
Message-ID:  <8ED79FA3-6C75-11D9-BC3A-0003939B65EA@strollo.org>
In-Reply-To: <1106360615.7186.213309193@webmail.messagingengine.com>
References:  <1106360615.7186.213309193@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

On Jan 22, 2005, at 3:23 AM, Adam McLaurin wrote:

> Since upgrading to linuxpluginwrapper-20050119, I am getting the
> following warning when starting Galeon:
 >
>  $ galeon
> LoadPlugin: failed to initialize shared library
> /usr/local/lib/linux-mozilla/plugins/nphelix.so [Shared object
> "libstdc++.so.5" not found, required by "nphelix.so"]

And so I assume you were not getting them before? (Also - does galeon 
start?)

> On my system:
> -$ locate -i "libstdc++.so.5" |xargs ls -al
> lrwxrwxrwx  1 root  wheel       18 Jan 21 09:26
> /usr/compat/linux/usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.1
> -rwxr-xr-x  1 root  wheel  4181584 Sep  3  2002
> /usr/compat/linux/usr/lib/libstdc++.so.5.0.1

Ah, but as far as I understand the point of the linuxwrapper it is to 
run the plugins as *FreeBSD* binaries (i.e. not using the linux compat 
layer). So what the wrapper does is to emulate the glibc & system calls 
that are sufficently different and the rest of library & syscalls are 
passed onto the FreeBSD libraries and kernel. Norikatsu, please correct 
me if I've missunderstood.

Anyways, to solve your problem you need someway of mapping the request 
for libstdc++.so.5 (which the nphelix, realplayer, plugin needs) to a 
FreeBSD library. On my 5.3-RELEASE system I have the following in 
/etc/libmap.conf

# NPhelix (RealPlayer) with Mozilla/Firefox (others not tested)
[/usr/local/lib/linux-mozilla/plugins/nphelix.so]
libstdc++.so.5                  libstdc++.so.4
libc.so.6                       pluginwrapper/phelix.so

Which does the trick for me at least... (I think I forgot to include 
that in the sample libmap.conf file in my patch to Norikatsu)

Cheers,

/Sebastian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8ED79FA3-6C75-11D9-BC3A-0003939B65EA>