From owner-freebsd-current@FreeBSD.ORG Wed Aug 2 19:48:20 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFEFF16A4DA for ; Wed, 2 Aug 2006 19:48:20 +0000 (UTC) (envelope-from jb@what-creek.com) Received: from what-creek.com (what-creek.com [66.111.37.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DE7C43D53 for ; Wed, 2 Aug 2006 19:48:20 +0000 (GMT) (envelope-from jb@what-creek.com) Received: by what-creek.com (Postfix, from userid 102) id DE01578C1F; Wed, 2 Aug 2006 19:48:17 +0000 (GMT) Date: Wed, 2 Aug 2006 19:48:17 +0000 From: John Birrell To: Tobias Gro?er Message-ID: <20060802194817.GA53062@what-creek.com> References: <1154527524.93666.22.camel@tobias.home.web-wahnsinn.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1154527524.93666.22.camel@tobias.home.web-wahnsinn.de> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: DTRACE build failure (/usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lpthread) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 19:48:21 -0000 On Wed, Aug 02, 2006 at 04:05:24PM +0200, Tobias Gro?er wrote: > > Unfortunally I am not able to finish the build because it always breaks > in /usr/src/cddl/usr.bin/ctfconvert with this ld-error: > /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lpthread Sorry. At the moment the dtrace project has an experimental implementation of threads merged into libc and you need to enable this by adding WITH_LIBC_THREADS=1 to /etc/make.conf. Then it will build. Also, since the KSE code in the kernel doesn't handle signals properly in a many-cpu system, in order to make progress on sun4v, the KSE code has been removed. We really need to try to make it a kernel option so that we can compare the thread implementations. Making KSE a kernel option is very messy, though. Without KSE support in the dtrace kernel, libpthread cannot work. You need to use libthr. -- John Birrell