BTW, I'm still seeing this... I'm trying to get Net::SFTP working, which is calling Net::SSH::Perl which is using Math::BigInt which is using Math::Pari. Here is the whole caller trace (caught using a $SIG{__DIE__}):
'__ANON__ called at Math/Pari.pm line 1148', '(eval) called at Math/Pari.pm line 1148', 'can called at Math/BigInt.pm line 2559', 'objectify called at Math/BigInt.pm line 1757', 'bmod called at Math/BigInt.pm line 114', '__ANON__ called at Net/SSH/Perl/Util/SSH2MP.pm line 28', 'mp2bin called at Net/SSH/Perl/Buffer.pm line 173', '_put_mp_int_ssh2 called at Net/SSH/Perl/Buffer.pm line 138' +, 'put_mp_int called at Net/SSH/Perl/Kex.pm line 179', 'derive_key called at Net/SSH/Perl/Kex.pm line 163', 'derive_keys called at Net/SSH/Perl/Kex/DH1.pm line 76', 'exchange called at Net/SSH/Perl/Kex.pm line 100', 'exchange called at Net/SSH/Perl/SSH2.pm line 92', '_login called at Net/SSH/Perl/SSH2.pm line 69', 'login called at Net/SFTP.pm line 62', 'init called at Net/SFTP.pm line 24', 'new called at -e line 1'
Yes, the line it is dying on is this one:
sub can { my ($obj, $meth) = (@_); my $f = $obj->SUPER::can($meth); return $f if defined $f; # There is no "usual" way to get the function; try loadPari() $f = eval { loadPari($meth) }; # <-- THIS LINE return $f if defined $f; return; }
So, I'm guessing it's when the loadPari function is getting called. This function must be defined in the Dynaloader (Pari.bs or Pari.so files). I know Perl ok, but when it hits this compiled stuff I don't know how to proceed. By deduction I assume it's trying to load some C-defined function that isn't present. Now, the as_number() function has been defined in the Math::BigInt since v1.22 (2001-04-05), so I think it's not likely that it's just a newly added function and I don't have the newest function... So I'm thinking I don't have another lib that these .so and .bs files need? libpari? I'll keep looking. (And BTW, you guys were unduely harsh to this guy who seems to have been doing his best to learn... "call to the closest available guru" sheesh...)

In reply to Re^2: Bug in Math::Pari ? by unlox775
in thread Bug in Math::Pari ? by SineSwiper

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.