#warning "the function pcap_setsampling() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:519:8: error: redefinition of 'struct pcap_samp' BUILDSTDERR: struct pcap_samp { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from Pcap.xs:32: BUILDSTDERR: /usr/include/pcap/pcap.h:914:8: note: originally defined here BUILDSTDERR: struct pcap_samp BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from Pcap.xs:43: BUILDSTDERR: stubs.inc:524:19: error: conflicting types for 'pcap_setsampling' BUILDSTDERR: struct pcap_samp *pcap_setsampling(pcap_t *p); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from Pcap.xs:32: BUILDSTDERR: /usr/include/pcap/pcap.h:931:28: note: previous declaration of 'pcap_setsampling' was here BUILDSTDERR: PCAP_API struct pcap_samp *pcap_setsampling(pcap_t *p); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from Pcap.xs:43: BUILDSTDERR: stubs.inc:525:19: error: conflicting types for 'pcap_setsampling' BUILDSTDERR: struct pcap_samp *pcap_setsampling(pcap_t *p) { BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from Pcap.xs:32: BUILDSTDERR: /usr/include/pcap/pcap.h:931:28: note: previous declaration of 'pcap_setsampling' was here BUILDSTDERR: PCAP_API struct pcap_samp *pcap_setsampling(pcap_t *p); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: Pcap.xs: In function 'XS_Net__Pcap_lookupdev': BUILDSTDERR: Pcap.xs:108:4: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] BUILDSTDERR: RETVAL = pcap_lookupdev(errbuf); BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from Pcap.xs:32: BUILDSTDERR: /usr/include/pcap/pcap.h:326:16: note: declared here BUILDSTDERR: PCAP_API char *pcap_lookupdev(char *) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: Pcap.xs: In function 'XS_Net__Pcap_findalldevs_xs': BUILDSTDERR: Pcap.xs:222:21: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] BUILDSTDERR: char *dev = pcap_lookupdev(errbuf); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from Pcap.xs:32: BUILDSTDERR: /usr/include/pcap/pcap.h:326:16: note: declared here BUILDSTDERR: PCAP_API char *pcap_lookupdev(char *) BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: Pcap.c: In function 'XS_Net__Pcap_strerror': BUILDSTDERR: Pcap.c:1703:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BUILDSTDERR: RETVAL = pcap_strerror(error); BUILDSTDERR: ^ BUILDSTDERR: Pcap.xs: In function 'XS_Net__Pcap_getevent': BUILDSTDERR: Pcap.xs:1038:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: h = (unsigned int) pcap_getevent(p); BUILDSTDERR: ^ BUILDSTDERR: make: *** [Makefile:348: Pcap.o] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.es7pyQ (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.es7pyQ (%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/perl-Net-Pcap.spec