in reply to Re^6: Net-SSH2 on Windows with Perl 5.14
in thread Net-SSH2 on Windows with Perl 5.14
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
|
|---|