From owner-freebsd-threads@FreeBSD.ORG Wed Oct 11 17:43:40 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E95FA16A4DD for ; Wed, 11 Oct 2006 17:43:40 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9388E43E33 for ; Wed, 11 Oct 2006 17:42:53 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.7/8.13.7/NETPLEX) with ESMTP id k9BHgqVj021117; Wed, 11 Oct 2006 13:42:52 -0400 (EDT) Date: Wed, 11 Oct 2006 13:42:52 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Gergely CZUCZY In-Reply-To: <200610111640.k9BGeSGN081920@freefall.freebsd.org> Message-ID: References: <200610111640.k9BGeSGN081920@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-2.0.2 (mail.ntplx.net [204.213.176.10]); Wed, 11 Oct 2006 13:42:52 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-threads@freebsd.org Subject: Re: threads/104297: mixing libthr and libpthread through libs segfaults the binary X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2006 17:43:41 -0000 On Wed, 11 Oct 2006, Gergely CZUCZY wrote: > The following reply was made to PR threads/104297; it has been noted by GNATS. > > From: Gergely CZUCZY > To: Daniel Eischen > Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-threads@freebsd.org > Subject: Re: threads/104297: mixing libthr and libpthread through libs segfaults the binary > Date: Wed, 11 Oct 2006 18:35:16 +0200 > > --6TrnltStXW4iwmi0 > Content-Type: text/plain; charset=utf-8 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Wed, Oct 11, 2006 at 12:28:53PM -0400, Daniel Eischen wrote: > > >and how do i use libthr if one of the libs i link against > > >is using libpthread? > > You can't unless you relink everything or you use libmap.conf(5). > so, the choice of which threading library the system uses > is decieded by the authors of all ports. > shouldn't there be a way to specify for _all_ ports, > sources, everything, which solution is the prefered > one for the system? -pthread currently defaults to libpthread for i386. Otherwise, you can set PTHREAD_LIBS in /etc/make.conf (or ports.conf?) before you build your ports. Ask ports@ for further questions. -- DE