From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 6 10:07:00 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F1CB16A403 for ; Fri, 6 Oct 2006 10:07:00 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail05.syd.optusnet.com.au (mail05.syd.optusnet.com.au [211.29.132.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id C246743D45 for ; Fri, 6 Oct 2006 10:06:59 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c58-107-94-118.belrs4.nsw.optusnet.com.au [58.107.94.118]) by mail05.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k96A6usJ007070 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 6 Oct 2006 20:06:57 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id k96A6ubD001537; Fri, 6 Oct 2006 20:06:56 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id k96A6tDL001536; Fri, 6 Oct 2006 20:06:55 +1000 (EST) (envelope-from peter) Date: Fri, 6 Oct 2006 20:06:55 +1000 From: Peter Jeremy To: Jeffrey Horner Message-ID: <20061006100655.GB941@turion.vk2pj.dyndns.org> References: <452555CA.10309@vanderbilt.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4bRzO86E/ozDv8r1" Content-Disposition: inline In-Reply-To: <452555CA.10309@vanderbilt.edu> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-hackers@freebsd.org Subject: Re: Behavior of run-time linker on 6.1-RELEASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2006 10:07:00 -0000 --4bRzO86E/ozDv8r1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 2006-Oct-05 13:58:18 -0500, Jeffrey Horner wrote: >I've noticed that setting the RPATH of a binary will help find libraries= =20 >that the binary has been linked against, but the RPATH of the binary is=20 >ignored when a library itself is linked to another library. Is this=20 >expected behavior? IMHO, this behaviour is far more sensible that the opposite (which I've run into on another OS). In my case, I had a perl executable and was building DBD::Oracle. The DBD::Oracle module needs to link against Oracle so it needs an RPATH that points into the Oracle library. The logical place for this is the DBD::Oracle module - I shouldn't need to include the Oracle library into the perl RPATH on the off-chance that I might want to load a .so that needs an Oracle .so --=20 Peter Jeremy --4bRzO86E/ozDv8r1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFJiq//opHv/APuIcRAtv2AJ41hrsDMYctyipwxiBeCAdbqkOEJQCcDjR9 knAvOOZW1SqlLb3b/RImBEY= =EfrJ -----END PGP SIGNATURE----- --4bRzO86E/ozDv8r1--