From owner-freebsd-hackers Fri Feb 1 12:14: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by hub.freebsd.org (Postfix) with ESMTP id 25CC637B417 for ; Fri, 1 Feb 2002 12:14:03 -0800 (PST) Received: from fwd11.sul.t-online.de by mailout06.sul.t-online.com with smtp id 16Wk4Q-0006jj-04; Fri, 01 Feb 2002 21:14:02 +0100 Received: from frolic.no-support.loc (520094253176-0001@[217.225.34.173]) by fmrl11.sul.t-online.com with esmtp id 16Wk4H-0LdufQC; Fri, 1 Feb 2002 21:13:53 +0100 Received: (from bjoern@localhost) by frolic.no-support.loc (8.11.6/8.9.3) id g11KAJA05498 for freebsd-hackers@FreeBSD.ORG; Fri, 1 Feb 2002 21:10:19 +0100 (CET) (envelope-from bjoern) From: Bjoern Fischer Date: Fri, 1 Feb 2002 21:10:18 +0100 To: freebsd-hackers@FreeBSD.ORG Subject: problem w/ dlopen(); bug or feature? Message-ID: <20020201201018.GB2992@frolic.no-support.loc> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline 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 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello there, 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. This can be easily demonstated with the tiny (0.8k) example I attached to this mail. The example works correctly on SunOS. -Bj=F6rn --ikeVEW9yuYc//A+q Content-Type: application/x-tar-gz Content-Disposition: attachment; filename="dlopen-test.tar.gz" Content-Transfer-Encoding: base64 H4sIALD0WjwAA+1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Ubu0ZhkhLu1C0Vzsu8HYa72CLRfwpR8lAQEBAQEBAQEBAQEBgT3GP0mD/28AKAAA --ikeVEW9yuYc//A+q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message