^~~~ /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.c: In function ‘XS_Authen__Krb5__AuthContext_new’: Krb5.c:2260:17: warning: unused variable ‘class’ [-Wunused-variable] 2260 | char * class = (char *)SvPV_nolen(ST(0)) | ^~~~~ Krb5.xs: In function ‘XS_Authen__Krb5__EncTktPart_DESTROY’: Krb5.xs:1007:17: error: implicit declaration of function ‘krb5_free_enc_tkt_part’; did you mean ‘krb5_free_enctypes’? [-Werror=implicit-function-declaration] 1007 | krb5_free_enc_tkt_part(context,etp); | ^~~~~~~~~~~~~~~~~~~~~~ | krb5_free_enctypes Krb5.xs: In function ‘XS_Authen__Krb5__Address_new’: /usr/lib64/perl5/CORE/sv.h:1952:31: warning: passing argument 3 of ‘Perl_SvPV_helper’ from incompatible pointer type [-Wincompatible-pointer-types] 1952 | Perl_SvPV_helper(aTHX_ sv, &len, flags, SvPVnormal_type_, \ /usr/lib64/perl5/CORE/sv.h:1972:37: note: in expansion of macro ‘SvPV_flags’ 1972 | #define SvPV(sv, len) SvPV_flags(sv, len, SV_GMAGIC) | ^~~~~~~~~~ Krb5.xs:1022:42: note: in expansion of macro ‘SvPV’ 1022 | RETVAL->contents = (krb5_octet *)SvPV(contents,RETVAL->length); | ^~~~ /usr/lib64/perl5/CORE/sv_inline.h:908:33: note: expected ‘STRLEN * const’ {aka ‘long unsigned int * const’} but argument is of type ‘unsigned int *’ 908 | STRLEN * const lp, | ~~~~~~~~~~~~~~~^~ Krb5.c:2833:17: warning: unused variable ‘class’ [-Wunused-variable] 2833 | char * class = (char *)SvPV_nolen(ST(0)) | ^~~~~ Krb5.xs: In function ‘XS_Authen__Krb5__Address_DESTROY’: Krb5.xs:1033:17: error: implicit declaration of function ‘krb5_free_address’; did you mean ‘krb5_free_addresses’? [-Werror=implicit-function-declaration] 1033 | krb5_free_address(context,addr); | ^~~~~~~~~~~~~~~~~ | krb5_free_addresses Krb5.c: In function ‘XS_Authen__Krb5__KeytabEntry_new’: Krb5.c:3395:17: warning: unused variable ‘class’ [-Wunused-variable] 3395 | char * class = (char *)SvPV_nolen(ST(0)) | ^~~~~ Krb5.xs: In function ‘XS_Authen__Krb5__Creds_ticket’: Krb5.xs:1351:25: warning: variable ‘retval’ set but not used [-Wunused-but-set-variable] 1351 | krb5_error_code retval; | ^~~~~~ Krb5.xs: In function ‘XS_Authen__Krb5__Creds_DESTROY’: Krb5.xs:1389:17: warning: pointer ‘creds’ used after ‘free’ [-Wuse-after-free] 1389 | freed((SV *)creds); | ^~~~~~~~~~~~~~~~~~ Krb5.xs:1388:17: note: call to ‘free’ here 1388 | free(creds); | ^~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [Makefile:341: Krb5.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.0fdwNB (%build) RPM build warnings: RPM build errors: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.0fdwNB (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/perl-Authen-Krb5.spec