evious definition of 'IFF_PORTSEL' was here BUILDSTDERR: IFF_PORTSEL = 0x2000, /* Can set media type. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/if.h:96:2: error: redeclaration of enumerator 'IFF_AUTOMEDIA' BUILDSTDERR: IFF_AUTOMEDIA = 1<<14, /* sysfs */ BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: /usr/include/net/if.h:77:5: note: previous definition of 'IFF_AUTOMEDIA' was here BUILDSTDERR: IFF_AUTOMEDIA = 0x4000, /* Auto media select active. */ BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: /usr/include/linux/if.h:97:2: error: redeclaration of enumerator 'IFF_DYNAMIC' BUILDSTDERR: IFF_DYNAMIC = 1<<15, /* sysfs */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: /usr/include/net/if.h:79:5: note: previous definition of 'IFF_DYNAMIC' was here BUILDSTDERR: IFF_DYNAMIC = 0x8000 /* Dialup device with changing addresses. */ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/netdevice.h:29, BUILDSTDERR: from ./../include/vrrp_if.h:39, BUILDSTDERR: from ./../include/global_data.h:47, BUILDSTDERR: from vrrp_if.c:53: BUILDSTDERR: /usr/include/linux/if.h:192:8: error: redefinition of 'struct ifmap' BUILDSTDERR: struct ifmap { BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./../include/vrrp_if.h:34, BUILDSTDERR: from ./../include/global_data.h:47, BUILDSTDERR: from vrrp_if.c:53: BUILDSTDERR: /usr/include/net/if.h:111:8: note: originally defined here BUILDSTDERR: struct ifmap BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/linux/netdevice.h:29, BUILDSTDERR: from ./../include/vrrp_if.h:39, BUILDSTDERR: from ./../include/global_data.h:47, BUILDSTDERR: from vrrp_if.c:53: BUILDSTDERR: /usr/include/linux/if.h:229:8: error: redefinition of 'struct ifreq' BUILDSTDERR: struct ifreq { BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./../include/vrrp_if.h:34, BUILDSTDERR: from ./../include/global_data.h:47, BUILDSTDERR: from vrrp_if.c:53: BUILDSTDERR: /usr/include/net/if.h:126:8: note: originally defined here BUILDSTDERR: struct ifreq BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /usr/include/linux/netdevice.h:29, BUILDSTDERR: from ./../include/vrrp_if.h:39, BUILDSTDERR: from ./../include/global_data.h:47, BUILDSTDERR: from vrrp_if.c:53: BUILDSTDERR: /usr/include/linux/if.h:281:8: error: redefinition of 'struct ifconf' BUILDSTDERR: struct ifconf { BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from ./../include/vrrp_if.h:34, BUILDSTDERR: from ./../include/global_data.h:47, BUILDSTDERR: from vrrp_if.c:53: BUILDSTDERR: /usr/include/net/if.h:176:8: note: originally defined here BUILDSTDERR: struct ifconf BUILDSTDERR: ^~~~~~ BUILDSTDERR: make[2]: *** [Makefile:409: vrrp_if.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/keepalived-2.0.6/keepalived/vrrp' make[1]: Leaving directory '/builddir/build/BUILD/keepalived-2.0.6/keepalived' BUILDSTDERR: make[1]: *** [Makefile:583: all-recursive] Error 1 BUILDSTDERR: make: *** [Makefile:427: all-recursive] Error 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.XDsEJl (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.XDsEJl (%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/keepalived.spec