Mock Version: 2.10 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rarpd.spec'], chrootPath='/var/lib/mock/epel-8-x86_64-1621513062.513900/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.thc46djp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.thc46djp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '920af07015d44796891e3993b34fac89', '-D', '/var/lib/mock/epel-8-x86_64-1621513062.513900/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.thc46djp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/rarpd.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rarpd-ss981107-58.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rarpd.spec'], chrootPath='/var/lib/mock/epel-8-x86_64-1621513062.513900/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': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.thc46djp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=FalseprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.thc46djp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '51cf235535e44ec3890cd0d9e8859ea1', '-D', '/var/lib/mock/epel-8-x86_64-1621513062.513900/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.thc46djp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/rarpd.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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EKjSHF + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rarpd + /usr/bin/gzip -dc /builddir/build/SOURCES/rarpd-ss981107.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rarpd + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (rarpd-ss981107.patch):' Patch #0 (rarpd-ss981107.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ss981107 --fuzz=0 patching file Makefile patching file rarpd.8 patching file rarpd.c + echo 'Patch #1 (rarpd-fd-leak.patch):' Patch #1 (rarpd-fd-leak.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fd-leak --fuzz=0 patching file rarpd.c + echo 'Patch #2 (rarpd-sprintf.patch):' Patch #2 (rarpd-sprintf.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sprintf --fuzz=0 patching file rarpd.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.UsUFEm + umask 022 + cd /builddir/build/BUILD + cd rarpd + export 'CFLAGS=-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpic' + CFLAGS='-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpic' + export 'LDFLAGS=-pie -Wl,-z,relro,-z,now' + LDFLAGS='-pie -Wl,-z,relro,-z,now' + make 'CFLAGS=-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpic' gcc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpic -c -o rarpd.o rarpd.c rarpd.c: In function 'load_if': rarpd.c:159:15: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] strncpy(ifl->name, ifrp->ifr_name, IFNAMSIZ); ~~~^~~~~~ In file included from /usr/include/features.h:428, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from rarpd.c:13: /usr/include/bits/string_fortified.h:103:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^~~~~ rarpd.c:161:18: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] p = strchr(ifl->name, ':'); ~~~^~~~~~ In file included from rarpd.c:18: /usr/include/string.h:226:14: note: expected 'const char *' but argument is of type 'unsigned char *' extern char *strchr (const char *__s, int __c) ^~~~~~ rarpd.c: In function 'serve_it': rarpd.c:435:75: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] n = recvfrom(fd, buf, sizeof(buf), MSG_DONTWAIT, (struct sockaddr*)&sll, &sll_len); ^~~~~~~~ In file included from /usr/include/sys/socket.h:269, from /usr/include/netinet/in.h:23, from /usr/include/netdb.h:27, from rarpd.c:20: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, ^~~~~~~~ rarpd.c:460:6: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] ptr = tmpbuf; ^ rarpd.c:462:10: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] for (ptr=tmpbuf+2, i=1; iname, IFNAMSIZ); ~~~^~~~~~ In file included from /usr/include/features.h:428, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from rarpd.c:13: /usr/include/bits/string_fortified.h:103:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, ^~~~~ rarpd.c:547:34: warning: pointer targets in passing argument 2 of 'arp_advise' differ in signedness [-Wpointer-sign] arp_advise(sll.sll_ifindex, rmap->lladdr, rmap->lladdr_len, rmap->ipaddr); ~~~~^~~~~~~~ rarpd.c:392:6: note: expected 'unsigned char *' but argument is of type 'char *' void arp_advise(int ifindex, unsigned char *lladdr, int lllen, __u32 ipaddr) ^~~~~~~~~~ rarpd.c: In function 'main': rarpd.c:690:3: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir("/"); ^~~~~~~~~~ rarpd.c: In function 'bootable': rarpd.c:225:17: warning: 'dent' may be used uninitialized in this function [-Wmaybe-uninitialized] struct dirent *dent; ^~~~ rarpd.c: In function 'serve_it': rarpd.c:461:34: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] snprintf(tmpbuf, 2, "%02x", sll.sll_addr[0]); ^ In file included from /usr/include/stdio.h:873, from rarpd.c:13: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 3 bytes into a destination of size 2 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rarpd.c:463:26: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] snprintf(ptr, 3, ":%02x", sll.sll_addr[i]); ^ In file included from /usr/include/stdio.h:873, from rarpd.c:13: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 bytes into a destination of size 3 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -pie -Wl,-z,relro,-z,now rarpd.o -o rarpd + cp /builddir/build/SOURCES/LICENSE . + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.o2xUe4 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64 ++ dirname /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64 + cd rarpd + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/lib/systemd/system + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/share/man/man8 + install -m 644 /builddir/build/SOURCES/rarpd.service /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/lib/systemd/system/rarpd.service + install -m 755 rarpd /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/sbin/rarpd + install -m 644 rarpd.8 /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/share/man/man8/rarpd.8 + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed ss981107-58.el8 --unique-debug-suffix -ss981107-58.el8.x86_64 --unique-debug-src-base rarpd-ss981107-58.el8.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/rarpd extracting debug info from /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/sbin/rarpd /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 31 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile '' 1 + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/libexec/platform-python + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: rarpd-ss981107-58.el8.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.sMoJzM + umask 022 + cd /builddir/build/BUILD + cd rarpd + DOCDIR=/builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/share/doc/rarpd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/share/doc/rarpd + cp -pr README /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/share/doc/rarpd + cp -pr LICENSE /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64/usr/share/doc/rarpd + exit 0 Provides: rarpd = ss981107-58.el8 rarpd(x86-64) = ss981107-58.el8 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd-units Requires(preun): /bin/sh systemd-units Requires(postun): /bin/sh systemd-units Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) rtld(GNU_HASH) Processing files: rarpd-debugsource-ss981107-58.el8.x86_64 Provides: rarpd-debugsource = ss981107-58.el8 rarpd-debugsource(x86-64) = ss981107-58.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rarpd-debuginfo-ss981107-58.el8.x86_64 Provides: debuginfo(build-id) = 4b69d5fca00e39dca5a6b342aa5ddb4dda793cbf rarpd-debuginfo = ss981107-58.el8 rarpd-debuginfo(x86-64) = ss981107-58.el8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rarpd-debugsource(x86-64) = ss981107-58.el8 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64 Wrote: /builddir/build/RPMS/rarpd-ss981107-58.el8.x86_64.rpm Wrote: /builddir/build/RPMS/rarpd-debugsource-ss981107-58.el8.x86_64.rpm Wrote: /builddir/build/RPMS/rarpd-debuginfo-ss981107-58.el8.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.M8btbv + umask 022 + cd /builddir/build/BUILD + cd rarpd + /usr/bin/rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-58.el8.x86_64 + exit 0 Child return code was: 0