From owner-freebsd-current@FreeBSD.ORG Wed Mar 31 13:48:10 2004 Return-Path: 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 C1C3116A4CF; Wed, 31 Mar 2004 13:48:10 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DADC43D2D; Wed, 31 Mar 2004 13:48:10 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2VLm2tf029606; Wed, 31 Mar 2004 16:48:02 -0500 (EST) Date: Wed, 31 Mar 2004 16:48:02 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: "Jacques A. Vidrine" In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@FreeBSD.org cc: Sean McNeil Subject: Re: nss_ldap broken 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: Wed, 31 Mar 2004 21:48:10 -0000 On Mon, 29 Mar 2004, Daniel Eischen wrote: > On Mon, 29 Mar 2004, Jacques A. Vidrine wrote: > > > Sean, could you report how this patch works for you? Hmm, actually, it > > looks almost identical to what you posted :-) Is there a reason that > > you stored the value of `__isthreaded' in a local variable? Did that > > make a difference for your case? > > I'm unsure how nss_ldap was built to depend on libpthread (or > any threads library). I built it from ports and 'ldd' didn't > report any dependency on a threads library. I rebuilt it and now it does depend on libpthread. I think it is because I had openldap-client-2.1.26 which didn't have a dependency on libpthread, but upgrading to openldap-client-2.1.28 brought in the dependency. Too bad these shared libraries can't be made to use the libgcc trick, so they can still be thread-safe but not depend on a threads library. That would also make it easier to use different thread libraries for different applications relying on common shared libraries. -- Dan Eischen