[Pkg-openldap-devel] Bug#327585: libltdl and RTLD_GLOBAL

Russ Allbery rra at debian.org
Thu Feb 7 05:18:13 UTC 2008


Steve Langasek <vorlon at debian.org> writes:
> On Sun, Feb 03, 2008 at 06:02:34PM -0800, Russ Allbery wrote:

>> Can't we just link back_meta against back_ldap?  Or is that what your
>> fix for the problem does?

> Yeah, that's the fix; but libtool --install blows up nastily when you
> link against something that's not a system library, *and* has a name
> that doesn't begin with "lib", because -lback_ldap doesn't work very
> well for relinking... :)

I wonder if it would be worthwhile to live with the code duplication and
namespace pollution and use libltdl in convenience mode instead of
installable mode with slapd.  That would basically cause slapd to use
RTLD_GLOBAL, correct?  It would resolve the issue with back-perl and also
with back-meta, at the cost of namespace pollution only for slapd plugins
and things they load.

Of course, that means that if someone tries to use a Perl module that uses
unixodbc via back-perl, we probably lose again for all the same reasons
that Debian moved away from RTLD_GLOBAL in the first place, but it might
be a workaround.

I'm not sure how hard it would be to fix the Perl linking problem, and the
linking issues with back-meta sound pretty annoying.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>





More information about the Pkg-openldap-devel mailing list