Re: SDL uses incorrect thread flags

From: Joe Marcus Clarke <marcus_at_marcuscom.com>
Date: Sun, 08 Feb 2004 21:20:12 -0500
On Sun, 2004-02-08 at 21:14, Kris Kennaway wrote:
> It looks like the sdl12 port is telling other SDL ports to link
> against -lc_r.  This causes the infamous "spinlock called when not
> threaded" problem:
> 
> kkenn_at_rot13:~ sdl11-config --libs
> -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL-1.1 -lc_r
> 
> http://bento.freebsd.org/errorlogs/i386-5-latest/frozenbubble-0.9.3_3.log
> 
> ===>  Building for frozenbubble-0.9.3_3
> Fatal error 'Spinlock called when not threaded.' at line 83 in file /a/asami/portbuild/i386/5/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
> Abort trap (core dumped)
> 
>     *** I need perl-SDL installed
> gmake: *** [dirs] Error 1
> *** Error code 2
> 
> Can someone please investigate?

I took a quick look at the sdl12 port, and it looks like it respects
PTHREAD_{CFLAGS,LIBS}.  Have you already rebuilt sdl12 under
libpthread?  One of the GNOME users said after doing the sdl12 forced
update, it uses libpthread as it should.

Joe

> 
> Kris
-- 
PGP Key : http://www.marcuscom.com/pgp.asc

Received on Sun Feb 08 2004 - 17:20:12 UTC

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