On Fri, Feb 01, 2002 at 09:10:18PM +0100, Bjoern Fischer wrote: > I have a problem with dlopen() on FreeBSD: When dlopen()ed > shared objects dlopen() a shared object themselves, the DT_RPATH, > that is hardcoded into the first dlopen()ed object is *not* > searched.
Ok, I've looked into /usr/src/libexec/rtld-elf/rtld.c:dlopen(). It is obvious why dlopen-test does not work: The runtime linker only searches in DT_RPATH of the main object obj_main. John, is it possible to find out in dlopen() which object in the linked list has issued the dlopen() call? Then a fix would be easy. BTW, isn't the method of using a linked list for the objects a bit limiting? Wouldn't be a tree structure better? -Björn To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message