From owner-freebsd-current@FreeBSD.ORG Mon Oct 5 05:08:24 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9672106568D; Mon, 5 Oct 2009 05:08:24 +0000 (UTC) (envelope-from bland@FreeBSD.org) Received: from mail2.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id 7F4D28FC14; Mon, 5 Oct 2009 05:08:24 +0000 (UTC) Received: from hub.bbnest.net (w133033.ppp.asahi-net.or.jp [121.1.133.33]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 5EF1A800B4; Mon, 5 Oct 2009 13:50:45 +0900 (JST) Received: from hub.bbnest.net (localhost [127.0.0.1]) by hub.bbnest.net (8.14.3/8.14.3) with ESMTP id n954oi4r080864 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Oct 2009 13:50:44 +0900 (JST) (envelope-from bland@FreeBSD.org) Received: (from www@localhost) by hub.bbnest.net (8.14.3/8.14.3/Submit) id n954oiLW080863; Mon, 5 Oct 2009 13:50:44 +0900 (JST) (envelope-from bland@FreeBSD.org) X-Authentication-Warning: hub.bbnest.net: www set sender to bland@FreeBSD.org using -f To: John Marshall MIME-Version: 1.0 Date: Mon, 05 Oct 2009 13:50:44 +0900 From: Alexander Nedotsukov Message-ID: <54ee35ff63fa25ea4c082134892835fb@mail> X-Sender: bland@FreeBSD.org User-Agent: RoundCube Webmail/0.2a Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Mon Oct 5 13:50:45 2009 X-DSPAM-Confidence: 0.9994 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4ac97b25808651564613231 Cc: John Baldwin , Doug Rabson , freebsd-current@FreeBSD.org, George Mamalakis , Rick Macklem Subject: Re: 8.0 Dynamic Linker Broken? (Was: [PATCH] SASL problems with spnego on 8.0-BETA4) 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: Mon, 05 Oct 2009 05:08:24 -0000 Actually this may mean quite otherwise. What I saying is if some code (eg. libsasl) dlopen() libgssapi as RTLD_LOCAL then later attempt to load libgssapi_xxx inside libgssapi may fail because of this: $ldd /usr/lib/libgssapi_spnego.so /usr/lib/libgssapi_spnego.so: libasn1.so.10 => /usr/lib/libasn1.so.10 (0x28300000) libc.so.7 => /lib/libc.so.7 (0x2808f000) I would expect to see libgssapi.so.10 dependency here. On Mon, 5 Oct 2009 10:07:20 +1100, John Marshall wrote: > On Fri, 02 Oct 2009, 08:24 -0400, John Baldwin wrote: >> On Friday 02 October 2009 4:13:19 am John Marshall wrote: >> > On Tue, 22 Sep 2009, 08:22 +1000, John Marshall wrote: >> > > On Mon, 21 Sep 2009, 11:26 -0400, Rick Macklem wrote: >> > > > [snip] >> > > > >> > > > Now, hopefully someone who understands enough about dynamic >> > > > linking will >> > > > know if this is the correct fix for 8.0? (I'm going on a couple of >> > > > weeks >> > > > vacation at the end of this week, so I won't be around to commit >> > > > anything >> > > > and don't understand it well enough to know if this is the correct >> > > > way >> > > > to fix it.) >> > > > >> > > > So, hopefully someone else can pick this one up? >> > > > > [snip] >> > > >> > > I have submitted a patch to the FreeBSD Makefile which patches the >> > > vendor-supplied template for krb5-config. I should be grateful if >> > > dfr@ >> > > or another src committer would please review this with a view to >> > > obtaining re@ approval to commit it before 8.0-RC2. >> > > >> > > >> > >> > Any src committers able to help with this? >> >> Hmmm, I thought that libgssapi was supposed to use dlopen to load the >> proper >> back-end libraries using /etc/gss/mech rather than having applications >> directly link against them. > > OK, so if my proposed solution is, in fact, only masking a symptom of a > broken dynamic linker, would somebody who understands this stuff please > weigh in on this with some debugging suggestions or with a patch to > address this problem? > > I'm able to help with testing but I'm not a programmer and know nothing > about the FreeBSD dynamic linker. > > Thanks.