develooper Front page | perl.inline | Postings from June 2010

Re: Issue with installing Inline::Java

From:
Sisyphus
Date:
June 19, 2010 02:21
Subject:
Re: Issue with installing Inline::Java
Message ID:
E72B5B83E8034813B16689842B76D0AF@desktop2

----- Original Message ----- 
From: "Nicholas Clark" <nick@ccl4.org>

> The errors are consistent with not including (at least) perl.h
> Or the *right* perl.h
>

Yikes ... an xs file that doesn't '#include "perl.h"' !!
Hard to envisage that would work anywhere.

Adding the following at the very top of PerlNatives.xs fixes this problem:

#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

and Inline-Java-0.52 (along with PerlNatives) then builds fine for me. How 
about for you selva ?

Annoyingly, the PerlNatives test script bails out before running any of the 
5 scheduled tests. The error message I'm getting is:

t/02_perl_natives.t .. Unexpected exception of type 
'java.lang.UnsatisfiedLinkError': RegisterMethod at 
C:\_32\comp\Inline-Java-0.52\blib\lib/Inline/Java/Object.pm line 49

Something to look at tomorrow .... thanks Nicholas.

Cheers,
Rob




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About