include/netinet/in.h:344:8: note: originally defined here BUILDSTDERR: struct group_filter BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/if_pppol2tp.h:20, BUILDSTDERR: from /usr/include/linux/if_pppox.h:27, BUILDSTDERR: from plugin.c:60: 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 pppoe.h:127, BUILDSTDERR: from plugin.c:31: BUILDSTDERR: /usr/include/bits/in.h:157:8: note: originally defined here BUILDSTDERR: struct in_pktinfo BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/if_pppol2tp.h:20, BUILDSTDERR: from /usr/include/linux/if_pppox.h:27, BUILDSTDERR: from plugin.c:60: BUILDSTDERR: /usr/include/linux/in.h:232:8: error: redefinition of 'struct sockaddr_in' BUILDSTDERR: struct sockaddr_in { BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from pppoe.h:127, BUILDSTDERR: from plugin.c:31: BUILDSTDERR: /usr/include/netinet/in.h:237:8: note: originally defined here BUILDSTDERR: struct sockaddr_in BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/if_pppol2tp.h:21, BUILDSTDERR: from /usr/include/linux/if_pppox.h:27, BUILDSTDERR: from plugin.c:60: BUILDSTDERR: /usr/include/linux/in6.h:33:8: error: redefinition of 'struct in6_addr' BUILDSTDERR: struct in6_addr { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from pppoe.h:127, BUILDSTDERR: from plugin.c:31: BUILDSTDERR: /usr/include/netinet/in.h:211:8: note: originally defined here BUILDSTDERR: struct in6_addr BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/if_pppol2tp.h:21, BUILDSTDERR: from /usr/include/linux/if_pppox.h:27, BUILDSTDERR: from plugin.c:60: BUILDSTDERR: /usr/include/linux/in6.h:50:8: error: redefinition of 'struct sockaddr_in6' BUILDSTDERR: struct sockaddr_in6 { BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from pppoe.h:127, BUILDSTDERR: from plugin.c:31: BUILDSTDERR: /usr/include/netinet/in.h:252:8: note: originally defined here BUILDSTDERR: struct sockaddr_in6 BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/linux/if_pppol2tp.h:21, BUILDSTDERR: from /usr/include/linux/if_pppox.h:27, BUILDSTDERR: from plugin.c:60: BUILDSTDERR: /usr/include/linux/in6.h:60:8: error: redefinition of 'struct ipv6_mreq' BUILDSTDERR: struct ipv6_mreq { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from pppoe.h:127, BUILDSTDERR: from plugin.c:31: BUILDSTDERR: /usr/include/netinet/in.h:288:8: note: originally defined here BUILDSTDERR: struct ipv6_mreq BUILDSTDERR: ^~~~~~~~~ RPM build errors: BUILDSTDERR: plugin.c:27:19: warning: 'RCSID' defined but not used [-Wunused-const-variable=] BUILDSTDERR: static char const RCSID[] = BUILDSTDERR: ^~~~~ BUILDSTDERR: make: *** [Makefile:139: plugin/plugin.o] Error 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.WZHm7b (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.WZHm7b (%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/rp-pppoe.spec