From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 6 02:27:53 2005 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 4574416A41C for ; Wed, 6 Jul 2005 02:27:53 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C62643D48 for ; Wed, 6 Jul 2005 02:27:52 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.13.4/8.13.4) with ESMTP id j662RoWq077190; Wed, 6 Jul 2005 11:57:51 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org, Tom Schutter Date: Wed, 6 Jul 2005 11:57:46 +0930 User-Agent: KMail/1.8 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2215759.r7xFxdE9dY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200507061157.46921.doconnor@gsoft.com.au> X-Spam-Score: -2.4 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.51 on 203.31.81.10 Cc: Subject: Re: linking libjava.so RPATH problem 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: Wed, 06 Jul 2005 02:27:53 -0000 --nextPart2215759.r7xFxdE9dY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 6 Jul 2005 07:25, Tom Schutter wrote: > 1) Why is the RPATH in the executable being ignored? I think this is a feature, not a bug.. I forget the exact reason though - I= am=20 pretty sure this has been discussed on the lists when ELF came in though. > 2) When I add the -rpath, I get two copies of a libjvm.so reference in > testme, one that resolves correctly, and one that doesn't. Why? No idea :( > 3) What is the correct way of linking in libjvm.so? I would say you need to either add LD_LIBRARY_PATH to your env, or pass som= e=20 flags to ldconfig to add the path to the JVM libraries. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2215759.r7xFxdE9dY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBCy0Gi5ZPcIHs/zowRApHGAJ4kb4NVd+sKeid1ddpA1qY697B1mQCeJ2Ov 6wjv5XB4ONo7d49fScNyQWE= =xSLB -----END PGP SIGNATURE----- --nextPart2215759.r7xFxdE9dY--