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

Robin Schoonover end at endif.cjb.net
Mon Dec 6 08:51:49 UTC 2004


On Thu, 18 Nov 2004 13:12:27 -0500
jimmie james <jimmiejaz at gmail.com> wrote:
> Hi again, 
> 
> On Thu, 18 Nov 2004 09:40:42 -0700, Robin Schoonover
> <end at endif.cjb.net> wrote:
> > 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.
> >
> 
> 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.
> 

Ok, I've looked into it a little more.

Unfortunately, getting libtool (which this port uses) to accept anything
at all is a royal pain, which is why my earlier patch didn't work  (It
was dumping the LDFLAGS, but not CFLAGS on the floor). Either libXThr
needs to be fixed, we use beep-media-player, we provide our own stubs
inside of our own code, or we force some hackish workaround on libtool.

I don't have the time to worry about any of those, so I'm just going to
have it marked BROKEN for 4.x for the time being.  :(

-- 
Robin Schoonover            <end at endif.cjb.net> <endx7 at users.sf.net>
#
# Back when I was a boy, we carved our own IC's out of wood.
#



More information about the freebsd-ports-bugs mailing list