From owner-freebsd-ports@FreeBSD.ORG Sun Feb 8 18:43:44 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00ADA16A4CE; Sun, 8 Feb 2004 18:43:44 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-64-165-226-221.dsl.lsan03.pacbell.net [64.165.226.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id B042743D1D; Sun, 8 Feb 2004 18:43:43 -0800 (PST) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 57FCC66D35; Sun, 8 Feb 2004 18:43:43 -0800 (PST) Date: Sun, 8 Feb 2004 18:43:43 -0800 From: Kris Kennaway To: Joe Marcus Clarke Message-ID: <20040209024343.GA30182@xor.obsecurity.org> References: <20040209021406.GA29647@xor.obsecurity.org> <1076293211.16832.51.camel@shumai.marcuscom.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: <1076293211.16832.51.camel@shumai.marcuscom.com> User-Agent: Mutt/1.4.1i cc: ports@freebsd.org cc: current@freebsd.org cc: Kris Kennaway Subject: Re: SDL uses incorrect thread flags X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 02:43:44 -0000 --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: > >=20 > > kkenn@rot13:~ sdl11-config --libs > > -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL-1.1 -lc_r > >=20 > > http://bento.freebsd.org/errorlogs/i386-5-latest/frozenbubble-0.9.3_3.l= og > >=20 > > =3D=3D=3D> 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 =3D = 0) > > Abort trap (core dumped) > >=20 > > *** I need perl-SDL installed > > gmake: *** [dirs] Error 1 > > *** Error code 2 > >=20 > > Can someone please investigate? >=20 > 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 --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAJvPfWry0BWjoQKURAr17AJ9/nvXQV1lOpFmg4cCrteGmXT+P0QCfcNJe US5UmyGQd2ahboAQS8XeOFE= =ZTNT -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--