libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libltdl on openbsd


From: Ralf Wildenhues
Subject: Re: libltdl on openbsd
Date: Tue, 22 Mar 2005 14:04:51 +0100
User-agent: Mutt/1.4.1i

Hi Jacob, Guilhem,

* Jacob Meuser wrote on Tue, Mar 22, 2005 at 11:12:00AM CET:
> On Sun, Mar 20, 2005 at 09:40:52PM +0100, Guilhem Lavaux wrote:
> > Ralf Wildenhues wrote:
> > >Which other systems do the same thing?  All OpenBSD versions?  Do they
> > >intend to change this?  How about the other BSDs?
> > 
> > I guess they won't change this anytime soon looking at their cvs 
> > repository. The problem is there from the beginning. As they rely on 
> > their ld.so to load and link dynamic libraries statically linked 
> > programs cannot use the real dl symbols. So my opinion is we are an 
> > openbsd system and we link statically we must disable the use of dl symbols.
> 
> I'm probably missing something here, but it looks fairly similar
> in the 3 BSDs.

> http://www.openbsd.org/cgi-bin/cvsweb.cgi/src/lib/libc/dlfcn/dlfcn_stubs.c
> http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/dlfcn/dlfcn_elf.c
> http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/dlfcn.c

Well, for example on linux the static dlopen does not work either, but
the statically linked binary is able to make use of a shared libc/libdl
at runtime and use its dlopen.  I don't think the BSDs do anything like
this, but I'm not sure.  Best would be if somebody tried this.  (I just
tried FreeBSD, it does not work, as expected.)

> if OpenBSD should be doing something different for a good reason,
> now would be a good time to let them know, as they are just
> beginning a new development cycle.

Nobody is saying the BSDs should be doing anything different, I think.
This is a bug in Libtool/libltdl, only I'm not yet sure about how to fix
it properly.

Thanks for the pointers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]