From owner-freebsd-hackers Fri Feb 1 13:24:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by hub.freebsd.org (Postfix) with ESMTP id C59A837B404; Fri, 1 Feb 2002 13:24:01 -0800 (PST) Received: from fwd02.sul.t-online.de by mailout09.sul.t-online.com with smtp id 16WlA8-0008Ew-04; Fri, 01 Feb 2002 22:24:00 +0100 Received: from frolic.no-support.loc (520094253176-0001@[217.225.34.173]) by fmrl02.sul.t-online.com with esmtp id 16WlA1-0xJc5QC; Fri, 1 Feb 2002 22:23:53 +0100 Received: (from bjoern@localhost) by frolic.no-support.loc (8.11.6/8.9.3) id g11LKTg06104; Fri, 1 Feb 2002 22:20:29 +0100 (CET) (envelope-from bjoern) From: Bjoern Fischer Date: Fri, 1 Feb 2002 22:20:28 +0100 To: freebsd-hackers@FreeBSD.ORG Cc: John Polstra Subject: Re: problem w/ dlopen(); bug or feature? Message-ID: <20020201212028.GC2992@frolic.no-support.loc> References: <20020201201018.GB2992@frolic.no-support.loc> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20020201201018.GB2992@frolic.no-support.loc> User-Agent: Mutt/1.3.25i X-Sender: 520094253176-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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=F6rn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message