M
Mark Shelor
The following problem arose during testing of my CPAN module
(Digest::SHA). Thus far, it occurs only on the sparc64-linux platform;
dozens of other platforms run the test successfully.
The problem occurs during the test of the "shasum" script that's bundled
in the Digest::SHA distribution. The offending lines in "shasum" are:
my $MOD_PREFER = "Digest::SHA";
my $MOD_SECOND = "Digest::SHA:urePerl";
my $module = $MOD_PREFER;
eval "require $module";
if ($@) {
$module = $MOD_SECOND;
eval "require $module";
die "Unable to find $MOD_PREFER or $MOD_SECOND\n" if $@;
}
The test script that exercises "shasum" is "t/8-shasum.t". The test
script invokes shasum in the following way:
my @out = `perl -Mblib=$BLIB $SHASUM -c tmp.chk`;
where $BLIB and $SHASUM were earlier defined as
my $SHASUM = File::Spec->canonpath(dirname($0) .
"/../blib/script/shasum");
my $BLIB = File::Spec->canonpath(dirname($0) . "/..");
Oddly, during "make test", the sparc64-linux platform reports
Unable to find Digest::SHA or Digest::SHA:urePerl
I don't have access to a sparc, otherwise I'd trace into why the module
isn't being loaded. Any ideas on what I may have overlooked?
A further note: when the sparc64-linux platform runs that same test
script and "shasum" on my Digest::SHA:urePerl distribution, it's
successful. Could this possibly indicate an issue with XSLoader?
Thanks, Mark
(Digest::SHA). Thus far, it occurs only on the sparc64-linux platform;
dozens of other platforms run the test successfully.
The problem occurs during the test of the "shasum" script that's bundled
in the Digest::SHA distribution. The offending lines in "shasum" are:
my $MOD_PREFER = "Digest::SHA";
my $MOD_SECOND = "Digest::SHA:urePerl";
my $module = $MOD_PREFER;
eval "require $module";
if ($@) {
$module = $MOD_SECOND;
eval "require $module";
die "Unable to find $MOD_PREFER or $MOD_SECOND\n" if $@;
}
The test script that exercises "shasum" is "t/8-shasum.t". The test
script invokes shasum in the following way:
my @out = `perl -Mblib=$BLIB $SHASUM -c tmp.chk`;
where $BLIB and $SHASUM were earlier defined as
my $SHASUM = File::Spec->canonpath(dirname($0) .
"/../blib/script/shasum");
my $BLIB = File::Spec->canonpath(dirname($0) . "/..");
Oddly, during "make test", the sparc64-linux platform reports
Unable to find Digest::SHA or Digest::SHA:urePerl
I don't have access to a sparc, otherwise I'd trace into why the module
isn't being loaded. Any ideas on what I may have overlooked?
A further note: when the sparc64-linux platform runs that same test
script and "shasum" on my Digest::SHA:urePerl distribution, it's
successful. Could this possibly indicate an issue with XSLoader?
Thanks, Mark