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.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |