Hi all.
Trying to install Inline::Java on a Linux box. Installing on my windows machine was straightforward and problem free.
However, when I try to install on Linux, I run into trouble. Sorry if I'm long-winded, but I figure getting all the details in one go will make it easier to get a helpful answer:
This is a fresh installation of Perl, built with no threads or multiplicity. After installation I did
perl -MCPAN -e shell install LWP install Bundle::CPAN install Inline (answering "yes" to the C bit) install Inline::Java q
of course Inline::Java complains about J2SDK, so I
cd /root/.cpan/build/Inline-Java-0.49 perl Makefile.PL J2SDK=/usr/local/java/j2sdk1 make java make make test
Which is where things go haywire. I think I'm the only person in the world who gets a failure at t/02_perl_interpreter 1/7 because Google has nothing to say on the matter, or at least was not provoked into comment by any of the myriad of search strings I tried :)
Hopefully someone on this list will be able to shed some light.
Thanks in advance for the help.
Here's my "make test" output
=====================================================================
make[1]: Entering directory `/root/.cpan/build/Inline-Java-0.49/Java'
make[2]: Entering directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlNatives'
make[2]: Leaving directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlNatives'
make[2]: Entering directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter'
make[2]: Leaving directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter'
make[1]: Leaving directory `/root/.cpan/build/Inline-Java-0.49/Java'
PERL_DL_NONLAZY=1 /usr/local/perl_java/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_init..............
Perl version is 5.008004
Inline version is 0.44
Inline::Java version is 0.49
J2SDK version is 1.4.2_05, from /usr/local/java/j2sdk1.4.2_05/
CLASSPATH is <empty>
t/01_init..............ok
t/02_primitives........ok
t/03_objects...........ok
t/04_members...........ok
t/05_arrays............ok
t/06_static............ok
t/07_polymorph.........ok
t/08_study.............ok
t/09_usages............ok
t/10_1_shared_alone....ok
t/10_2_shared_start....ok
t/10_3_shared_use......ok
t/10_4_shared_stop.....ok
t/10_5_shared_fork.....ok
t/10_6_shared_sim......ok
t/11_exceptions........ok
t/12_1_callbacks.......ok
t/13_end...............ok
All tests successful.
Files=18, Tests=310, 29 wallclock secs (12.94 cusr + 1.26 csys = 14.20 CPU)
make[1]: Entering directory `/root/.cpan/build/Inline-Java-0.49/Java'
make[2]: Entering directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlNatives'
make[2]: Leaving directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlNatives'
make[2]: Entering directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter'
make[2]: Leaving directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter'
make[2]: Entering directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlNatives'
PERL_DL_NONLAZY=1 /usr/local/perl_java/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../../blib/lib', '../../blib/arch')" t/*.t
t/01_init............ok
t/02_perl_natives....ok
All tests successful.
Files=2, Tests=6, 1 wallclock secs ( 0.76 cusr + 0.04 csys = 0.80 CPU)
make[2]: Leaving directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlNatives'
make[2]: Entering directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter'
PERL_DL_NONLAZY=1 /usr/local/perl_java/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, '../../blib/lib', '../../blib/arch')" t/*.t
t/01_init................ok
t/02_perl_interpreter....ok 1/7org.perl.inline.java.InlineJavaPerlException: Can't load '/usr/local/perl_java/lib/auto/Data/Dumper/Dumper.so' for module Data::Dumper: /usr/local/perl_java/lib/auto/Data/Dumper/Dumper.so: undefined symbol: PL_sv_undef at /usr/local/perl_java/lib/XSLoader.pm line 68.
at /usr/local/perl_java/lib/Data/Dumper.pm line 27
Compilation failed in require at /root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java.pm line 28.
BEGIN failed--compilation aborted at /root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java.pm line 28.
Compilation failed in require at /root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java/PerlInterpreter.pm line 4.
BEGIN failed--compilation aborted at /root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java/PerlInterpreter.pm line 4.
Compilation failed in require at (eval 3) line 1.
BEGIN failed--compilation aborted (in cleanup) Can't load '/usr/local/perl_java/lib/auto/Data/Dumper/Dumper.so' for module Data::Dumper: /usr/local/perl_java/lib/auto/Data/Dumper/Dumper.so: undefined symbol: PL_sv_undef at /usr/local/perl_java/lib/XSLoader.pm line 68.
at /usr/local/perl_java/lib/Data/Dumper.pm line 27
Compilation failed in require at /root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java.pm line 28.
BEGIN failed--compilation aborted at /root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java.pm line 28.
Compilation failed in require at /root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java/PerlInterpreter.pm line 4.
BEGIN failed--compilation aborted at /root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java/PerlInterpreter.pm line 4.
Compilation failed in require at (eval 3) line 1.
BEGIN failed--compilation aborted at (eval 3) line 1.
at org.perl.inline.java.InlineJavaPerlInterpreter.evalNoReturn(Native Method)
at org.perl.inline.java.InlineJavaPerlInterpreter.<init>(InlineJavaPerlInterpreter.java:39)
at org.perl.inline.java.InlineJavaPerlInterpreter.create(InlineJavaPerlInterpreter.java:51)
at org.perl.inline.java.InlineJavaPerlInterpreterTests.main(Tests.java:29)
t/02_perl_interpreter....FAILED tests 2-7
Failed 6/7 tests, 14.29% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/02_perl_interpreter.t 7 6 85.71% 2-7
Failed 1/2 test scripts, 50.00% okay. 6/8 subtests failed, 25.00% okay.
make[2]: *** [test_dynamic] Error 29
make[2]: Leaving directory `/root/.cpan/build/Inline-Java-0.49/Java/PerlInterpreter'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/root/.cpan/build/Inline-Java-0.49/Java'
make: *** [test] Error 2
=====================================================================
-- here's the output of perl -V:
=====================================================================
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=linux, osvers=2.4.7-10, archname=i686-linux
uname='linux devil.spacespa.it 2.4.7-10 #1 thu sep 6 16:46:36 edt 2001 i686 unknown '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-98)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.2.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Jul 30 2004 15:54:38 @INC: /usr/local/perl_java/lib /usr/local/perl_java/lib /usr/local/perl_java/lib /usr/local/perl_java/lib . =====================================================================
And the output of java -version:
===================================================================== java version "1.4.2_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) =====================================================================
--
Aaron Craig
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> msn: maremma_mercutio
=-=-=-=
Men at some time are masters of their fates: The fault, dear Brutus, is not in our stars, But in ourselves, that we are underlings. --Julius Caesar I.ii.
=-=-=-=
