On Fri, Sep 02, 2005 at 09:17:46AM -0700, Andrew Bruno wrote:
> Try it without setting the PERL_INLINE_JAVA_JNI env var. If I set this I get 
> the
> same errors as you. When I don't set it everything builds fine and all tests
> pass. I'm not setting DYLD_LIBRARY_PATH either and just accepting all defaults
> in Makefile.PL. 

Ah. I specifically want to use JNI.

But all is well! I've found the problem after some reading of "man ld"
and http://developer.apple.com/technotes/tn2002/tn2071.html and filling
in the gaps. What's needed is "-framework JavaVM" options to the linker.

All tests successful, 6 tests skipped.

Patch (over yours) to follow...

Tim.

> --Andy
> 
> > Thanks. The patch applied cleanly to a fresh unpack of Inline-Java-0.50;
> > I double checked that PERL_INLINE_JAVA_JNI and DYLD_LIBRARY_PATH were set;
> > ran perl Makefile.PL 
> > J2SDK=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK;
> > accepted all the defaults; and... got exactly the same error:
> >     dyld: Symbol not found: _JNI_CreateJavaVM
> > 
> > If it works for you then it I must be doing something wrong. (Are you
> > selecting to build JNI and have PERL_INLINE_JAVA_JNI env var set true?)
> > 
> > I've CC'd this to macperl-modules@perl.org in the hope that someone
> > there offer some clues.
> > 
> > Tim.

Reply via email to