From owner-freebsd-questions Thu May 18 13: 7:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from magnesium.net (toxic.magnesium.net [207.154.84.15]) by hub.freebsd.org (Postfix) with SMTP id 4C98637B7C5 for ; Thu, 18 May 2000 13:07:10 -0700 (PDT) (envelope-from jasone@magnesium.net) Received: (qmail 78963 invoked by uid 1142); 18 May 2000 20:07:06 -0000 Date: 18 May 2000 13:06:06 -0700 Date: Thu, 18 May 2000 13:05:41 -0700 From: Jason Evans To: =?iso-8859-1?Q?Ivan_Debn=E1r?= Cc: freebsd-questions@freebsd.org Subject: Re: Native threads and SMP Message-ID: <20000518130541.B251@blitz.canonware.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0.1i In-Reply-To: ; from debnar@zoznam.sk on Tue, May 02, 2000 at 11:34:01AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, May 02, 2000 at 11:34:01AM +0200, Ivan Debnár wrote: > Is there a plan to support SMP in the native FreeBSD threads implementation ? > > When using Linuxthreads from ports, trying to compile the aplications (even provided examples) "static", it breaks with: > > It looks like it's not possible to link static applications with the current linuxthreads from ports, > complaining aboiu siglongjmp and longjmp. > /usr/lib/libc.a(sigsetjmp.o): In function `siglongjmp': > sigsetjmp.o(.text+0x94): multiple definition of `siglongjmp' > /usr/local/lib/liblthread.a(ptlongjmp.o):/usr/ports/devel/linuxthreads/work/linuxthreads-2.1.2/ptlongjmp.c:39: first defined here > /usr/lib/libc.a(setjmp.o): In function `__longjmp': > setjmp.o(.text+0x88): multiple definition of `longjmp' > /usr/local/lib/liblthread.a(ptlongjmp.o)(.text+0xc0):/usr/ports/devel/linuxthreads/work/linuxthreads-2.1.2/ptlongjmp.c: first defined here > > Any workarounds ? > When compiling dynamicaly, it works (examples, but not mysqld - core dumps imediately). Is it safe to use Linuxthreads and has anyone succeded with runnig MySQL compiled with them ? Help with any info please. I MFCed a fix for this a couple of days ago. The fix requires rebuilding libc. Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message