Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2004 01:51:47 -0700
From:      Robin Schoonover <end@endif.cjb.net>
To:        jimmie james <jimmiejaz@gmail.com>
Cc:        endx7@users.sourceforge.net
Subject:   Re: xfce4-xmms-controller-plugin Undefined symbol "pthread_mutex_trylock"
Message-ID:  <20041206015147.510db359@zork>
In-Reply-To: <7e148fb90411181012b941cb6@mail.gmail.com>
References:  <7e148fb9041116095272275e3f@mail.gmail.com> <20041117091518.10813fb7@zork> <7e148fb904111709383a590790@mail.gmail.com> <20041118094042.237da3c3@zork> <7e148fb90411181012b941cb6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Nov 2004 13:12:27 -0500
jimmie james <jimmiejaz@gmail.com> wrote:
> Hi again, 
> 
> On Thu, 18 Nov 2004 09:40:42 -0700, Robin Schoonover
> <end@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@endif.cjb.net> <endx7@users.sf.net>
#
# Back when I was a boy, we carved our own IC's out of wood.
#



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041206015147.510db359>