Hi all,

The PerlNatives extention is sort of a hack, as it is a .xs file that
doesn't really involve Perl. I only put it in a .xs file to
ease/generalize the building process. That's why those headers were
not included at the time.

However it seems that in more recent versions of Perl some macros in
the .xs files changed in order to include (calls to|types from) the
Perl API, so I guess the headers are now required. Anyways it's no
harm to add them. I'll do it for in the next release...

Also, the PerlNatives stuff is really experimental, as mentioned in
the installation procedure. You don't really need it to use
PerlInterpreter or Inline::Java.

Rob and all: My apologies for not being present on the list lately, I
just realized this week that I wasn't getting the messages anymore
since about January. Don't know what happened, I had to re-register my
email address with the list.


Patrick

On Sat, Jun 19, 2010 at 5:20 AM, Sisyphus <sisyph...@optusnet.com.au> wrote:
>
> ----- Original Message ----- From: "Nicholas Clark" <n...@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
>
>



-- 
=====================
Patrick LeBoutillier
Rosemère, Québec, Canada

Reply via email to