From owner-freebsd-questions@FreeBSD.ORG Sat Mar 22 05:45:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 124E1106566C for ; Sat, 22 Mar 2008 05:45:40 +0000 (UTC) (envelope-from dmitry.rekman@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id D374D8FC18 for ; Sat, 22 Mar 2008 05:45:39 +0000 (UTC) (envelope-from dmitry.rekman@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so608569anc.13 for ; Fri, 21 Mar 2008 22:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=YMfKLdg0lk3whi2aBQ42W3O24+3uau2qQteX4SYj7wE=; b=phKAXaCYy/6e1AoxVzDj7S4CqxHL3Bd36Teuga3FdComtp0STFbdHDydOdkhjZxwGOHOJvDwbixYCq+NUQoSPOOqGJm2HAxqkStm+90hMxmj/N0QaT/c5CPC7VhufBoyQ//+o27xIapGjXmTRqo3iy+unoNwp3NlVs4VqWb6NPk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=tlkoRYFkpq8r2CrNV+LW3U47Lek2Q5A5iFFyP0PonEi0fcha84hUTo8c2EpsChXW42ggVUSVUhS0x1Rd7dG62E2Ra9Q9JxHUH6wrT5XECe5eY6Xy277n/7w3RBqqIc5rf1u4ISeFZ1caEfSNbQzm6q1o5kX/T9uPorr/GmW8rh4= Received: by 10.100.41.9 with SMTP id o9mr11049156ano.42.1206163266984; Fri, 21 Mar 2008 22:21:06 -0700 (PDT) Received: by 10.101.67.17 with HTTP; Fri, 21 Mar 2008 22:21:06 -0700 (PDT) Message-ID: Date: Sat, 22 Mar 2008 06:21:06 +0100 From: RCL To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: "Mutex unlock failure" when compiling KDE (upgrade from 6.x) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Mar 2008 05:45:40 -0000 Hi, I'm having the same troubles as Leslie Jensen when compiling KDE (or anything that uses uic, e.g. amarok): compile process stucks with the following message: Mutex unlock failure: Operation not permitted I found out that the problem was already being investigated here on the list, but no solution has yet been proposed :( If it helps, I performed the steps that Mel asked to perform and here's the log file of Qt build process: http://rcl.mine.nu/outbound/freebsd/qt-copy-3.3.8_6.log.tar.gz The actual command that is used to link uic is: c++ -fno-exceptions -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic .obj/release-shared-mt/main. o .obj/release-shared-mt/uic.o .obj/release-shared-mt/form.o .obj/release-shared-mt/object.o .obj/release-shared-mt/subclassing .o .obj/release-shared-mt/embed.o .obj/release-shared-mt/widgetdatabase.o .obj/release-shared-mt/domtool.o .obj/release-shared- mt/parser.o -L/usr/local/lib -L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib -L/usr/local/lib -lqt-mt -lmng -ljpeg -lp ng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE There's no file libpthread.* in /usr/local/lib. These are libpthread.so/a files I have: # ls -la `locate libpthread.{a,so}` lrwxrwxrwx 1 root wheel 19 Feb 29 13:57 /usr/compat/linux/lib/libpthread.so.0 -> libpthread-2.3.6.so lrwxrwxrwx 1 root wheel 18 Feb 29 13:57 /usr/compat/linux/lib/obsolete/linuxthreads/libpthread.so.0 -> libpthread-0.10.so lrwxr-xr-x 1 root wheel 8 Feb 29 12:21 /usr/lib/libpthread.a -> libthr.a -r--r--r-- 1 root wheel 136020 Feb 29 16:16 /usr/local/lib/compat/libpthread.so.1 -r-xr-xr-x 1 root wheel 43284 Oct 17 00:52 /usr/local/lib/valgrind/libpthread.so lrwxr-xr-x 1 root wheel 13 Oct 17 00:52 /usr/local/lib/valgrind/libpthread.so.2 -> libpthread.so I upgraded the system nearly a month ago (On 29th Feb) and since then I cannot build any KDE application (not even rebuild kde base/lib ports themselves). Upgrade procedure I used is described here: http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html I hope the information provided will help further investigate the problem. I don't want to reinstall the system, that feels like a solution from Windows world :-) Best regards, Dmitry RCL Rekman Mel wrote: > Nope. But I would be interested to see what the line is that compiles uic. And > what configure produces. > > I still think there's something '6.x-ish' going on here, but without knowing > how uic gets built, it's anyone's guess. > > Could you try the following: > cd /usr/ports/x11/qt33 > make clean > mkdir /var/log/portbuilds > make build >/var/log/portbuilds/`make -V PKGNAME`.log 2>&1 > make -V CONFIGURE_ARGS >> /var/log/portbuilds/`make -V PKGNAME`.log > cat `make -V WRKSRC`/config.log \ > >>/var/log/portbuilds/`make -V PKGNAME`.log > > Then put that log up somewhere if you have webspace, or try to find references > to '-pthread', 'libpthread', 'libthr' and the final link command that makes > uic. > > It's probably some setting you have or some stray library that causes this and > until you get it resolved, you can't trust any threaded application you build > from ports. Or, it's specific for qt, but I highly doubt that.