xfce4-xmms-controller-plugin Undefined symbol "pthread_mutex_trylock"
end at endif.cjb.net
Thu Nov 18 16:40:43 UTC 2004
On Wed, 17 Nov 2004 12:38:03 -0500
jimmie james <jimmiejaz at gmail.com> wrote:
> Hi Robin, Thanks for looking into this.
I'm the maintainer of the port. (Yes, I know the email addresses
aren't the same)
> On Wed, 17 Nov 2004 09:15:18 -0700, Robin Schoonover
> <end at endif.cjb.net> wrote:
> > On Tue, 16 Nov 2004 12:52:44 -0500
> > jimmie james <jimmiejaz at gmail.com> wrote:
> > > Installing the multimedia/xfce4-xmms-controller-plugin on
> > > 4.10-STABLE, and relauncing
> > > the xfce4-panel, I'm getting:
> > >
> > > ** (xfce4-panel:81087): WARNING **: xfce4-panel: module
> > > /usr/X11R6/lib/xfce4/panel-plugins/libxfcexmms.so cannot be opened
> > > (/usr/local/lib/libgthread12.so.3: Undefined symbol
> > > "pthread_mutex_trylock")
> > >
> > Hmm. From the best I can tell the problem involves linking glib1.x
> > and glib2 together combined with some thread strangeness. We can't
> > avoid this because we need xmms (gtk1.2) and xfce4 (gtk2). It
> > appears this problem -only- exists in 4.x (I run 5.x on all my
> > machines except for a server so I can't really reproduce the problem
> > here). I'm not sure on how to fix it yet even though I think I
> > might have an idea.
> > What does
> > ldd /usr/X11R6/lib/xfce4/panel-plugins/libxfcexmms.so
> > give you?
> If you need anything else, Please ask.
> libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6
Here is the problem from the best that I can tell....
The function pthread_mutex_trylock is not defined at all in
libXThrStub.so. libgthread needs this function, so when you try to
load the plugin, it fails because it can't find it.
In 5.x, the plugin works fine because we end up linked against
libpthread, which of course contains pthread_mutex_trylock. Also,
libXThrStub is no longer in 5.x (libc provides the stubs now. it also
doesn't forget pthread_mutex_trylock).
Try the attached patch and tell me if it works.
Robin Schoonover (aka End)
# Don't worry about the world coming to an end today. It's already
# tomorrow in Australia.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 417 bytes
Desc: not available
More information about the freebsd-ports-bugs