I'm having an odd issue when using the Digest::SHA::PurePerl module on an ARM chip using microperl 5.8.6. I made up a very basic test script to test the module:
#!/usr/bin/perl use Digest::SHA::PurePerl; my $shaVal = Digest::SHA::PurePerl::sha256('test'); print "SHA value: ", $shaVal, "\n";
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:
Undefined subroutine &Digest::SHA::PurePerl::sha256 called at ./test.p +l line 5.
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.

In reply to Undefined subroutine on ARM but not i686 by cbanker

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.