+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/p0f.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.VpDEN0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf p0f-3.09b + /usr/bin/gzip -dc /builddir/build/SOURCES/p0f-3.09b.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd p0f-3.09b + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (p0f-3.06b-compiler.patch):' Patch #1 (p0f-3.06b-compiler.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file build.sh + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WWqadb + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + make -j2 '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 -DFP_FILE="/etc/p0f/p0f.fp"' + PROGNAME=p0f + VERSION=3.09b + test '' = '' + CC=gcc + BASIC_CFLAGS='-Wall -Werror=format-security -DVERSION="3.09b" -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 -DFP_FILE="/etc/p0f/p0f.fp"' + BASIC_LDFLAGS= + USE_CFLAGS='-fPIE -g -ggdb -Wall -Werror=format-security -DVERSION="3.09b" -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 -DFP_FILE="/etc/p0f/p0f.fp"' + USE_LDFLAGS='-Wl,-z,relro -pie ' + '[' linux-gnu = cygwin ']' + '[' linux-gnu = solaris ']' + USE_LIBS='-lpcap ' + OBJFILES='api.c process.c fp_tcp.c fp_mtu.c fp_http.c readfp.c' + echo 'Welcome to the build script for p0f 3.09b!' Welcome to the build script for p0f 3.09b! + echo 'Copyright (C) 2012 by Michal Zalewski ' Copyright (C) 2012 by Michal Zalewski + echo + '[' 1 -gt 1 ']' + '[' all = clean -o all = publish ']' + '[' all = all -o all = '' ']' + echo '[+] Configuring production build.' [+] Configuring production build. + BASIC_CFLAGS='-Wall -Werror=format-security -DVERSION="3.09b" -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 -DFP_FILE="/etc/p0f/p0f.fp" -O2' + USE_CFLAGS='-fPIE -g -ggdb -Wall -Werror=format-security -DVERSION="3.09b" -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 -DFP_FILE="/etc/p0f/p0f.fp" -O2' + rm -f COMPILER-WARNINGS + echo -n '[*] Checking for a sane build environment... ' [*] Checking for a sane build environment... + ls -ld ./ + grep -q '^d.......w' + TMP=.build-229 + rm -f .build-229 + '[' -f .build-229 ']' + touch .build-229 + '[' '!' -f .build-229 ']' + '[' '!' -s p0f.c ']' + echo OK OK + echo -n '[*] Checking for working GCC... ' [*] Checking for working GCC... + rm -f .build-229 + echo 'int main() { return 0; }' + gcc -Wall -Werror=format-security '-DVERSION="3.09b"' -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 '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 .build-229.c -o .build-229 + '[' '!' -x .build-229 ']' + echo OK OK + echo -n '[*] Checking for *modern* GCC... ' [*] Checking for *modern* GCC... + rm -f .build-229 .build-229.c .build-229.log + echo 'int main() { return 0; }' + gcc -fPIE -g -ggdb -Wall -Werror=format-security '-DVERSION="3.09b"' -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 '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-229.c -o .build-229 + '[' '!' -x .build-229 ']' + echo OK OK + echo -n '[*] Checking if memory alignment is required... ' [*] Checking if memory alignment is required... + rm -f .build-229 .build-229.c .build-229.log + echo -e '#include "types.h"\nvolatile u8 tmp[6]; int main() { printf("%d\x5cn", *(u32*)(tmp+1)); return 0; }' + gcc -fPIE -g -ggdb -Wall -Werror=format-security '-DVERSION="3.09b"' -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 '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-229.c -o .build-229 + '[' '!' -x .build-229 ']' + ulimit -c 0 + ./.build-229 + '[' 0 = 0 ']' + echo nope nope + echo -n '[*] Checking for working libpcap... ' [*] Checking for working libpcap... + rm -f .build-229 .build-229.c .build-229.log + echo -e '#include \nint main() { char i[PCAP_ERRBUF_SIZE]; pcap_lookupdev(i); return 0; }' + gcc -fPIE -g -ggdb -Wall -Werror=format-security '-DVERSION="3.09b"' -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 '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-229.c -o .build-229 -lpcap + '[' '!' -x .build-229 ']' + echo OK OK + echo -n '[*] Checking for working BPF... ' [*] Checking for working BPF... + rm -f .build-229 .build-229.c .build-229.log + echo -e '#include \n#include \nint main() { return 0; }' + gcc -fPIE -g -ggdb -Wall -Werror=format-security '-DVERSION="3.09b"' -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 '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-229.c -o .build-229 -lpcap + '[' '!' -x .build-229 ']' + echo OK OK + rm -f .build-229 .build-229.log .build-229.c + echo '[+] Okay, you seem to be good to go. Fingers crossed!' [+] Okay, you seem to be good to go. Fingers crossed! + echo -n '[*] Compiling p0f... ' [*] Compiling p0f... + rm -f p0f + gcc -fPIE -g -ggdb -Wall -Werror=format-security '-DVERSION="3.09b"' -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 '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie p0f.c api.c process.c fp_tcp.c fp_mtu.c fp_http.c readfp.c -o p0f -lpcap + '[' '!' -x p0f ']' + '[' -s .build-229.log ']' + echo 'OK (see COMPILER-WARNINGS)' OK (see COMPILER-WARNINGS) + mv .build-229.log COMPILER-WARNINGS + test all = debug + echo + echo 'Well, that'\''s it. Be sure to review README. If you run into any problems, you' Well, that's it. Be sure to review README. If you run into any problems, you + echo 'can reach the author at .' can reach the author at . + echo + exit 0 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.gkgwwm + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64 + cd p0f-3.09b + rm -rf /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/usr/sbin + /usr/bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/etc/p0f + /usr/bin/cp p0f /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/usr/sbin + /usr/bin/cp p0f.fp /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/etc/p0f + cd tools + make -j2 '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 ' 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 p0f-client.c -o p0f-client 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 p0f-sendsyn.c -o p0f-sendsyn 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 p0f-sendsyn6.c -o p0f-sendsyn6 + /usr/bin/cp p0f-client p0f-sendsyn p0f-sendsyn6 /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/usr/sbin + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/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: p0f-3.09b-1.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.RItix9 + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + DOCDIR=/builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/usr/share/doc/p0f + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/usr/share/doc/p0f + cp -pr docs/COPYING docs/ChangeLog docs/README docs/TODO docs/existential-notes.txt docs/extra-sigs.txt /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/usr/share/doc/p0f + cp -pr tools/README-TOOLS /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64/usr/share/doc/p0f + exit 0 Provides: config(p0f) = 3.09b-1.fc28 p0f = 3.09b-1.fc28 p0f(riscv-64) = 3.09b-1.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) libpcap.so.1()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64 Wrote: /builddir/build/SRPMS/p0f-3.09b-1.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/p0f-3.09b-1.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.uVKMyT + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + rm -rf /builddir/build/BUILDROOT/p0f-3.09b-1.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff