From owner-freebsd-threads@FreeBSD.ORG Wed Sep 21 18:00:29 2005 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEEA716A41F for ; Wed, 21 Sep 2005 18:00:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C99043D48 for ; Wed, 21 Sep 2005 18:00:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8LI0Tws050611 for ; Wed, 21 Sep 2005 18:00:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8LI0StM050610; Wed, 21 Sep 2005 18:00:28 GMT (envelope-from gnats) Date: Wed, 21 Sep 2005 18:00:28 GMT Message-Id: <200509211800.j8LI0StM050610@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Daniel Eischen Cc: Subject: Re: kern/86029: undefined reference to `_thread_dump_info' 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, 21 Sep 2005 18:00:29 -0000 The following reply was made to PR kern/86029; it has been noted by GNATS. From: Daniel Eischen To: Christopher Sean Morrison Cc: bug-followup@freebsd.org Subject: Re: kern/86029: undefined reference to `_thread_dump_info' Date: Wed, 21 Sep 2005 13:51:13 -0400 (EDT) On Wed, 21 Sep 2005, Christopher Sean Morrison wrote: > The issue is not with libpthread (i.e. -lpthread) but with the > -pthread option to gcc. The symbol itself is provided via libc_r, not > libpthread. As the bug report notes, everything works if I link > against -lc_r which was unexpected when already passing -pthread. I've already responded to this in a previous email. -pthread is doing what it is suppose to, and you shouldn't be using libc_r on 5.x and subsequent because it is not the default threads library (and may be deprecated in the future). -- DE