I'm getting quite baffling compilation errors from Strawberry Perl as seen here.

The errors look like this:

In file included from Libdeflate.xs:3: C:\STRAWB~1\perl\lib\CORE/XSUB.h:615:21: error: 'PerlMem_malloc' undec +lared here (not in a function); did you mean 'Perl_malloc'? # define malloc PerlMem_malloc ^~~~~~~~~~~~~~ C:\STRAWB~1\perl\lib\CORE/XSUB.h:615:21: note: in definition of macro +'malloc' # define malloc PerlMem_malloc ^~~~~~~~~~~~~~ C:\STRAWB~1\perl\lib\CORE/XSUB.h:618:19: error: 'PerlMem_free' undecla +red here (not in a function); did you mean 'Perl_sv_free'? # define free PerlMem_free ^~~~~~~~~~~~ C:\STRAWB~1\perl\lib\CORE/XSUB.h:618:19: note: in definition of macro +'free' # define free PerlMem_free ^~~~~~~~~~~~ gmake: *** [Makefile:340: Libdeflate.o] Error 1 -> FAIL Installing Gzip-Libdeflate-0.01_01.tar.gz failed. See C:\Users +\ben\.cpanm\work\1613793219.7300\build.log for details. Retry with -- +force to force install it.

On my Perl XSUB.h defines free as above, but I don't understand what this error even means, since it is coming from a #define line where what is on the right shouldn't matter.

I've tried everything I can think of to work out what is happening, but I'm completely stumped.


In reply to Baffling compilation errors from Strawberry Perl by no longer just digit

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.