From owner-freebsd-java Sun Oct 31 16:32:29 1999 Delivered-To: freebsd-java@freebsd.org Received: from mta02.onebox.com (mta02.onebox.com [216.33.158.209]) by hub.freebsd.org (Postfix) with ESMTP id 5F25414F9F for ; Sun, 31 Oct 1999 16:32:26 -0800 (PST) (envelope-from onedave@onebox.com) Received: from onebox.com ([216.33.158.157]) by mta02.onebox.com (InterMail v4.01.01.07 201-229-111-110) with SMTP id <19991101003226.VJYK19495.mta02@onebox.com>; Sun, 31 Oct 1999 16:32:26 -0800 From: "dave howard" To: nate@mt.sri.com (Nate Williams) Cc: freebsd-java@FreeBSD.ORG Subject: Re: JNI error involving mmap Reply-To: dave howard Date: Mon, 01 Nov 1999 00:30:28 GMT Message-Id: <19991101003226.VJYK19495.mta02@onebox.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hi nate - thanks for the tip. i had not been compiling with the PIC option as you suggest, however doing it that way seems to have no effect on the error i'm getting. any other ideas? thanks! dave. ---- Nate Williams wrote: > > 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 > __________________________________________________ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message