Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2003 17:45:54 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Jonathan E Fosburgh <jonathan@fosburgh.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Fatal error 'Spinlock called when not threaded' when trying toupgrade kdelibs-3.1.4 port
Message-ID:  <Pine.GSO.4.10.10311221742570.26014-100000@pcnet5.pcnet.com>
In-Reply-To: <200311220833.08970.jonathan@fosburgh.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10311221742570.26014-100000>