Mock Version: 2.4 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/p0f.spec'], chrootPath='/var/lib/mock/epel-7-x86_64-1598948402.520034/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=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fi__96vy:/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=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fi__96vy:/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', '6a52c96485ea4c07be330dc63f7e6ca3', '-D', '/var/lib/mock/epel-7-x86_64-1598948402.520034/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fi__96vy:/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', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/p0f.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/p0f-3.09b-10.el7.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/p0f.spec'], chrootPath='/var/lib/mock/epel-7-x86_64-1598948402.520034/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=1001gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fi__96vy:/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=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fi__96vy:/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', 'a3ce3651d2f64487be40a927d6edfc14', '-D', '/var/lib/mock/epel-7-x86_64-1598948402.520034/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fi__96vy:/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', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/p0f.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.sRp2fM + 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 -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd p0f-3.09b + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (p0f-3.06b-compiler.patch): + echo 'Patch #1 (p0f-3.06b-compiler.patch):' + /usr/bin/patch -p1 --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/p0f-3.06b-compiler.patch patching file build.sh + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9AddXU + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + make -j2 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DFP_FILE="/etc/p0f/p0f.fp"' + BASIC_LDFLAGS= + USE_CFLAGS='-fPIE -g -ggdb -Wall -Werror=format-security -DVERSION="3.09b" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -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! Copyright (C) 2012 by Michal Zalewski + echo 'Copyright (C) 2012 by Michal Zalewski ' + echo + '[' 1 -gt 1 ']' + '[' all = clean -o all = publish ']' [+] Configuring production build. + '[' all = all -o all = '' ']' + echo '[+] Configuring production build.' + BASIC_CFLAGS='-Wall -Werror=format-security -DVERSION="3.09b" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DFP_FILE="/etc/p0f/p0f.fp" -O2' + USE_CFLAGS='-fPIE -g -ggdb -Wall -Werror=format-security -DVERSION="3.09b" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DFP_FILE="/etc/p0f/p0f.fp" -O2' + rm -f COMPILER-WARNINGS [*] Checking for a sane build environment... + echo -n '[*] Checking for a sane build environment... ' + ls -ld ./ + grep -q '^d.......w' + TMP=.build-30 + rm -f .build-30 + '[' -f .build-30 ']' + touch .build-30 + '[' '!' -f .build-30 ']' OK [*] Checking for working GCC... + '[' '!' -s p0f.c ']' + echo OK + echo -n '[*] Checking for working GCC... ' + rm -f .build-30 + echo 'int main() { return 0; }' + gcc -Wall -Werror=format-security '-DVERSION="3.09b"' -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 .build-30.c -o .build-30 + '[' '!' -x .build-30 ']' + echo OK OK [*] Checking for *modern* GCC... + echo -n '[*] Checking for *modern* GCC... ' + rm -f .build-30 .build-30.c .build-30.log + echo 'int main() { return 0; }' + gcc -fPIE -g -ggdb -Wall -Werror=format-security '-DVERSION="3.09b"' -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-30.c -o .build-30 + '[' '!' -x .build-30 ']' + echo OK OK [*] Checking if memory alignment is required... + echo -n '[*] Checking if memory alignment is required... ' + rm -f .build-30 .build-30.c .build-30.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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-30.c -o .build-30 + '[' '!' -x .build-30 ']' + ulimit -c 0 + ./.build-30 + '[' 0 = 0 ']' + echo nope nope [*] Checking for working libpcap... + echo -n '[*] Checking for working libpcap... ' + rm -f .build-30 .build-30.c .build-30.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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-30.c -o .build-30 -lpcap + '[' '!' -x .build-30 ']' + echo OK OK [*] Checking for working BPF... + echo -n '[*] Checking for working BPF... ' + rm -f .build-30 .build-30.c .build-30.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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-30.c -o .build-30 -lpcap + '[' '!' -x .build-30 ']' + echo OK OK + rm -f .build-30 .build-30.log .build-30.c [+] Okay, you seem to be good to go. Fingers crossed! + echo '[+] Okay, you seem to be good to go. Fingers crossed!' + echo -n '[*] Compiling p0f... ' + rm -f p0f [*] Compiling p0f... + gcc -fPIE -g -ggdb -Wall -Werror=format-security '-DVERSION="3.09b"' -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic '-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 ']' OK (see COMPILER-WARNINGS) + '[' -s .build-30.log ']' + echo 'OK (see COMPILER-WARNINGS)' + mv .build-30.log COMPILER-WARNINGS + test all = debug + echo + echo 'Well, that'\''s it. Be sure to review README. If you run into any problems, you' + echo 'can reach the author at .' + echo + exit 0 Well, that's it. Be sure to review README. If you run into any problems, you can reach the author at . + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.m8jETa + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64 + cd p0f-3.09b + rm -rf /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/sbin + /usr/bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/etc/p0f + /usr/bin/cp p0f /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/sbin + /usr/bin/cp p0f.fp /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/etc/p0f + cd tools + make -j2 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic p0f-client.c -o p0f-client gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic p0f-sendsyn.c -o p0f-sendsyn gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic p0f-sendsyn6.c -o p0f-sendsyn6 + /usr/bin/cp p0f-client p0f-sendsyn p0f-sendsyn6 /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/sbin + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/p0f-3.09b extracting debug info from /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/sbin/p0f-sendsyn6 extracting debug info from /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/sbin/p0f-sendsyn extracting debug info from /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/sbin/p0f-client extracting debug info from /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/sbin/p0f /usr/lib/rpm/sepdebugcrcfix: Updated 4 CRC32s, 0 CRC32s did match. 407 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: p0f-3.09b-10.el7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.HaNHDs + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + DOCDIR=/builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/share/doc/p0f-3.09b + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/share/doc/p0f-3.09b + cp -pr docs/COPYING docs/ChangeLog docs/README docs/TODO docs/existential-notes.txt docs/extra-sigs.txt /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/share/doc/p0f-3.09b + cp -pr tools/README-TOOLS /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64/usr/share/doc/p0f-3.09b + exit 0 Provides: config(p0f) = 3.09b-10.el7 p0f = 3.09b-10.el7 p0f(x86-64) = 3.09b-10.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 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)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libpcap.so.1()(64bit) rtld(GNU_HASH) Processing files: p0f-debuginfo-3.09b-10.el7.x86_64 Provides: p0f-debuginfo = 3.09b-10.el7 p0f-debuginfo(x86-64) = 3.09b-10.el7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64 Wrote: /builddir/build/RPMS/p0f-3.09b-10.el7.x86_64.rpm Wrote: /builddir/build/RPMS/p0f-debuginfo-3.09b-10.el7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.t7EzJk + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + /usr/bin/rm -rf /builddir/build/BUILDROOT/p0f-3.09b-10.el7.x86_64 + exit 0 Child return code was: 0