+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/netstat-nat.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.36TGVL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf netstat-nat-1.4.10 + /usr/bin/gzip -dc /builddir/build/SOURCES/netstat-nat-1.4.10.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd netstat-nat-1.4.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + chmod a-x ChangeLog README netstat-nat.1 netstat-nat.c netstat-nat.h netstat-nat.spec + sed -i 's|install-docDATA install-man|install-man|g' Makefile.in + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3zKTgu + umask 022 + cd /builddir/build/BUILD + cd netstat-nat-1.4.10 + 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 ' + export CFLAGS + CXXFLAGS='-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 ' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking for unistd.h... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking for strings.h... (cached) yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands + make -j4 make[1]: Entering directory '/builddir/build/BUILD/netstat-nat-1.4.10' gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"netstat-nat\" -DVERSION=\"1.4.10\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_NETDB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STRINGS_H=1 -DHAVE_NET_IF_H=1 -DHAVE_SYS_IOCTL_H=1 -I. -I. -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 -c netstat-nat.c netstat-nat.c: In function 'main': netstat-nat.c:283:35: warning: comparison between pointer and zero character constant [-Wpointer-compare] if (optarg == NULL || optarg == '\0') { ^~ netstat-nat.c:283:28: note: did you mean to dereference the pointer? if (optarg == NULL || optarg == '\0') { ^ netstat-nat.c:226:9: warning: unused variable 'facefound' [-Wunused-variable] int facefound, lastlen, len, sock; ^~~~~~~~~ netstat-nat.c:225:19: warning: unused variable 'facename' [-Wunused-variable] char *ifbuf, *facename, *ptr; ^~~~~~~~ netstat-nat.c:215:11: warning: variable 'ret' set but not used [-Wunused-but-set-variable] char *ret; ^~~ netstat-nat.c: In function 'get_protocol': netstat-nat.c:530:9: warning: implicit declaration of function 'string_search' [-Wimplicit-function-declaration] if (string_search(line, "tcp")) { ^~~~~~~~~~~~~ netstat-nat.c: In function 'process_entry': netstat-nat.c:615:5: warning: implicit declaration of function 'search_first_hit' [-Wimplicit-function-declaration] search_first_hit("src=", line, srcip_f); ^~~~~~~~~~~~~~~~ netstat-nat.c:617:5: warning: implicit declaration of function 'search_sec_hit' [-Wimplicit-function-declaration] search_sec_hit("src=", line, srcip_s); ^~~~~~~~~~~~~~ netstat-nat.c:603:9: warning: unused variable 'count' [-Wunused-variable] int count = 0; ^~~~~ netstat-nat.c: In function 'lookup_portname': netstat-nat.c:717:12: warning: unused variable 'port_size' [-Wunused-variable] size_t port_size; ^~~~~~~~~ netstat-nat.c: In function 'lookup_hostname': netstat-nat.c:742:12: warning: unused variable 'r_host_size' [-Wunused-variable] size_t r_host_size; ^~~~~~~~~~~ netstat-nat.c: In function 'lookup_ip': netstat-nat.c:763:20: warning: variable 'ip_addr' set but not used [-Wunused-but-set-variable] struct in_addr ip_addr; ^~~~~~~ netstat-nat.c: In function 'xcalloc': netstat-nat.c:824:38: warning: format '%i' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=] printf("Could not allocate memory (%i bytes); %s.\n -- Exiting.\n", bufsize, strerror(errno)); ~^ %li netstat-nat.c: In function 'xrealloc': netstat-nat.c:837:38: warning: format '%i' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=] printf("Could not allocate memory (%i bytes); %s.\n -- Exiting.\n", newbufsize, strerror(errno)); ~^ %li At top level: netstat-nat.c:184:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] static char const rcsid[] = "$Id: netstat-nat.c,v 1.33 2010/01/09 19:34:24 danny Exp $"; ^~~~~ 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 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o netstat-nat netstat-nat.o make[1]: Leaving directory '/builddir/build/BUILD/netstat-nat-1.4.10' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.fgjOcf + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64 + cd netstat-nat-1.4.10 + rm -rf /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64 + make install DESTDIR=/builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64 'INSTALL=install -p' make[1]: Entering directory '/builddir/build/BUILD/netstat-nat-1.4.10' make[2]: Entering directory '/builddir/build/BUILD/netstat-nat-1.4.10' test -z "/usr/bin" || mkdir -p -- "/builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/bin" install -p 'netstat-nat' '/builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/bin/netstat-nat' test -z "/usr/share/man/man1" || mkdir -p -- "/builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/share/man/man1" install -p -m 644 './netstat-nat.1' '/builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/share/man/man1/netstat-nat.1' make[2]: Leaving directory '/builddir/build/BUILD/netstat-nat-1.4.10' make[1]: Leaving directory '/builddir/build/BUILD/netstat-nat-1.4.10' + /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: netstat-nat-1.4.10-13.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.a2ZThR + umask 022 + cd /builddir/build/BUILD + cd netstat-nat-1.4.10 + DOCDIR=/builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/share/doc/netstat-nat + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/share/doc/netstat-nat + cp -pr COPYING /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/share/doc/netstat-nat + cp -pr README /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/share/doc/netstat-nat + cp -pr AUTHORS /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/share/doc/netstat-nat + cp -pr ChangeLog /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.fc28.riscv64/usr/share/doc/netstat-nat + exit 0 Provides: netstat-nat = 1.4.10-13.fc28 netstat-nat(riscv-64) = 1.4.10-13.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 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/netstat-nat-1.4.10-13.fc28.riscv64 Wrote: /builddir/build/SRPMS/netstat-nat-1.4.10-13.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/netstat-nat-1.4.10-13.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.UgX7sS + umask 022 + cd /builddir/build/BUILD + cd netstat-nat-1.4.10 + rm -rf /builddir/build/BUILDROOT/netstat-nat-1.4.10-13.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