Subject: Re: Netbsd and JNI
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netbsd.org>
List: tech-pkg
Date: 07/15/2002 10:35:59
Erik Mattsson <erik.mattsson@imbridge.com> wrote:
> Hi
> 
> Im working on setting up a servlet that uses JNI on a netbsd box. The
> servlet works fine on a solaris and windows box.  Ive managed to
> compile everything and it looks fine BUT when I then run the java test
> program (testing outside the servlet) it shoves this error onto me:
> 
> Starting to decode JP2
> lib.path=/usr/pkg/java/jre/lib/i386:/usr/pkg/java/jre/lib/i386/green_threads/:/usr/pkg/java/jre/lib/i386/classic:/usr/lib:/lib:./
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /home/bob/jpeg2k/java/libJpeg2000ServletDecoder.so:
> /usr/lib/libm.so.0: undefined symbol: __sF

Wild guess:
Maybe the problem is that you linked against /usr/lib/libm.so.0 when you
should have linked against /usr/pkg/emul/linux/lib/libm.so.0 ?

Since the JDK works fine, I'd assume the problem to be in the process of
creating the application.

-Jan

-- 
LISP - Lots of Irritating Stupid Parentheses