v2.2.19 release candidate released

Marcin Mirosław marcin at mejor.pl
Thu Sep 24 10:43:29 UTC 2015


W dniu 23.09.2015 o 15:30, Timo Sirainen pisze:
> http://dovecot.org/releases/2.2/rc/dovecot-2.2.19.rc1.tar.gz
> http://dovecot.org/releases/2.2/rc/dovecot-2.2.19.rc1.tar.gz.sig
> 
> A lot of changes since v2.2.18, so here's a release candidate first. If no bugs are reported, I'm planning on making the final release sometimes this week. The most interesting new features here are the imap-hibernate process, quota count backend and director/proxy improvements.

Hi!
I'm getting compilation error using clang:

> make[4]: Entering directory '/var/tmp/portage/net-mail/dovecot-2.2.19_rc1/work/dovecot-2.2.19.rc1/src/lib'
> /bin/sh ../../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I../..     -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototypes -Wmissing-declaratio
> ns -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2   -c -o guid.lo guid.c
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscrip
> ts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -c guid.c  -fPIC -DPIC -o .libs/guid.o
> guid.c:106:2: error: array size is negative
>         buffer_create_from_data(&buf, guid_r, GUID_128_SIZE);
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./buffer.h:23:8: note: expanded from macro 'buffer_create_from_data'
>         (void)COMPILE_ERROR_IF_TRUE(__builtin_object_size((d),3) < ((s)?(s):1)); \
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./macros.h:161:15: note: expanded from macro 'COMPILE_ERROR_IF_TRUE'
>         (sizeof(char[1 - 2 * !!(condition)]) - 1)
>                      ^~~~~~~~~~~~~~~~~~~~~
> 1 error generated.


> /bin/sh ../../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I../..     -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototypes -Wmissing-declaratio
> ns -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2   -c -o istream-jsonstr.lo istream-jsonstr.c
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscrip
> ts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -c istream-jsonstr.c  -fPIC -DPIC -o .libs/istream-jsonstr.o
> istream-jsonstr.c:72:3: error: array size is negative
>                 buffer_create_from_data(&buf, dest, MAX_UTF8_LEN);
>                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./buffer.h:23:8: note: expanded from macro 'buffer_create_from_data'
>         (void)COMPILE_ERROR_IF_TRUE(__builtin_object_size((d),3) < ((s)?(s):1)); \
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./macros.h:161:15: note: expanded from macro 'COMPILE_ERROR_IF_TRUE'
>         (sizeof(char[1 - 2 * !!(condition)]) - 1)
>                      ^~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> Makefile:1085: recipe for target 'istream-jsonstr.lo' failed
> make[4]: *** [istream-jsonstr.lo] Error 1



> make[3]: Entering directory '/var/tmp/portage/net-mail/dovecot-2.2.19_rc1/work/dovecot-2.2.19.rc1/src/lib-mail'
> /bin/sh ../../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib -I../../src/lib-test -I../../src/lib-charset   -std=gnu99 -O2 -mar
> ch=native -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict
> -aliasing=2   -c -o istream-binary-converter.lo istream-binary-converter.c
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-test -I../../src/lib-charset -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prot
> otypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -c istream-binary-con
> verter.c  -fPIC -DPIC -o .libs/istream-binary-converter.o
> istream-binary-converter.c:119:3: error: array size is negative
>                 buffer_create_from_data(&buf, dest, BASE64_BLOCK_SIZE);
>                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/lib/buffer.h:23:8: note: expanded from macro 'buffer_create_from_data'
>         (void)COMPILE_ERROR_IF_TRUE(__builtin_object_size((d),3) < ((s)?(s):1)); \
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/lib/macros.h:161:15: note: expanded from macro 'COMPILE_ERROR_IF_TRUE'
>         (sizeof(char[1 - 2 * !!(condition)]) - 1)
>                      ^~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> Makefile:882: recipe for target 'istream-binary-converter.lo' failed



> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-test -I../../src/lib-charset -I../../src/lib-dict -I../../src/lib-mail -I../../sr
> c/lib-storage -I../../src/lib-imap -I../../src/lib-imap-storage -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wch
> ar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -c imap-urlauth-backend.c  -fPIC -DPIC -o .libs/imap-urlauth-backend.o
> imap-urlauth-backend.c:62:3: error: array size is negative
>                 buffer_create_from_data(&key_buf, mailbox_key_r,
>                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/lib/buffer.h:23:8: note: expanded from macro 'buffer_create_from_data'
>         (void)COMPILE_ERROR_IF_TRUE(__builtin_object_size((d),3) < ((s)?(s):1)); \
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/lib/macros.h:161:15: note: expanded from macro 'COMPILE_ERROR_IF_TRUE'
>         (sizeof(char[1 - 2 * !!(condition)]) - 1)
>                      ^~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> Makefile:484: recipe for target 'imap-urlauth-bac


> make[4]: Entering directory '/var/tmp/portage/net-mail/dovecot-2.2.19_rc1/work/dovecot-2.2.19.rc1/src/lib-storage'
> /bin/sh ../../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib -I../../src/lib-test -I../../src/lib-auth -I../../src/lib-dict -I.
> ./../src/lib-sasl -I../../src/lib-ssl-iostream -I../../src/lib-fs -I../../src/lib-master -I../../src/lib-settings -I../../src/lib-charset -I../../src/lib-mail -I../..
> /src/lib-imap -I../../src/lib-index -DPKG_RUNDIR=\""/var/run/dovecot"\" -DMODULEDIR=\""/usr/lib64/dovecot"\"   -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototy
> pes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2   -c -o mail.lo mail.c
> libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-test -I../../src/lib-auth -I../../src/lib-dict -I../../src/lib-sasl -I../../src/l
> ib-ssl-iostream -I../../src/lib-fs -I../../src/lib-master -I../../src/lib-settings -I../../src/lib-charset -I../../src/lib-mail -I../../src/lib-imap -I../../src/lib-i
> ndex -DPKG_RUNDIR=\"/var/run/dovecot\" -DMODULEDIR=\"/usr/lib64/dovecot\" -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-
> arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 -c mail.c  -fPIC -DPIC -o .libs/mail.o
> mail.c:419:3: error: array size is negative
>                 buffer_create_from_data(&buf, guid_128_r, GUID_128_SIZE);
>                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/lib/buffer.h:23:8: note: expanded from macro 'buffer_create_from_data'
>         (void)COMPILE_ERROR_IF_TRUE(__builtin_object_size((d),3) < ((s)?(s):1)); \
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/lib/macros.h:161:15: note: expanded from macro 'COMPILE_ERROR_IF_TRUE'
>         (sizeof(char[1 - 2 * !!(condition)]) - 1)
>                      ^~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> Makefile:767: recipe for target 'mail.lo' failed



> make[3]: Entering directory '/var/tmp/portage/net-mail/dovecot-2.2.19_rc1/work/dovecot-2.2.19.rc1/src/lib-otp'
> clang -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib   -std=gnu99 -O2 -march=native -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscrip
> ts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2   -c -o otp-parse.o otp-parse.c
> otp-parse.c:45:2: error: array size is negative
>         buffer_create_from_data(&buf, hash, OTP_HASH_SIZE);
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/lib/buffer.h:23:8: note: expanded from macro 'buffer_create_from_data'
>         (void)COMPILE_ERROR_IF_TRUE(__builtin_object_size((d),3) < ((s)?(s):1)); \
>               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../src/lib/macros.h:161:15: note: expanded from macro 'COMPILE_ERROR_IF_TRUE'
>         (sizeof(char[1 - 2 * !!(condition)]) - 1)
>                      ^~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> Makefile:433: recipe for target 'otp-parse.o' failed



$ clang -v
clang version 3.8.0 (cc0e5a2f90ee7a0d48042c4b5b66546521f77923)
(11768ab0810142d431e9be949daa779a8809347b)

Marcin



More information about the dovecot mailing list