SDL uses incorrect thread flags

Kris Kennaway kris at obsecurity.org
Sun Feb 8 18:43:44 PST 2004


On Sun, Feb 08, 2004 at 09:20:12PM -0500, Joe Marcus Clarke wrote:
> 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.

It should be, yes.  I started the package build after the bsd.port.mk
changes to update PTHREAD_FOO, although I've had to restart it a
number of times because of libc bugs.

To be sure, I've removed the sdl package and will rebuild it.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040208/f39361e0/attachment.bin


More information about the freebsd-ports mailing list