From owner-freebsd-threads@FreeBSD.ORG Mon Feb 4 15:08:58 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7165616A421 for ; Mon, 4 Feb 2008 15:08:58 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2E2C913C46B for ; Mon, 4 Feb 2008 15:08:58 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 189542087; Mon, 4 Feb 2008 15:49:42 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 9666F2083; Mon, 4 Feb 2008 15:49:41 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 815CF8449D; Mon, 4 Feb 2008 15:49:41 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Karl H. Beckers" References: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> Date: Mon, 04 Feb 2008 15:49:41 +0100 In-Reply-To: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> (Karl H. Beckers's message of "Mon\, 4 Feb 2008 12\:31\:23 +0100 \(CET\)") Message-ID: <86ve54epyy.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-threads@freebsd.org Subject: Re: threading in FreeBSD (acx_pthreads) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 15:08:58 -0000 "Karl H. Beckers" writes: > I'm trying to move my configure.in from manual threading libs detection > to acx_pthreads [...] I have no idea what acx_pthread is, but judging from your description, it doesn't seem to do a very good job. There's nothing wrong with manual detection - see how Varnish does it: http://varnish.projects.linpro.no/browser/trunk/varnish-cache/configure.ac Note that the correct idiom according to POSIX is -lpthread, so that should in theory work on all POSIX platforms. The reason why Varnish checks for -lthr explicitly is that there are FreeBSD versions where -lpthread defaults to -lkse instead of -lthr, and -lkse has proven to break rather badly under load. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no