From owner-freebsd-threads@FreeBSD.ORG Mon Apr 18 20:05:55 2005 Return-Path: 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 3917516A4CE for ; Mon, 18 Apr 2005 20:05:55 +0000 (GMT) Received: from zixvpm01.stv.org (zixvpm01.stv.org [207.203.41.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 874ED43D55 for ; Mon, 18 Apr 2005 20:05:54 +0000 (GMT) (envelope-from archie@dellroad.org) Received: from zixvpm01.stv.org (ZixVPM [127.0.0.1]) by Outbound.stv.org (Proprietary) with ESMTP id A3098130226 for ; Mon, 18 Apr 2005 15:05:25 -0500 (CDT) Received: from STVAVAPPL1.BHMSTV (unknown [10.104.14.2]) by zixvpm01.stv.org (Proprietary) with SMTP id 45610190002; Mon, 18 Apr 2005 15:05:25 -0500 (CDT) Received: from unknown(10.104.145.22) by STVAVAPPL1.BHMSTV via csmap id 94daa2ac_b042_11d9_9b7b_00304811e8c8_27158; Mon, 18 Apr 2005 14:46:39 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1])j3IK5S5K000668; Mon, 18 Apr 2005 15:05:30 -0500 (CDT) (envelope-from archie@dellroad.org) Message-ID: <42641308.3060900@dellroad.org> Date: Mon, 18 Apr 2005 15:05:28 -0500 From: Archie Cobbs User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: David Xu cc: freebsd-threads@freebsd.org Subject: Re: Bug with pthread_getspecific() and signals X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 20:05:55 -0000 Daniel Eischen wrote: >>E.g., I need to know: >> >>- In what versions of FreeBSD will "-pthread" result in a non-broken >> (with respect to this bug) thread library? > > Probably when -pthread was switched to libpthread from libc_r. > Search the CVS commit log for sys/sys/param.h (r1.178). > >>- Of the earlier versions of FreeBSD, in which ones is there a viable >> workaround and what is it (e.g., "-lpthread" instead of "-pthread"?) > > Probably not until 5.3-Release where libpthread became the default. So perhaps the simplest thing to do is look for libpthread and always link "-lpthread"; otherwise, if libpthread is not found, bail out. Thanks, -Archie __________________________________________________________________________ Archie Cobbs * CTO, Awarix * http://www.awarix.com