Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/imaptest.spec'], chrootPath='/var/lib/mock/dist-an7_9-updates-build-136970-50417/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.yg5mwvfa:/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.yg5mwvfa:/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', '63b3674d095b44ee9f0285747be03ed2', '-D', '/var/lib/mock/dist-an7_9-updates-build-136970-50417/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.yg5mwvfa:/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/imaptest.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/imaptest-20200324-2.20200324git074d3e36.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/imaptest.spec'], chrootPath='/var/lib/mock/dist-an7_9-updates-build-136970-50417/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.yg5mwvfa:/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.yg5mwvfa:/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', '533a5a8a55c14e67b542ef9c906328f2', '-D', '/var/lib/mock/dist-an7_9-updates-build-136970-50417/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.yg5mwvfa:/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/imaptest.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.j7oXmk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf imaptest-074d3e36c78131f0a7d606233f8466209623df55 + /usr/bin/gzip -dc /builddir/build/SOURCES/imaptest-20200324.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd imaptest-074d3e36c78131f0a7d606233f8466209623df55 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + autoreconf -i libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' configure.ac:12: installing './config.guess' configure.ac:12: installing './config.sub' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' Makefile.am: installing './INSTALL' src/Makefile.am:5: warning: compiling 'checkpoint.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac' src/Makefile.am: installing './depcomp' + sed -e 's@\(^LIBDOVECOT .*\)@\1 -Wl,-rpath -Wl,/usr/lib64/dovecot@' -i src/Makefile.in + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tdFL2V + umask 022 + cd /builddir/build/BUILD + cd imaptest-074d3e36c78131f0a7d606233f8466209623df55 + 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' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -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 -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 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + 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.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' + 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' + ./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-dovecot=/usr/lib64/dovecot checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no 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 for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E 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 whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes 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... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-Anolis-linux-strip... no checking for strip... strip checking for x86_64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for x86_64-Anolis-linux-mt... no checking for mt... no checking if : is a manifest tool... no 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 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... yes checking whether C compiler handles -Werror -Wunknown-warning-option... no checking for "/usr/lib64/dovecot/dovecot-config"... /usr/lib64/dovecot/dovecot-config checking whether gcc is clang 3.3+... no checking Whether to enable hardening... yes checking whether C compiler handles -pie... yes checking whether C compiler handles -fstack-protector-strong... yes checking whether C compiler handles -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2... yes checking whether C compiler handles -mfunction-return=thunk -mindirect-branch=thunk... yes checking for how to force completely read-only GOT table... -Wl,-z -Wl,relro -Wl,-z -Wl,now checking whether OS supports plugin dependencies... yes checking for valgrind... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating stamp.h config.status: creating imaptest-config.h config.status: executing depfiles commands config.status: executing libtool commands + make -j64 make all-recursive make[1]: Entering directory `/builddir/build/BUILD/imaptest-074d3e36c78131f0a7d606233f8466209623df55' Making all in src make[2]: Entering directory `/builddir/build/BUILD/imaptest-074d3e36c78131f0a7d606233f8466209623df55/src' gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-checkpoint.o `test -f 'checkpoint.c' || echo './'`checkpoint.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-client.o `test -f 'client.c' || echo './'`client.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-client-state.o `test -f 'client-state.c' || echo './'`client-state.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-commands.o `test -f 'commands.c' || echo './'`commands.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-imap-client.o `test -f 'imap-client.c' || echo './'`imap-client.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-imaptest.o `test -f 'imaptest.c' || echo './'`imaptest.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-imaptest-lmtp.o `test -f 'imaptest-lmtp.c' || echo './'`imaptest-lmtp.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-mailbox.o `test -f 'mailbox.c' || echo './'`mailbox.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-mailbox-source.o `test -f 'mailbox-source.c' || echo './'`mailbox-source.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-mailbox-source-mbox.o `test -f 'mailbox-source-mbox.c' || echo './'`mailbox-source-mbox.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-mailbox-source-random.o `test -f 'mailbox-source-random.c' || echo './'`mailbox-source-random.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-mailbox-state.o `test -f 'mailbox-state.c' || echo './'`mailbox-state.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-pop3-client.o `test -f 'pop3-client.c' || echo './'`pop3-client.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-profile.o `test -f 'profile.c' || echo './'`profile.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-profile-parse.o `test -f 'profile-parse.c' || echo './'`profile-parse.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-search.o `test -f 'search.c' || echo './'`search.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-test-exec.o `test -f 'test-exec.c' || echo './'`test-exec.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-test-parser.o `test -f 'test-parser.c' || echo './'`test-parser.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -I/usr/include/dovecot -fPIE -DPIE -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -c -o imaptest-user.o `test -f 'user.c' || echo './'`user.c imaptest-lmtp.c:7:26: fatal error: smtp-address.h: No such file or directory #include "smtp-address.h" ^ compilation terminated. imaptest.c:12:26: fatal error: smtp-address.h: No such file or directory #include "smtp-address.h" ^ compilation terminated. mailbox-source-mbox.c: In function 'mbox_mailbox_source_open': mailbox-source-mbox.c:44:2: error: too few arguments to function 'i_stream_create_fd' source->input = i_stream_create_fd(source->fd, (size_t)-1); ^ In file included from mailbox-source-mbox.c:5:0: /usr/include/dovecot/istream.h:36:17: note: declared here struct istream *i_stream_create_fd(int fd, size_t max_buffer_size, ^ mailbox-source-mbox.c: In function 'mbox_mailbox_source_eof': mailbox-source-mbox.c:54:2: warning: implicit declaration of function 'i_stream_read_eof' [-Wimplicit-function-declaration] return i_stream_read_eof(source->input); ^ checkpoint.c: In function 'checkpoint_update': checkpoint.c:142:3: warning: implicit declaration of function 't_malloc_no0' [-Wimplicit-function-declaration] t_malloc_no0(dest_keywords_size); ^ checkpoint.c:141:53: warning: pointer/integer type mismatch in conditional expression [enabled by default] keywords_remapped = dest_keywords_size == 0 ? NULL : ^ client-state.c: In function 'do_rand': client-state.c:63:2: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] return (i_rand() % 100) < states[state].probability; ^ client-state.c:63:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return (i_rand() % 100) < states[state].probability; ^ client-state.c: In function 'do_rand_again': client-state.c:68:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return (i_rand() % 100) < states[state].probability_again; ^ profile.c:8:26: fatal error: smtp-address.h: No such file or directory #include "smtp-address.h" ^ compilation terminated. search.c: In function 'search_command_build': search.c:325:2: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] if ((i_rand() % 100) >= probability) ^ search.c:325:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((i_rand() % 100) >= probability) ^ client-state.c: In function 'imap_client_append_continue': client-state.c:340:7: error: 'OSTREAM_SEND_ISTREAM_RESULT_FINISHED' undeclared (first use in this function) case OSTREAM_SEND_ISTREAM_RESULT_FINISHED: ^ client-state.c:340:7: note: each undeclared identifier is reported only once for each function it appears in client-state.c:342:7: error: 'OSTREAM_SEND_ISTREAM_RESULT_WAIT_INPUT' undeclared (first use in this function) case OSTREAM_SEND_ISTREAM_RESULT_WAIT_INPUT: ^ mailbox-source-random.c: In function 'random_mailbox_source_get_next': client-state.c:344:7: error: 'OSTREAM_SEND_ISTREAM_RESULT_WAIT_OUTPUT' undeclared (first use in this function) case OSTREAM_SEND_ISTREAM_RESULT_WAIT_OUTPUT: ^ mailbox-source-random.c:37:2: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] size_t buf_size = (i_rand() % source->max_size) + 1; ^ client-state.c:347:7: error: 'OSTREAM_SEND_ISTREAM_RESULT_ERROR_INPUT' undeclared (first use in this function) case OSTREAM_SEND_ISTREAM_RESULT_ERROR_INPUT: ^ client-state.c:350:7: error: 'OSTREAM_SEND_ISTREAM_RESULT_ERROR_OUTPUT' undeclared (first use in this function) case OSTREAM_SEND_ISTREAM_RESULT_ERROR_OUTPUT: ^ make[2]: *** [imaptest-mailbox-source-mbox.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mailbox.c: In function 'mailbox_view_get_random_flags': mailbox.c:419:3: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] if ((i_rand() % 2) != 0 || (1 << i) == MAIL_DELETED) ^ client.c: In function 'client_new_user': client.c:191:3: warning: implicit declaration of function 'array_idx_get_space' [-Wimplicit-function-declaration] clientp = array_idx_get_space(&clients, client_min_free_idx); ^ client.c:191:11: warning: assignment makes pointer from integer without a cast [enabled by default] clientp = array_idx_get_space(&clients, client_min_free_idx); ^ client.c: In function 'client_init': client.c:242:2: error: too few arguments to function 'i_stream_create_fd' client->input = i_stream_create_fd(fd, 1024*64); ^ In file included from client.c:6:0: /usr/include/dovecot/istream.h:36:17: note: declared here struct istream *i_stream_create_fd(int fd, size_t max_buffer_size, ^ client.c:243:2: error: too few arguments to function 'o_stream_create_fd' client->output = o_stream_create_fd(fd, (size_t)-1); ^ In file included from client.c:7:0: /usr/include/dovecot/ostream.h:35:1: note: declared here o_stream_create_fd(int fd, size_t max_buffer_size, bool autoclose_fd); ^ client.c: In function 'clients_get_random_idx': mailbox-state.c: In function 'headers_parse': client.c:365:3: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] idx = i_rand() % count; ^ mailbox-state.c:302:5: warning: implicit declaration of function 't_malloc_no0' [-Wimplicit-function-declaration] t_malloc_no0(hdr->full_value_len); ^ client.c: In function 'clients_deinit': mailbox-state.c:301:48: warning: pointer/integer type mismatch in conditional expression [enabled by default] new_value = hdr->full_value_len == 0 ? NULL : ^ client.c:386:3: warning: implicit declaration of function 'ssl_iostream_context_unref' [-Wimplicit-function-declaration] ssl_iostream_context_unref(&ssl_ctx); ^ mailbox-state.c:309:14: warning: assignment makes pointer from integer without a cast [enabled by default] new_value = t_malloc_no0(headers[i].value_len + 1 + ^ imap-client.c: In function 'imap_client_expunge': imap-client.c:103:2: warning: implicit declaration of function 'array_idx_get_space' [-Wimplicit-function-declaration] metadata = array_idx_get_space(&client->view->messages, seq - 1); ^ imap-client.c:103:11: warning: assignment makes pointer from integer without a cast [enabled by default] metadata = array_idx_get_space(&client->view->messages, seq - 1); ^ client-state.c: In function 'imap_client_get_random_seq_range': client-state.c:1005:3: warning: implicit declaration of function 'array_idx_get_space' [-Wimplicit-function-declaration] metadata = array_idx_get_space(&client->view->messages, ^ mailbox-state.c: In function 'fetch_parse_body1': client-state.c:1005:12: warning: assignment makes pointer from integer without a cast [enabled by default] metadata = array_idx_get_space(&client->view->messages, ^ mailbox-state.c:460:3: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] start = i_rand() % len; ^ mailbox-state.c: In function 'mailbox_state_handle_fetch': mailbox-state.c:522:2: warning: implicit declaration of function 'array_idx_get_space' [-Wimplicit-function-declaration] metadata = array_idx_get_space(&view->messages, seq - 1); ^ mailbox-state.c:522:11: warning: assignment makes pointer from integer without a cast [enabled by default] metadata = array_idx_get_space(&view->messages, seq - 1); ^ user.c: In function 'user_get_random_from_conf': user.c:66:3: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] i = i_rand() % array_count(&conf.usernames); ^ imap-client.c: In function 'imap_client_mailbox_close': imap-client.c:321:3: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] if (i_rand() % 3 == 0) { ^ pop3-client.c: In function 'pop3_client_send_more_commands': pop3-client.c:336:3: warning: implicit declaration of function 'i_rand' [-Wimplicit-function-declaration] client_delay(&client->client, i_rand() % DELAY_MSECS); ^ user.c: In function 'user_get_new_mailbox': user.c:263:3: error: too many arguments to function 'var_expand' if (var_expand(str, conf.mailbox, exp_table, &error) != 1) { ^ In file included from user.c:14:0: /usr/include/dovecot/var-expand.h:18:6: note: declared here void var_expand(string_t *dest, const char *str, ^ user.c:263:3: error: void value not ignored as it ought to be if (var_expand(str, conf.mailbox, exp_table, &error) != 1) { ^ make[2]: *** [imaptest-client.o] Error 1 imap-client.c: In function 'imap_client_input': imap-client.c:533:25: error: storage size of 'fatal' isn't known enum imap_parser_error fatal; ^ imap-client.c:533:25: warning: unused variable 'fatal' [-Wunused-variable] make[2]: *** [imaptest-user.o] Error 1 make[2]: *** [imaptest-client-state.o] Error 1 make[2]: *** [imaptest-imap-client.o] Error 1 test-parser.c: In function 'test_parse_header_line': test-parser.c:77:3: warning: implicit declaration of function 'array_idx_get_space' [-Wimplicit-function-declaration] test_conn = array_idx_get_space(&test->connections, idx-1); ^ test-parser.c:77:13: warning: assignment makes pointer from integer without a cast [enabled by default] test_conn = array_idx_get_space(&test->connections, idx-1); ^ test-parser.c: In function 'test_parse_imap_args': test-parser.c:165:25: error: storage size of 'fatal' isn't known enum imap_parser_error fatal; ^ test-parser.c:165:25: warning: unused variable 'fatal' [-Wunused-variable] test-exec.c: In function 'test_handle_untagged_match': test-exec.c:605:3: warning: implicit declaration of function 'array_idx_get_space' [-Wimplicit-function-declaration] (void)array_idx_get_space(&ctx->cur_maybe_matches, count-1); ^ test-exec.c:606:9: warning: assignment makes pointer from integer without a cast [enabled by default] maybes = array_idx_get_space(&ctx->cur_maybe_matches, 0); ^ test-parser.c: In function 'test_parse_command_line': test-parser.c:533:2: warning: implicit declaration of function 'str_begins' [-Wimplicit-function-declaration] if (str_begins(line, "!ifenv ") || str_begins(line, "!ifnenv ")) { ^ test-parser.c: In function 'test_parse_file': test-parser.c:784:2: warning: implicit declaration of function 'i_stream_read_eof' [-Wimplicit-function-declaration] if (!i_stream_read_eof(input)) { ^ test-parser.c: In function 'test_parser_read_test': test-parser.c:898:2: error: too few arguments to function 'i_stream_create_fd' input = i_stream_create_fd(fd, (size_t)-1); ^ In file included from test-parser.c:5:0: /usr/include/dovecot/istream.h:36:17: note: declared here struct istream *i_stream_create_fd(int fd, size_t max_buffer_size, ^ make[2]: *** [imaptest-test-parser.o] Error 1 make[2]: *** [imaptest-profile.o] Error 1 make[2]: *** [imaptest-imaptest.o] Error 1 make[2]: *** [imaptest-imaptest-lmtp.o] Error 1 make[2]: Leaving directory `/builddir/build/BUILD/imaptest-074d3e36c78131f0a7d606233f8466209623df55/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/builddir/build/BUILD/imaptest-074d3e36c78131f0a7d606233f8466209623df55' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.tdFL2V (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tdFL2V (%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 533a5a8a55c14e67b542ef9c906328f2 -D /var/lib/mock/dist-an7_9-updates-build-136970-50417/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.yg5mwvfa:/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/imaptest.spec