Re: Install and running Sample test

[email protected] Thu, 10 Jul 2003 14:34:33 -0700 (PDT)
Newsgroups perl.jpl
Message-ID <[email protected]>
> Hello all, I am running Redhat 7.2 (kernel 2.4.18-3) with gcc 2.96 and am
> trying to use JPL to integrate some Java and perl code using Java1.4.1_01.

> and answer all the usual questions with the default answers (mostly, I did
> say
>  yes to building libperl.so).

> first setvars will tell me that it can't find the program perl5.006001.

> so I create a symbolic link from perl to perl5.006001 and run it again.

> while building I get the message:

> cc: unrecognized option `-R/usr/local/perl-5.6.1/jpl/lib/i686-linux'

> then it installs the Sample program and builds it. When it then goes to
> test the sample, I get the message:

> An unexpected exception has been detected in native code outside the VM.
> Unexpected Signal : 11 occurred at PC=0x4C715FAB
> Function=(null)+0x4C715FAB
> Library=/usr/local/lib/perl5/5.6.1/i686-linux/CORE/libperl.so

I'm not sure but the gcc message may just be a warning 
that auto-corrects during the build. I saw a post that 
gcc tries -R first to try to find runtime libraries. -R 
will work on Solaris but not on Linux so -Wl,-rpath is 
then tried.  

Just to be sure, have you also built with the native
malloc (perl -V:usemymalloc  should report 'n') and
have you passed -DJPL to Configure when Perl was built..?

But the big question..has the core patch needed for JPL been 
applied to the Perl source..?

If you could upgrade to 5.8, here's the needed patch:

     http://www.iki.fi/jhi/19756.pat

Perhaps someone has the needed older patch for 5.6.1.

[ The advance release of 5.8.1 that Jarkko supplied has the
  patch already applied  doesn't appear to be available now ]

--
Charles DeRykus