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-an8-build-7968-878/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=[]unshare_net=FalseprintOutput=False) Executing command: ['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'} and shell False warning: Macro expanded in comment on line 9: %{name}/%{name}-%{version}.tar.gz is meant for warning: Macro expanded in comment on line 15: %{version} in spec file Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/imaptest-20170719-2.an8.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-an8-build-7968-878/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=[]unshare_net=FalseprintOutput=False) Executing command: ['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'} and shell False warning: Macro expanded in comment on line 9: %{name}/%{name}-%{version}.tar.gz is meant for warning: Macro expanded in comment on line 15: %{version} in spec file Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.VpzNZc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf imaptest-20170719 + /usr/bin/gzip -dc /builddir/build/SOURCES/imaptest-20170719.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd imaptest-20170719 + /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_DIRS, '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:10: installing './compile' 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: 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.LGEfrh + umask 022 + cd /builddir/build/BUILD + cd imaptest-20170719 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -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 $(dirname ./configure) -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' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./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 whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) 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 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 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 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 for dovecot-config in "/usr/lib64/dovecot"... /usr/lib64/dovecot/dovecot-config checking whether OS supports plugin dependencies... yes 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-20170719' Making all in src make[2]: Entering directory '/builddir/build/BUILD/imaptest-20170719/src' gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o checkpoint.o checkpoint.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o client.o client.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o client-state.o client-state.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o commands.o commands.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o imap-client.o imap-client.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o imaptest.o imaptest.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o imaptest-lmtp.o imaptest-lmtp.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o mailbox.o mailbox.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o mailbox-source.o mailbox-source.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o mailbox-source-mbox.o mailbox-source-mbox.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o mailbox-source-random.o mailbox-source-random.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o mailbox-state.o mailbox-state.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o pop3-client.o pop3-client.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o profile.o profile.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o profile-parse.o profile-parse.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o search.o search.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o test-exec.o test-exec.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o test-parser.o test-parser.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/dovecot -std=gnu99 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-strict-aliasing -fstack-reuse=none -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=thunk -mindirect-branch=thunk -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -c -o user.o user.c In file included from imaptest-lmtp.c:7: /usr/include/dovecot/lmtp-client.h:116:22: warning: 'struct master_service_connection' declared inside parameter list will not be visible outside of this definition or declaration const struct master_service_connection *conn); ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from imaptest-lmtp.c:11: client-state.h:19:6: error: 'client_state' defined as wrong kind of tag enum client_state { ^~~~~~~~~~~~ checkpoint.c: In function 'checkpoint_update': checkpoint.c:142:3: warning: implicit declaration of function 't_malloc'; did you mean 'i_malloc'? [-Wimplicit-function-declaration] t_malloc(dest_keywords_size); ^~~~~~~~ i_malloc checkpoint.c:141:53: warning: pointer/integer type mismatch in conditional expression keywords_remapped = dest_keywords_size == 0 ? NULL : ^ commands.c: In function 'command_send_binary': commands.c:143:3: warning: ignoring return value of 'o_stream_send_str', declared with attribute warn_unused_result [-Wunused-result] o_stream_send_str(client->client.output, "DONE\r\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:202:2: warning: ignoring return value of 'o_stream_sendv', declared with attribute warn_unused_result [-Wunused-result] o_stream_sendv(client->client.output, iov, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mailbox-source-mbox.c: In function 'mbox_mailbox_source_open': mailbox-source-mbox.c:44:18: error: too many arguments to function 'i_stream_create_fd' source->input = i_stream_create_fd(source->fd, (size_t)-1, FALSE); ^~~~~~~~~~~~~~~~~~ search.c: In function 'search_command_build': In file included from mailbox-source-mbox.c:5: /usr/include/dovecot/istream.h:41:17: note: declared here struct istream *i_stream_create_fd(int fd, size_t max_buffer_size); ^~~~~~~~~~~~~~~~~~ search.c:325:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((rand() % 100) >= probability) ^~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:329:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] randstart = ms_count == 0 ? 0 : rand() % ms_count; ^~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:333:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] node->type = rand() % SEARCH_TYPE_COUNT; ^~~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imaptest-lmtp.c: In function 'imaptest_lmtp_free': mailbox-source-random.c: In function 'random_mailbox_source_get_next': imaptest-lmtp.c:41:2: warning: implicit declaration of function 'lmtp_client_deinit'; did you mean 'lib_event_deinit'? [-Wimplicit-function-declaration] lmtp_client_deinit(&d->client); ^~~~~~~~~~~~~~~~~~ lib_event_deinit mailbox-source-random.c:37:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] size_t buf_size = (rand() % source->max_size) + 1; ^~~~~~ search.c:383:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] node->size = 2048 + (rand() % 2048); ^~~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ In file included from /usr/include/dovecot/lib.h:11, from mailbox-source-random.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ mailbox-source-random.c:40:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] buf[i] = rand(); ^~~ In file included from /usr/include/dovecot/lib.h:11, from mailbox-source-random.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:405:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] node->date = time(NULL) - (3600*24 * (rand() % 10)); ^~~~ mailbox-source-mbox.c: In function 'mbox_mailbox_source_eof': In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ mailbox-source-mbox.c:54:9: warning: implicit declaration of function 'i_stream_is_eof'; did you mean 'i_stream_read_eof'? [-Wimplicit-function-declaration] return i_stream_is_eof(source->input); ^~~~~~~~~~~~~~~ i_stream_read_eof search.c:433:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] node->date = time(NULL) - (3600*24 * (rand() % 10)); ^~~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:454:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] } else if (rand() % 10 == 0) { ^ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:460:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] str = count == 0 ? "" : words[rand() % count]; ^~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:465:5: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] start = rand() % (len - 1); ^~~~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:466:5: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] len = rand() % (len - 1 - start) + 1; ^~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:486:6: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] str = words[rand() % count]; ^~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:497:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] start = rand() % (len - 1); ^~~~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ search.c:498:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] len = rand() % (len - 1 - start) + 1; ^~~ In file included from /usr/include/dovecot/lib.h:11, from search.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ mailbox-state.c: In function 'headers_parse': mailbox-state.c:302:5: warning: implicit declaration of function 't_malloc'; did you mean 'i_malloc'? [-Wimplicit-function-declaration] t_malloc(hdr->full_value_len); ^~~~~~~~ i_malloc mailbox-state.c:301:48: warning: pointer/integer type mismatch in conditional expression new_value = hdr->full_value_len == 0 ? NULL : ^ mailbox-state.c:309:14: warning: assignment to 'unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] new_value = t_malloc(headers[i].value_len + 1 + ^ client-state.c: In function 'do_rand': client-state.c:63:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] return (rand() % 100) < states[state].probability; ^~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c: In function 'do_rand_again': client-state.c:68:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] return (rand() % 100) < states[state].probability_again; ^~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imaptest-lmtp.c:48:6: error: 'disconnect_clients' undeclared (first use in this function) if (disconnect_clients && !imaptest_has_clients()) ^~~~~~~~~~~~~~~~~~ imaptest-lmtp.c:48:6: note: each undeclared identifier is reported only once for each function it appears in client-state.c: In function 'client_get_next_state': client-state.c:151:5: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] (rand() % (STATE_LOGOUT - STATE_LIST + 1)); ^ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ mailbox-state.c: In function 'fetch_parse_body1': mailbox-state.c:460:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] start = rand() % len; ^~~~~ In file included from /usr/include/dovecot/lib.h:11, from mailbox-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ mailbox-state.c:461:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] len = rand() % (len - start) + 1; ^~~ In file included from /usr/include/dovecot/lib.h:11, from mailbox-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ user.c: In function 'user_get_random_from_conf': user.c:66:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] i = rand() % array_count(&conf.usernames); ^ In file included from /usr/include/dovecot/lib.h:11, from user.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imaptest-lmtp.c:48:29: warning: implicit declaration of function 'imaptest_has_clients'; did you mean 'imaptest_lmtp_send'? [-Wimplicit-function-declaration] if (disconnect_clients && !imaptest_has_clients()) ^~~~~~~~~~~~~~~~~~~~ imaptest_lmtp_send imaptest-lmtp.c: At top level: imaptest-lmtp.c:60:37: warning: 'enum lmtp_client_result' declared inside parameter list will not be visible outside of this definition or declaration imaptest_lmtp_rcpt_to_callback(enum lmtp_client_result result, ^~~~~~~~~~~~~~~~~~ imaptest-lmtp.c:60:56: error: parameter 1 ('result') has incomplete type imaptest_lmtp_rcpt_to_callback(enum lmtp_client_result result, ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ client-state.c: In function 'imap_client_plan_send_more_commands': client-state.c:330:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] client_delay(&client->client, rand() % DELAY_MSECS); ^~~~~~~~~~~~ user.c: In function 'user_get_random': In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ user.c:121:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] start_idx = rand() % count; ^~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from user.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ user.c: In function 'user_update_active_client': user.c:154:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] j = rand() % count; ^ In file included from /usr/include/dovecot/lib.h:11, from user.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c: In function 'imap_client_append_random': client-state.c:453:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((rand() % 2) == 0) { ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:457:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((rand() % 2) == 0) ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ user.c: In function 'user_get_new_mailbox': user.c:262:3: error: too few arguments to function 'var_expand' var_expand(str, conf.mailbox, exp_table); ^~~~~~~~~~ In file included from user.c:14: /usr/include/dovecot/var-expand.h:23:5: note: declared here int var_expand(string_t *dest, const char *str, ^~~~~~~~~~ search.c:341:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (parent->type == SEARCH_SUB) ^ search.c:343:2: note: here case SEARCH_OR: ^~~~ imaptest-lmtp.c: In function 'imaptest_lmtp_rcpt_to_callback': imaptest-lmtp.c:65:16: error: 'LMTP_CLIENT_RESULT_OK' undeclared (first use in this function) if (result != LMTP_CLIENT_RESULT_OK) ^~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:576: mailbox-source-mbox.o] Error 1 make[2]: *** Waiting for unfinished jobs.... imaptest-lmtp.c:60:56: warning: unused parameter 'result' [-Wunused-parameter] imaptest_lmtp_rcpt_to_callback(enum lmtp_client_result result, ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ imaptest-lmtp.c: At top level: imaptest-lmtp.c:70:34: warning: 'enum lmtp_client_result' declared inside parameter list will not be visible outside of this definition or declaration imaptest_lmtp_data_callback(enum lmtp_client_result result, ^~~~~~~~~~~~~~~~~~ imaptest-lmtp.c:70:53: error: parameter 1 ('result') has incomplete type imaptest_lmtp_data_callback(enum lmtp_client_result result, ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ mailbox.c: In function 'mailbox_view_get_random_flags': mailbox.c:419:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((rand() % 2) != 0 || (1 << i) == MAIL_DELETED) ^~ In file included from /usr/include/dovecot/lib.h:11, from mailbox.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ mailbox.c:440:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((rand() % 4) != 0) ^~ In file included from /usr/include/dovecot/lib.h:11, from mailbox.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c: In function 'client_profile_handle_fetch': profile.c:149:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((unsigned)rand() % 100 < client->client.user->profile->mail_inbox_move_filter_percentage) ^~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c:153:6: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] weighted_rand(client->client.user->profile->mail_action_delay); ^~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c:153:6: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] weighted_rand(client->client.user->profile->mail_action_delay); ^~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c: In function 'user_get_next_timeout': profile.c:219:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] return start_time + weighted_rand(interval); ^~~~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c:219:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] return start_time + weighted_rand(interval); ^~~~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imaptest-lmtp.c: In function 'imaptest_lmtp_data_callback': imaptest-lmtp.c:75:16: error: 'LMTP_CLIENT_RESULT_OK' undeclared (first use in this function) if (result != LMTP_CLIENT_RESULT_OK) ^~~~~~~~~~~~~~~~~~~~~ imaptest-lmtp.c:70:53: warning: unused parameter 'result' [-Wunused-parameter] imaptest_lmtp_data_callback(enum lmtp_client_result result, ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ client-state.c: In function 'imap_client_get_random_seq_range': client-state.c:1002:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] seq = rand() % msgs + 1; ^~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imap-client.c: In function 'imap_client_mailbox_close': profile.c: In function 'user_draft_callback': imap-client.c:321:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if (rand() % 3 == 0) { ^~ profile.c:280:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] ts = ioloop_time + weighted_rand(client->client.user->profile->mail_write_duration); ^~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c:280:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] ts = ioloop_time + weighted_rand(client->client.user->profile->mail_write_duration); ^~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ In file included from /usr/include/dovecot/lib.h:11, from imap-client.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ pop3-client.c: In function 'pop3_client_send_more_commands': pop3-client.c:336:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] client_delay(&client->client, rand() % DELAY_MSECS); ^~~~~~~~~~~~ client.c: In function 'client_init': client.c:237:18: error: too many arguments to function 'i_stream_create_fd' client->input = i_stream_create_fd(fd, 1024*64, FALSE); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from pop3-client.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ In file included from client.c:6: /usr/include/dovecot/istream.h:41:17: note: declared here struct istream *i_stream_create_fd(int fd, size_t max_buffer_size); ^~~~~~~~~~~~~~~~~~ client.c:238:19: error: too many arguments to function 'o_stream_create_fd' client->output = o_stream_create_fd(fd, (size_t)-1, FALSE); ^~~~~~~~~~~~~~~~~~ profile.c: In function 'user_mailbox_action': profile.c:375:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((unsigned)rand() % 100 < user->profile->mail_inbox_delete_percentage) ^~ In file included from client.c:7: /usr/include/dovecot/ostream.h:54:17: note: declared here struct ostream *o_stream_create_fd(int fd, size_t max_buffer_size); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c:377:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] else if ((unsigned)rand() % 100 < user->profile->mail_inbox_move_percentage) ^~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c:379:2: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] else if ((unsigned)rand() % 100 < user->profile->mail_inbox_reply_percentage) ^~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c: In function 'imap_client_plan_send_next_cmd': client-state.c:1134:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if (rand() % 2 != 0) ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1136:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1139:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20, ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c: In function 'user_set_next_mailbox_action': client-state.c:1140:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c:425:5: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] (ioloop_time + weighted_rand(user->profile->mail_action_repeat_delay)) : ^ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c:425:5: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] (ioloop_time + weighted_rand(user->profile->mail_action_repeat_delay)) : ^ client-state.c:1144:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] const char *cmd = (rand() % 2 != 0 ? "SUBSCRIBE" : "UNSUBSCRIBE"); ^~~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1145:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if (rand() % 2 != 0) ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1147:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1150:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20, ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1151:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imaptest-lmtp.c: In function 'imaptest_lmtp_timeout': imaptest-lmtp.c:85:33: warning: implicit declaration of function 'lmtp_client_state_to_string'; did you mean 'client_state_reset'? [-Wimplicit-function-declaration] i_error("LMTP: Timeout in %s", lmtp_client_state_to_string(d->client)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ client_state_reset imaptest-lmtp.c:85:29: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=] i_error("LMTP: Timeout in %s", lmtp_client_state_to_string(d->client)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %d client-state.c:1156:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if (rand() % 2 != 0) ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1158:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1161:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20, ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1162:12: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] IMAP_HIERARCHY_SEP, rand() % 20); ^~~~~~~~~~~~~~~~~~ client.c: In function 'clients_get_random_idx': In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client.c:360:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] idx = rand() % count; ^~~ In file included from /usr/include/dovecot/lib.h:11, from client.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imap-client.c: In function 'imap_client_input': imap-client.c:573:43: warning: passing argument 2 of 'imap_parser_get_error' from incompatible pointer type [-Wincompatible-pointer-types] imap_parser_get_error(client->parser, &fatal)); ^~~~~~ In file included from imap-client.c:11: /usr/include/dovecot/imap-parser.h:74:13: note: expected 'enum imap_parser_error *' but argument is of type 'bool *' {aka '_Bool *'} const char *imap_parser_get_error(struct imap_parser *parser, ^~~~~~~~~~~~~~~~~~~~~ profile.c: In function 'user_fill_timestamps': profile.c:525:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] (time_t)(start_time + rand() % interval); ^ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1208:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] for (i = (rand() % 4) + 1; i > 0; i--) { ^~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1209:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((rand() % 4) != 0) { ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1210:5: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] str_append(cmd, fields[rand() % ^~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1214:5: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] for (j = (rand() % 4) + 1; j > 0; j--) { ^~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1215:6: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] int idx = rand() % ^~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1240:11: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] fields[rand()%N_ELEMENTS(fields)]); ^~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1253:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] i = rand() % N_ELEMENTS(fields); ^ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1254:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] j = rand() % N_ELEMENTS(fields); ^ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1256:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if (rand() % 3 == 0) ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1259:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if (rand() % 3 == 0 && i != j) { ^~ pop3-client.c: In function 'pop3_command_send': In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ pop3-client.c:51:2: warning: ignoring return value of 'o_stream_send_str', declared with attribute warn_unused_result [-Wunused-result] o_stream_send_str(client->client.output, cmd->cmdline); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ profile.c: In function 'user_init_client_profiles': profile.c:603:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if ((unsigned int)rand() % 100 < (*clientp)->percentage) ^~ client-state.c:1261:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if (rand() % 3 == 0) ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ In file included from /usr/include/dovecot/lib.h:11, from profile.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imaptest-lmtp.c:86:2: warning: implicit declaration of function 'lmtp_client_close'; did you mean 'imap_client_append'? [-Wimplicit-function-declaration] lmtp_client_close(d->client); ^~~~~~~~~~~~~~~~~ imap_client_append imaptest-lmtp.c: In function 'imaptest_lmtp_send': imaptest-lmtp.c:92:30: error: storage size of 'lmtp_set' isn't known struct lmtp_client_settings lmtp_set; ^~~~~~~~ client-state.c:1266:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] switch (rand() % 3) { ^~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1274:4: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] str_printfa(cmd, "%u:%u", (rand() % msgs) + 1, ^~~~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1275:9: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] (rand() % msgs) + 1); ^ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ profile.c: In function 'users_add_from_user_profile': profile.c:633:3: error: too few arguments to function 'var_expand' var_expand(str, user_profile->username_format, tab); ^~~~~~~~~~ In file included from profile.c:6: /usr/include/dovecot/var-expand.h:23:5: note: declared here int var_expand(string_t *dest, const char *str, ^~~~~~~~~~ make[2]: *** [Makefile:576: user.o] Error 1 client.c: In function 'clients_deinit': client-state.c:1287:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] seq1 = (rand() % msgs) + 1; ^~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client.c:381:3: warning: implicit declaration of function 'ssl_iostream_context_deinit'; did you mean 'ssl_iostream_context_ref'? [-Wimplicit-function-declaration] ssl_iostream_context_deinit(&ssl_ctx); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssl_iostream_context_ref client-state.c:1288:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] seq2 = (rand() % (msgs - seq1 + 1)); ^~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1295:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] count = rand() % (msgs < 10 ? msgs : I_MIN(msgs/5, 50)); ^~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1296:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] flag_type = conf.checkpoint_interval == 0 && rand() % 2 == 0 ? ^~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1307:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] switch (rand() % 3) { ^~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1349:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] count = rand() % count; ^~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ client-state.c:1352:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] if (count == 0 && rand() % 10 > 0) /* only rarely do nothing */ ^~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ pop3-client.c: In function 'auth_plain_callback': pop3-client.c:171:2: warning: ignoring return value of 'o_stream_send_str', declared with attribute warn_unused_result [-Wunused-result] o_stream_send_str(_client->output, str_c(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client-state.c:1355:3: warning: 'rand' is deprecated: Do not use rand, use i_rand [-Wdeprecated-declarations] flag_type = conf.checkpoint_interval == 0 && rand() % 2 == 0 ? ^~~~~~~~~ In file included from /usr/include/dovecot/lib.h:11, from client-state.c:3: /usr/include/stdlib.h:453:12: note: declared here extern int rand (void) __THROW; ^~~~ imaptest-lmtp.c:120:14: warning: implicit declaration of function 'lmtp_client_init'; did you mean 'lib_event_init'? [-Wimplicit-function-declaration] d->client = lmtp_client_init(&lmtp_set, imaptest_lmtp_finish, d); ^~~~~~~~~~~~~~~~ lib_event_init imaptest-lmtp.c:126:6: warning: implicit declaration of function 'lmtp_client_connect_tcp'; did you mean 'net_connect_udp'? [-Wimplicit-function-declaration] if (lmtp_client_connect_tcp(d->client, LMTP_CLIENT_PROTOCOL_LMTP, ^~~~~~~~~~~~~~~~~~~~~~~ net_connect_udp client-state.c: In function 'imap_client_append_continue': client-state.c:339:8: warning: ignoring return value of 'o_stream_send_istream', declared with attribute warn_unused_result [-Wunused-result] (void)o_stream_send_istream(client->client.output, client->append_stream); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client-state.c:372:2: warning: ignoring return value of 'o_stream_send_str', declared with attribute warn_unused_result [-Wunused-result] o_stream_send_str(client->client.output, "\r\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client-state.c: In function 'imap_client_append': client-state.c:409:3: warning: ignoring return value of 'o_stream_send_str', declared with attribute warn_unused_result [-Wunused-result] o_stream_send_str(client->client.output, str_c(cmd)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imaptest.c: In function 'conf_read_usernames': imaptest.c:402:10: error: too many arguments to function 'i_stream_create_fd' input = i_stream_create_fd(fd, (size_t)-1, TRUE); ^~~~~~~~~~~~~~~~~~ imaptest-lmtp.c:126:41: error: 'LMTP_CLIENT_PROTOCOL_LMTP' undeclared (first use in this function); did you mean 'SMTP_PROXY_PROTOCOL_LMTP'? if (lmtp_client_connect_tcp(d->client, LMTP_CLIENT_PROTOCOL_LMTP, ^~~~~~~~~~~~~~~~~~~~~~~~~ SMTP_PROXY_PROTOCOL_LMTP In file included from imaptest.c:9: /usr/include/dovecot/istream.h:41:17: note: declared here struct istream *i_stream_create_fd(int fd, size_t max_buffer_size); ^~~~~~~~~~~~~~~~~~ imaptest-lmtp.c:131:2: warning: implicit declaration of function 'lmtp_client_add_rcpt'; did you mean 'imap_client_append'? [-Wimplicit-function-declaration] lmtp_client_add_rcpt(d->client, rcpt_to, imaptest_lmtp_rcpt_to_callback, ^~~~~~~~~~~~~~~~~~~~ imap_client_append make[2]: *** [Makefile:576: client.o] Error 1 imaptest-lmtp.c:135:2: warning: implicit declaration of function 'lmtp_client_send'; did you mean 'imap_client_append'? [-Wimplicit-function-declaration] lmtp_client_send(d->client, d->data_input); ^~~~~~~~~~~~~~~~ imap_client_append imaptest-lmtp.c:92:30: warning: unused variable 'lmtp_set' [-Wunused-variable] struct lmtp_client_settings lmtp_set; ^~~~~~~~ make[2]: *** [Makefile:576: profile.o] Error 1 client-state.c: In function 'auth_plain_callback': client-state.c:121:2: warning: ignoring return value of 'o_stream_send_str', declared with attribute warn_unused_result [-Wunused-result] o_stream_send_str(_client->output, str_c(str)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client-state.c: In function 'client_handle_cmd_reply': client-state.c:840:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (strstr(line, "Document has been deleted") != NULL) { ^ client-state.c:844:3: note: here case STATE_APPEND: ^~~~ imaptest.c: In function 'print_results_header': imaptest.c:52:2: warning: ignoring return value of 'o_stream_send', declared with attribute warn_unused_result [-Wunused-result] o_stream_send(results_output, str_data(str)+1, str_len(str)-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:576: imaptest-lmtp.o] Error 1 imaptest.c: In function 'print_results': imaptest.c:69:2: warning: ignoring return value of 'o_stream_send', declared with attribute warn_unused_result [-Wunused-result] o_stream_send(results_output, str_data(str)+1, str_len(str)-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:576: imaptest.o] Error 1 test-parser.c: In function 'test_parse_imap_args': test-parser.c:172:11: warning: passing argument 2 of 'imap_parser_get_error' from incompatible pointer type [-Wincompatible-pointer-types] &fatal)); ^~~~~~ In file included from test-parser.c:6: /usr/include/dovecot/imap-parser.h:74:13: note: expected 'enum imap_parser_error *' but argument is of type 'bool *' {aka '_Bool *'} const char *imap_parser_get_error(struct imap_parser *parser, ^~~~~~~~~~~~~~~~~~~~~ test-parser.c: In function 'test_parse_file': test-parser.c:719:7: warning: implicit declaration of function 'i_stream_is_eof'; did you mean 'i_stream_read_eof'? [-Wimplicit-function-declaration] if (!i_stream_is_eof(input)) { ^~~~~~~~~~~~~~~ i_stream_read_eof test-parser.c: In function 'test_parser_read_test': test-parser.c:825:10: error: too many arguments to function 'i_stream_create_fd' input = i_stream_create_fd(fd, (size_t)-1, FALSE); ^~~~~~~~~~~~~~~~~~ In file included from test-parser.c:5: /usr/include/dovecot/istream.h:41:17: note: declared here struct istream *i_stream_create_fd(int fd, size_t max_buffer_size); ^~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:576: test-parser.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/imaptest-20170719/src' make[1]: *** [Makefile:438: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/imaptest-20170719' make: *** [Makefile:368: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.LGEfrh (%build) RPM build errors: Macro expanded in comment on line 9: %{name}/%{name}-%{version}.tar.gz is meant for Macro expanded in comment on line 15: %{version} in spec file Bad exit status from /var/tmp/rpm-tmp.LGEfrh (%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: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/imaptest.spec