+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/rarpd.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tzcUYS + 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.qIYl2t + 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 -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 -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 -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 -fpic -c -o rarpd.o rarpd.c rarpd.c: In function 'load_if': rarpd.c:159:12: 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:0, 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:15: 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:0: /usr/include/string.h:225: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:0, 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 differ in signedness [-Wpointer-sign] ptr = tmpbuf; ^ rarpd.c:462:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] for (ptr=tmpbuf+2, i=1; iname, IFNAMSIZ); ^~~ In file included from /usr/include/features.h:428:0, 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:30: 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:861:0, 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:861:0, 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.CUwMBL + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64 + cd rarpd + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/lib/systemd/system + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/share/man/man8 + install -m 644 /builddir/build/SOURCES/rarpd.service /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/lib/systemd/system/rarpd.service + install -m 755 rarpd /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/sbin/rarpd + install -m 644 rarpd.8 /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/share/man/man8/rarpd.8 + /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 /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: rarpd-ss981107-47.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.HLeFXu + umask 022 + cd /builddir/build/BUILD + cd rarpd + DOCDIR=/builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/share/doc/rarpd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/share/doc/rarpd + cp -pr README /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/share/doc/rarpd + cp -pr LICENSE /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64/usr/share/doc/rarpd + exit 0 Provides: rarpd = ss981107-47.fc28 rarpd(riscv-64) = ss981107-47.fc28 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: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64 Wrote: /builddir/build/SRPMS/rarpd-ss981107-47.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/rarpd-ss981107-47.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.A32J0z + umask 022 + cd /builddir/build/BUILD + cd rarpd + /usr/bin/rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-47.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff