Subject: | Compilation error with threaded perls |
The new version cannot be compiled with threaded perls. Excerpt of the build log:
...
cc -c -I/home/cpansand/.cpan/build/2019041418/B-Hooks-OP-Check-0.22-0/blib/arch/B/Hooks/OP/Check/Install -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector -fno-strict-aliasing -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.28/mach/CORE" Parser.c
In file included from Parser.xs:21:
./stolen_chunk_of_toke.c:132:13: error: unexpected type name 'PerlInterpreter': expected identifier
filter_read(pTHX_ int idx, SV *buf_sv, int maxlen)
^
/usr/local/lib/perl5/5.28/mach/CORE/perl.h:187:18: note: expanded from macro 'pTHX_'
# define pTHX_ pTHX,
^
/usr/local/lib/perl5/5.28/mach/CORE/perl.h:174:17: note: expanded from macro 'pTHX'
# define pTHX tTHX my_perl PERL_UNUSED_DECL
^
/usr/local/lib/perl5/5.28/mach/CORE/perl.h:173:16: note: expanded from macro 'tTHX'
# define tTHX PerlInterpreter*
^
... (etc) ...