From owner-freebsd-current@FreeBSD.ORG Sat Nov 22 14:45:58 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49C9616A4CE for ; Sat, 22 Nov 2003 14:45:58 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DB6043FF2 for ; Sat, 22 Nov 2003 14:45:57 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id hAMMjs1G026749; Sat, 22 Nov 2003 17:45:54 -0500 (EST) Date: Sat, 22 Nov 2003 17:45:54 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Jonathan E Fosburgh In-Reply-To: <200311220833.08970.jonathan@fosburgh.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Guillaume EGLES cc: freebsd-current@freebsd.org Subject: Re: Fatal error 'Spinlock called when not threaded' when trying toupgrade kdelibs-3.1.4 port X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2003 22:45:58 -0000 On Sat, 22 Nov 2003, Jonathan E Fosburgh wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > O > > > ../dcop/dcopidl/dcopidl ./ksycoca.h > ksycoca.kidl || ( rm -f > > > ksycoca.kidl ; false ) > > > Fatal error 'Spinlock called when not threaded.' at line 88 in file > > > /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0) > > > Abort trap (core dumped) > > > > Something on your system is hosed. I just built all of KDE > > 3.1.4 on my current system with /etc/libmap.conf pointed > > at libkse; no problems at all. > > > > I used to get this before KDE was modified to use REINPLACE to set > $PTHREAD_LIBS. I was setting it to kse but something was causing KDE to link > against kse and libc_r. Without libmap.conf pointing libc_r to libkse I > would get that error. Right, in general, you can't build with PTHREAD_LIBS set to anything other than default (-lc_r). There are patches in the PR system to make KDE build cleanly when PTHREAD_LIBS is set to -lkse, but even when applied, there are other ports that will still have problems. In short, unless you know what you are doing or want to help make ports honor PTHREAD_LIBS, do not touch PTHREAD_LIBS. -- Dan Eischen