Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/perl-Net-Pcap.spec'], chrootPath='/var/lib/mock/f29-build-28433-15229/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/perl-Net-Pcap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False BUILDSTDERR: sh: /usr/bin/perl: No such file or directory BUILDSTDERR: sh: /usr/bin/perl: No such file or directory BUILDSTDERR: sh: /usr/bin/perl: No such file or directory Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/perl-Net-Pcap-0.18-9.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/perl-Net-Pcap.spec'], chrootPath='/var/lib/mock/f29-build-28433-15229/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/perl-Net-Pcap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.I0G8dV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Net-Pcap-0.18 + /usr/bin/gzip -dc /builddir/build/SOURCES/Net-Pcap-0.18.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Net-Pcap-0.18 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (Net-Pcap-0.18-Adapt-a-test-to-libpcap-1.8.0.patch):' Patch #0 (Net-Pcap-0.18-Adapt-a-test-to-libpcap-1.8.0.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file t/09-error.t + for f in README Changes + iconv -f iso-8859-1 -t utf-8 README + mv -f README.conv README + for f in README Changes + iconv -f iso-8859-1 -t utf-8 Changes + mv -f Changes.conv Changes + chmod 0644 eg/pcapdump eg/pktdump.pl + sed -i -e '1s~#!perl~#!/usr/bin/perl~' t/00-load.t t/01-api.t t/02-lookup.t t/03-openlive.t t/04-loop.t t/05-dump.t t/06-offline.t t/07-stats.t t/08-filter.t t/09-error.t t/10-fileno.t t/11-snapshot.t t/12-next.t t/13-dispatch.t t/14-datalink.t t/15-is_swapped.t t/16-setnonblock.t t/17-lib_version.t t/18-open_dead.t t/19-breakloop.t t/20-constants.t t/21-next_ex.t t/22-open.t t/23-srcstr.t t/50-anyevent-pcap.t t/50-net-pcap-easy.t t/50-poe-component-pcap.t t/distchk.t t/pod.t t/podcover.t t/podspell.t t/portfs.t + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.es7pyQ + umask 022 + cd /builddir/build/BUILD + cd Net-Pcap-0.18 + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' NO_PACKLIST=1 looking for -lpcap... yes checking for pcap_lib_version() in -lpcap... yes detecting available functions... ok Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Net::Pcap + make -j4 Running Mkbootstrap for Pcap () "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/builddir/build/BUILD/Net-Pcap-0.18/typemap' Pcap.xs > Pcap.xsc chmod 644 "Pcap.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs 644 cp Pcap.pm blib/lib/Net/Pcap.pm mv Pcap.xsc Pcap.c gcc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wwrite-strings -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -fPIC "-I/usr/lib64/perl5/CORE" -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_BREAKLOOP -DHAVE_PCAP_COMPILE_NOPCAP -DHAVE_PCAP_DATALINK_NAME_TO_VAL -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION -DHAVE_PCAP_DATALINK_VAL_TO_NAME -DHAVE_PCAP_DUMP_FILE -DHAVE_PCAP_DUMP_FLUSH -DHAVE_PCAP_FINDALLDEVS -DHAVE_PCAP_GETNONBLOCK -DHAVE_PCAP_GET_SELECTABLE_FD -DHAVE_PCAP_LIB_VERSION -DHAVE_PCAP_NEXT_EX -DHAVE_PCAP_OFFLINE_FILTER -DHAVE_PCAP_OPEN_DEAD -DHAVE_PCAP_SENDPACKET -DHAVE_PCAP_SETNONBLOCK -DHAVE_PCAP_SET_DATALINK Pcap.c BUILDSTDERR: In file included from Pcap.xs:43: BUILDSTDERR: stubs.inc:187:2: warning: #warning "the function pcap_list_datalinks() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_list_datalinks() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:322:2: warning: #warning "the function pcap_createsrcstr() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_createsrcstr() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:337:2: warning: #warning "the function pcap_parsesrcstr() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_parsesrcstr() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:352:2: warning: #warning "the function pcap_open() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_open() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:357:8: error: redefinition of 'struct pcap_rmtauth' BUILDSTDERR: struct pcap_rmtauth { BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from Pcap.xs:32: BUILDSTDERR: /usr/include/pcap/pcap.h:788:8: note: originally defined here BUILDSTDERR: struct pcap_rmtauth BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: In file included from Pcap.xs:43: BUILDSTDERR: stubs.inc:363:10: error: conflicting types for 'pcap_open' BUILDSTDERR: pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from Pcap.xs:32: BUILDSTDERR: /usr/include/pcap/pcap.h:835:18: note: previous declaration of 'pcap_open' was here BUILDSTDERR: PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags, BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from Pcap.xs:43: BUILDSTDERR: stubs.inc:364:10: error: conflicting types for 'pcap_open' BUILDSTDERR: pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err) { BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from /usr/include/pcap.h:43, BUILDSTDERR: from Pcap.xs:32: BUILDSTDERR: /usr/include/pcap/pcap.h:835:18: note: previous declaration of 'pcap_open' was here BUILDSTDERR: PCAP_API pcap_t *pcap_open(const char *source, int snaplen, int flags, BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: In file included from Pcap.xs:43: BUILDSTDERR: stubs.inc:373:2: warning: #warning "the function pcap_setbuff() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_setbuff() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:388:2: warning: #warning "the function pcap_setuserbuffer() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_setuserbuffer() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:403:2: warning: #warning "the function pcap_setmode() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_setmode() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:418:2: warning: #warning "the function pcap_setmintocopy() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_setmintocopy() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:433:2: warning: #warning "the function pcap_sendqueue_alloc() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_sendqueue_alloc() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:455:2: warning: #warning "the function pcap_sendqueue_destroy() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_sendqueue_destroy() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:469:2: warning: #warning "the function pcap_sendqueue_queue() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_sendqueue_queue() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:484:2: warning: #warning "the function pcap_sendqueue_transmit() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_sendqueue_transmit() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:499:2: warning: #warning "the function pcap_event() is not available" [-Wcpp] BUILDSTDERR: #warning "the function pcap_event() is not available" BUILDSTDERR: ^~~~~~~ BUILDSTDERR: stubs.inc:514:2: warning: #warning "the function pcap_setsampling() is not available" [-Wcpp] BUILDSTDERR: #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