RE: Installing JPL

[email protected] ("You, Jay") Wed, 6 Jun 2001 10:07:30 -0400
Newsgroups perl.jpl
Message-ID <DF49E0126762D3119EA400A0C92A863A48DBA5@coyote>
I've rebuilt my perl as shared library and it's using the system malloc.
But, I'm still getting the same error while installing jpl.
Anyone has any ideas?


> -----Original Message-----
> From:	You, Jay [SMTP:[email protected]]
> Sent:	Wednesday, May 30, 2001 5:45 PM
> To:	'[email protected]'
> Subject:	Installing JPL
> 
> Hi all,
> 
> I have the O'reilly's Perl resource kit and I'm trying to install the JPL
> on
> linux.
> My linux is 2.2 and I have jdk1.3.
> When I run install-jpl, which is a script provided with the resource kit
> to
> do the 
> installation, it returns with error.  It doesn't properly compile the
> source
> files.
> It says there's an error in PerlInterpreter.c.
> I'm not sure if my perl is built as shared and if it's using system
> malloc.
> Would it cause the error?
> If any one knows what's causing the error, please help me.
> Thanks,
> 
> Jay
> 
> p.s. following is the output of install-jpl script :
> 
> Writing setvars...
> 
> 
> Starting install...
> + cd JPL
> + perl Makefile.PL
> + make clean
> make: Nothing to be done for `clean'.
> + perl Makefile.PL
> + make install
> mkdir -p /usr/perlstuff/jpl/perl/JPL
> cp *.p[ml] /usr/perlstuff/jpl/perl/JPL
> 
> Installing PerlInterpreter class
> + cd PerlInterpreter
> + perl Makefile.PL
> + make clean
> rm -f libPerlInterpreter.so
> rm -f PerlInterpreter.class
> + perl Makefile.PL
> + make install
> javac PerlInterpreter.java
> javah -jni PerlInterpreter
> cc -fpic -rdynamic -shared -L/usr/local/lib -Dbool=char
> -I/usr/lib/perl5/5.00503/i386-linux/CORE -I/usr/jdk1.3.0_02/include
> -I/usr/jdk1.3.0_02/include/linux -I/usr/jdk1.3.0_02/include/genunix
> PerlInterpreter.c \
> /usr/lib/perl5/5.00503/i386-linux/auto/DynaLoader/DynaLoader.a \
> -lc -lm -ldl \
> -o libPerlInterpreter.so
> PerlInterpreter.c:19: warning: `EXTERN_C' redefined
> /usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:151: warning: this is the
> location of the previous definition
> PerlInterpreter.c: In function `Java_PerlInterpreter_init':
> PerlInterpreter.c:49: `curinterp' undeclared (first use in this function)
> PerlInterpreter.c:49: (Each undeclared identifier is reported only once
> PerlInterpreter.c:49: for each function it appears in.)
> PerlInterpreter.c:54: `do_undump' undeclared (first use in this function)
> make: *** [libPerlInterpreter.so] Error 1
> Couldn't install PerlInterpreter
>