Sometimes I get even this error: perl SSH2.c undefined reference to CRYPTO_set_dynlock_destroy_callback

That is usually a matter of arranging -Ldirpath -llibname ... either one is missing from the list (one that provides the symbol CRYPTO_set_dynlock_destroy_callback )

or its in the wrong order , -lcrypto needs to come before -lsomethingelse

or there are two -lcryptos, an old one and a new one, and its finding the old one first, so adjust the -Lpath

Unless you're the developer, its usually a little bit of trial and error to figure it out

and if that fails you contact the developer :)

 SSH2.c:1103:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]          ss = (SSH2 *)SvIV((SV*)SvRV(ST(0)));

These can be a little trickier :) maybe a missing #define DOTHE64BITVERSION (or via a flag -DDOTHE64BITVERSION ) ... nothing jumps out at me from Net-SSH2 :)

Or its simply an oversight by the developer :) its hard to predict all combinations of everything

So drop a copy of the full cli session to the devs, rt://Net-SSH2

Before your advice, I did not try to use a strawberry perl because I thought that strawberry is compiled with gcc, whereas ActivePerl used Microsoft compilers. But this has turned out to be WRONG! Both use gcc.

:) I haven't checked in a while, but ActivePerl actually uses the microsoft compiler to compile their product, but they also provide MinGW/gcc via ppm, so you can compile other modules ... compilers, they're compatible with each other ... and with perl (as long as you "patch" Config to act appropriately, which ActivePerl does (someway), but in general Re^4: Advantages of Activeperl vs Strawberry Perl, Compiling C/C++ based Modules under ActiveState using MinGW)

links here like activestate.com/blog... How to install CPAN modules into ActivePerl


In reply to Re^7: Net-SSH2 on Windows with Perl 5.14 by Anonymous Monk
in thread Net-SSH2 on Windows with Perl 5.14 by gepapa

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.