cbanker has asked for the wisdom of the Perl Monks concerning the following question:
On an i686 linux system (also testing with microperl 5.8.6 and same libs), I get valid output. However, on the ARM system, I get the following error:#!/usr/bin/perl use Digest::SHA::PurePerl; my $shaVal = Digest::SHA::PurePerl::sha256('test'); print "SHA value: ", $shaVal, "\n";
The PurePerl.pm module is a slightly modified version, in which I removed the use of FileHandle.pm by omitting the ancillary dump / load functions to avoid using modules that require dynamic loading. However, this same modified module is used on both test systems. Does anyone have any idea what might be going on here? My suspicion is that it has to do with how the SHA module determines the functions to use based on the function name (i.e. there is no actual sub called sha256), but I can't figure out what that would be a problem just because of the different architecture. Any help or suggestions for fixes would be greatly appreciated.Undefined subroutine &Digest::SHA::PurePerl::sha256 called at ./test.p +l line 5.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Undefined subroutine on ARM but not i686
by ikegami (Patriarch) on Jun 01, 2009 at 22:08 UTC | |
by cbanker (Beadle) on Jun 01, 2009 at 22:25 UTC | |
by almut (Canon) on Jun 01, 2009 at 22:42 UTC | |
by cbanker (Beadle) on Jun 01, 2009 at 23:06 UTC | |
by ikegami (Patriarch) on Jun 02, 2009 at 00:07 UTC | |
| |
by ikegami (Patriarch) on Jun 02, 2009 at 17:48 UTC | |
| |
|
Re: Undefined subroutine on ARM but not i686 ($@)
by tye (Sage) on Jun 02, 2009 at 01:14 UTC | |
by ikegami (Patriarch) on Jun 02, 2009 at 01:21 UTC |