xfce4-xmms-controller-plugin Undefined symbol "pthread_mutex_trylock"

jimmie james jimmiejaz at gmail.com
Thu Nov 18 18:19:08 UTC 2004


Hi again, 

On Thu, 18 Nov 2004 09:40:42 -0700, Robin Schoonover <end at endif.cjb.net> wrote:
> 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.
> >
> > /usr/X11R6/lib/xfce4/panel-plugins/libxfcexmms.so:
> [snip]
> >         libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6
> >         (0x28998000)
> [snip]
> 
> 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.

Nope, same error. 

Just a thought here, on my 4.-10 system, I've got 

/usr/local/lib/pth/libpthread.a
/usr/local/lib/pth/libpthread.so
/usr/local/lib/pth/libpthread.so.20

which all have  pthread_mutex_trylock, couldn't it be forced to link
against one of them?
Also,  since we're using gtk2, wouldn't beep-media-player (gtk2 fork
of xmms) be a better choice, or an option?

attached is the build/install log, (build.txt) if it'll help any.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: build.txt
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20041118/4e2a0f9f/attachment.txt>


More information about the freebsd-ports-bugs mailing list