Thanks to your instructions, I managed to successfully build NetSSH2 for 5.16 and also for 5.14, each in 32 Bit.

I stick to the 32 bit version, because I had problems with method scp_get in the past returning only an empty file, even using the pre-compiled binaries 0.53.

What I did in short:

I did not test the libraries yet, but I'd expect that it'll be ok...

But I did not manage to build it for perl versions above perl 5.16:
I looks to me that there are two different versions, one with 64 bit integers and one without. No matter which version I try, every time I get pages of this kind of error:

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

Sometimes I get even this error:

SSH2.o:SSH2.c:(.text+0x14f8d): undefined reference to `CRYPTO_set_dyn lock_destroy_callback' C:/STRAWB~1/c/bin/../lib/gcc/i686-w64-mingw32/4.8.3/../../../../i686- w64-mingw32/bin/ld.exe: SSH2.o: bad reloc address 0x1768 in section `.rdata' C:/STRAWB~1/c/bin/../lib/gcc/i686-w64-mingw32/4.8.3/../../../../i686- w64-mingw32/bin/ld.exe: final link failed: Invalid operation collect2.exe: error: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Net\SSH2\SSH2.dl l'

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 will continue to test the perls 5.18 and above and also 64 bit versions. Right now, I am able to test the new version of Net::SSH2.

Thanks for your wisdom!
Bogi


In reply to Re^6: Net-SSH2 on Windows with Perl 5.14 by bogi
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.