Re: Fatal error 'Spinlock called when not threaded' when trying toupgrade kdelibs-3.1.4 port

From: Daniel Eischen <eischen_at_vigrid.com>
Date: Sat, 22 Nov 2003 17:45:54 -0500 (EST)
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
Received on Sat Nov 22 2003 - 13:45:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:30 UTC