From owner-freebsd-java Sun Oct 31 15:43:43 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id C463F14ECA for ; Sun, 31 Oct 1999 15:43:33 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id QAA06829; Sun, 31 Oct 1999 16:43:30 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id QAA12908; Sun, 31 Oct 1999 16:43:30 -0700 Date: Sun, 31 Oct 1999 16:43:30 -0700 Message-Id: <199910312343.QAA12908@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: dave howard Cc: freebsd-java@FreeBSD.ORG Subject: Re: JNI error involving mmap In-Reply-To: <19991031233620.VIIW19495.mta02@onebox.com> References: <19991031233620.VIIW19495.mta02@onebox.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > i am porting a java application that uses JNI to freeBSD. i get an error in System.loadLibrary( "MyLib" ) that looks like this: > > mmap returned wrong address: wanted 0x8048000, got 0x29274000 (libMyLib.so) Is your shared library compiled as Position Indepedant Code? (-pic) It must be for it to be able to load at any address in the system... (I don't familiar with all of the compiler flags necessary to build a JNI library, but I'm sure someone who has done it can jump and help out here....) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message