Date: Sun, 31 Oct 1999 16:43:30 -0700 From: Nate Williams <nate@mt.sri.com> To: dave howard <onedave@onebox.com> Cc: freebsd-java@FreeBSD.ORG Subject: Re: JNI error involving mmap Message-ID: <199910312343.QAA12908@mt.sri.com> In-Reply-To: <19991031233620.VIIW19495.mta02@onebox.com> References: <19991031233620.VIIW19495.mta02@onebox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910312343.QAA12908>