From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 18 16:40:43 2004 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A45016A4D7 for ; Thu, 18 Nov 2004 16:40:43 +0000 (GMT) Received: from mail.halls.colostate.edu (mail.halls.colostate.edu [129.82.88.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D774343D46 for ; Thu, 18 Nov 2004 16:40:42 +0000 (GMT) (envelope-from end@endif.cjb.net) Received: from zork (inge068179.halls.colostate.edu [129.82.68.179]) iAIGegJx023829; Thu, 18 Nov 2004 09:40:42 -0700 Date: Thu, 18 Nov 2004 09:40:42 -0700 From: Robin Schoonover To: jimmie james Message-ID: <20041118094042.237da3c3@zork> In-Reply-To: <7e148fb904111709383a590790@mail.gmail.com> References: <7e148fb9041116095272275e3f@mail.gmail.com> <20041117091518.10813fb7@zork> <7e148fb904111709383a590790@mail.gmail.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Thu__18_Nov_2004_09_40_42_-0700_oerVyIJDv5CbmmU2" X-Virus-Scanned: ClamAV 0.80/550/Mon Oct 25 09:39:01 2004, clamav-milter version 0.71 X-Virus-Status: Clean cc: freebsd-ports-bugs@freebsd.org cc: endx7@users.sourceforge.net Subject: Re: xfce4-xmms-controller-plugin Undefined symbol "pthread_mutex_trylock" X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 16:40:43 -0000 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 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 > wrote: > > On Tue, 16 Nov 2004 12:52:44 -0500 > > > > jimmie james 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--