Fatal error 'Spinlock called when not threaded' when trying
toupgrade kdelibs-3.1.4 port
eischen at vigrid.com
Sat Nov 22 14:45:58 PST 2003
On Sat, 22 Nov 2003, Jonathan E Fosburgh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> > > ../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.
More information about the freebsd-current