=> Bootstrap dependency digest>=20010302: found digest-20121220
WARNING: [license.mk] Every package should define a LICENSE.
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for cyrus-imapd-2.2.13p1nb10
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/man
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/et
./config_script ./compile_et.sh /usr/bin/awk sed > compile_et
chmod 755 compile_et
gcc -c -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. -I./../lib -I. -I.. -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 error_message.c
gcc -c -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. -I./../lib -I. -I.. -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 et_name.c
gcc -c -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. -I./../lib -I. -I.. -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 init_et.c
init_et.c:52:14: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration]
extern char *malloc(), *realloc();
             ^
init_et.c:52:14: note: 'malloc' is a builtin with type 'void *(unsigned long)'
init_et.c:52:25: warning: incompatible redeclaration of library function 'realloc' [-Wincompatible-library-redeclaration]
extern char *malloc(), *realloc();
                        ^
init_et.c:52:25: note: 'realloc' is a builtin with type 'void *(void *, unsigned long)'
2 warnings generated.
gcc -c -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -DHAVE_CONFIG_H -I. -I./../lib -I. -I.. -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 com_err.c
rm -f libcom_err.a
ar cr libcom_err.a error_message.o et_name.o init_et.o com_err.o
ranlib libcom_err.a
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/lib
./../tools/config2header CC=gcc ./imapopts.c ./imapopts.h < ./imapoptions
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  libconfig.c
libconfig.c:103:32: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat]
               imapopts[opt].optname, imapopts[opt].val.i);
                                      ^~~~~~~~~~~~~~~~~~~
libconfig.c:117:32: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat]
               imapopts[opt].optname, imapopts[opt].val.b);
                                      ^~~~~~~~~~~~~~~~~~~
libconfig.c:168:24: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
    enum opttype opt = IMAPOPT_ZERO;
                 ~~~   ^~~~~~~~~~~~
