[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS
From: |
libtool |
Subject: |
Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS |
Date: |
Mon, 16 Jul 2001 11:23:51 -0500 |
User-agent: |
Mutt/1.2.5i |
On Mon, Jul 16, 2001 at 11:13:28AM -0500, Robert Boehne wrote:
> It appears to work in my test case under Tru64 4.0f, and according
> to Tim's snippet of the documentation. Is there a problem with my
> test case? Perhaps I'm not testing this correctly, or perhaps you
> are referring to a slightly different situation. In this case a
> library is dlopen'ed, and this library is dependent on another
> shared library (also in LD_LIBRARY_PATH). The way I read this is
> that if the dlopen'ed library is built by linking with the dependent
> lib, the executable doesn't need to be.
What happens if LD_LIBRARY_PATH is not set? IRIX, AIX, HP-UX, and
Solaris honor RPATH for libraries. Tru64 UNIX does not (5.0A and
below).
Maybe I'm unclear on the question. Tru64 UNIX *will* load deplibs.
However, if the path to the deplib is in the RPATH of the shared
library being dlopen'ed and the path is either not in LD_LIBRARY_PATH
or the RPATH of the application doing the dlopen, then the shared
library will not be loaded in. IRIX, AIX, HP-UX, and Solaris will,
however, load the shared library as they grok RPATH in shared
libraries.
> Rob
>
> address@hidden wrote:
> >
> > On Fri, Jul 13, 2001 at 04:09:28PM -0500, Tim Mooney wrote:
> > > In regard to: Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Gary V....:
> > >
> > > >On Thursday 12 July 2001 8:12 pm, Tim Mooney wrote:
> > > >> I'm not 100% sure I know what
> > > >>
> > > >> whether deplibs are loaded by dlopen
> > > >>
> > > >> means. Does it mean:
> > > >>
> > > >> If you explicitly load a shared object via dlopen(), are any shared
> > > >> objects that it depends on loaded for you automatically?
> > > >
> > > >Yes, exactly that.
> > >
> > > Does this macro apply at all to platforms that have some other mechanism
> > > of dynamically loading a shared object (e.g. HP-UX 10.x and earlier)?
> > >
> > > The first paragraph of the dlopen() man page on Tru64 UNIX 5.1 (and 4.0f)
> > > says that
> > >
> > > The dlopen function attempts to load the specified file in the address
> > > space
> > > of the process, resolving symbols as appropriate. Any libraries that the
> > > specified file depends upon are also loaded.
> >
> > The loader on Tru64 UNIX 5.0A and below will load not load dependent
> > libraries for a shared library. RPATH is honored for executables but
> > not for libraries. You'll need a test program to determine if this has
> > been "fixed" under 5.1 but I doubt it.
> >
> > --
> > albert chin (address@hidden)
> >
> > _______________________________________________
> > Libtool mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/libtool
>
> --
> Robert Boehne Software Engineer
> Ricardo Software Chicago Technical Center
> TEL: (630)789-0003 x. 238
> FAX: (630)789-0127
> email: address@hidden
--
albert chin (address@hidden)
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, (continued)
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, libtool, 2001/07/17
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Robert Boehne, 2001/07/17
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, libtool, 2001/07/17
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Robert Boehne, 2001/07/17
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, libtool, 2001/07/17
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Gary V . Vaughan, 2001/07/17
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Gary V . Vaughan, 2001/07/16
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Tim Mooney, 2001/07/16
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, libtool, 2001/07/16
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Robert Boehne, 2001/07/16
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS,
libtool <=
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Tim Mooney, 2001/07/16
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, libtool, 2001/07/16
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Rainer Orth, 2001/07/16
- Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Tim Mooney, 2001/07/16
Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, libtool, 2001/07/16
Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Gary V . Vaughan, 2001/07/16
Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Tim Mooney, 2001/07/16