Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.spec'], chrootPath='/var/lib/mock/dist-an23-epao-build-293425-65179/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.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 setting SOURCE_DATE_EPOCH=1691107200 Wrote: /builddir/build/SRPMS/openresty-1.22.1.0-0.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.spec'], chrootPath='/var/lib/mock/dist-an23-epao-build-293425-65179/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.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 setting SOURCE_DATE_EPOCH=1691107200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4xoaMB + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf openresty-1.22.1.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/openresty-1.22.1.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd openresty-1.22.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.E9KJi0 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd openresty-1.22.1.0 + ./configure --prefix=/usr/local/openresty --with-http_postgres_module --with-http_ssl_module --add-dynamic-module=bundle/nginx-1.22.1/modules/nginx_qat_module/ '--with-ld-opt=-Wl,-rpath=/lib64 -L/lib64 -lpcre' platform: linux (linux) cp -rp bundle/ build cd build cd LuaJIT-2.1-20230410 gmake TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT' CC=cc PREFIX=/usr/local/openresty/luajit ==== Building LuaJIT 2.1.0-beta3 ==== gmake -C src gmake[1]: Entering directory '/builddir/build/BUILD/openresty-1.22.1.0/build/LuaJIT-2.1-20230410/src' CC lj_init.o HOSTCC host/minilua.o HOSTLINK host/minilua DYNASM host/buildvm_arch.h HOSTCC host/buildvm.o HOSTCC host/buildvm_asm.o HOSTCC host/buildvm_peobj.o HOSTCC host/buildvm_lib.o HOSTCC host/buildvm_fold.o HOSTLINK host/buildvm BUILDVM lj_vm.S ASM lj_vm.o CC lj_assert.o CC lj_gc.o BUILDVM lj_ffdef.h CC lj_err.o CC lj_char.o BUILDVM lj_bcdef.h CC lj_bc.o CC lj_obj.o CC lj_buf.o CC lj_str.o CC lj_tab.o CC lj_func.o CC lj_udata.o CC lj_meta.o CC lj_debug.o CC lj_prng.o CC lj_state.o CC lj_dispatch.o CC lj_vmevent.o CC lj_vmmath.o CC lj_strscan.o CC lj_strfmt.o CC lj_strfmt_num.o CC lj_serialize.o CC lj_api.o CC lj_profile.o CC lj_lex.o CC lj_parse.o CC lj_bcread.o CC lj_bcwrite.o CC lj_load.o CC lj_ir.o CC lj_opt_mem.o BUILDVM lj_folddef.h CC lj_opt_fold.o CC lj_opt_narrow.o CC lj_opt_dce.o CC lj_opt_loop.o CC lj_opt_split.o CC lj_opt_sink.o CC lj_mcode.o CC lj_snap.o CC lj_record.o CC lj_crecord.o BUILDVM lj_recdef.h CC lj_ffrecord.o CC lj_asm.o CC lj_trace.o CC lj_gdbjit.o CC lj_ctype.o CC lj_cdata.o CC lj_cconv.o CC lj_ccall.o CC lj_ccallback.o CC lj_carith.o CC lj_clib.o CC lj_cparse.o CC lj_lib.o CC lj_alloc.o CC lib_aux.o BUILDVM lj_libdef.h CC lib_base.o CC lib_math.o CC lib_bit.o CC lib_string.o CC lib_table.o CC lib_io.o CC lib_os.o CC lib_package.o CC lib_debug.o CC lib_jit.o CC lib_ffi.o CC lib_buffer.o CC lib_init.o CC lj_str_hash.o AR libluajit.a CC luajit.o BUILDVM jit/vmdef.lua DYNLINK libluajit.so LINK luajit OK Successfully built LuaJIT gmake[1]: Leaving directory '/builddir/build/BUILD/openresty-1.22.1.0/build/LuaJIT-2.1-20230410/src' ==== Successfully built LuaJIT 2.1.0-beta3 ==== gmake install TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT' CC=cc PREFIX=/usr/local/openresty/luajit DESTDIR=/builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root/ ==== Installing LuaJIT 2.1.0-beta3 to /usr/local/openresty/luajit ==== mkdir -p /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/bin /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/include/luajit-2.1 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/share/man/man1 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/pkgconfig /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/share/luajit-2.1.0-beta3/jit /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/share/lua/5.1 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/lua/5.1 cd src && install -m 0755 luajit /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/bin/luajit-2.1.0-beta3 cd src && test -f libluajit.a && install -m 0644 libluajit.a /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/libluajit-5.1.a || : rm -f /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/libluajit-5.1.so /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/libluajit-5.1.so.2 cd src && test -f libluajit.so && \ install -m 0755 libluajit.so /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0 && \ ( ldconfig -n 2>/dev/null /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib || : ) && \ ln -sf libluajit-5.1.so.2.1.0 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/libluajit-5.1.so && \ ln -sf libluajit-5.1.so.2.1.0 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/libluajit-5.1.so.2 || : cd etc && install -m 0644 luajit.1 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/share/man/man1 cd etc && sed -e "s|^prefix=.*|prefix=/usr/local/openresty/luajit|" -e "s|^multilib=.*|multilib=lib|" luajit.pc > luajit.pc.tmp && \ install -m 0644 luajit.pc.tmp /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/lib/pkgconfig/luajit.pc && \ rm -f luajit.pc.tmp cd src && install -m 0644 lua.h lualib.h lauxlib.h luaconf.h lua.hpp luajit.h /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/include/luajit-2.1 cd src/jit && install -m 0644 bc.lua bcsave.lua dump.lua p.lua v.lua zone.lua dis_x86.lua dis_x64.lua dis_arm.lua dis_arm64.lua dis_arm64be.lua dis_ppc.lua dis_mips.lua dis_mipsel.lua dis_mips64.lua dis_mips64el.lua vmdef.lua /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/share/luajit-2.1.0-beta3/jit ln -sf luajit-2.1.0-beta3 /builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root//usr/local/openresty/luajit/bin/luajit ==== Successfully installed LuaJIT 2.1.0-beta3 to /usr/local/openresty/luajit ==== export LUAJIT_LIB='/builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root/usr/local/openresty/luajit/lib' export LUAJIT_INC='/builddir/build/BUILD/openresty-1.22.1.0/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1' cd .. patching the resty script with hard-coded nginx binary path... cd nginx-1.22.1 sh ./configure --prefix=/usr/local/openresty/nginx \ --with-cc-opt='-O2' \ --add-module=../ngx_devel_kit-0.3.2 \ --add-module=../echo-nginx-module-0.63 \ --add-module=../xss-nginx-module-0.06 \ --add-module=../ngx_coolkit-0.2 \ --add-module=../set-misc-nginx-module-0.33 \ --add-module=../form-input-nginx-module-0.12 \ --add-module=../encrypted-session-nginx-module-0.09 \ --add-module=../ngx_postgres-1.0 \ --add-module=../srcache-nginx-module-0.33 \ --add-module=../ngx_lua-0.10.25 \ --add-module=../ngx_lua_upstream-0.07 \ --add-module=../headers-more-nginx-module-0.34 \ --add-module=../array-var-nginx-module-0.06 \ --add-module=../memc-nginx-module-0.19 \ --add-module=../redis2-nginx-module-0.15 \ --add-module=../redis-nginx-module-0.3.9 \ --add-module=../rds-json-nginx-module-0.16 \ --add-module=../rds-csv-nginx-module-0.09 \ --add-module=../ngx_stream_lua-0.0.13 \ --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -Wl,-rpath=/lib64 -L/lib64 -lpcre' \ --with-http_ssl_module --add-dynamic-module=/builddir/build/BUILD/openresty-1.22.1.0/bundle/nginx-1.22.1/modules/nginx_qat_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module checking for OS + Linux 4.18.0-305.19.1.el8_4.x86_64 x86_64 checking for C compiler ... found + using GNU C compiler checking for --with-ld-opt="-Wl,-rpath,/usr/local/openresty/luajit/lib -Wl,-rpath=/lib64 -L/lib64 -lpcre" ... found checking for -Wl,-E switch ... found checking for gcc builtin atomic operations ... found checking for C99 variadic macros ... found checking for gcc variadic macros ... found checking for gcc builtin 64 bit byteswap ... found checking for unistd.h ... found checking for inttypes.h ... found checking for limits.h ... found checking for sys/filio.h ... not found checking for sys/param.h ... found checking for sys/mount.h ... found checking for sys/statvfs.h ... found checking for crypt.h ... found checking for Linux specific features checking for epoll ... found checking for EPOLLRDHUP ... found checking for EPOLLEXCLUSIVE ... found checking for eventfd() ... found checking for O_PATH ... found checking for sendfile() ... found checking for sendfile64() ... found checking for sys/prctl.h ... found checking for prctl(PR_SET_DUMPABLE) ... found checking for prctl(PR_SET_KEEPCAPS) ... found checking for capabilities ... found checking for crypt_r() ... found checking for sys/vfs.h ... found checking for nobody group ... found checking for poll() ... found checking for /dev/poll ... not found checking for kqueue ... not found checking for crypt() ... not found checking for crypt() in libcrypt ... found checking for F_READAHEAD ... not found checking for posix_fadvise() ... found checking for O_DIRECT ... found checking for F_NOCACHE ... not found checking for directio() ... not found checking for statfs() ... found checking for statvfs() ... found checking for dlopen() ... found checking for sched_yield() ... found checking for sched_setaffinity() ... found checking for SO_SETFIB ... not found checking for SO_REUSEPORT ... found checking for SO_ACCEPTFILTER ... not found checking for SO_BINDANY ... not found checking for IP_TRANSPARENT ... found checking for IP_BINDANY ... not found checking for IP_BIND_ADDRESS_NO_PORT ... found checking for IP_RECVDSTADDR ... not found checking for IP_SENDSRCADDR ... not found checking for IP_PKTINFO ... found checking for IPV6_RECVPKTINFO ... found checking for TCP_DEFER_ACCEPT ... found checking for TCP_KEEPIDLE ... found checking for TCP_FASTOPEN ... found checking for TCP_INFO ... found checking for accept4() ... found checking for int size ... 4 bytes checking for long size ... 8 bytes checking for long long size ... 8 bytes checking for void * size ... 8 bytes checking for uint32_t ... found checking for uint64_t ... found checking for sig_atomic_t ... found checking for sig_atomic_t size ... 4 bytes checking for socklen_t ... found checking for in_addr_t ... found checking for in_port_t ... found checking for rlim_t ... found checking for uintptr_t ... uintptr_t found checking for system byte ordering ... little endian checking for size_t size ... 8 bytes checking for off_t size ... 8 bytes checking for time_t size ... 8 bytes checking for AF_INET6 ... found checking for setproctitle() ... not found checking for pread() ... found checking for pwrite() ... found checking for pwritev() ... found checking for strerrordesc_np() ... found checking for localtime_r() ... found checking for clock_gettime(CLOCK_MONOTONIC) ... found checking for posix_memalign() ... found checking for memalign() ... found checking for mmap(MAP_ANON|MAP_SHARED) ... found checking for mmap("/dev/zero", MAP_SHARED) ... found checking for System V shared memory ... found checking for POSIX semaphores ... found checking for struct msghdr.msg_control ... found checking for ioctl(FIONBIO) ... found checking for ioctl(FIONREAD) ... found checking for struct tm.tm_gmtoff ... found checking for struct dirent.d_namlen ... not found checking for struct dirent.d_type ... found checking for sysconf(_SC_NPROCESSORS_ONLN) ... found checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found checking for openat(), fstatat() ... found checking for getaddrinfo() ... found checking for SOCK_CLOEXEC support ... found checking for FD_CLOEXEC support ... found configuring additional modules adding module in ../ngx_devel_kit-0.3.2 + ngx_devel_kit was configured adding module in ../echo-nginx-module-0.63 + ngx_http_echo_module was configured adding module in ../xss-nginx-module-0.06 + ngx_http_xss_filter_module was configured adding module in ../ngx_coolkit-0.2 + ngx_coolkit_module was configured adding module in ../set-misc-nginx-module-0.33 found ngx_devel_kit for ngx_set_misc; looks good. + ngx_http_set_misc_module was configured adding module in ../form-input-nginx-module-0.12 found ngx_devel_kit for ngx_form_input; looks good. + ngx_http_form_input_module was configured adding module in ../encrypted-session-nginx-module-0.09 found ngx_devel_kit for ngx_encrypted_session; looks good. + ngx_http_encrypted_session_module was configured adding module in ../ngx_postgres-1.0 checking for libpq library version 9.1 ... not found checking for libpq library version 9.0 ... not found checking for libpq library version 8.4 ... not found checking for libpq library version 8.3 ... not found checking for libpq library version 8.2 ... not found checking for libpq library version 8.1.4 ... not found checking for libpq library version 8.1.0 ... not found checking for libpq library version 8.0.8 ... not found checking for libpq library version 8.0.0 ... not found ./configure: error: ngx_postgres addon was unable to detect version of the libpq library. ERROR: failed to run command: sh ./configure --prefix=/usr/local/openresty/nginx \... error: Bad exit status from /var/tmp/rpm-tmp.E9KJi0 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.E9KJi0 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.spec\n', 1)] 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 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/openresty.spec