libconfig.c:196:15: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
    for(opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
            ~ ^~~~~~~~~~~~
libconfig.c:196:33: warning: comparison of constant 'IMAPOPT_LAST' (162) with expression of type 'enum opttype' is always true [-Wtautological-constant-out-of-range-compare]
    for(opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                            ~~~ ^ ~~~~~~~~~~~~
libconfig.c:199:9: warning: comparison of constant 'IMAPOPT_CONFIGDIRECTORY' (18) with expression of type 'enum opttype' is always false [-Wtautological-constant-out-of-range-compare]
           opt == IMAPOPT_CONFIGDIRECTORY) {
           ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~
libconfig.c:267:24: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
    enum opttype opt = IMAPOPT_ZERO;
                 ~~~   ^~~~~~~~~~~~
libconfig.c:360:17: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
            for (opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                     ~ ^~~~~~~~~~~~
libconfig.c:360:35: warning: comparison of constant 'IMAPOPT_LAST' (162) with expression of type 'enum opttype' is always true [-Wtautological-constant-out-of-range-compare]
            for (opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                                     ~~~ ^ ~~~~~~~~~~~~
libconfig.c:372:17: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
            for (opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                     ~ ^~~~~~~~~~~~
libconfig.c:372:35: warning: comparison of constant 'IMAPOPT_LAST' (162) with expression of type 'enum opttype' is always true [-Wtautological-constant-out-of-range-compare]
            for (opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                                     ~~~ ^ ~~~~~~~~~~~~
libconfig.c:382:10: warning: comparison of constant 'IMAPOPT_LAST' (162) with expression of type 'enum opttype' is always true [-Wtautological-constant-out-of-range-compare]
        if (opt < IMAPOPT_LAST) {
            ~~~ ^ ~~~~~~~~~~~~
libconfig.c:417:10: warning: comparison of constant 'IMAPOPT_CONFIGDIRECTORY' (18) with expression of type 'enum opttype' is always false [-Wtautological-constant-out-of-range-compare]
                if(opt == IMAPOPT_CONFIGDIRECTORY)
                   ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~
13 warnings generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  imapopts.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  hash.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  mpool.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  xstrlcpy.c
xstrlcpy.c:59:16: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)'
        return strlen(src);
               ^
xstrlcpy.c:59:16: note: please include the header <string.h> or explicitly provide a declaration for 'strlen'
1 warning generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  xstrlcat.c
xstrlcat.c:51:9: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)'
    o = strlen(dst);
        ^
xstrlcat.c:51:9: note: please include the header <string.h> or explicitly provide a declaration for 'strlen'
1 warning generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  xmalloc.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  strhash.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  assert.c
rm -f libcyrus_min.a
ar cr libcyrus_min.a libconfig.o imapopts.o hash.o mpool.o xstrlcpy.o xstrlcat.o xmalloc.o  strhash.o assert.o
ranlib libcyrus_min.a
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  acl.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  bsearch.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  charset.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  glob.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  retry.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  util.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  libcyr_cfg.c
libcyr_cfg.c:145:104: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat]
        syslog(LOG_ERR, "libcyrus_config_getint: option %d: %lld too large for type", cyrus_options[opt].opt, cyrus_options[opt].val.i);
                                                            ~~~~                                              ^~~~~~~~~~~~~~~~~~~~~~~~
                                                            %ld
libcyr_cfg.c:158:107: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat]
        syslog(LOG_ERR, "libcyrus_config_getswitch: option %d: %lld too large for type", cyrus_options[opt].opt, cyrus_options[opt].val.b);
                                                               ~~~~                                              ^~~~~~~~~~~~~~~~~~~~~~~~
                                                               %ld
2 warnings generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  mkgmtime.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  prot.c
prot.c:581:18: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                                 output_buf, output_len);
                                             ^~~~~~~~~~
/scratch/mail/cyrus-imapd/work/.buildlink/include/sasl/sasl.h:1290:39: note: passing argument to parameter 'outputlen' here
                            const char **output, unsigned *outputlen);
                                                           ^
prot.c:594:14: warning: assigning to 'const char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        *output_buf = ptr;
                    ^ ~~~
prot.c:626:17: warning: initializing 'const char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    const char *ptr = s->buf; /* Memory buffer info */
                ^     ~~~~~~
3 warnings generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  parseaddr.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  imclient.c
imclient.c:1960:12: warning: assigning to 'SSL_CIPHER *' (aka 'struct ssl_cipher_st *') from 'const SSL_CIPHER *' (aka 'const struct ssl_cipher_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    cipher = SSL_get_current_cipher(imclient->tls_conn);
           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  imparse.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  lsort.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  stristr.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  rfc822date.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  cyrusdb.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  mkchartable.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o mkchartable mkchartable.o xstrlcpy.o xstrlcat.o xmalloc.o assert.o
### Building chartables...
rm -f chartable.c
./mkchartable  -m ./charset/unifix.txt	 -m ./charset/unidata2.txt  ./charset/*.t  > chartable.c  || (rm -f chartable.c && exit 1)
mkchartable: expanding unicode mappings...
mkchartable: expanding unicode mappings...
mkchartable: expanding unicode mappings...
mkchartable: building expansion table...
mkchartable: mapping unicode...
mkchartable: mapping UTF-8...
mkchartable: mapping UTF-7...
mkchartable: mapping ./charset/big5.t...
mkchartable: mapping ./charset/gb2312.t...
mkchartable: mapping ./charset/iso-2022-jp.t...
mkchartable: mapping ./charset/iso-2022-kr.t...
mkchartable: mapping ./charset/iso-8859-1.t...
mkchartable: mapping ./charset/iso-8859-15.t...
mkchartable: mapping ./charset/iso-8859-2.t...
mkchartable: mapping ./charset/iso-8859-3.t...
mkchartable: mapping ./charset/iso-8859-4.t...
mkchartable: mapping ./charset/iso-8859-5.t...
mkchartable: mapping ./charset/iso-8859-6.t...
mkchartable: mapping ./charset/iso-8859-7.t...
mkchartable: mapping ./charset/iso-8859-8.t...
mkchartable: mapping ./charset/iso-8859-9.t...
mkchartable: mapping ./charset/koi8-r.t...
mkchartable: mapping ./charset/us-ascii.t...
mkchartable: mapping ./charset/windows-1252.t...
mkchartable: mapping ./charset/windows-1256.t...
### Done building chartables.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  chartable.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  imapurl.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  nonblock_fcntl.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  lock_fcntl.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  gmtoff_tm.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  map_shared.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  acl_afs.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  auth.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  auth_krb.c
auth_krb.c:348:2: warning: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
        fatal("Authentication mechanism (krb) not compiled in", EC_CONFIG);
        ^
auth_krb.c:349:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
auth_krb.c:356:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
auth_krb.c:362:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
4 warnings generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  auth_unix.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  auth_krb5.c
auth_krb5.c:206:2: warning: implicit declaration of function 'fatal' is invalid in C99 [-Wimplicit-function-declaration]
        fatal("Authentication mechanism (krb5) not compiled in", EC_CONFIG);
        ^
auth_krb5.c:207:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
auth_krb5.c:214:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
auth_krb5.c:220:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
4 warnings generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  auth_pts.c
auth_pts.c:109:16: warning: format specifies type 'unsigned int' but the argument has type 'fd_set *' (aka 'struct fd_set *') [-Wformat]
         sock, rp, wp, sec);
               ^~
auth_pts.c:109:20: warning: format specifies type 'unsigned int' but the argument has type 'fd_set *' (aka 'struct fd_set *') [-Wformat]
         sock, rp, wp, sec);
                   ^~
2 warnings generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  cyrusdb_flat.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  cyrusdb_skiplist.c
cyrusdb_skiplist.c:1743:19: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat]
        printf("%04X: ", ptr - db->map_base);
                ~~~~     ^~~~~~~~~~~~~~~~~~
                %04lX
cyrusdb_skiplist.c:1818:4: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat]
                        ptr - db->map_base,
                        ^~~~~~~~~~~~~~~~~~
cyrusdb_skiplist.c:1833:8: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat]
                            ptr - db->map_base,
                            ^~~~~~~~~~~~~~~~~~
3 warnings generated.
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  cyrusdb_quotalegacy.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  cyrusdb_berkeley.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  iptostring.c
gcc -c -I..  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  wildmat.c
rm -f libcyrus.a
ar cr libcyrus.a acl.o bsearch.o charset.o glob.o retry.o util.o  libcyr_cfg.o mkgmtime.o prot.o parseaddr.o imclient.o imparse.o  lsort.o stristr.o rfc822date.o cyrusdb.o strhash.o  chartable.o imapurl.o nonblock_fcntl.o lock_fcntl.o  gmtoff_tm.o map_shared.o acl_afs.o auth.o auth_krb.o auth_unix.o auth_krb5.o auth_pts.o  cyrusdb_flat.o cyrusdb_skiplist.o cyrusdb_quotalegacy.o cyrusdb_berkeley.o  iptostring.o xstrlcpy.o xstrlcat.o xmalloc.o wildmat.o
ranlib libcyrus.a
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/sieve
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  sieve_err.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  sieve.c
sieve.y:1012:26: warning: initializing 'const unsigned char *' with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    const unsigned char *buf = s;
                         ^     ~
sieve.y:1013:26: warning: initializing 'const unsigned char *' with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    const unsigned char *endbuf = s + strlen(s);
                         ^        ~~~~~~~~~~~~~
2 warnings generated.
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  sieve-lex.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  comparator.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  interp.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  message.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  bc_generate.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  bc_dump.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  bc_emit.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  bc_eval.c
bc_eval.c:844:36: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
            result=eval_bc_test(i, m, bc, &ip);
                                          ^~~
bc_eval.c:307:33: note: passing argument to parameter 'ip' here
                 bytecode_input_t * bc, int * ip)
                                              ^
bc_eval.c:949:31: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
            options=bc_makeArray(bc, &ip); 
                                     ^~~
bc_eval.c:80:55: note: passing argument to parameter 'pos' here
const char ** bc_makeArray(bytecode_input_t *bc, int *pos) 
                                                      ^
2 warnings generated.
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  script.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  tree.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  addr.c
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  addr-lex.c
rm -f libsieve.a
ar cr libsieve.a sieve_err.o  sieve.o sieve-lex.o comparator.o interp.o message.o  bc_generate.o bc_dump.o bc_emit.o bc_eval.o  script.o tree.o addr.o addr-lex.o
ranlib libsieve.a
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  sievec.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o sievec sievec.o libsieve.a ../lib/libcyrus.a ../lib/libcyrus_min.a libsieve.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -DPIC -fPIC  sieved.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o sieved sieved.o libsieve.a ../lib/libcyrus.a ../lib/libcyrus_min.a libsieve.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/master
gcc -c -I.. -I./../lib -I./../imap  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  master.c
master.c:866:11: warning: enumeration value 'SERVICE_STATE_INIT' not handled in switch [-Wswitch]
                switch (c->service_state) {
                        ^
master.c:1133:10: warning: enumeration values 'SERVICE_STATE_INIT' and 'SERVICE_STATE_DEAD' not handled in switch [-Wswitch]
        switch (c->service_state) {
                ^
master.c:1162:10: warning: enumeration values 'SERVICE_STATE_INIT' and 'SERVICE_STATE_DEAD' not handled in switch [-Wswitch]
        switch (c->service_state) {
                ^
master.c:1189:10: warning: enumeration values 'SERVICE_STATE_INIT' and 'SERVICE_STATE_DEAD' not handled in switch [-Wswitch]
        switch (c->service_state) {
                ^
master.c:1219:10: warning: enumeration values 'SERVICE_STATE_INIT' and 'SERVICE_STATE_DEAD' not handled in switch [-Wswitch]
        switch (c->service_state) {
                ^
5 warnings generated.
gcc -c -I.. -I./../lib -I./../imap  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  masterconf.c
In file included from masterconf.c:55:
./../lib/libconfig.c:103:32: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat]
               imapopts[opt].optname, imapopts[opt].val.i);
                                      ^~~~~~~~~~~~~~~~~~~
./../lib/libconfig.c:117:32: warning: format specifies type 'long long' but the argument has type 'long' [-Wformat]
               imapopts[opt].optname, imapopts[opt].val.b);
                                      ^~~~~~~~~~~~~~~~~~~
./../lib/libconfig.c:168:24: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
    enum opttype opt = IMAPOPT_ZERO;
                 ~~~   ^~~~~~~~~~~~
./../lib/libconfig.c:196:15: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
    for(opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
            ~ ^~~~~~~~~~~~
./../lib/libconfig.c:196:33: warning: comparison of constant 'IMAPOPT_LAST' (162) with expression of type 'enum opttype' is always true [-Wtautological-constant-out-of-range-compare]
    for(opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                            ~~~ ^ ~~~~~~~~~~~~
./../lib/libconfig.c:199:9: warning: comparison of constant 'IMAPOPT_CONFIGDIRECTORY' (18) with expression of type 'enum opttype' is always false [-Wtautological-constant-out-of-range-compare]
           opt == IMAPOPT_CONFIGDIRECTORY) {
           ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~
./../lib/libconfig.c:267:24: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
    enum opttype opt = IMAPOPT_ZERO;
                 ~~~   ^~~~~~~~~~~~
./../lib/libconfig.c:360:17: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
            for (opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                     ~ ^~~~~~~~~~~~
./../lib/libconfig.c:360:35: warning: comparison of constant 'IMAPOPT_LAST' (162) with expression of type 'enum opttype' is always true [-Wtautological-constant-out-of-range-compare]
            for (opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                                     ~~~ ^ ~~~~~~~~~~~~
./../lib/libconfig.c:372:17: warning: implicit conversion from enumeration type 'enum imapopt' to different enumeration type 'enum opttype' [-Wenum-conversion]
            for (opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                     ~ ^~~~~~~~~~~~
./../lib/libconfig.c:372:35: warning: comparison of constant 'IMAPOPT_LAST' (162) with expression of type 'enum opttype' is always true [-Wtautological-constant-out-of-range-compare]
            for (opt = IMAPOPT_ZERO; opt < IMAPOPT_LAST; opt++) {
                                     ~~~ ^ ~~~~~~~~~~~~
./../lib/libconfig.c:382:10: warning: comparison of constant 'IMAPOPT_LAST' (162) with expression of type 'enum opttype' is always true [-Wtautological-constant-out-of-range-compare]
        if (opt < IMAPOPT_LAST) {
            ~~~ ^ ~~~~~~~~~~~~
./../lib/libconfig.c:417:10: warning: comparison of constant 'IMAPOPT_CONFIGDIRECTORY' (18) with expression of type 'enum opttype' is always false [-Wtautological-constant-out-of-range-compare]
                if(opt == IMAPOPT_CONFIGDIRECTORY)
                   ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~
13 warnings generated.
gcc -c -I.. -I./../lib -I./../imap  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  cyrusMasterMIB.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o master master.o masterconf.o cyrusMasterMIB.o ../lib/lock_fcntl.o ../lib/libcyrus_min.a    -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a 
gcc -c -I.. -I./../lib -I./../imap  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  service.c
service.c:378:25: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
                   (char *) &soctype, &typelen) < 0) {
                                      ^~~~~~~~
/usr/include/sys/socket.h:618:71: note: passing argument to parameter here
int     getsockopt(int, int, int, void *__restrict, socklen_t * __restrict);
                                                                          ^
1 warning generated.
gcc -c -I.. -I./../lib -I./../imap  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I../et -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  service-thread.c
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/imap
rm -f version.o
AWK=/usr/bin/awk ./xversion.sh
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  pushstats.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  backend.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  imapd.c
imapd.c:376:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_GETOPT, &mysasl_config, NULL },
                      ^~~~~~~~~~~~~~
imapd.c:377:29: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, const char *, unsigned int, const char *, unsigned int, struct propctx *)' [-Wincompatible-pointer-types]
    { SASL_CB_PROXY_POLICY, &imapd_proxy_policy, (void*) &imapd_proxyctx },
                            ^~~~~~~~~~~~~~~~~~~
imapd.c:378:27: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, unsigned int, const char *, char *, unsigned int, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_CANON_USER, &imapd_canon_user, NULL },
                          ^~~~~~~~~~~~~~~~~
imapd.c:1853:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
imapd.c:1999:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
imapd.c:2288:15: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                      NULL, &mechcount) == SASL_OK && mechcount > 0) {
                            ^~~~~~~~~~
/scratch/mail/cyrus-imapd/work/.buildlink/include/sasl/sasl.h:1071:15: note: passing argument to parameter 'pcount' here
                              int *pcount);
                                   ^
imapd.c:3972:43: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
            sprintf(olduser+strlen(olduser), "@%.*s",
                                               ~~^~
imapd.c:3984:43: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
            sprintf(newuser+strlen(newuser), "@%.*s",
                                               ~~^~
imapd.c:6095:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(mailbox), mailbox);
                ^~~~~~~~~~~~~~~
imapd.c:6146:16: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            tagbuf, strlen(mailbox), mailbox,
                                    ^~~~~~~~~~~~~~~
imapd.c:6147:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(user.s), user.s);
                            ^~~~~~~~~~~~~~
imapd.c:6225:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(acl), acl,
                    ^~~~~~~~~~~
imapd.c:6226:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(rights), rights);
                    ^~~~~~~~~~~~~~
imapd.c:6341:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(name), name, topart);
                        ^~~~~~~~~~~~
imapd.c:6344:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(name), name);
                        ^~~~~~~~~~~~
imapd.c:6378:50: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
        prot_printf(be->out, "D01 UNDUMP {%d+}\r\n%s ", strlen(name), name);
                                          ~~            ^~~~~~~~~~~~
                                          %lu
imapd.c:6425:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(name), name);
                        ^~~~~~~~~~~~
imapd.c:6465:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(name), name);
                    ^~~~~~~~~~~~
imapd.c:6662:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(name)+1, name, quota.limit);
                            ^~~~~~~~~~~~~~
imapd.c:7206:39: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
        prot_printf(imapd_out, "{%u}\r\n%s", strlen(s), s);
                                 ~~          ^~~~~~~~~
                                 %lu
imapd.c:7236:39: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
        prot_printf(imapd_out, "{%u}\r\n%s", strlen(s), s);
                                 ~~          ^~~~~~~~~
                                 %lu
21 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  index.c
index.c:1771:21: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                                           &decbuf, 0, &size);
                                                       ^~~~~
./../lib/charset.h:77:15: note: passing argument to parameter 'outlen' here
                                     int *outlen);
                                          ^
index.c:1911:34: warning: adding 'unsigned int' to a string does not append to the string [-Wstring-plus-int]
    prot_write(imapd_out, "\r\n" + crlf_start, crlf_size);
                          ~~~~~~~^~~~~~~~~~~~
index.c:1911:34: note: use array indexing to silence this warning
    prot_write(imapd_out, "\r\n" + crlf_start, crlf_size);
                                 ^
                          &      [           ]
index.c:2110:31: warning: adding 'unsigned int' to a string does not append to the string [-Wstring-plus-int]
        prot_write(imapd_out, "\r\n" + crlf_start, crlf_size);
                              ~~~~~~~^~~~~~~~~~~~
index.c:2110:31: note: use array indexing to silence this warning
        prot_write(imapd_out, "\r\n" + crlf_start, crlf_size);
                                     ^
                              &      [           ]
3 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  tls.c
tls.c:422:30: warning: passing 'unsigned char [32]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            ret = DB->store(sessdb, sess->session_id,
                                    ^~~~~~~~~~~~~~~~
tls.c:424:8: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
                            data, len + sizeof(time_t), NULL);
                            ^~~~
tls.c:457:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        ret = DB->delete(sessdb, id, idlen, NULL, 1);
                                 ^~
tls.c:509:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        ret = DB->fetch(sessdb, id, idlen, &data, &len, NULL);
                                ^~
tls.c:526:35: warning: passing 'unsigned char **' to parameter of type 'const unsigned char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
            sess = d2i_SSL_SESSION(NULL, &asn, len - sizeof(time_t));
                                         ^~~~
/usr/include/openssl/ssl.h:1768:68: note: passing argument to parameter 'pp' here
SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a,const unsigned char **pp,
                                                                   ^
tls.c:868:12: warning: assigning to 'SSL_CIPHER *' (aka 'struct ssl_cipher_st *') from 'const SSL_CIPHER *' (aka 'const struct ssl_cipher_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    cipher = SSL_get_current_cipher(tls_conn);
           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tls.c:1213:12: warning: assigning to 'SSL_CIPHER *' (aka 'struct ssl_cipher_st *') from 'const SSL_CIPHER *' (aka 'const struct ssl_cipher_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    cipher = SSL_get_current_cipher(tls_conn);
           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  version.c
version.c:79:46: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
    snprintf(id_resp_command, MAXIDVALUELEN, *argv);
                                             ^~~~~
1 warning generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mutex_fake.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  append.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mailbox.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mboxlist.c
mboxlist.c:511:8: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
                        "@%.*s", mbox - name - 1, name);
                          ~~^~   ~~~~~~~~~~~~~~~
mboxlist.c:1493:8: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
                         "%.*s", cp - identifier, identifier);
                          ~~^~   ~~~~~~~~~~~~~~~
mboxlist.c:1936:11: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
                     "%.*s", p - pattern, pattern);
                      ~~^~   ~~~~~~~~~~~
3 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mupdate-client.c
mupdate-client.c:334:19: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                handle->tagn++, strlen(mailbox), mailbox, 
                                ^~~~~~~~~~~~~~~
mupdate-client.c:335:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(server), server, strlen(acl), acl);
                ^~~~~~~~~~~~~~
mupdate-client.c:335:27: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(server), server, strlen(acl), acl);
                                        ^~~~~~~~~~~
mupdate-client.c:359:19: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                handle->tagn++, strlen(mailbox), mailbox, 
                                ^~~~~~~~~~~~~~~
mupdate-client.c:360:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(server), server);
                ^~~~~~~~~~~~~~
mupdate-client.c:384:19: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                handle->tagn++, strlen(mailbox), mailbox, 
                                ^~~~~~~~~~~~~~~
mupdate-client.c:385:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(server), server);
                ^~~~~~~~~~~~~~
mupdate-client.c:409:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(mailbox), mailbox);
                ^~~~~~~~~~~~~~~
mupdate-client.c:478:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(mailbox), mailbox);
                ^~~~~~~~~~~~~~~
mupdate-client.c:511:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(prefix), prefix);
                    ^~~~~~~~~~~~~~
mupdate-client.c:619:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        for (p = &(handle->cmd.s[1]); *p; p++) {
               ^ ~~~~~~~~~~~~~~~~~~~
11 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mboxname.c
mboxname.c:379:8: warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                 "@%.*s", domainlen, domain);
                   ~~^~   ~~~~~~~~~
mboxname.c:441:21: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat]
        sprintf(result, "%.*s",
                         ~~^~
2 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  message.c
message.c:2066:41: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
        snprintf(buf, sizeof(buf), "{%u}\r\n", strlen(s));
                                     ~~        ^~~~~~~~~
                                     %lu
1 warning generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  global.c
global.c:473:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
1 warning generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  imap_err.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mupdate_err.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  proc.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  setproctitle.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  convert_code.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  duplicate.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  saslclient.c
saslclient.c:123:14: warning: incompatible pointer types assigning to 'int (*)(void)' from 'int (*)(void *, int, const char **, unsigned int *)' [-Wincompatible-pointer-types]
        ret[n].proc = &mysasl_simple_cb;
                    ^ ~~~~~~~~~~~~~~~~~
saslclient.c:131:14: warning: incompatible pointer types assigning to 'int (*)(void)' from 'int (*)(void *, int, const char **, unsigned int *)' [-Wincompatible-pointer-types]
        ret[n].proc = &mysasl_simple_cb;
                    ^ ~~~~~~~~~~~~~~~~~
saslclient.c:139:14: warning: incompatible pointer types assigning to 'int (*)(void)' from 'int (*)(void *, int, const char **, const char **)' [-Wincompatible-pointer-types]
        ret[n].proc = &mysasl_getrealm_cb;
                    ^ ~~~~~~~~~~~~~~~~~~~
saslclient.c:154:9: warning: passing 'unsigned char [1]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        strcpy(secret->data,password);
               ^~~~~~~~~~~~
/usr/include/string.h:58:31: note: passing argument to parameter here
char    *strcpy(char * __restrict, const char * __restrict);
                                 ^
saslclient.c:159:14: warning: incompatible pointer types assigning to 'int (*)(void)' from 'int (*)(sasl_conn_t *, void *, int, sasl_secret_t **)' [-Wincompatible-pointer-types]
        ret[n].proc = &mysasl_getsecret_cb;
                    ^ ~~~~~~~~~~~~~~~~~~~~
saslclient.c:250:34: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                prot_printf(pout, "{%d+}\r\n", strlen(base64));
                                    ~~         ^~~~~~~~~~~~~~
                                    %lu
6 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  saslserver.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  signals.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  annotate.c
annotate.c:562:39: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
            snprintf(buf, sizeof(buf), "%u", attrib->size);
                                        ~~   ^~~~~~~~~~~~
                                        %zu
annotate.c:588:39: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
            snprintf(buf, sizeof(buf), "%u", attrib->size);
                                        ~~   ^~~~~~~~~~~~
                                        %zu
2 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  search_engines.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  squat.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  squat_internal.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mbdump.c
mbdump.c:138:3: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                attrib->size, (!ctx->tag ? "+" : ""),
                ^~~~~~~~~~~~
mbdump.c:140:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(attrib->contenttype), (!ctx->tag ? "+" : ""),
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
mbdump.c:275:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(name));
                        ^~~~~~~~~~~~
mbdump.c:296:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(name),
                        ^~~~~~~~~~~~
mbdump.c:331:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(data_files[i]));
                        ^~~~~~~~~~~~~~~~~~~~~
mbdump.c:351:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(data_files[i]),
                        ^~~~~~~~~~~~~~~~~~~~~
mbdump.c:478:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                                        strlen(ext_fname), 
                                        ^~~~~~~~~~~~~~~~~
7 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  imapparse.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  telemetry.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  user.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  notify.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  protocol.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  quota_db.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  seen_db.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  idle_poll.c
rm -f libimap.a
ar cr libimap.a append.o mailbox.o mboxlist.o mupdate-client.o mboxname.o message.o  global.o imap_err.o mupdate_err.o proc.o setproctitle.o  convert_code.o duplicate.o saslclient.o saslserver.o signals.o  annotate.o search_engines.o squat.o squat_internal.o mbdump.o  imapparse.o telemetry.o user.o notify.o protocol.o quota_db.o  seen_db.o idle_poll.o
ranlib libimap.a
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o imapd  ../master/service.o pushstats.o backend.o imapd.o index.o tls.o version.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  lmtpd.c
lmtpd.c:137:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_GETOPT, &mysasl_config, NULL },
                      ^~~~~~~~~~~~~~
lmtpd.c:138:29: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, const char *, unsigned int, const char *, unsigned int, struct propctx *)' [-Wincompatible-pointer-types]
    { SASL_CB_PROXY_POLICY, &mysasl_proxy_policy, NULL },
                            ^~~~~~~~~~~~~~~~~~~~
lmtpd.c:139:27: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, unsigned int, const char *, char *, unsigned int, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_CANON_USER, &mysasl_canon_user, NULL },
                          ^~~~~~~~~~~~~~~~~~
lmtpd.c:197:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
4 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  lmtpstats.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  lmtpengine.c
lmtpengine.c:698:16: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
        fprintf(f, "%.*s\r\n\t", fold[i] - p, p);
                    ~~^~         ~~~~~~~~~~~
lmtpengine.c:930:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_GETOPT, &localauth_mechlist_override, NULL },
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
lmtpengine.c:1333:11: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                                NULL, &mechcount) == SASL_OK && 
                                      ^~~~~~~~~~
/scratch/mail/cyrus-imapd/work/.buildlink/include/sasl/sasl.h:1071:15: note: passing argument to parameter 'pcount' here
                              int *pcount);
                                   ^
lmtpengine.c:1556:10: warning: assigning to 'int *' from 'sasl_ssf_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
                layerp = &ssf;
                       ^ ~~~~
4 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  spool.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  lmtp_sieve.c
lmtp_sieve.c:505:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
    t = duplicate_check(arc->hash, arc->len, 
                        ^~~~~~~~~
./duplicate.h:53:30: note: passing argument to parameter 'id' here
time_t duplicate_check(char *id, int idlen, const char *to, int tolen);
                             ^
1 warning generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  smtpclient.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o lmtpd  ../master/service.o lmtpd.o lmtpstats.o lmtpengine.o spool.o tls.o lmtp_sieve.o smtpclient.o mutex_fake.o  libimap.a ../sieve/libsieve.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  pop3d.c
pop3d.c:192:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_GETOPT, &mysasl_config, NULL },
                      ^~~~~~~~~~~~~~
pop3d.c:193:29: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, const char *, unsigned int, const char *, unsigned int, struct propctx *)' [-Wincompatible-pointer-types]
    { SASL_CB_PROXY_POLICY, &mysasl_proxy_policy, (void*) &popd_proxyctx },
                            ^~~~~~~~~~~~~~~~~~~~
pop3d.c:194:27: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, unsigned int, const char *, char *, unsigned int, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_CANON_USER, &mysasl_canon_user, NULL },
                          ^~~~~~~~~~~~~~~~~~
pop3d.c:308:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
pop3d.c:1191:15: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                      NULL, &mechcount) == SASL_OK && mechcount > 0) {
                            ^~~~~~~~~~
/scratch/mail/cyrus-imapd/work/.buildlink/include/sasl/sasl.h:1071:15: note: passing argument to parameter 'pcount' here
                              int *pcount);
                                   ^
pop3d.c:1248:12: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                          NULL, &mechnum) == SASL_OK) {
                                ^~~~~~~~
/scratch/mail/cyrus-imapd/work/.buildlink/include/sasl/sasl.h:1071:15: note: passing argument to parameter 'pcount' here
                              int *pcount);
                                   ^
6 warnings generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o pop3d pop3d.o backend.o tls.o ../master/service.o  mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  fud.c
fud.c:105:9: warning: 'MAXLOGNAME' macro redefined
#define MAXLOGNAME 16           /* should find out for real */
        ^
/usr/include/sys/param.h:116:9: note: previous definition is here
#define MAXLOGNAME      (LOGIN_NAME_MAX - 1) /* max login name length */
        ^
fud.c:198:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
2 warnings generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o fud ../master/service.o fud.o mutex_fake.o libimap.a  ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  smmapd.c
smmapd.c:175:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
smmapd.c:336:42: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
            sprintf(buf,"%d:cyrus %s,%c",strlen(key)+6,key,4);
                         ~~              ^~~~~~~~~~~~~
                         %lu
smmapd.c:340:67: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
            rc = recvfrom(soc,buf,512,0,(struct sockaddr *)&sfrom,&x);
                                                                  ^~
/usr/include/sys/socket.h:624:58: note: passing argument to parameter here
            struct sockaddr * __restrict, socklen_t * __restrict);
                                                                ^
smmapd.c:425:40: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
            prot_printf(map_out, "%d:OK %s,", 3+strlen(key), key);
                                  ~~          ^~~~~~~~~~~~~
                                  %lu
smmapd.c:430:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        9+strlen(error_message(r)), error_message(r));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
smmapd.c:435:39: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                prot_printf(map_out, "%d:TEMP %s,", strlen(error_message(r))+5,
                                      ~~            ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                      %lu
smmapd.c:444:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            5+strlen(error_message(r))+3+strlen(errstring),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
smmapd.c:448:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            5+strlen(error_message(r)), error_message(r));
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
8 warnings generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o smmapd ../master/service.o smmapd.o mutex_fake.o libimap.a  ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  reconstruct.c
reconstruct.c:179:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
1 warning generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  cli_fatal.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o  reconstruct reconstruct.o cli_fatal.o mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  quota.c
quota.c:166:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
quota.c:226:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
    syslog(LOG_ERR, buf);
                    ^~~
2 warnings generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o quota quota.o cli_fatal.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mbpath.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o mbpath mbpath.o cli_fatal.o mutex_fake.o libimap.a  ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  ipurge.c
ipurge.c:175:23: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
      syslog(LOG_ERR, error_message(r));
                      ^~~~~~~~~~~~~~~~
1 warning generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o ipurge ipurge.o cli_fatal.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  cyrdump.c
cyrdump.c:129:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
1 warning generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o cyrdump cyrdump.o index.o cli_fatal.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  chk_cyrus.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o chk_cyrus chk_cyrus.o cli_fatal.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  cvt_cyrusdb.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o cvt_cyrusdb cvt_cyrusdb.o cli_fatal.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  deliver.c
deliver.c:378:33: warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                sprintf(txn->rcpt[j].addr, "%.*s+%s", ulen, users[j], mailbox);
                                            ~~^~      ~~~~
1 warning generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o deliver deliver.o backend.o lmtpstats.o lmtpengine.o spool.o tls.o  mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  ctl_mboxlist.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o ctl_mboxlist ctl_mboxlist.o mupdate-client.o cli_fatal.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  ctl_deliver.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o  ctl_deliver ctl_deliver.o cli_fatal.o mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  ctl_cyrusdb.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o  ctl_cyrusdb ctl_cyrusdb.o cli_fatal.o mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  squatter.c
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  squat_build.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o squatter squatter.o index.o squat_build.o  cli_fatal.o mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mbexamine.c
mbexamine.c:153:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
mbexamine.c:280:11: warning: passing 'unsigned long *' to parameter of type 'const time_t *' (aka 'const long *') converts between pointers to integer types with different sign [-Wpointer-sign]
           ctime(&mailbox.pop3_last_login));
                 ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/time.h:93:27: note: passing argument to parameter here
