-fasynchronous-unwind-tables -fstack-clash-protection -fpie -I. dmarc.c dmarc.c: In function 'dmarc_send_forensic_report': dmarc.c:181:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 181 | if ( dmarc_policy == DMARC_POLICY_REJECT && action == DMARC_RESULT_REJECT dmarc.c:183:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 183 | || dmarc_policy == DMARC_POLICY_NONE && action == DMARC_RESULT_REJECT dmarc.c:184:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 184 | || dmarc_policy == DMARC_POLICY_NONE && action == DMARC_RESULT_QUARANTINE dmarc.c:173:7: warning: unused variable 'send_status' [-Wunused-variable] 173 | BOOL send_status = FALSE; | ^~~~~~~~~~~ dmarc.c:172:21: warning: unused variable 'save_sender' [-Wunused-variable] 172 | uschar *recipient, *save_sender; | ^~~~~~~~~~~ dmarc.c: In function 'dmarc_process': dmarc.c:462:51: warning: passing argument 3 of 'opendmarc_policy_store_dkim' makes integer from pointer without a cast [-Wint-conversion] 462 | sig->selector, dkim_result, US""); | ~~~^~~~~~~~~~ | | | uschar * {aka unsigned char *} In file included from dmarc.h:15, from exim.h:555, from dmarc.c:14: /usr/include/opendmarc/dmarc.h:122:90: note: expected 'int' but argument is of type 'uschar *' {aka 'unsigned char *'} 122 | OPENDMARC_STATUS_T opendmarc_policy_store_dkim(DMARC_POLICY_T *pctx, u_char *domain, int result, u_char *human_result); | ~~~~^~~~~~ dmarc.c:462:63: warning: passing argument 4 of 'opendmarc_policy_store_dkim' makes pointer from integer without a cast [-Wint-conversion] 462 | sig->selector, dkim_result, US""); | ^~~~~~~~~~~ | | | int /usr/include/opendmarc/dmarc.h:122:106: note: expected 'u_char *' {aka 'unsigned char *'} but argument is of type 'int' 122 | OPENDMARC_STATUS_T opendmarc_policy_store_dkim(DMARC_POLICY_T *pctx, u_char *domain, int result, u_char *human_result); | ~~~~~~~~^~~~~~~~~~~~ dmarc.c:461:20: error: too many arguments to function 'opendmarc_policy_store_dkim' 461 | libdm_status = opendmarc_policy_store_dkim(dmarc_pctx, US sig->domain, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/opendmarc/dmarc.h:122:20: note: declared here 122 | OPENDMARC_STATUS_T opendmarc_policy_store_dkim(DMARC_POLICY_T *pctx, u_char *domain, int result, u_char *human_result); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:835: dmarc.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/exim-4.96/build-Linux-riscv64' make: *** [Makefile:36: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.RkEZK8 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.RkEZK8 (%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/exim.spec