Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 2004 09:40:42 -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:  <20041118094042.237da3c3@zork>
In-Reply-To: <7e148fb904111709383a590790@mail.gmail.com>
References:  <7e148fb9041116095272275e3f@mail.gmail.com> <20041117091518.10813fb7@zork> <7e148fb904111709383a590790@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

--Multipart=_Thu__18_Nov_2004_09_40_42_-0700_oerVyIJDv5CbmmU2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Wed, 17 Nov 2004 12:38:03 -0500
jimmie james <jimmiejaz@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@endif.cjb.net> wrote:
> > On Tue, 16 Nov 2004 12:52:44 -0500
> > 
> > jimmie james <jimmiejaz@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.


--Multipart=_Thu__18_Nov_2004_09_40_42_-0700_oerVyIJDv5CbmmU2
Content-Type: application/octet-stream;
 name="Makefile.diff"
Content-Disposition: attachment;
 filename="Makefile.diff"
Content-Transfer-Encoding: base64

LS0tIE1ha2VmaWxlLm9sZAlUaHUgTm92IDExIDAyOjMxOjIwIDIwMDQKKysrIE1ha2VmaWxlCVdl
ZCBOb3YgMTcgMTI6MTQ6MDAgMjAwNApAQCAtMjcsNyArMjcsOCBAQAogVVNFX0xJQlRPT0xfVkVS
PTE1CiAKIEdOVV9DT05GSUdVUkU9CXllcwotQ09ORklHVVJFX0FSR1M9CS0tZGF0YWRpcj0ke1BS
RUZJWH0vc2hhcmUvJHtQT1JUTkFNRX0KK0NPTkZJR1VSRV9BUkdTPQktLWRhdGFkaXI9JHtQUkVG
SVh9L3NoYXJlLyR7UE9SVE5BTUV9IExJQlM9JHtQVEhSRUFEX0xJQlN9CitDRkxBR1MrPQkke1BU
SFJFQURfQ0ZMQUdTfQogCiBwcmUtcGF0Y2g6CiAJJHtSRUlOUExBQ0VfQ01EfSAtZSAnc19zaGFy
ZS9fc2hhcmUveGZjZTQteG1tcy1jb250cm9sbGVyLXBsdWdpbi9fJyAke1dSS1NSQ30vcGFuZWwt
cGx1Z2luL3hmY2V4bW1zLmMK

--Multipart=_Thu__18_Nov_2004_09_40_42_-0700_oerVyIJDv5CbmmU2--



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