char *ctime(const time_t *) __RENAME(__ctime50);
                          ^
2 warnings generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o  mbexamine mbexamine.o cli_fatal.o mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  cyr_expire.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o cyr_expire cyr_expire.o cli_fatal.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  arbitron.c
arbitron.c:200:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
1 warning generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o arbitron arbitron.o cli_fatal.o mutex_fake.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  tls_prune.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o  tls_prune tls_prune.o tls.o cli_fatal.o mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  nntpd.c
nntpd.c:258:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_GETOPT, &mysasl_config, NULL },
                      ^~~~~~~~~~~~~~
nntpd.c:259:29: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, const char *, unsigned int, const char *, unsigned int, struct propctx *)' [-Wincompatible-pointer-types]
    { SASL_CB_PROXY_POLICY, &mysasl_proxy_policy, (void*) &nntp_proxyctx },
                            ^~~~~~~~~~~~~~~~~~~~
nntpd.c:260:27: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, unsigned int, const char *, char *, unsigned int, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_CANON_USER, &mysasl_canon_user, NULL },
                          ^~~~~~~~~~~~~~~~~~
nntpd.c:1826:22: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                  &mechlist, NULL, &mechcount);
                                   ^~~~~~~~~~
/scratch/mail/cyrus-imapd/work/.buildlink/include/sasl/sasl.h:1071:15: note: passing argument to parameter 'pcount' here
                              int *pcount);
                                   ^
