From owner-freebsd-ports@FreeBSD.ORG Sat Jun 5 14:49:44 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A568616A4CE for ; Sat, 5 Jun 2004 14:49:44 -0700 (PDT) Received: from mail.mcneil.com (rrcs-west-24-199-45-54.biz.rr.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B4AB43D3F for ; Sat, 5 Jun 2004 14:49:44 -0700 (PDT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id A885FFD1C7; Sat, 5 Jun 2004 14:49:39 -0700 (PDT) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 68494-02; Sat, 5 Jun 2004 14:49:39 -0700 (PDT) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 36501FD1C4; Sat, 5 Jun 2004 14:49:39 -0700 (PDT) From: Sean McNeil To: Michael Nottebrock In-Reply-To: <200406052342.57590.michaelnottebrock@gmx.net> References: <1086462964.42167.5.camel@server.mcneil.com> <200406052313.28195.michaelnottebrock@gmx.net> <1086470698.68421.8.camel@server.mcneil.com> <200406052342.57590.michaelnottebrock@gmx.net> Content-Type: text/plain Message-Id: <1086472178.95447.3.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 05 Jun 2004 14:49:38 -0700 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mcneil.com cc: matthias.andree@gmx.de cc: freebsd-ports@freebsd.org Subject: Re: post-patch blues with db3, db4, db41 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 21:49:44 -0000 On Sat, 2004-06-05 at 14:42, Michael Nottebrock wrote: > On Saturday 05 June 2004 23:24, Sean McNeil wrote: > > > No shared library that does not explicitly call pthread functionality > > (i.e. pthread* functions) should be linked to require libthread. > > > > This is a simple rule that db3, db4, and db41 do not follow. Removing > > the REINPLACE makes it follow the rule. > > Turns out you're right, however libdb4_cxx and libdb41_cxx actually require > linking to a threads library so a more fine-grained approach than simply > removing the REINPLACE is necessary. Interesting. Why do you think this is required? I did a nm --demangle /usr/local/lib/libdb41_cxx.so.1 | grep " U " and do not see any specific requirement that this library be linked with pthreads. In fact, it would appear that the library does not require libpthread as there look like a test of __isthreaded in there. This would indicate that it is possible to use in a non-threaded environment. Sean