/usr/include/AvailabilityInternal.h:22938:10: error: unterminated conditional directive

The syntax of /usr/include/AvailabilityInternal.h is illegal, at least in the eyes of your C compiler.
For every "#if" there needs to be a corresponding "#endif", and the C pre-processor hasn't found those requisite occurrences of "#endif". (All other errors are probably a consequence of this.)

I suppose one could fix the offending file, but if you're using the system perl (as I suspect you are) then I believe that, instead of using cpan, it's recommended that you install modules using your system's package manager.
/usr/include/AvailabilityInternal.h wouldn't even be looked at if you were to install WWW::Curl::Easy using the package manager.

Update: See
https://stackoverflow.com/questions/42031921/unterminated-unconditional-directive-error-when-preprocessing-c-code
if you wish to persevere with a cpanp installation.

Cheers,
Rob

In reply to Re: installing WWW::Curl::Easy perl module in OS X 10.12.6 by syphilis
in thread installing WWW::Curl::Easy perl module in OS X 10.12.6 by igods

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.