Subject: Re: karbon problem
To: Martin Husemann <>
From: David Laight <>
List: tech-pkg
Date: 10/12/2005 21:23:49
On Wed, Oct 12, 2005 at 11:08:37AM +0200, Martin Husemann wrote:
> On Wed, Oct 12, 2005 at 03:46:56PM +1300, Mark Davies wrote:
> > Looks like OpenBSD fixed their to deal with this a few weeks ago but 
> > inside is not somewhere that I'll lightly tread.
> Isn't the better fix to make KLibLoader try dlsym() on the
> global handle returned by dlopen(NULL, ..) as well?
> The current behaviour does not sound like a bug to me, but maybe I 
> misunderstood the situation.
> The shared library in question does *import* the missing symbol, but
> not *export* it - so dlsym() has no reason to find it in it's dlopen() handle,

If ' has a NEEDED entry for' and ' defines symbol b'
then dlsym(dlopen("", 0), "b") should load both and and
return the address of 'b'.

This should happen even if or were loaded with the main program.

Dunno if this is the problem...


David Laight: