From owner-freebsd-hackers Sun Feb 13 21:43:30 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.uni-bielefeld.de (mail.uni-bielefeld.de [129.70.4.90]) by builder.freebsd.org (Postfix) with ESMTP id 587E5496B for ; Sun, 13 Feb 2000 21:43:27 -0800 (PST) Received: from frolic.no-support.loc (ppp36-376.hrz.uni-bielefeld.de) by mail.uni-bielefeld.de (Sun Internet Mail Server sims.3.5.1999.05.24.18.28.p7) with ESMTP id <0FPW002J8NWPZZ@mail.uni-bielefeld.de> for freebsd-hackers@FreeBSD.ORG; Mon, 14 Feb 2000 06:43:38 +0100 (MET) Received: (from bjoern@localhost) by frolic.no-support.loc (8.9.3/8.9.3) id HAA00771 for freebsd-hackers@FreeBSD.ORG; Tue, 15 Feb 2000 07:28:36 +0100 (CET envelope-from bjoern) Date: Tue, 15 Feb 2000 07:28:36 +0100 From: Bjoern Fischer Subject: rpath and inter library deps To: freebsd-hackers@FreeBSD.ORG Message-id: <20000215072836.A746@frolic.no-support.loc> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I have a problem with shared libraries that need a shared library by themselves (FreeBSD-3.4-STABLE): imagine a shared library `libfoo.so'. This library depends on the X11 lib and therefore has a `libX11.so.6' NEEDED entry. On this system `libX11.so.6' was installed into '/vol/X11/lib', so `libfoo.so' has also an RPATH of '/vol/X11/lib'. `libfoo.so' itself was installed into '/vol/foo/lib'. Now, I want to link a binary against `libfoo.so': My object code does NOT contain a reference to `libX11.so', so linking with '-L/vol/foo/lib -R/vol/foo/lib -lfoo' should be correct. But the linker fails to resolve the references of `libfoo.so' to libX11 unless I specify '-L/vol/X11/lib -R/vol/X11/lib'. I think this should be considered as a bug. Any other opinions? BTW, how does the FreeBSD runtime linker uses RPATHs it finds in shared libraries? Does it use an RPATH only for satisfying the needs of the library in which the RPATH was found, or are all RPATHs concatenated? Bj=F6rn Fischer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message