from ../include/linux/netfilter.h:6, BUILDSTDERR: from ../include/xtables.h:18, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/linux/in.h:222:8: error: redefinition of 'struct in_pktinfo' BUILDSTDERR: struct in_pktinfo { BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/netinet/in.h:37, BUILDSTDERR: from ../include/xtables.h:15, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/bits/in.h:157:8: note: originally defined here BUILDSTDERR: struct in_pktinfo BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from ../include/linux/netfilter.h:6, BUILDSTDERR: from ../include/xtables.h:18, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/linux/in.h:232:8: error: redefinition of 'struct sockaddr_in' BUILDSTDERR: struct sockaddr_in { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/xtables.h:15, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/netinet/in.h:237:8: note: originally defined here BUILDSTDERR: struct sockaddr_in BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/linux/netfilter.h:7, BUILDSTDERR: from ../include/xtables.h:18, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/linux/in6.h:33:8: error: redefinition of 'struct in6_addr' BUILDSTDERR: struct in6_addr { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from ../include/xtables.h:15, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/netinet/in.h:211:8: note: originally defined here BUILDSTDERR: struct in6_addr BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from ../include/linux/netfilter.h:7, BUILDSTDERR: from ../include/xtables.h:18, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/linux/in6.h:50:8: error: redefinition of 'struct sockaddr_in6' BUILDSTDERR: struct sockaddr_in6 { BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/xtables.h:15, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/netinet/in.h:252:8: note: originally defined here BUILDSTDERR: struct sockaddr_in6 BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/linux/netfilter.h:7, BUILDSTDERR: from ../include/xtables.h:18, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/linux/in6.h:60:8: error: redefinition of 'struct ipv6_mreq' BUILDSTDERR: struct ipv6_mreq { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from ../include/xtables.h:15, BUILDSTDERR: from libxt_mac.c:7: BUILDSTDERR: /usr/include/netinet/in.h:288:8: note: originally defined here BUILDSTDERR: struct ipv6_mreq BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: make[2]: *** [GNUmakefile:107: libxt_mac.oo] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/iptables-1.8.0/extensions' BUILDSTDERR: make[1]: *** [Makefile:507: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/iptables-1.8.0' BUILDSTDERR: make: *** [Makefile:414: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.5AuJY1 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.5AuJY1 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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/iptables.spec