nntpd.c:2094:16: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                              NULL, &mechnum) == SASL_OK) {
                                    ^~~~~~~~
/scratch/mail/cyrus-imapd/work/.buildlink/include/sasl/sasl.h:1071:15: note: passing argument to parameter 'pcount' here
                              int *pcount);
                                   ^
nntpd.c:2916:21: warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
        sprintf(rcpt, "%s%.*s", newsprefix, n, p);
                         ~~^~               ~
nntpd.c:3084:32: warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                            r += sprintf(r, "%s%s+%.*s",
                                                  ~~^~
nntpd.c:3104:18: warning: field precision should have type 'int', but argument has type 'long' [-Wformat]
                        fprintf(f, "%.*s\r\n\t", fold - r, r);
                                    ~~^~         ~~~~~~~~
8 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  nntp_err.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o nntpd nntpd.o backend.o index.o spool.o  smtpclient.o tls.o ../master/service.o mutex_fake.o nntp_err.o  libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  fetchnews.c
fetchnews.c:290:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
            snprintf(sfile, sizeof(sfile), optarg);
                                           ^~~~~~
1 warning generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o  fetchnews fetchnews.o cli_fatal.o mutex_fake.o libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  proxyd.c
proxyd.c:135:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static nosaslpasswdcheck = 0;
~~~~~~ ^
proxyd.c:285:1: warning: '/*' within block comment [-Wcomment]
/* 's->last_result' assumes that tagged responses don't contain literals.
^
proxyd.c:1054:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_GETOPT, &mysasl_config, NULL },
                      ^~~~~~~~~~~~~~
proxyd.c:1055:29: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, const char *, unsigned int, const char *, unsigned int, struct propctx *)' [-Wincompatible-pointer-types]
    { SASL_CB_PROXY_POLICY, &proxyd_proxy_policy, (void*) &proxyd_proxyctx },
                            ^~~~~~~~~~~~~~~~~~~~
proxyd.c:1056:27: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, unsigned int, const char *, char *, unsigned int, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_CANON_USER, &proxyd_canon_user, (void*) &disable_referrals },
                          ^~~~~~~~~~~~~~~~~~
proxyd.c:2233:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
proxyd.c:2373:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
proxyd.c:2837:53: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
        prot_printf(s->out, "%s Append {%d+}\r\n%s ", tag, strlen(name), name);
                                        ~~                 ^~~~~~~~~~~~
                                        %lu
proxyd.c:2914:3: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                strlen(name), name);
                ^~~~~~~~~~~~
proxyd.c:3145:27: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    tag, cmd, sequence, strlen(name), name);
                                        ^~~~~~~~~~~~
proxyd.c:3306:52: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
        prot_printf(s->out, "%s Append {%d+}\r\n%s", tag, strlen(name), name);
                                        ~~                ^~~~~~~~~~~~
                                        %lu
proxyd.c:3552:12: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    tag, strlen(name), name);
                         ^~~~~~~~~~~~
proxyd.c:3593:12: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    tag, strlen(name), name);
                         ^~~~~~~~~~~~
proxyd.c:3695:13: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            tag, strlen(oldname), oldname,
                                 ^~~~~~~~~~~~~~~
proxyd.c:3696:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(newserver), newserver,
                            ^~~~~~~~~~~~~~~~~
proxyd.c:3697:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(destpart), destpart);
                            ^~~~~~~~~~~~~~~~
proxyd.c:3703:9: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        tag, strlen(oldname), oldname,
                             ^~~~~~~~~~~~~~~
proxyd.c:3704:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(partition), partition);
                        ^~~~~~~~~~~~~~~~~
proxyd.c:3721:12: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    tag, strlen(oldname), oldname,
                         ^~~~~~~~~~~~~~~
proxyd.c:3722:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(newname), newname);
                    ^~~~~~~~~~~~~~~
proxyd.c:3758:9: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        tag, strlen(pattern), pattern);
                             ^~~~~~~~~~~~~~~
proxyd.c:3828:9: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        tag, strlen(reference), reference,
                             ^~~~~~~~~~~~~~~~~
proxyd.c:3829:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(pattern), pattern);
                        ^~~~~~~~~~~~~~~
proxyd.c:3920:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(namespace), namespace,
                        ^~~~~~~~~~~~~~~~~
proxyd.c:3921:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(name), name);
                        ^~~~~~~~~~~~
proxyd.c:3925:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(name), name);
                        ^~~~~~~~~~~~
proxyd.c:4158:9: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        tag, strlen(name), name,
                             ^~~~~~~~~~~~
proxyd.c:4159:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(identifier), identifier,
                        ^~~~~~~~~~~~~~~~~~
proxyd.c:4160:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(rights), rights);
                        ^~~~~~~~~~~~~~
proxyd.c:4164:9: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        tag, strlen(name), name,
                             ^~~~~~~~~~~~
proxyd.c:4165:4: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        strlen(identifier), identifier);
                        ^~~~~~~~~~~~~~~~~~
proxyd.c:4266:9: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                        tag, strlen(name), name);
                             ^~~~~~~~~~~~
proxyd.c:4493:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(name), name);
                    ^~~~~~~~~~~~
proxyd.c:4633:40: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
        prot_printf(proxyd_out, "{%u}\r\n%s", strlen(s), s);
                                  ~~          ^~~~~~~~~
                                  %lu
proxyd.c:4661:40: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
        prot_printf(proxyd_out, "{%u}\r\n%s", strlen(s), s);
                                  ~~          ^~~~~~~~~
                                  %lu
35 warnings generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o proxyd  ../master/service.o backend.o pushstats.o proxyd.o tls.o version.o mutex_fake.o libimap.a  ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  lmtpproxyd.c
lmtpproxyd.c:167:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_GETOPT, &mysasl_config, NULL },
                      ^~~~~~~~~~~~~~
lmtpproxyd.c:168:29: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, const char *, unsigned int, const char *, unsigned int, struct propctx *)' [-Wincompatible-pointer-types]
    { SASL_CB_PROXY_POLICY, &mysasl_proxy_policy, NULL },
                            ^~~~~~~~~~~~~~~~~~~~
lmtpproxyd.c:169:27: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, unsigned int, const char *, char *, unsigned int, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_CANON_USER, &mysasl_canon_user, NULL },
                          ^~~~~~~~~~~~~~~~~~
lmtpproxyd.c:190:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
        syslog(LOG_ERR, error_message(r));
                        ^~~~~~~~~~~~~~~~
4 warnings generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o lmtpproxyd  ../master/service.o lmtpproxyd.o backend.o lmtpstats.o lmtpengine.o spool.o tls.o mutex_fake.o  libimap.a ../sieve/libsieve.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mupdate.c
mupdate.c:275:60: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
    if (getpeername(C->fd, (struct sockaddr *)&remoteaddr, &salen) == 0 &&
                                                           ^~~~~~
/usr/include/sys/socket.h:616:74: note: passing argument to parameter here
int     getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                             ^
mupdate.c:300:56: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
        if (getsockname(C->fd, (struct sockaddr *)&localaddr, &salen) == 0
                                                              ^~~~~~
/usr/include/sys/socket.h:617:74: note: passing argument to parameter here
int     getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                             ^
mupdate.c:491:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
    { SASL_CB_GETOPT, &mysasl_config, NULL },
                      ^~~~~~~~~~~~~~
mupdate.c:492:29: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(sasl_conn_t *, void *, const char *, unsigned int, const char *, unsigned int, const char *, unsigned int, struct propctx *)' [-Wincompatible-pointer-types]
    { SASL_CB_PROXY_POLICY, &mupdate_proxy_policy, NULL },
                            ^~~~~~~~~~~~~~~~~~~~~
mupdate.c:1004:18: warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
                        &mechs, NULL, &mechcount);
                                      ^~~~~~~~~~
/scratch/mail/cyrus-imapd/work/.buildlink/include/sasl/sasl.h:1071:15: note: passing argument to parameter 'pcount' here
                              int *pcount);
                                   ^
mupdate.c:1618:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(m->mailbox), m->mailbox,
                    ^~~~~~~~~~~~~~~~~~
mupdate.c:1619:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(m->server), m->server,
                    ^~~~~~~~~~~~~~~~~
mupdate.c:1620:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(m->acl), m->acl);
                    ^~~~~~~~~~~~~~
mupdate.c:1624:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(m->mailbox), m->mailbox,
                    ^~~~~~~~~~~~~~~~~~
mupdate.c:1625:7: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    strlen(m->server), m->server);
                    ^~~~~~~~~~~~~~~~~
mupdate.c:1629:12: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                    tag, strlen(mailbox), mailbox);
                         ^~~~~~~~~~~~~~~
mupdate.c:1673:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(m->mailbox), m->mailbox,
                            ^~~~~~~~~~~~~~~~~~
mupdate.c:1674:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(m->server), m->server,
                            ^~~~~~~~~~~~~~~~~
mupdate.c:1675:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(m->acl), m->acl);
                            ^~~~~~~~~~~~~~
mupdate.c:1680:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(m->mailbox), m->mailbox,
                            ^~~~~~~~~~~~~~~~~~
mupdate.c:1681:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                            strlen(m->server), m->server);
                            ^~~~~~~~~~~~~~~~~
16 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  mupdate-slave.c
mupdate-slave.c:150:55: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
            accept(kicksock, (struct sockaddr *)&clientaddr, &len);
                                                             ^~~~
/usr/include/sys/socket.h:613:69: note: passing argument to parameter here
int     accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                        ^
mupdate-slave.c:333:53: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
          accept(kicksock, (struct sockaddr *)&clientaddr, &len);
                                                           ^~~~
/usr/include/sys/socket.h:613:69: note: passing argument to parameter here
int     accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
                                                                        ^
2 warnings generated.
gcc -c -I.. -I./../lib -I../et -I./../sieve  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4  -pthread  mutex_pthread.c
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib  -pthread -o mupdate  ../master/service-thread.o mupdate.o mupdate-slave.o mupdate-client.o  mutex_pthread.o tls.o libimap.a  ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto ../et/libcom_err.a -lwrap 
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/imtest
gcc -c -I.. -I./../lib -I../et  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 -I/usr/include -I/usr/include  -I/usr/pkg/include -DHAVE_CONFIG_H -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4 imtest.c
imtest.c:170:18: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (*)(void *, const char *, const char *, const char **, unsigned int *)' [-Wincompatible-pointer-types]
        SASL_CB_GETOPT, &mysasl_config, NULL    
                        ^~~~~~~~~~~~~~
imtest.c:722:12: warning: assigning to 'SSL_CIPHER *' (aka 'struct ssl_cipher_st *') from 'const SSL_CIPHER *' (aka 'const struct ssl_cipher_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    cipher = SSL_get_current_cipher(tls_conn);
           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
imtest.c:1766:29: warning: sizeof on pointer operation will return size of 'char *' instead of 'char [64]' [-Wsizeof-array-decay]
    snprintf(tag, sizeof(tag-1), "UN%d", i);
                         ~~~^
imtest.c:1786:62: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
    prot_printf(pout,"A003 APPEND %s (\\Seen) {%u}\r\n",mbox,size+strlen(HEADERS));
                                               ~~            ^~~~~~~~~~~~~~~~~~~~
                                               %lu
4 warnings generated.
gcc -L/usr/lib -R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -o imtest imtest.o ../lib/libcyrus.a ../lib/libcyrus_min.a -L/usr/pkg/lib  -R/usr/pkg/lib -lsasl2   -lresolv -lfl    -ldb4 -lssl -lcrypto
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/perl
### Making all in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/perl/imap
Checking if your kit is complete...
Looks good
Writing Makefile for Cyrus::IMAP
Writing MYMETA.yml and MYMETA.json
cp IMAP.pm blib/lib/Cyrus/IMAP.pm
cp IMAP/Admin.pm blib/lib/Cyrus/IMAP/Admin.pm
cp IMAP/Shell.pm blib/lib/Cyrus/IMAP/Shell.pm
cp IMAP/IMSP.pm blib/lib/Cyrus/IMAP/IMSP.pm
/usr/pkg/bin/perl /usr/pkg/lib/perl5/5.18.0/ExtUtils/xsubpp  -typemap /usr/pkg/lib/perl5/5.18.0/ExtUtils/typemap -typemap typemap  IMAP.xs > IMAP.xsc && mv IMAP.xsc IMAP.c
gcc -c  -I../../lib -I/usr/pkg/include -I/usr/include  -O2 -pthread -I/usr/include -fno-strict-aliasing -pipe -fstack-protector -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4    -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/db4    -DVERSION=\"1.00\"  -DXS_VERSION=\"1.00\" -DPIC -fPIC "-I/usr/pkg/lib/perl5/5.18.0/x86_64-netbsd-thread-multi/CORE"  -DPERL_POLLUTE IMAP.c
IMAP.xs:75:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  croak(s);
        ^
IMAP.xs:139:22: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
    sprintf(tmp,"%d",reply->msgno);
                 ~~  ^~~~~~~~~~~~
                 %ld
IMAP.xs:206:10: warning: passing 'unsigned char [1]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
        strncpy(text->password->data, ptr, text->password->len);
                ^~~~~~~~~~~~~~~~~~~~
/usr/include/string.h:64:32: note: passing argument to parameter here
char    *strncpy(char * __restrict, const char * __restrict, size_t);
                                  ^
IMAP.xs:214:19: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (void *, int, const char **, unsigned int *)' [-Wincompatible-pointer-types]
  { SASL_CB_USER, get_username, NULL }, 
                  ^~~~~~~~~~~~
IMAP.xs:215:23: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (void *, int, const char **, unsigned int *)' [-Wincompatible-pointer-types]
  { SASL_CB_AUTHNAME, get_username, NULL }, 
                      ^~~~~~~~~~~~
IMAP.xs:216:19: warning: incompatible pointer types initializing 'int (*)(void)' with an expression of type 'int (sasl_conn_t *, void *, int, sasl_secret_t **)' [-Wincompatible-pointer-types]
  { SASL_CB_PASS, get_password, NULL },
                  ^~~~~~~~~~~~
IMAP.xs:408:14: warning: passing 'unsigned char [1]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
            strncpy(client->password->data, password, client->password->len);
                    ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/string.h:64:32: note: passing argument to parameter here
char    *strncpy(char * __restrict, const char * __restrict, size_t);
                                  ^
7 warnings generated.
Running Mkbootstrap for Cyrus::IMAP ()
chmod 644 IMAP.bs
rm -f blib/arch/auto/Cyrus/IMAP/IMAP.so
LD_RUN_PATH="/usr/pkg/lib:/usr/lib" gcc  -Wl,--whole-archive -shared  -L/usr/pkg/lib -fstack-protector IMAP.o -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o blib/arch/auto/Cyrus/IMAP/IMAP.so ../../lib/libcyrus.a ../../lib/libcyrus_min.a	  -ldb4 -L/usr/pkg/lib -R/usr/pkg/lib -lsasl2 -L/usr/lib -L/usr/lib -R/usr/lib -lssl -lcrypto  	 
../../lib/libcyrus_min.a(xstrlcpy.o): In function `strlcpy':
xstrlcpy.c:(.text+0x0): multiple definition of `strlcpy'
../../lib/libcyrus.a(xstrlcpy.o):xstrlcpy.c:(.text+0x0): first defined here
../../lib/libcyrus_min.a(xstrlcat.o): In function `strlcat':
xstrlcat.c:(.text+0x0): multiple definition of `strlcat'
../../lib/libcyrus.a(xstrlcat.o):xstrlcat.c:(.text+0x0): first defined here
../../lib/libcyrus_min.a(xmalloc.o): In function `xmalloc':
xmalloc.c:(.text+0x0): multiple definition of `xmalloc'
../../lib/libcyrus.a(xmalloc.o):xmalloc.c:(.text+0x0): first defined here
../../lib/libcyrus_min.a(xmalloc.o): In function `xrealloc':
xmalloc.c:(.text+0x80): multiple definition of `xrealloc'
../../lib/libcyrus.a(xmalloc.o):xmalloc.c:(.text+0x80): first defined here
../../lib/libcyrus_min.a(xmalloc.o): In function `xstrdup':
xmalloc.c:(.text+0xc0): multiple definition of `xstrdup'
../../lib/libcyrus.a(xmalloc.o):xmalloc.c:(.text+0xc0): first defined here
../../lib/libcyrus_min.a(xmalloc.o): In function `xstrndup':
xmalloc.c:(.text+0x110): multiple definition of `xstrndup'
../../lib/libcyrus.a(xmalloc.o):xmalloc.c:(.text+0x110): first defined here
../../lib/libcyrus_min.a(xmalloc.o): In function `xzmalloc':
xmalloc.c:(.text+0x30): multiple definition of `xzmalloc'
../../lib/libcyrus.a(xmalloc.o):xmalloc.c:(.text+0x30): first defined here
../../lib/libcyrus_min.a(strhash.o): In function `strhash':
strhash.c:(.text+0x0): multiple definition of `strhash'
../../lib/libcyrus.a(strhash.o):strhash.c:(.text+0x0): first defined here
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make: stopped in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/perl/imap
*** Error code 1

Stop.
make: stopped in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1/perl
*** Error code 1

Stop.
make: stopped in /scratch/mail/cyrus-imapd/work/cyrus-imapd-2.2.13p1
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/mail/cyrus-imapd
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/mail/cyrus-imapd
