Hello esteemed Monks, I'm installing the DBD::DB2 module on Windows 10 with Strawberry Perl v5.28.1 using cpan's install DBD::DB2 and getting a lot of strange "did you mean..." errors, e.g.:

In file included from C:/PROGRA~1/IBM/SQLLIB/include/sqlcli.h:987:0, from Constants.xs:16: C:/PROGRA~1/IBM/SQLLIB/include/sqlext.h:1748:5: error: unknown type na +me '__in_ecount'; did you mean 'SAL__in_ecount'? __in_ecount(cchConnStrIn) ^~~~~~~~~~~ SAL__in_ecount C:/PROGRA~1/IBM/SQLLIB/include/sqlext.h:1751:5: error: unknown type na +me '__out_ecount_opt'; did you mean 'SAL__out_ecount_opt'? __out_ecount_opt(cchConnStrOutMax) ^~~~~~~~~~~~~~~~ SAL__out_ecount_opt C:/PROGRA~1/IBM/SQLLIB/include/sqlext.h:1754:5: error: unknown type na +me '__out_opt'; did you mean '_Out_opt_'? __out_opt ^~~~~~~~~

Any clue what's going on here? Thanks as always for your advice and patience.

p.s. don't know if this is any kind of clue, but when I start the cpan shell I get this:

Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call + didn't work. The COLUMNS and LINES environment variables didn't work +. at C:\Strawberry\perl\vendor\lib/Term/ReadLine/readline.pm line 410 +. cpan shell -- CPAN exploration and modules installation (v2.20) Enter 'h' for help. cpan>

In reply to Strange errors installing DBD::DB2 module by slugger415

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.