Re: 8.0 Dynamic Linker Broken? (Was: [PATCH] SASL problems with spnego on 8.0-BETA4)

From: Alexander Nedotsukov <bland_at_FreeBSD.org>
Date: Mon, 05 Oct 2009 13:50:44 +0900
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
<john.marshall_at_riverwillow.com.au> 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_at_
>> > > or another src committer would please review this with a view to
>> > > obtaining re_at_ approval to commit it before 8.0-RC2.
>> > > 
>> > > <http://www.freebsd.org/cgi/query-pr.cgi?pr=139037>
>> > 
>> > 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.
Received on Mon Oct 05 2009 - 03:08:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC