Subject: | Compilation fails with threaded perls |
Compilation fails with threaded perls:
...
cc -c -fno-common -DPERL_DARWIN -mmacosx-version-min=10.11 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" "-I/opt/perl-5.24.1t/lib/5.24.1/darwin-thread-multi-2level/CORE" Jemallctl.c
Jemallctl.xs:93:23: error: use of undeclared identifier 'my_cxtp'
hv_ksplit(RETVAL, MY_CXT.count);
^
/opt/perl-5.24.1t/lib/5.24.1/darwin-thread-multi-2level/CORE/perl.h:6495:21: note: expanded from macro 'MY_CXT'
# define MY_CXT (*my_cxtp)
^
Jemallctl.xs:94:20: error: use of undeclared identifier 'my_cxtp'
for(i = 0; i < MY_CXT.count; i++)
^
/opt/perl-5.24.1t/lib/5.24.1/darwin-thread-multi-2level/CORE/perl.h:6495:21: note: expanded from macro 'MY_CXT'
# define MY_CXT (*my_cxtp)
^
Jemallctl.xs:95:33: error: use of undeclared identifier 'my_cxtp'
read_key_into_hv(aTHX_ &MY_CXT, i, RETVAL);
^
/opt/perl-5.24.1t/lib/5.24.1/darwin-thread-multi-2level/CORE/perl.h:6495:21: note: expanded from macro 'MY_CXT'
# define MY_CXT (*my_cxtp)
^
3 errors generated.
make: *** [Jemallctl.o] Error 1
...
See also http://matrix.cpantesters.org/?dist=Devel-Jemallctl%200.02;os=linux;reports=1#sl=0,1 --- passes exist only for non-threaded perls, the unknowns indicate either missing system prereqs, or this compilation failure.