rcer_dir); | ^~~~~~~ utils/kc_helper.c:47:40: note: include ‘’ or provide a declaration of ‘free’ 47 | #define StrFree(ptr) {if(ptr != NULL) {free(ptr); (ptr) = NULL;}} | ^~~~ utils/kc_helper.c:1653:9: note: in expansion of macro ‘StrFree’ 1653 | StrFree(enforcer_dir); | ^~~~~~~ utils/kc_helper.c:1659:17: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 1659 | free(repo[i].name); | ^~~~ utils/kc_helper.c:1659:17: note: include ‘’ or provide a declaration of ‘free’ utils/kc_helper.c:1663:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 1663 | free(repo); | ^~~~ utils/kc_helper.c:1663:9: note: include ‘’ or provide a declaration of ‘free’ utils/kc_helper.c: In function ‘check_zonelist’: utils/kc_helper.c:1732:34: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 1732 | if (policy_name) free(policy_name); | ^~~~ utils/kc_helper.c:1732:34: note: include ‘’ or provide a declaration of ‘free’ utils/kc_helper.c: In function ‘check_kasp’: utils/kc_helper.c:1808:40: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch] 1808 | policy_names = (char**)malloc(sizeof(char*) * policy_count); | ^~~~~~ utils/kc_helper.c:1808:40: note: include ‘’ or provide a declaration of ‘malloc’ utils/kc_helper.c:1811:25: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 1811 | exit(1); | ^~~~ utils/kc_helper.c:1811:25: note: include ‘’ or provide a declaration of ‘exit’ utils/kc_helper.c:1850:13: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 1850 | free(policy_names[i]); | ^~~~ utils/kc_helper.c:1850:13: note: include ‘’ or provide a declaration of ‘free’ utils/kc_helper.c:1852:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 1852 | free(policy_names); | ^~~~ utils/kc_helper.c:1852:9: note: include ‘’ or provide a declaration of ‘free’ utils/kc_helper.c: In function ‘check_zonelist’: utils/kc_helper.c:1729:45: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 1729 | dual_log("ERROR: Policy %s in zonelist does not exist!", policy_name); | ^~ cc1: some warnings being treated as errors make[3]: *** [Makefile:1373: utils/kc_helper.o] Error 1 make[2]: *** [Makefile:1404: all-recursive] Error 1 RPM build warnings: RPM build errors: make[1]: *** [Makefile:476: all-recursive] Error 1 make: *** [Makefile:526: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.S8tWWv (%build) %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.S8tWWv (%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/opendnssec.spec