Re: jpl seems to install ok, but trouble when running
[email protected] (Gurusamy Sarathy) Tue, 11 Jan 2000 09:07:42 -0800
| Newsgroups | perl.jpl |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 11 Jan 2000 16:05:18 +0100, [email protected] wrote: >3) However - when I try calling my program an exception is thrown: >Exception in thread "main" java.lang.UnsatisfiedLinkError: >/usr/local/perl5.005_63/jpl/Sample/Sample.so: >/usr/local/perl5.005_63/jpl/lib/i686-linux/libPerlInterpreter.so: undefined >symbol: perl_eval_pv Perl 5.005_63 has a Perl_eval_pv() rather than perl_eval_pv(), but the headers define perl_eval_pv() to Perl_eval_pv() (so it should just work, in theory). > at java.lang.ClassLoader$NativeLibrary.load(Native Method) >at java.lang.ClassLoader.loadLibrary0(ClassLoader.java, Compiled Code) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java, Compiled >Code) > at java.lang.Runtime.loadLibrary0(Runtime.java, Compiled Code) >at java.lang.System.loadLibrary(System.java, Compiled Code) at >PerlTest.<clinit>(PerlTest.java:10) > >My configuration is something like this: > - Linux: version 5 (something) > - perl: version 5.005_63 built for i686-linux (with JPL bundled) - >java: version "1.2.2-RC2", Classic VM (build 1.2.2-RC2-K, green threads, >javacomp) Did you _install_ perl 5.005_63 before you built JPL? It would seem that your build process is picking up the wrong perl headers from somewhere. Please send: 1. The complete build log covering the portion of the build that shows the command line that built PerlInterpreter.o+libPerlInterpreter.so 2. `perl -V` output 3. `gcc -E $ccflags PerlInterpreter.c` output ($ccflags being the same flags that were used when PerlInterpreter.o was built) Sarathy [email protected]