Problem with "require" on sparc64

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::purePerl";

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::purePerl

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::purePerl distribution, it's
successful. Could this possibly indicate an issue with XSLoader?

Thanks, Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,160
Messages
2,570,889
Members
47,420
Latest member
ZitaVos505

Latest Threads

Top