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-6-x86_64-1598948393.788791/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=[]unshare_net=TrueprintOutput=True) Executing command: ['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'} and shell False warning: Could not canonicalize hostname: ip-172-30-2-160.ec2.internal Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/p0f-3.09b-10.el6.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-6-x86_64-1598948393.788791/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=[]unshare_net=TrueprintOutput=True) Executing command: ['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'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.WlmGOf + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf p0f-3.09b + /usr/bin/gzip -dc /builddir/build/SOURCES/p0f-3.09b.tgz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd p0f-3.09b + /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): + /bin/cat /builddir/build/SOURCES/p0f-3.06b-compiler.patch + /usr/bin/patch -p1 --fuzz=0 patching file build.sh + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.00s5Kc + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + LANG=C + export LANG + unset DISPLAY + make -j2 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -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 --param=ssp-buffer-size=4 -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 --param=ssp-buffer-size=4 -m64 -mtune=generic -DFP_FILE="/etc/p0f/p0f.fp"' + USE_LDFLAGS='-Wl,-z,relro -pie ' + '[' linux-gnu = cygwin ']' + '[' linux-gnu = solaris ']' Welcome to the build script for p0f 3.09b! Copyright (C) 2012 by Michal Zalewski + 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!' + echo 'Copyright (C) 2012 by Michal Zalewski ' + echo + '[' 1 -gt 1 ']' [+] Configuring production build. + '[' all = clean -o all = publish ']' + '[' 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 --param=ssp-buffer-size=4 -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 --param=ssp-buffer-size=4 -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-7189 + rm -f .build-7189 + '[' -f .build-7189 ']' + touch .build-7189 + '[' '!' -f .build-7189 ']' + '[' '!' -s p0f.c ']' OK [*] Checking for working GCC... + echo OK + echo -n '[*] Checking for working GCC... ' + rm -f .build-7189 + 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 --param=ssp-buffer-size=4 -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 .build-7189.c -o .build-7189 + '[' '!' -x .build-7189 ']' + echo OK OK [*] Checking for *modern* GCC... + echo -n '[*] Checking for *modern* GCC... ' + rm -f .build-7189 .build-7189.c .build-7189.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 --param=ssp-buffer-size=4 -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-7189.c -o .build-7189 + '[' '!' -x .build-7189 ']' + echo OK OK [*] Checking if memory alignment is required... + echo -n '[*] Checking if memory alignment is required... ' + rm -f .build-7189 .build-7189.c .build-7189.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 --param=ssp-buffer-size=4 -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-7189.c -o .build-7189 + '[' '!' -x .build-7189 ']' + ulimit -c 0 + ./.build-7189 + '[' 0 = 0 ']' + echo nope nope [*] Checking for working libpcap... + echo -n '[*] Checking for working libpcap... ' + rm -f .build-7189 .build-7189.c .build-7189.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 --param=ssp-buffer-size=4 -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-7189.c -o .build-7189 -lpcap + '[' '!' -x .build-7189 ']' + echo OK OK [*] Checking for working BPF... + echo -n '[*] Checking for working BPF... ' + rm -f .build-7189 .build-7189.c .build-7189.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 --param=ssp-buffer-size=4 -m64 -mtune=generic '-DFP_FILE="/etc/p0f/p0f.fp"' -O2 -Wl,-z,relro -pie .build-7189.c -o .build-7189 -lpcap + '[' '!' -x .build-7189 ']' + echo OK OK + rm -f .build-7189 .build-7189.log .build-7189.c [+] Okay, you seem to be good to go. Fingers crossed! [*] Compiling p0f... + echo '[+] Okay, you seem to be good to go. Fingers crossed!' + echo -n '[*] Compiling p0f... ' + rm -f p0f + gcc -fPIE -g -ggdb -Wall -Werror=format-security '-DVERSION="3.09b"' -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -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-7189.log ']' + echo 'OK (see COMPILER-WARNINGS)' + mv .build-7189.log COMPILER-WARNINGS + test all = debug + echo Well, that's it. Be sure to review README. If you run into any problems, you can reach the author at . + 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 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Z745Zf + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64 ++ dirname /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64 + cd p0f-3.09b + LANG=C + export LANG + unset DISPLAY + rm -rf /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64 + /bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/sbin + /bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/etc/p0f + /bin/cp p0f /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/sbin + /bin/cp p0f.fp /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/etc/p0f + cd tools + make -j2 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic p0f-client.c -o p0f-client gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic p0f-sendsyn.c -o p0f-sendsyn gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic p0f-sendsyn6.c -o p0f-sendsyn6 + /bin/cp p0f-client p0f-sendsyn p0f-sendsyn6 /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/sbin + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /builddir/build/BUILD/p0f-3.09b extracting debug info from /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/sbin/p0f-sendsyn6 extracting debug info from /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/sbin/p0f-sendsyn extracting debug info from /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/sbin/p0f-client extracting debug info from /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/sbin/p0f 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/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: p0f-3.09b-10.el6.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.WlZfCk + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + DOCDIR=/builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/share/doc/p0f-3.09b + export DOCDIR + rm -rf /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/share/doc/p0f-3.09b + /bin/mkdir -p /builddir/build/BUILDROOT/p0f-3.09b-10.el6.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.el6.x86_64/usr/share/doc/p0f-3.09b + cp -pr tools/README-TOOLS /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64/usr/share/doc/p0f-3.09b + exit 0 Provides: config(p0f) = 3.09b-10.el6 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.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.el6.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64 warning: Could not canonicalize hostname: ip-172-30-2-160.ec2.internal Wrote: /builddir/build/RPMS/p0f-3.09b-10.el6.x86_64.rpm Wrote: /builddir/build/RPMS/p0f-debuginfo-3.09b-10.el6.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.3Grd5y + umask 022 + cd /builddir/build/BUILD + cd p0f-3.09b + /bin/rm -rf /builddir/build/BUILDROOT/p0f-3.09b-10.el6.x86_64 + exit 0 Child return code was: 0