From owner-freebsd-ports@FreeBSD.ORG Mon Dec 19 22:54:40 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E19216A41F for ; Mon, 19 Dec 2005 22:54:40 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FEF043D8E for ; Mon, 19 Dec 2005 22:54:09 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by wproxy.gmail.com with SMTP id i31so1212663wra for ; Mon, 19 Dec 2005 14:54:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=prplncCXQ+zXPCjh1vVhQ4Xuc9fJi7t+j+YPnPdnBazYG+ZuN6Y0TObq+y+/kNB/qJ/dGyELao5yzffdfEXaYSeQnI16jJqW0Ln/py6SrrLA3RA/gRS02pm7MBMmYpr7bSqXiU1ft46UHQSbhm2ua47aC0azOKp5DiqiQxO4h+c= Received: by 10.54.78.16 with SMTP id a16mr15477wrb; Mon, 19 Dec 2005 14:54:07 -0800 (PST) Received: from ringworm.mechee.com ( [71.102.14.129]) by mx.gmail.com with ESMTP id d7sm6542675wra.2005.12.19.14.54.06; Mon, 19 Dec 2005 14:54:07 -0800 (PST) From: "Michael C. Shultz" To: freebsd-ports@freebsd.org Date: Mon, 19 Dec 2005 14:54:04 -0800 User-Agent: KMail/1.8.3 References: <20051219231022.Y76170@omega.nanophys.kth.se> <20051219223903.GA27343@zi025.glh.mhn.de> In-Reply-To: <20051219223903.GA27343@zi025.glh.mhn.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512191454.04821.ringworm01@gmail.com> Cc: Charlie Root , Simon Barner Subject: Re: MPLAYER CRASHES on 6.0 STABLE: Fatal error 'Spinlock called when not threaded.'at line 87 in file/usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 22:54:40 -0000 On Monday 19 December 2005 14:39, Simon Barner wrote: > Charlie Root wrote: > > How can I debug and find that problematic library? > > here it is: > > You have to look for libraries that are linked against stale versions > of (base system) libraries). > > > /usr/local/lib/libpng.so.5: > > libm.so.3 => /lib/libm.so.3 (0x29166000) > > libz.so.2 => /lib/libz.so.2 (0x2917e000) > > This one is bad. (should be linked with libm.so.4 and libz.so.3) > > > /usr/X11R6/lib/libxmms.so.4: > > libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x28ae8000) > > libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x28c29000) > > libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x28c61000) > > libgthread12.so.3 => /usr/local/lib/libgthread12.so.3 (0x2918f000) > > libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x28c64000) > > libc_r.so.5 => /usr/lib/libc_r.so.5 (0x29192000) > > libintl.so.6 => /usr/local/lib/libintl.so.6 (0x28c89000) > > libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x28c92000) > > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x28c9a000) > > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28ca8000) > > libm.so.3 => /lib/libm.so.3 (0x29166000) > > This one too. > > In the latter case, it might be possible that libxmms.so.4 is linked > against the wrong version of libm via another variable, so you should check > ldd -a /usr/X11R6/lib/libxmms.so.4 and so on. > > So, you chould check all libaries (at least the ones in /usr/local/lib and > /usr/X11R6/lib) and rebuild them. > > For example. the following might work (untested) > > for i in /usr/local/bin/*.so; > ldd $i | grep libm.so.3 && echo $i >> /tmp/log > done; > > cat /tmp/log | pkg_which | uniq gives you the list of packages that need to > be rebuilt. > > If you do the same for libz.so.2 libc.so.5 libpthread.so and for > /usr/X11R6/lib /usr/local/bin /usr/X11R6/bin you have good chances to fix > your system. > > Note, that this is not the supported way of doing it (it would have been to > forcefully reinstall all ports). " portmanager multimedia/mplayer -f " will forcibly rebuild just the ports depended on by mplayer and mplayer and may be a simpler solution here.... -Mike