Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/unbound.spec'], chrootPath='/var/lib/mock/dist-an7_9-updates-build-239070-62779/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=86400uid=989gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.825icj5i:/etc/resolv.conf', '--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=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.825icj5i:/etc/resolv.conf', '--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', '1e9f2ae4f79b49a78553313544370aec', '-D', '/var/lib/mock/dist-an7_9-updates-build-239070-62779/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.825icj5i:/etc/resolv.conf', '--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', '--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', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/unbound.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/unbound-1.7.3-17.an7.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/unbound.spec'], chrootPath='/var/lib/mock/dist-an7_9-updates-build-239070-62779/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=86400uid=989gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.825icj5i:/etc/resolv.conf', '--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=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.825icj5i:/etc/resolv.conf', '--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', '6e8f7950b7e84787afd49b0fba80f41b', '-D', '/var/lib/mock/dist-an7_9-updates-build-239070-62779/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.825icj5i:/etc/resolv.conf', '--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', '--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', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/unbound.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.PQ6m8R + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf unbound-1.7.3 + /usr/bin/mkdir -p unbound-1.7.3 + cd unbound-1.7.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/unbound-1.7.3.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + pushd unbound-1.7.3 ~/build/BUILD/unbound-1.7.3/unbound-1.7.3 ~/build/BUILD/unbound-1.7.3 Patch #2 (unbound-1.7.2-python3-devel.patch): + echo 'Patch #2 (unbound-1.7.2-python3-devel.patch):' + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.2-python3-devel.patch + /usr/bin/patch -p1 -b --suffix .python3 --fuzz=0 patching file configure Hunk #3 succeeded at 16929 (offset -1 lines). Hunk #4 succeeded at 19088 (offset -1 lines). patching file configure.ac Hunk #1 succeeded at 585 (offset -1 lines). + echo 'Patch #3 (unbound-1.7.2-python3-pkgconfig.patch):' Patch #3 (unbound-1.7.2-python3-pkgconfig.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.2-python3-pkgconfig.patch + /usr/bin/patch -p1 -b --suffix .python3 --fuzz=0 patching file contrib/libunbound.pc.in + echo 'Patch #4 (unbound-1.7.3-anchor-fallback.patch):' Patch #4 (unbound-1.7.3-anchor-fallback.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-anchor-fallback.patch + /usr/bin/patch -p1 -b --suffix .anchor-fallback --fuzz=0 patching file doc/unbound-anchor.8.in patching file smallapp/unbound-anchor.c + echo 'Patch #5 (unbound-1.7.3-host-any.patch):' Patch #5 (unbound-1.7.3-host-any.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-host-any.patch + /usr/bin/patch -p1 -b --suffix .host-any --fuzz=0 patching file smallapp/unbound-host.c Hunk #1 succeeded at 339 (offset -1 lines). + echo 'Patch #6 (unbound-1.7.3-use-basic-lock.patch):' Patch #6 (unbound-1.7.3-use-basic-lock.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-use-basic-lock.patch + /usr/bin/patch -p1 -b --suffix .use-basic-lock --fuzz=0 patching file util/log.c + echo 'Patch #7 (unbound-1.7.3-ipsec-hook.patch):' Patch #7 (unbound-1.7.3-ipsec-hook.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-ipsec-hook.patch + /usr/bin/patch -p1 -b --suffix .ipsec-hook --fuzz=0 patching file ipsecmod/ipsecmod.c + echo 'Patch #8 (unbound-1.7.3-auth-callback.patch):' Patch #8 (unbound-1.7.3-auth-callback.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-auth-callback.patch + /usr/bin/patch -p1 -b --suffix .auth-callback --fuzz=0 patching file services/authzone.c + echo 'Patch #9 (unbound-1.7.3-ksk-2010-revoked.patch):' Patch #9 (unbound-1.7.3-ksk-2010-revoked.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-ksk-2010-revoked.patch + /usr/bin/patch -p1 -b --suffix .ksk-2010-revoked --fuzz=0 patching file smallapp/unbound-anchor.c Hunk #1 succeeded at 244 (offset -2 lines). Patch #10 (unbound-1.7.3-DNS-over-TLS-memory-leak.patch): + echo 'Patch #10 (unbound-1.7.3-DNS-over-TLS-memory-leak.patch):' + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-DNS-over-TLS-memory-leak.patch + /usr/bin/patch -p1 -b --suffix .DNS-over-TLS-memory-leak --fuzz=0 patching file services/outside_network.c + echo 'Patch #11 (unbound-1.7.3-amplifying-an-incoming-query.patch):' Patch #11 (unbound-1.7.3-amplifying-an-incoming-query.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-amplifying-an-incoming-query.patch + /usr/bin/patch -p1 -b --suffix .amplifying-an-incoming-query --fuzz=0 patching file iterator/iter_delegpt.c patching file iterator/iter_delegpt.h patching file iterator/iter_scrub.c patching file iterator/iter_utils.c patching file iterator/iterator.c patching file iterator/iterator.h patching file services/cache/dns.c patching file util/data/dname.c patching file util/data/msgparse.c + echo 'Patch #12 (unbound-1.7.3-crypto-policy-non-compliance-openssl.patch):' Patch #12 (unbound-1.7.3-crypto-policy-non-compliance-openssl.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-crypto-policy-non-compliance-openssl.patch + /usr/bin/patch -p1 -b --suffix .crypto-policy --fuzz=0 patching file util/net_help.c + echo 'Patch #13 (unbound-1.7.3-additional-logging.patch):' Patch #13 (unbound-1.7.3-additional-logging.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-additional-logging.patch + /usr/bin/patch -p1 -b --suffix .additional-logging --fuzz=0 patching file daemon/worker.c patching file doc/Changelog patching file doc/example.conf.in patching file doc/unbound.conf.5.in patching file services/localzone.c patching file services/mesh.c patching file util/config_file.c patching file util/config_file.h patching file util/configlexer.lex patching file util/configparser.y patching file util/data/msgreply.c patching file util/log.c patching file util/log.h patching file util/net_help.c patching file util/net_help.h patching file validator/val_kcache.c patching file validator/validator.c + echo 'Patch #14 (unbound-1.7.3-security-hardening.patch):' Patch #14 (unbound-1.7.3-security-hardening.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-security-hardening.patch + /usr/bin/patch -p1 -b --suffix .security-hardening --fuzz=0 patching file config.h.in patching file configure.ac patching file contrib/create_unbound_ad_servers.sh patching file daemon/daemon.c patching file daemon/worker.c patching file dns64/dns64.c patching file dnscrypt/dnscrypt.c patching file doc/Changelog patching file ipsecmod/ipsecmod.c patching file iterator/iter_scrub.c patching file libunbound/libunbound.c patching file libunbound/libworker.c patching file respip/respip.c patching file sldns/parse.c patching file sldns/str2wire.c patching file sldns/wire2str.c patching file smallapp/unbound-control.c patching file testcode/unitmain.c patching file util/data/dname.c patching file util/data/msgreply.c patching file util/random.c patching file util/random.h patching file util/regional.c patching file util/shm_side/shm_main.c patching file validator/autotrust.c + echo 'Patch #15 (unbound-1.7.3-symlink-traversal.patch):' Patch #15 (unbound-1.7.3-symlink-traversal.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-symlink-traversal.patch + /usr/bin/patch -p1 -b --suffix .symlink-traversal --fuzz=0 patching file daemon/unbound.c + echo 'Patch #16 (unbound-1.7.3-rh1830625.patch):' Patch #16 (unbound-1.7.3-rh1830625.patch): + /usr/bin/cat /builddir/build/SOURCES/unbound-1.7.3-rh1830625.patch + /usr/bin/patch -p1 -b --suffix .rh1830625 --fuzz=0 patching file config.h.in patching file configure patching file configure.ac patching file libunbound/context.c patching file util/config_file.c patching file util/config_file.h + cp -pr doc pythonmod libunbound ../ + popd ~/build/BUILD/unbound-1.7.3 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VDpQ3c + umask 022 ~/build/BUILD/unbound-1.7.3/unbound-1.7.3 ~/build/BUILD/unbound-1.7.3 + cd /builddir/build/BUILD + cd unbound-1.7.3 + pushd unbound-1.7.3 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 == 1 ']' + '[' x86_64 == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --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 --with-pythonmodule --with-pyunbound 'PYTHON=%{__python3}' --with-libevent --with-pthreads --with-ssl --disable-rpath --disable-static --enable-relro-now --enable-pie --enable-subnet --enable-ipsecmod --with-conf-file=/etc/unbound/unbound.conf --with-pidfile=/var/run/unbound/unbound.pid --enable-sha2 --disable-gost --enable-ecdsa --with-rootkey-file=/var/lib/unbound/root.key --enable-linux-ip-local-port-range configure: WARNING: unrecognized options: --disable-dependency-tracking checking for x86_64-Anolis-linux-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for an ANSI C-conforming const... yes checking for x86_64-Anolis-linux-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking gcc dependency flag... -MM checking whether gcc supports -Werror... yes checking whether gcc supports -Wall... yes checking whether gcc supports -std=c99... yes checking whether gcc supports -xc99... no checking for getopt.h... yes checking for time.h... yes checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for gcc... no checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for gcc... no checking whether we need -std=c99 as a flag for gcc... no checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for gcc... no checking whether we need -D_GNU_SOURCE as a flag for gcc... yes checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for gcc... no checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for gcc... no checking whether we need -D__EXTENSIONS__ as a flag for gcc... no checking for inline... inline checking whether the C compiler (gcc) accepts the "format" attribute... yes checking whether the C compiler (gcc) accepts the "unused" attribute... yes checking whether the C compiler (gcc) accepts the "weak" attribute... yes checking for flex... flex checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no checking for yylex_destroy... yes checking for bison... no checking for byacc... byacc checking for doxygen... no checking for x86_64-Anolis-linux-strip... no checking for strip... strip checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking for x86_64-Anolis-linux-ar... no checking for ar... /usr/bin/ar checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-Anolis-linux-gnu file names to x86_64-Anolis-linux-gnu format... func_convert_file_noop checking how to convert x86_64-Anolis-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-Anolis-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-Anolis-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-Anolis-linux-ar... /usr/bin/ar checking for archiver @FILE support... @ checking for x86_64-Anolis-linux-strip... strip checking for x86_64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for stdarg.h... yes checking for stdbool.h... yes checking for netinet/in.h... yes checking for netinet/tcp.h... yes checking for sys/param.h... yes checking for sys/socket.h... yes checking for sys/un.h... yes checking for sys/uio.h... yes checking for sys/resource.h... yes checking for arpa/inet.h... yes checking for syslog.h... yes checking for netdb.h... yes checking for sys/wait.h... yes checking for pwd.h... yes checking for glob.h... yes checking for grp.h... yes checking for login_cap.h... no checking for winsock2.h... no checking for ws2tcpip.h... no checking for endian.h... yes checking for sys/endian.h... no checking for libkern/OSByteOrder.h... no checking for sys/ipc.h... yes checking for sys/shm.h... yes checking for int8_t... yes checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for size_t... yes checking for ssize_t... yes checking for uid_t in sys/types.h... yes checking for pid_t... yes checking for off_t... yes checking for u_char... yes checking for rlim_t... yes checking for socklen_t... yes checking for in_addr_t... yes checking for in_port_t... yes checking if memcmp compares unsigned... yes checking size of time_t... 8 checking for library containing inet_pton... none required checking for library containing socket... none required checking for unistd.h... (cached) yes checking for working chown... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking return type of signal handlers... void checking for _LARGEFILE_SOURCE value needed for large files... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for gcc... no checking if nonblocking sockets work... yes checking whether mkdir has one arg... no checking for strptime... yes checking whether strptime works... yes checking for GNU libc compatible malloc... yes checking if compiler needs -Werror to reject unknown flags... no checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking for pthread_spinlock_t... yes checking for pthread_rwlock_t... yes checking if -pthread unused during linking... no checking for python... /usr/bin/python checking for the distutils Python package... yes checking for Python include path... -I/usr/include/python2.7 checking for Python library path... -L/usr/lib64 -L/usr/lib64/python2.7 -L. -lpython2.7 checking for Python site-packages path... /usr/lib64/python2.7/site-packages checking consistency of all components of python development environment... no configure: error: Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ============================================================================ error: Bad exit status from /var/tmp/rpm-tmp.VDpQ3c (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.VDpQ3c (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 6e8f7950b7e84787afd49b0fba80f41b -D /var/lib/mock/dist-an7_9-updates-build-239070-62779/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.825icj5i:/etc/resolv.conf --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 --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 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/unbound.spec