Hi, I'm interested in pursuing PerlInterpreter on Solaris 7, where I've never been able to get it compiled & installed successfully. I've been trying with Inline::Java version 0.49, and with perl 5.6.1, 5.6.2, and 5.8.
With 5.8, everything looks good for the Inline::Java and PerlNatives tests, but in the PerlInterpreter tests I get the following error: ===================================== make[2]: Entering directory `/home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter' PERL_DL_NONLAZY=1 /opt/perl/5.8/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 '/opt/perl/5.8/lib/5.8.0/sun4-solaris-thread-multi/auto/Data/Dumper/Dumper.so' for module Data::Dumper: ld.so.1: /opt/j2sdk1.4.1/bin/java: fatal: relocation error: file /opt/perl/5.8/lib/5.8.0/sun4-solaris-thread-multi/auto/Data/Dumper/Dumper.so: symbol Perl_sv_cmp: referenced symbol not found at /opt/perl/5.8/lib/5.8.0/sun4-solaris-thread-multi/XSLoader.pm line 83. at /opt/perl/5.8/lib/5.8.0/sun4-solaris-thread-multi/Data/Dumper.pm line 27 Compilation failed in require at /home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java.pm line 28. BEGIN failed--compilation aborted at /home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java.pm line 28. Compilation failed in require at /home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java/PerlInterpreter.pm line 4. BEGIN failed--compilation aborted at /home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java/PerlInterpreter.pm line 4. Compilation failed in require at (eval 2) line 1. BEGIN failed--compilation aborted (in cleanup) Can't load '/opt/perl/5.8/lib/5.8.0/sun4-solaris-thread-multi/auto/Data/Dumper/Dumper.so' for module Data::Dumper: ld.so.1: /opt/j2sdk1.4.1/bin/java: fatal: relocation error: file /opt/perl/5.8/lib/5.8.0/sun4-solaris-thread-multi/auto/Data/Dumper/Dumper.so: symbol Perl_sv_cmp: referenced symbol not found at /opt/perl/5.8/lib/5.8.0/sun4-solaris-thread-multi/XSLoader.pm line 83. at /opt/perl/5.8/lib/5.8.0/sun4-solaris-thread-multi/Data/Dumper.pm line 27 Compilation failed in require at /home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java.pm line 28. BEGIN failed--compilation aborted at /home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java.pm line 28. Compilation failed in require at /home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java/PerlInterpreter.pm line 4. BEGIN failed--compilation aborted at /home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter/../../blib/lib/Inline/Java/PerlInterpreter.pm line 4. Compilation failed in require at (eval 2) line 1. BEGIN failed--compilation aborted at (eval 2) 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 `/home/ken/downloads/perl/Inline-Java-0.49/Java/PerlInterpreter' make[1]: *** [test] Error 2 make[1]: Leaving directory `/home/ken/downloads/perl/Inline-Java-0.49/Java' make: *** [test] Error 2 97.14u 14.06s 2:14.38 82.7% [sol2:~/downloads/perl/Inline-Java-0.49] % ===================================== With perl 5.6.2 & 5.6.1, I get a core dump during testing. Patrick suggested recompiling perl with the -DNEED_ENVIRON_DUP_FOR_MODIFY switch, and this solves the core dump, but then I get the same relocation error. I'm not much of a wiz with the linking & loading side of things, anyone else know what might need to be done here? -Ken