./curlopt-constants.c:19:58: error: non-void function 'constant' should return a value [-Wreturn-type]

Interesting ... when I build WWW-Curl on windows, I get something similar:
In file included from Curl.xs:581:0: curlopt-constants.c: In function 'constant': curlopt-constants.c:19:58: warning: 'return' with no value, in functio +n returning non-void if (strEQ(name, "DID_MEMORY_FUNC_TYPEDEFS")) return CURL_ +DID_MEMORY_FUNC_TYPEDEFS;
But, of course, it's only a warning for me - and this allows the build to complete successfully.

I *think* this warning is telling me that, although CURL_DID_MEMORY_FUNC_TYPEDEFS is defined, it hasn't been assigned a value.
In Curl.xs, try replacing:
#include "curlopt-constants.c"
with:
#undef CURL_DID_MEMORY_FUNC_TYPEDEFS #define CURL_DID_MEMORY_FUNC_TYPEDEFS 0 #include "curlopt-constants.c"
That avoids the warning for me, and will hopefully avoid the error for you.

Cheers,
Rob

In reply to Re^4: 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.