From owner-freebsd-current@FreeBSD.ORG Tue Jun 8 15:30:22 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5900116A4D1; Tue, 8 Jun 2004 15:30:22 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i58FULKt045926; Tue, 8 Jun 2004 11:30:21 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i58FUF4V045925; Tue, 8 Jun 2004 11:30:15 -0400 (EDT) (envelope-from green) Date: Tue, 8 Jun 2004 11:30:14 -0400 From: Brian Feldman To: Kris Kennaway Message-ID: <20040608153014.GE23083@green.homeunix.org> References: <1086663455.1258.79.camel@server.mcneil.com> <20040608044844.GA89198@dan.emsphone.com> <20040608072706.GA82243@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040608072706.GA82243@xor.obsecurity.org> User-Agent: Mutt/1.5.6i cc: freebsd-amd64@freebsd.org cc: freebsd-gnome@freebsd.org cc: Dan Nelson cc: freebsd-threads@freebsd.org cc: freebsd-current@freebsd.org cc: Sean McNeil Subject: Re: weak implementation of threads has problems - kse fix attached X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 08 Jun 2004 15:30:22 -0000 On Tue, Jun 08, 2004 at 12:27:06AM -0700, Kris Kennaway wrote: > On Mon, Jun 07, 2004 at 11:48:45PM -0500, Dan Nelson wrote: > > In the last episode (Jun 08), Daniel Eischen said: > > > No, I don't want to litter all our thread libraries with strong > > > references. As I've said before, build your shared libraries > > > correctly so they don't bring in the threads library. > > > > A good addition to bsd.port.mk, right next to the "possible network > > server" etc checks, might be to run ldd on all installed shared > > libraries and print a warning if any threads libraries show up. There > > are a huge number of ports that install shlibs linked to libpthreads. > > Some of these are probably correct, in that the library started using > libpthreads internally and there are a large number of clients that > would otherwise need to be changed to link to that library. In this case, Berkeley DB 4.2 actually doesn't even compile in pthreads support (which it would use exclusively for mutexes); since it compiles in "test-and-set" mutex support, the linking to -lpthread is 100% bogus. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\