Date: Mon, 01 Nov 1999 00:30:28 GMT From: "dave howard" <onedave@onebox.com> To: nate@mt.sri.com (Nate Williams) Cc: freebsd-java@FreeBSD.ORG Subject: Re: JNI error involving mmap Message-ID: <19991101003226.VJYK19495.mta02@onebox.com>
next in thread | raw e-mail | index | archive | help
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 <nate@mt.sri.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991101003226.VJYK19495.mta02>