Hi,

As I understand from ActiveState, the underlying reason is that the .exe uses Windows (8.1) dynamic loading for any dependent libraries.

I have no idea whether that's correct.
A bit more info on what's happening there might help.

You could also try:
ppm install http://www.sisyphusion.tk/ppm/Net-SSH2.ppd --force

That should install a Net-SSH2-0.53 that was built against static libs. It also installs a couple of dll's that need to be loaded at runtime, and it might be that those 2 dll's need to be explicitly loaded into the app. (You should find them in your $Config{sitebin}.)

As to the actual error that's killing your build it seems that both your perl and your mingw have decided to independently prototype a function named "mkstemp".
None of my mingw versions of stdlib.h contain such a function, but your mingw stdlib.h apparently does. (I don't have a mingw.org build of 4.8.1.)

I don't know how one is supposed to correctly deal with this, but both versions take a char* arg and return an int.
I would therefore try commenting out the prototype in either stdlib.h or win32.h, then run 'dmake', and then reinstate the removed the prototype after the build has finished.

This is a problem that should arise for every perl extension that you attempt to build, and has nothing particularly to do with Net::SSH2.

Cheers,
Rob

In reply to Re: Making Net::SSH2 by syphilis
in thread Making Net::SSH2 by martydavis

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.