Subject: | Compilation error with perl 5.22 and later |
See http://matrix.cpantesters.org/?dist=Clone-Closure%200.06 for an overview of test reports --- with perl 5.22.0 and later there are only "unknown" reports, indicating a compilation error.
With perl 5.25.4 I see:
cc -I. -I/opt/perl-5.25.4/lib/5.25.4/x86_64-linux/CORE -DVERSION="0.06" -DXS_VERSION="0.06" -fPIC -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -o lib/Clone/Closure.o lib/Clone/Closure.c
In file included from /opt/perl-5.25.4/lib/5.25.4/x86_64-linux/CORE/perl.h:3916:0,
from lib/Clone/Closure.xs:2:
lib/Clone/Closure.xs: In function âCC_cv_cloneâ:
/opt/perl-5.25.4/lib/5.25.4/x86_64-linux/CORE/cv.h:70:25: warning: initialization from incompatible pointer type
#define CvPADLIST(sv) (*(assert_(!CvISXSUB((CV*)(sv))) \
^
lib/Clone/Closure.xs:257:26: note: in expansion of macro âCvPADLISTâ
AV *const rpadlist = CvPADLIST(ref);
^
lib/Clone/Closure.xs:350:22: warning: assignment from incompatible pointer type
CvPADLIST(clone) = cpadlist;
^
In file included from /opt/perl-5.25.4/lib/5.25.4/x86_64-linux/CORE/perl.h:5626:0,
from lib/Clone/Closure.xs:2:
lib/Clone/Closure.xs: In function âpad_cloneâ:
/opt/perl-5.25.4/lib/5.25.4/x86_64-linux/CORE/cv.h:70:25: warning: passing argument 1 of âPerl_av_fetchâ from incompatible pointer type
#define CvPADLIST(sv) (*(assert_(!CvISXSUB((CV*)(sv))) \
^
/opt/perl-5.25.4/lib/5.25.4/x86_64-linux/CORE/embed.h:56:46: note: in definition of macro âav_fetchâ
#define av_fetch(a,b,c) Perl_av_fetch(aTHX_ a,b,c)
^
...