+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent PGSQL_VERSION_REQD=14 MYSQL_VERSION_REQD=mariadb1011 WRKLOG=/tmp/bulklog/dbmail-3.3.1nb4/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent PGSQL_VERSION_REQD=14 MYSQL_VERSION_REQD=mariadb1011 WRKLOG=/tmp/bulklog/dbmail-3.3.1nb4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for dbmail-3.3.1nb4
/opt/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory '/home/pbulk/build/mail/dbmail/work/dbmail-3.3.1'
Making all in src
gmake[2]: Entering directory '/home/pbulk/build/mail/dbmail/work/dbmail-3.3.1/src'
Making all in modules
gmake[3]: Entering directory '/home/pbulk/build/mail/dbmail/work/dbmail-3.3.1/src/modules'
depbase=`echo sortnull.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/usr/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT sortnull.lo -MD -MP -MF $depbase.Tpo -c -o sortnull.lo sortnull.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT sortnull.lo -MD -MP -MF .deps/sortnull.Tpo -c sortnull.c  -fPIC -DPIC -o .libs/sortnull.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from ../../src/dbmail.h:93,
                 from sortnull.c:29:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from ../../src/dbmail.h:32:
../../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT sortnull.lo -MD -MP -MF .deps/sortnull.Tpo -c sortnull.c -o sortnull.o >/dev/null 2>&1
/usr/bin/bash ../../libtool  --tag=CC   --mode=link gcc -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -module -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lnsl -lsocket -lintl -liconv -L/usr/lib -lkrb5 -lgss -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg/lib -lgmodule-2.0 -lgthread-2.0 -Wl,-R/opt/pkg/lib -lglib-2.0 -L/opt/pkg/lib -lgmime-3.0 -lgio-2.0 -lgobject-2.0 -Wl,-R/opt/pkg/lib -lglib-2.0 -lm -lmhash -levent_pthreads -levent -L/opt/pkg -lssl -lcrypto -lzdb -o libsort_null.la  sortnull.lo  -lldap 
libtool: link: ar cr .libs/libsort_null.a .libs/sortnull.o 
libtool: link: ranlib .libs/libsort_null.a
libtool: link: ( cd ".libs" && rm -f "libsort_null.la" && ln -s "../libsort_null.la" "libsort_null.la" )
depbase=`echo sortsieve.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/usr/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT sortsieve.lo -MD -MP -MF $depbase.Tpo -c -o sortsieve.lo sortsieve.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT sortsieve.lo -MD -MP -MF .deps/sortsieve.Tpo -c sortsieve.c  -fPIC -DPIC -o .libs/sortsieve.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from ../../src/dbmail.h:93,
                 from sortsieve.c:30:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from ../../src/dbmail.h:32:
../../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
sortsieve.c: In function 'sort_sieve_get_config':
sortsieve.c:72:9: warning: 'config_get_value' reading 1024 bytes from a region of size 15 [-Wstringop-overread]
   72 |         config_get_value("SIEVE_VACATION", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sortsieve.c:72:9: note: referencing argument 1 of type 'const char[1024]'
sortsieve.c:72:9: note: referencing argument 3 of type 'char[1024]'
In file included from ../../src/dbmail.h:129:
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
sortsieve.c:77:9: warning: 'config_get_value' reading 1024 bytes from a region of size 13 [-Wstringop-overread]
   77 |         config_get_value("SIEVE_NOTIFY", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sortsieve.c:77:9: note: referencing argument 1 of type 'const char[1024]'
sortsieve.c:77:9: note: referencing argument 3 of type 'char[1024]'
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
sortsieve.c:82:9: warning: 'config_get_value' reading 1024 bytes from a region of size 12 [-Wstringop-overread]
   82 |         config_get_value("SIEVE_DEBUG", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sortsieve.c:82:9: note: referencing argument 1 of type 'const char[1024]'
sortsieve.c:82:9: note: referencing argument 3 of type 'char[1024]'
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
sortsieve.c: In function 'send_alert':
sortsieve.c:152:13: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
  152 |         if (config_get_value("POSTMASTER", "DBMAIL", postmaster) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sortsieve.c:152:13: note: referencing argument 1 of type 'const char[1024]'
sortsieve.c:152:13: note: referencing argument 3 of type 'char[1024]'
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT sortsieve.lo -MD -MP -MF .deps/sortsieve.Tpo -c sortsieve.c -o sortsieve.o >/dev/null 2>&1
/usr/bin/bash ../../libtool  --tag=CC   --mode=link gcc -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -module -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lnsl -lsocket -lintl -liconv -L/usr/lib -lkrb5 -lgss -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg/lib -lgmodule-2.0 -lgthread-2.0 -Wl,-R/opt/pkg/lib -lglib-2.0 -L/opt/pkg/lib -lgmime-3.0 -lgio-2.0 -lgobject-2.0 -Wl,-R/opt/pkg/lib -lglib-2.0 -lm -lmhash -levent_pthreads -levent -L/opt/pkg -lssl -lcrypto -lzdb -o libsort_sieve.la -rpath /opt/pkg/lib/dbmail sortsieve.lo -L/opt/pkg/lib -lsieve -lldap 
libtool: link: gcc -shared  -fPIC -DPIC -Wl,-z -Wl,text -Wl,-h -Wl,libsort_sieve.so.0 -o .libs/libsort_sieve.so.0.0.0  .libs/sortsieve.o   -R/home/pbulk/build/mail/dbmail/work/.buildlink/lib -R/home/pbulk/build/mail/dbmail/work/.buildlink/lib -L/home/pbulk/build/mail/dbmail/work/.buildlink/lib /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgmime-3.0.so -lgmodule-2.0 -lgthread-2.0 /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libz.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgpgme.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libassuan.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgpg-error.so -lgio-2.0 -lgobject-2.0 -lglib-2.0 /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libmhash.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libevent_pthreads.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libevent.so -lsendfile -L/home/pbulk/build/mail/dbmail/work/.buildlink /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libzdb.so -lpq -lmariadb /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libintl.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libiconv.so -lkrb5 -lgss /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libsqlite3.so -lm -ldl /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libsieve.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libldap.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/liblber.so -lresolv -lgen -lnsl -lsocket -lssl -lcrypto  -O2 -msave-args -Wl,-rpath -Wl,/opt/pkg/lib -Wl,-rpath -Wl,/opt/pkg/lib -Wl,-rpath -Wl,/opt/pkg/lib  
libtool: link: (cd ".libs" && rm -f "libsort_sieve.so.0" && ln -s "libsort_sieve.so.0.0.0" "libsort_sieve.so.0")
libtool: link: (cd ".libs" && rm -f "libsort_sieve.so" && ln -s "libsort_sieve.so.0.0.0" "libsort_sieve.so")
libtool: link: ar cr .libs/libsort_sieve.a  sortsieve.o
libtool: link: ranlib .libs/libsort_sieve.a
libtool: link: ( cd ".libs" && rm -f "libsort_sieve.la" && ln -s "../libsort_sieve.la" "libsort_sieve.la" )
depbase=`echo authldap.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/usr/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT authldap.lo -MD -MP -MF $depbase.Tpo -c -o authldap.lo authldap.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT authldap.lo -MD -MP -MF .deps/authldap.Tpo -c authldap.c  -fPIC -DPIC -o .libs/authldap.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from ../../src/dbmail.h:93,
                 from authldap.c:25:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from ../../src/dbmail.h:32:
../../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
authldap.c: In function 'dm_ldap_get_filter':
authldap.c:377:26: warning: cast between incompatible function types from 'void (*)(void *)' to 'void (*)(void *, void *)' [-Wcast-function-type]
  377 |         g_list_foreach(l,(GFunc)g_free,NULL);
      |                          ^
authldap.c: In function 'dm_ldap_get_freeid':
authldap.c:493:28: warning: cast between incompatible function types from 'void (*)(void *)' to 'void (*)(void *, void *)' [-Wcast-function-type]
  493 |         g_list_foreach(ids,(GFunc)g_free,NULL);
      |                            ^
authldap.c: In function 'auth_check_user_ext':
authldap.c:903:34: warning: cast between incompatible function types from 'void (*)(void *)' to 'void (*)(void *, void *)' [-Wcast-function-type]
  903 |                 g_list_foreach(l,(GFunc)g_free,NULL);
      |                                  ^
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/giochannel.h:36,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib.h:56,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0/gmime/gmime.h:25,
                 from ../../src/dbmail.h:59:
authldap.c: In function 'dm_ldap_get_filter':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:376:9: note: in expansion of macro 'g_string_free'
  376 |         g_string_free(q,FALSE);
      |         ^~~~~~~~~~~~~
authldap.c: In function 'auth_check_user_ext':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:902:17: note: in expansion of macro 'g_string_free'
  902 |                 g_string_free(q,FALSE);
      |                 ^~~~~~~~~~~~~
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:917:17: note: in expansion of macro 'g_string_free'
  917 |                 g_string_free(q,FALSE);
      |                 ^~~~~~~~~~~~~
authldap.c: In function '__auth_get_config':
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:58:9: note: in expansion of macro 'GETCONFIGVALUE'
   58 |         GETCONFIGVALUE("BIND_DN",               "LDAP", _ldap_cfg.bind_dn);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:58:9: note: in expansion of macro 'GETCONFIGVALUE'
   58 |         GETCONFIGVALUE("BIND_DN",               "LDAP", _ldap_cfg.bind_dn);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:58:9: note: in expansion of macro 'GETCONFIGVALUE'
   58 |         GETCONFIGVALUE("BIND_DN",               "LDAP", _ldap_cfg.bind_dn);
      |         ^~~~~~~~~~~~~~
In file included from ../../src/dbmail.h:129:
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:59:9: note: in expansion of macro 'GETCONFIGVALUE'
   59 |         GETCONFIGVALUE("BIND_PW",               "LDAP", _ldap_cfg.bind_pw);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:59:9: note: in expansion of macro 'GETCONFIGVALUE'
   59 |         GETCONFIGVALUE("BIND_PW",               "LDAP", _ldap_cfg.bind_pw);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:59:9: note: in expansion of macro 'GETCONFIGVALUE'
   59 |         GETCONFIGVALUE("BIND_PW",               "LDAP", _ldap_cfg.bind_pw);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:60:9: note: in expansion of macro 'GETCONFIGVALUE'
   60 |         GETCONFIGVALUE("BASE_DN",               "LDAP", _ldap_cfg.base_dn);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:60:9: note: in expansion of macro 'GETCONFIGVALUE'
   60 |         GETCONFIGVALUE("BASE_DN",               "LDAP", _ldap_cfg.base_dn);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:60:9: note: in expansion of macro 'GETCONFIGVALUE'
   60 |         GETCONFIGVALUE("BASE_DN",               "LDAP", _ldap_cfg.base_dn);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 5 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:61:9: note: in expansion of macro 'GETCONFIGVALUE'
   61 |         GETCONFIGVALUE("PORT",                  "LDAP", _ldap_cfg.port);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:61:9: note: in expansion of macro 'GETCONFIGVALUE'
   61 |         GETCONFIGVALUE("PORT",                  "LDAP", _ldap_cfg.port);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:61:9: note: in expansion of macro 'GETCONFIGVALUE'
   61 |         GETCONFIGVALUE("PORT",                  "LDAP", _ldap_cfg.port);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 4 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:62:9: note: in expansion of macro 'GETCONFIGVALUE'
   62 |         GETCONFIGVALUE("URI",                   "LDAP", _ldap_cfg.uri);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:62:9: note: in expansion of macro 'GETCONFIGVALUE'
   62 |         GETCONFIGVALUE("URI",                   "LDAP", _ldap_cfg.uri);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:62:9: note: in expansion of macro 'GETCONFIGVALUE'
   62 |         GETCONFIGVALUE("URI",                   "LDAP", _ldap_cfg.uri);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:63:9: note: in expansion of macro 'GETCONFIGVALUE'
   63 |         GETCONFIGVALUE("VERSION",               "LDAP", _ldap_cfg.version);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:63:9: note: in expansion of macro 'GETCONFIGVALUE'
   63 |         GETCONFIGVALUE("VERSION",               "LDAP", _ldap_cfg.version);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:63:9: note: in expansion of macro 'GETCONFIGVALUE'
   63 |         GETCONFIGVALUE("VERSION",               "LDAP", _ldap_cfg.version);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 9 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:64:9: note: in expansion of macro 'GETCONFIGVALUE'
   64 |         GETCONFIGVALUE("HOSTNAME",              "LDAP", _ldap_cfg.hostname);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:64:9: note: in expansion of macro 'GETCONFIGVALUE'
   64 |         GETCONFIGVALUE("HOSTNAME",              "LDAP", _ldap_cfg.hostname);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:64:9: note: in expansion of macro 'GETCONFIGVALUE'
   64 |         GETCONFIGVALUE("HOSTNAME",              "LDAP", _ldap_cfg.hostname);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 17 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:65:9: note: in expansion of macro 'GETCONFIGVALUE'
   65 |         GETCONFIGVALUE("USER_OBJECTCLASS",      "LDAP", _ldap_cfg.user_objectclass);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:65:9: note: in expansion of macro 'GETCONFIGVALUE'
   65 |         GETCONFIGVALUE("USER_OBJECTCLASS",      "LDAP", _ldap_cfg.user_objectclass);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:65:9: note: in expansion of macro 'GETCONFIGVALUE'
   65 |         GETCONFIGVALUE("USER_OBJECTCLASS",      "LDAP", _ldap_cfg.user_objectclass);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 17 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:66:9: note: in expansion of macro 'GETCONFIGVALUE'
   66 |         GETCONFIGVALUE("FORW_OBJECTCLASS",      "LDAP", _ldap_cfg.forw_objectclass);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:66:9: note: in expansion of macro 'GETCONFIGVALUE'
   66 |         GETCONFIGVALUE("FORW_OBJECTCLASS",      "LDAP", _ldap_cfg.forw_objectclass);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:66:9: note: in expansion of macro 'GETCONFIGVALUE'
   66 |         GETCONFIGVALUE("FORW_OBJECTCLASS",      "LDAP", _ldap_cfg.forw_objectclass);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 10 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:67:9: note: in expansion of macro 'GETCONFIGVALUE'
   67 |         GETCONFIGVALUE("CN_STRING",             "LDAP", _ldap_cfg.cn_string);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:67:9: note: in expansion of macro 'GETCONFIGVALUE'
   67 |         GETCONFIGVALUE("CN_STRING",             "LDAP", _ldap_cfg.cn_string);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:67:9: note: in expansion of macro 'GETCONFIGVALUE'
   67 |         GETCONFIGVALUE("CN_STRING",             "LDAP", _ldap_cfg.cn_string);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 10 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:68:9: note: in expansion of macro 'GETCONFIGVALUE'
   68 |         GETCONFIGVALUE("FIELD_UID",             "LDAP", _ldap_cfg.field_uid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:68:9: note: in expansion of macro 'GETCONFIGVALUE'
   68 |         GETCONFIGVALUE("FIELD_UID",             "LDAP", _ldap_cfg.field_uid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:68:9: note: in expansion of macro 'GETCONFIGVALUE'
   68 |         GETCONFIGVALUE("FIELD_UID",             "LDAP", _ldap_cfg.field_uid);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 10 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:69:9: note: in expansion of macro 'GETCONFIGVALUE'
   69 |         GETCONFIGVALUE("FIELD_CID",             "LDAP", _ldap_cfg.field_cid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:69:9: note: in expansion of macro 'GETCONFIGVALUE'
   69 |         GETCONFIGVALUE("FIELD_CID",             "LDAP", _ldap_cfg.field_cid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:69:9: note: in expansion of macro 'GETCONFIGVALUE'
   69 |         GETCONFIGVALUE("FIELD_CID",             "LDAP", _ldap_cfg.field_cid);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:70:9: note: in expansion of macro 'GETCONFIGVALUE'
   70 |         GETCONFIGVALUE("MIN_CID",               "LDAP", _ldap_cfg.min_cid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:70:9: note: in expansion of macro 'GETCONFIGVALUE'
   70 |         GETCONFIGVALUE("MIN_CID",               "LDAP", _ldap_cfg.min_cid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:70:9: note: in expansion of macro 'GETCONFIGVALUE'
   70 |         GETCONFIGVALUE("MIN_CID",               "LDAP", _ldap_cfg.min_cid);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:71:9: note: in expansion of macro 'GETCONFIGVALUE'
   71 |         GETCONFIGVALUE("MAX_CID",               "LDAP", _ldap_cfg.max_cid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:71:9: note: in expansion of macro 'GETCONFIGVALUE'
   71 |         GETCONFIGVALUE("MAX_CID",               "LDAP", _ldap_cfg.max_cid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:71:9: note: in expansion of macro 'GETCONFIGVALUE'
   71 |         GETCONFIGVALUE("MAX_CID",               "LDAP", _ldap_cfg.max_cid);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 10 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:72:9: note: in expansion of macro 'GETCONFIGVALUE'
   72 |         GETCONFIGVALUE("FIELD_NID",             "LDAP", _ldap_cfg.field_nid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:72:9: note: in expansion of macro 'GETCONFIGVALUE'
   72 |         GETCONFIGVALUE("FIELD_NID",             "LDAP", _ldap_cfg.field_nid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:72:9: note: in expansion of macro 'GETCONFIGVALUE'
   72 |         GETCONFIGVALUE("FIELD_NID",             "LDAP", _ldap_cfg.field_nid);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:73:9: note: in expansion of macro 'GETCONFIGVALUE'
   73 |         GETCONFIGVALUE("MIN_NID",               "LDAP", _ldap_cfg.min_nid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:73:9: note: in expansion of macro 'GETCONFIGVALUE'
   73 |         GETCONFIGVALUE("MIN_NID",               "LDAP", _ldap_cfg.min_nid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:73:9: note: in expansion of macro 'GETCONFIGVALUE'
   73 |         GETCONFIGVALUE("MIN_NID",               "LDAP", _ldap_cfg.min_nid);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:74:9: note: in expansion of macro 'GETCONFIGVALUE'
   74 |         GETCONFIGVALUE("MAX_NID",               "LDAP", _ldap_cfg.max_nid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:74:9: note: in expansion of macro 'GETCONFIGVALUE'
   74 |         GETCONFIGVALUE("MAX_NID",               "LDAP", _ldap_cfg.max_nid);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:74:9: note: in expansion of macro 'GETCONFIGVALUE'
   74 |         GETCONFIGVALUE("MAX_NID",               "LDAP", _ldap_cfg.max_nid);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:75:9: note: in expansion of macro 'GETCONFIGVALUE'
   75 |         GETCONFIGVALUE("FIELD_MAIL",            "LDAP", _ldap_cfg.field_mail);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:75:9: note: in expansion of macro 'GETCONFIGVALUE'
   75 |         GETCONFIGVALUE("FIELD_MAIL",            "LDAP", _ldap_cfg.field_mail);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:75:9: note: in expansion of macro 'GETCONFIGVALUE'
   75 |         GETCONFIGVALUE("FIELD_MAIL",            "LDAP", _ldap_cfg.field_mail);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 12 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:76:9: note: in expansion of macro 'GETCONFIGVALUE'
   76 |         GETCONFIGVALUE("FIELD_QUOTA",           "LDAP", _ldap_cfg.field_maxmail);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:76:9: note: in expansion of macro 'GETCONFIGVALUE'
   76 |         GETCONFIGVALUE("FIELD_QUOTA",           "LDAP", _ldap_cfg.field_maxmail);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:76:9: note: in expansion of macro 'GETCONFIGVALUE'
   76 |         GETCONFIGVALUE("FIELD_QUOTA",           "LDAP", _ldap_cfg.field_maxmail);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 13 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:77:9: note: in expansion of macro 'GETCONFIGVALUE'
   77 |         GETCONFIGVALUE("FIELD_PASSWD",          "LDAP", _ldap_cfg.field_passwd);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:77:9: note: in expansion of macro 'GETCONFIGVALUE'
   77 |         GETCONFIGVALUE("FIELD_PASSWD",          "LDAP", _ldap_cfg.field_passwd);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:77:9: note: in expansion of macro 'GETCONFIGVALUE'
   77 |         GETCONFIGVALUE("FIELD_PASSWD",          "LDAP", _ldap_cfg.field_passwd);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 16 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:78:9: note: in expansion of macro 'GETCONFIGVALUE'
   78 |         GETCONFIGVALUE("FIELD_FWDTARGET",       "LDAP", _ldap_cfg.field_fwdtarget);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:78:9: note: in expansion of macro 'GETCONFIGVALUE'
   78 |         GETCONFIGVALUE("FIELD_FWDTARGET",       "LDAP", _ldap_cfg.field_fwdtarget);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:78:9: note: in expansion of macro 'GETCONFIGVALUE'
   78 |         GETCONFIGVALUE("FIELD_FWDTARGET",       "LDAP", _ldap_cfg.field_fwdtarget);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 13 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:79:9: note: in expansion of macro 'GETCONFIGVALUE'
   79 |         GETCONFIGVALUE("QUERY_STRING",          "LDAP", _ldap_cfg.query_string);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:79:9: note: in expansion of macro 'GETCONFIGVALUE'
   79 |         GETCONFIGVALUE("QUERY_STRING",          "LDAP", _ldap_cfg.query_string);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:79:9: note: in expansion of macro 'GETCONFIGVALUE'
   79 |         GETCONFIGVALUE("QUERY_STRING",          "LDAP", _ldap_cfg.query_string);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 6 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:80:9: note: in expansion of macro 'GETCONFIGVALUE'
   80 |         GETCONFIGVALUE("SCOPE",                 "LDAP", _ldap_cfg.scope);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:80:9: note: in expansion of macro 'GETCONFIGVALUE'
   80 |         GETCONFIGVALUE("SCOPE",                 "LDAP", _ldap_cfg.scope);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:80:9: note: in expansion of macro 'GETCONFIGVALUE'
   80 |         GETCONFIGVALUE("SCOPE",                 "LDAP", _ldap_cfg.scope);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 10 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:81:9: note: in expansion of macro 'GETCONFIGVALUE'
   81 |         GETCONFIGVALUE("REFERRALS",             "LDAP", _ldap_cfg.referrals);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:81:9: note: in expansion of macro 'GETCONFIGVALUE'
   81 |         GETCONFIGVALUE("REFERRALS",             "LDAP", _ldap_cfg.referrals);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:81:9: note: in expansion of macro 'GETCONFIGVALUE'
   81 |         GETCONFIGVALUE("REFERRALS",             "LDAP", _ldap_cfg.referrals);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
../../src/dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 14 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:82:9: note: in expansion of macro 'GETCONFIGVALUE'
   82 |         GETCONFIGVALUE("QUERY_TIMEOUT",         "LDAP", _ldap_cfg.query_timeout);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:82:9: note: in expansion of macro 'GETCONFIGVALUE'
   82 |         GETCONFIGVALUE("QUERY_TIMEOUT",         "LDAP", _ldap_cfg.query_timeout);
      |         ^~~~~~~~~~~~~~
../../src/dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c:82:9: note: in expansion of macro 'GETCONFIGVALUE'
   82 |         GETCONFIGVALUE("QUERY_TIMEOUT",         "LDAP", _ldap_cfg.query_timeout);
      |         ^~~~~~~~~~~~~~
../../src/dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
authldap.c: In function 'auth_user_exists':
authldap.c:669:46: warning: '=' directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=]
  669 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%s)", _ldap_cfg.field_uid,
      |                                              ^
authldap.c:669:9: note: 'snprintf' output 4 or more bytes (assuming 1027) into a destination of size 1024
  669 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%s)", _ldap_cfg.field_uid,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  670 |                  username);
      |                  ~~~~~~~~~
authldap.c: In function 'auth_get_userid':
authldap.c:694:46: warning: '=' directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=]
  694 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid, user_idnr);
      |                                              ^
authldap.c:694:9: note: 'snprintf' output between 5 and 1047 bytes into a destination of size 1024
  694 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid, user_idnr);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c: In function 'auth_check_userid':
authldap.c:709:46: warning: '=' directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=]
  709 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid, user_idnr);
      |                                              ^
authldap.c:709:9: note: 'snprintf' output between 5 and 1047 bytes into a destination of size 1024
  709 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid, user_idnr);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
authldap.c: In function 'auth_getclientid':
authldap.c:742:46: warning: '=' directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=]
  742 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid,
      |                                              ^
authldap.c:742:42: note: directive argument in the range [1, 18446744073709551615]
  742 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid,
      |                                          ^~~~~~~
authldap.c:742:9: note: 'snprintf' output between 5 and 1047 bytes into a destination of size 1024
  742 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  743 |                  user_idnr);
      |                  ~~~~~~~~~~
authldap.c: In function 'auth_getmaxmailsize':
authldap.c:769:46: warning: '=' directive output may be truncated writing 1 byte into a region of size between 0 and 1023 [-Wformat-truncation=]
  769 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid,
      |                                              ^
authldap.c:769:42: note: directive argument in the range [1, 18446744073709551615]
  769 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid,
      |                                          ^~~~~~~
authldap.c:769:9: note: 'snprintf' output between 5 and 1047 bytes into a destination of size 1024
  769 |         snprintf(query, AUTH_QUERY_SIZE, "(%s=%" PRIu64 ")", _ldap_cfg.field_nid,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  770 |                  user_idnr);
      |                  ~~~~~~~~~~
authldap.c: In function 'auth_delete_user':
authldap.c:1105:46: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1022 [-Wformat-truncation=]
 1105 |         snprintf(query, AUTH_QUERY_SIZE-1, "(%s=%s)", _ldap_cfg.field_uid, username);
      |                                              ^~       ~~~~~~~~~~~~~~~~~~~
authldap.c:1105:9: note: 'snprintf' output 4 or more bytes (assuming 1027) into a destination of size 1023
 1105 |         snprintf(query, AUTH_QUERY_SIZE-1, "(%s=%s)", _ldap_cfg.field_uid, username);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT authldap.lo -MD -MP -MF .deps/authldap.Tpo -c authldap.c -o authldap.o >/dev/null 2>&1
/usr/bin/bash ../../libtool  --tag=CC   --mode=link gcc -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -module -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lnsl -lsocket -lintl -liconv -L/usr/lib -lkrb5 -lgss -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg/lib -lgmodule-2.0 -lgthread-2.0 -Wl,-R/opt/pkg/lib -lglib-2.0 -L/opt/pkg/lib -lgmime-3.0 -lgio-2.0 -lgobject-2.0 -Wl,-R/opt/pkg/lib -lglib-2.0 -lm -lmhash -levent_pthreads -levent -L/opt/pkg -lssl -lcrypto -lzdb -o libauth_ldap.la -rpath /opt/pkg/lib/dbmail authldap.lo -lcrypt -L/opt/pkg/lib -lldap  -lldap 
libtool: link: gcc -shared  -fPIC -DPIC -Wl,-z -Wl,text -Wl,-h -Wl,libauth_ldap.so.0 -o .libs/libauth_ldap.so.0.0.0  .libs/authldap.o   -R/home/pbulk/build/mail/dbmail/work/.buildlink/lib -R/home/pbulk/build/mail/dbmail/work/.buildlink/lib -L/home/pbulk/build/mail/dbmail/work/.buildlink/lib /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgmime-3.0.so -lgmodule-2.0 -lgthread-2.0 /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libz.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgpgme.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libassuan.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgpg-error.so -lgio-2.0 -lgobject-2.0 -lglib-2.0 /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libmhash.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libevent_pthreads.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libevent.so -lsendfile -L/home/pbulk/build/mail/dbmail/work/.buildlink /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libzdb.so -lpq -lmariadb /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libintl.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libiconv.so -lkrb5 -lgss /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libsqlite3.so -lm -ldl -lcrypt /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libldap.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/liblber.so -lresolv -lgen -lnsl -lsocket -lssl -lcrypto  -O2 -msave-args -Wl,-rpath -Wl,/opt/pkg/lib -Wl,-rpath -Wl,/opt/pkg/lib -Wl,-rpath -Wl,/opt/pkg/lib  
libtool: link: (cd ".libs" && rm -f "libauth_ldap.so.0" && ln -s "libauth_ldap.so.0.0.0" "libauth_ldap.so.0")
libtool: link: (cd ".libs" && rm -f "libauth_ldap.so" && ln -s "libauth_ldap.so.0.0.0" "libauth_ldap.so")
libtool: link: ar cr .libs/libauth_ldap.a  authldap.o
libtool: link: ranlib .libs/libauth_ldap.a
libtool: link: ( cd ".libs" && rm -f "libauth_ldap.la" && ln -s "../libauth_ldap.la" "libauth_ldap.la" )
depbase=`echo authsql.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/usr/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT authsql.lo -MD -MP -MF $depbase.Tpo -c -o authsql.lo authsql.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT authsql.lo -MD -MP -MF .deps/authsql.Tpo -c authsql.c  -fPIC -DPIC -o .libs/authsql.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from ../../src/dbmail.h:93,
                 from authsql.c:29:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from ../../src/dbmail.h:32:
../../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
authsql.c: In function 'user_get_deliver_to':
authsql.c:166:16: warning: variable 'd' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  166 |         GList *d = NULL;
      |                ^
authsql.c: In function 'auth_get_known_users':
authsql.c:62:17: warning: variable 'users' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
   62 |         GList * users = NULL;
      |                 ^~~~~
authsql.c: In function 'auth_get_known_aliases':
authsql.c:81:17: warning: variable 'aliases' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
   81 |         GList * aliases = NULL;
      |                 ^~~~~~~
authsql.c: In function 'auth_getencryption':
authsql.c:143:15: warning: variable 'res' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  143 |         char *res = NULL;
      |               ^~~
authsql.c: In function 'auth_change_password':
authsql.c:272:80: warning: argument 'enctype' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  272 | int auth_change_password(uint64_t user_idnr, const char *new_pass, const char *enctype)
      |                                                                    ~~~~~~~~~~~~^~~~~~~
authsql.c: In function 'auth_get_userid':
authsql.c:424:15: warning: variable 'result' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  424 |         char *result = NULL;
      |               ^~~~~~
authsql.c: In function 'auth_get_user_aliases':
authsql.c:635:16: warning: variable 'l' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  635 |         GList *l = NULL;
      |                ^
authsql.c: In function 'auth_get_aliases_ext':
authsql.c:659:16: warning: variable 'l' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  659 |         GList *l = NULL;
      |                ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT authsql.lo -MD -MP -MF .deps/authsql.Tpo -c authsql.c -o authsql.o >/dev/null 2>&1
/usr/bin/bash ../../libtool  --tag=CC   --mode=link gcc -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -module -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lnsl -lsocket -lintl -liconv -L/usr/lib -lkrb5 -lgss -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg/lib -lgmodule-2.0 -lgthread-2.0 -Wl,-R/opt/pkg/lib -lglib-2.0 -L/opt/pkg/lib -lgmime-3.0 -lgio-2.0 -lgobject-2.0 -Wl,-R/opt/pkg/lib -lglib-2.0 -lm -lmhash -levent_pthreads -levent -L/opt/pkg -lssl -lcrypto -lzdb -o libauth_sql.la -rpath /opt/pkg/lib/dbmail authsql.lo -lcrypt -lldap 
libtool: link: gcc -shared  -fPIC -DPIC -Wl,-z -Wl,text -Wl,-h -Wl,libauth_sql.so.0 -o .libs/libauth_sql.so.0.0.0  .libs/authsql.o   -R/home/pbulk/build/mail/dbmail/work/.buildlink/lib -R/home/pbulk/build/mail/dbmail/work/.buildlink/lib -L/home/pbulk/build/mail/dbmail/work/.buildlink/lib /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgmime-3.0.so -lgmodule-2.0 -lgthread-2.0 /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libz.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgpgme.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libassuan.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libgpg-error.so -lgio-2.0 -lgobject-2.0 -lglib-2.0 /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libmhash.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libevent_pthreads.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libevent.so -lsendfile -L/home/pbulk/build/mail/dbmail/work/.buildlink /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libzdb.so -lpq -lmariadb /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libintl.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libiconv.so -lkrb5 -lgss /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libsqlite3.so -lm -ldl -lcrypt /home/pbulk/build/mail/dbmail/work/.buildlink/lib/libldap.so /home/pbulk/build/mail/dbmail/work/.buildlink/lib/liblber.so -lresolv -lgen -lnsl -lsocket -lssl -lcrypto  -O2 -msave-args -Wl,-rpath -Wl,/opt/pkg/lib -Wl,-rpath -Wl,/opt/pkg/lib -Wl,-rpath -Wl,/opt/pkg/lib  
libtool: link: (cd ".libs" && rm -f "libauth_sql.so.0" && ln -s "libauth_sql.so.0.0.0" "libauth_sql.so.0")
libtool: link: (cd ".libs" && rm -f "libauth_sql.so" && ln -s "libauth_sql.so.0.0.0" "libauth_sql.so")
libtool: link: ar cr .libs/libauth_sql.a  authsql.o
libtool: link: ranlib .libs/libauth_sql.a
libtool: link: ( cd ".libs" && rm -f "libauth_sql.la" && ln -s "../libauth_sql.la" "libauth_sql.la" )
gmake[3]: Leaving directory '/home/pbulk/build/mail/dbmail/work/dbmail-3.3.1/src/modules'
gmake[3]: Entering directory '/home/pbulk/build/mail/dbmail/work/dbmail-3.3.1/src'
depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from main.c:27:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_user.lo -MD -MP -MF .deps/libdbmail_la-dm_user.Tpo -c -o libdbmail_la-dm_user.lo `test -f 'dm_user.c' || echo './'`dm_user.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_user.lo -MD -MP -MF .deps/libdbmail_la-dm_user.Tpo -c dm_user.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_user.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_user.c:26:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
dm_user.c: In function 'do_show':
dm_user.c:631:46: warning: cast between incompatible function types from 'void (*)(void *)' to 'void (*)(void *, void *)' [-Wcast-function-type]
  631 |                         g_list_foreach(users,(GFunc)g_free,NULL);
      |                                              ^
dm_user.c:648:48: warning: cast between incompatible function types from 'void (*)(void *)' to 'void (*)(void *, void *)' [-Wcast-function-type]
  648 |                         g_list_foreach(aliases,(GFunc)g_free,NULL);
      |                                                ^
dm_user.c: In function 'show_user':
dm_user.c:747:41: warning: cast between incompatible function types from 'void (*)(void *)' to 'void (*)(void *, void *)' [-Wcast-function-type]
  747 |                 g_list_foreach(userlist,(GFunc)g_free, NULL);
      |                                         ^
dm_user.c: In function 'mkpassword':
dm_user.c:270:25: warning: 'strncpy' output may be truncated copying 129 bytes from a string of length 1023 [-Wstringop-truncation]
  270 |                         strncpy(pw, hashstr, 129);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
dm_user.c:265:25: warning: 'strncpy' output may be truncated copying 129 bytes from a string of length 1023 [-Wstringop-truncation]
  265 |                         strncpy(pw, hashstr, 129);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
dm_user.c:260:25: warning: 'strncpy' output may be truncated copying 129 bytes from a string of length 1023 [-Wstringop-truncation]
  260 |                         strncpy(pw, hashstr, 129);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
dm_user.c:255:25: warning: 'strncpy' output may be truncated copying 129 bytes from a string of length 1023 [-Wstringop-truncation]
  255 |                         strncpy(pw, hashstr, 129);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
dm_user.c:250:25: warning: 'strncpy' output may be truncated copying 129 bytes from a string of length 1023 [-Wstringop-truncation]
  250 |                         strncpy(pw, hashstr, 129);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from dbmail.h:137:
dm_user.h:32:46: warning: 'strncpy' output may be truncated copying 129 bytes from a string of length 511 [-Wstringop-truncation]
   32 | #define null_strncpy(dst, src, len) if (src) strncpy(dst, src, len)
      |                                              ^~~~~~~~~~~~~~~~~~~~~~
dm_user.c:233:25: note: in expansion of macro 'null_strncpy'
  233 |                         null_strncpy(pw, entry, 129);
      |                         ^~~~~~~~~~~~
dm_user.c:215:25: warning: 'strncpy' output may be truncated copying 129 bytes from a string of length 1023 [-Wstringop-truncation]
  215 |                         strncpy(pw, hashstr, 129);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
dm_user.c:206:25: warning: 'strncpy' output may be truncated copying 129 bytes from a string of length 1023 [-Wstringop-truncation]
  206 |                         strncpy(pw, hashstr, 129);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_user.lo -MD -MP -MF .deps/libdbmail_la-dm_user.Tpo -c dm_user.c -o libdbmail_la-dm_user.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_user.Tpo .deps/libdbmail_la-dm_user.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_message.lo -MD -MP -MF .deps/libdbmail_la-dm_message.Tpo -c -o libdbmail_la-dm_message.lo `test -f 'dm_message.c' || echo './'`dm_message.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_message.lo -MD -MP -MF .deps/libdbmail_la-dm_message.Tpo -c dm_message.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_message.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_message.c:27:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/giochannel.h:36,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib.h:56,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0/gmime/gmime.h:25,
                 from dbmail.h:59:
dm_message.c: In function 'find_type_header':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:327:9: note: in expansion of macro 'g_string_free'
  327 |         g_string_free(header,FALSE);
      |         ^~~~~~~~~~~~~
dm_message.c: In function '_header_cache':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:1770:17: note: in expansion of macro 'g_string_free'
 1770 |                 g_string_free(store, FALSE);
      |                 ^~~~~~~~~~~~~
dm_message.c: In function 'insert_messages':
dm_message.c:2825:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2825 |                         if (g_list_length(delivery->forwards) > 0) {
      |                            ^
dm_message.c:2831:17: note: here
 2831 |                 case DSN_CLASS_FAIL:
      |                 ^~~~
dm_message.c: In function '_header_name_get_id':
dm_message.c:1439:9: warning: 'config_get_value' reading 1024 bytes from a region of size 22 [-Wstringop-overread]
 1439 |         config_get_value("header_cache_readonly", "DBMAIL", config);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:1439:9: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:1439:9: note: referencing argument 3 of type 'char[1024]'
In file included from dbmail.h:129:
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c: In function 'sort_deliver_to_mailbox':
dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 20 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2238:9: note: in expansion of macro 'GETCONFIGVALUE'
 2238 |         GETCONFIGVALUE("suppress_duplicates", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~
dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2238:9: note: in expansion of macro 'GETCONFIGVALUE'
 2238 |         GETCONFIGVALUE("suppress_duplicates", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~
dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2238:9: note: in expansion of macro 'GETCONFIGVALUE'
 2238 |         GETCONFIGVALUE("suppress_duplicates", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c: In function 'sort_and_deliver':
dm_message.c:2118:9: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
 2118 |         config_get_value("SUBADDRESS", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2118:9: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2118:9: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c:2135:9: warning: 'config_get_value' reading 1024 bytes from a region of size 6 [-Wstringop-overread]
 2135 |         config_get_value("SIEVE", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2135:9: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2135:9: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c: In function 'send_mail':
dm_message.c:2314:21: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
 2314 |                 if (config_get_value("POSTMASTER", "DBMAIL", postmaster) < 0) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2314:21: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2314:21: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c:2323:13: warning: 'config_get_value' reading 1024 bytes from a region of size 9 [-Wstringop-overread]
 2323 |         if (config_get_value("SENDMAIL", "DBMAIL", sendmail) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2323:13: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2323:13: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c: In function 'send_notification':
dm_message.c:2545:13: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
 2545 |         if (config_get_value("POSTMASTER", "DBMAIL", from) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2545:13: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2545:13: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c:2549:13: warning: 'config_get_value' reading 1024 bytes from a region of size 19 [-Wstringop-overread]
 2549 |         if (config_get_value("AUTO_NOTIFY_SENDER", "DELIVERY", from) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2549:13: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2549:13: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c:2553:13: warning: 'config_get_value' reading 1024 bytes from a region of size 20 [-Wstringop-overread]
 2553 |         if (config_get_value("AUTO_NOTIFY_SUBJECT", "DELIVERY", subject) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2553:13: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2553:13: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c: In function 'execute_auto_ran':
dm_message.c:2583:13: warning: 'config_get_value' reading 1024 bytes from a region of size 12 [-Wstringop-overread]
 2583 |         if (config_get_value("AUTO_NOTIFY", "DELIVERY", val) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2583:13: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2583:13: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c:2591:13: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
 2591 |         if (config_get_value("AUTO_REPLY", "DELIVERY", val) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2591:13: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2591:13: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c: In function 'send_forward_list':
dm_message.c:2651:21: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
 2651 |                 if (config_get_value("POSTMASTER", "DBMAIL", postmaster) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2651:21: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2651:21: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_message.c: In function 'insert_messages':
dm_message.c:2751:9: warning: 'config_get_value' reading 1024 bytes from a region of size 14 [-Wstringop-overread]
 2751 |         config_get_value("QUOTA_FAILURE", "DELIVERY", val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2751:9: note: referencing argument 1 of type 'const char[1024]'
dm_message.c:2751:9: note: referencing argument 3 of type 'char[1024]'
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
In file included from dbmail.h:130:
dm_message.c: In function 'get_mailbox_from_filters.constprop':
dm_message.c:2037:27: warning: '%s' directive argument is null [-Wformat-overflow=]
 2037 |         TRACE(TRACE_INFO, "default mailbox [%s]", mailbox);
      |                           ^~~~~~~~~~~~~~~~~~~~~~
dm_debug.h:58:76: note: in definition of macro 'TRACE'
   58 | #define TRACE(level, fmt...) trace(level, THIS_MODULE, __func__, __LINE__, fmt)
      |                                                                            ^~~
dm_message.c:2037:45: note: format string is defined here
 2037 |         TRACE(TRACE_INFO, "default mailbox [%s]", mailbox);
      |                                             ^~
dm_message.c: In function '_mime_retrieve':
dm_message.c:448:33: warning: 'strncpy' output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation]
  448 |                                 strncpy(blist[depth], boundary, MAX_MIME_BLEN-1);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_message.lo -MD -MP -MF .deps/libdbmail_la-dm_message.Tpo -c dm_message.c -o libdbmail_la-dm_message.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_message.Tpo .deps/libdbmail_la-dm_message.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_mailbox.lo -MD -MP -MF .deps/libdbmail_la-dm_mailbox.Tpo -c -o libdbmail_la-dm_mailbox.lo `test -f 'dm_mailbox.c' || echo './'`dm_mailbox.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_mailbox.lo -MD -MP -MF .deps/libdbmail_la-dm_mailbox.Tpo -c dm_mailbox.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_mailbox.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_mailbox.c:27:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
dm_mailbox.c: In function '_do_search':
dm_mailbox.c:1929:71: warning: cast between incompatible function types from 'gboolean (*)(GNode *, DbmailMailbox *)' {aka 'int (*)(struct _GNode *, DbmailMailbox *)'} to 'void (*)(GNode *, void *)' {aka 'void (*)(struct _GNode *, void *)'} [-Wcast-function-type]
 1929 |                         g_node_children_foreach(node, G_TRAVERSE_ALL, (GNodeForeachFunc) _do_search, (gpointer) self);
      |                                                                       ^
dm_mailbox.c: In function '_merge_search':
dm_mailbox.c:1960:71: warning: cast between incompatible function types from 'gboolean (*)(GNode *, GTree *)' {aka 'int (*)(struct _GNode *, struct _GTree *)'} to 'void (*)(GNode *, void *)' {aka 'void (*)(struct _GNode *, void *)'} [-Wcast-function-type]
 1960 |                         g_node_children_foreach(node, G_TRAVERSE_ALL, (GNodeForeachFunc) _merge_search, (gpointer) found);
      |                                                                       ^
dm_mailbox.c:1965:71: warning: cast between incompatible function types from 'gboolean (*)(GNode *, GTree *)' {aka 'int (*)(struct _GNode *, struct _GTree *)'} to 'void (*)(GNode *, void *)' {aka 'void (*)(struct _GNode *, void *)'} [-Wcast-function-type]
 1965 |                         g_node_children_foreach(node, G_TRAVERSE_ALL, (GNodeForeachFunc) _merge_search, (gpointer) s->found);
      |                                                                       ^
dm_mailbox.c:1981:76: warning: cast between incompatible function types from 'gboolean (*)(GNode *, GTree *)' {aka 'int (*)(struct _GNode *, struct _GTree *)'} to 'void (*)(GNode *, void *)' {aka 'void (*)(struct _GNode *, void *)'} [-Wcast-function-type]
 1981 |                                 g_node_children_foreach(x, G_TRAVERSE_ALL, (GNodeForeachFunc) _merge_search, (gpointer) a->found);
      |                                                                            ^
dm_mailbox.c:1986:76: warning: cast between incompatible function types from 'gboolean (*)(GNode *, GTree *)' {aka 'int (*)(struct _GNode *, struct _GTree *)'} to 'void (*)(GNode *, void *)' {aka 'void (*)(struct _GNode *, void *)'} [-Wcast-function-type]
 1986 |                                 g_node_children_foreach(y, G_TRAVERSE_ALL, (GNodeForeachFunc) _merge_search, (gpointer) b->found);
      |                                                                            ^
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/giochannel.h:36,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib.h:56,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0/gmime/gmime.h:25,
                 from dbmail.h:59:
dm_mailbox.c: In function 'dbmail_mailbox_orderedsubject':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c:391:9: note: in expansion of macro 'g_string_free'
  391 |         g_string_free(threads, FALSE);
      |         ^~~~~~~~~~~~~
dm_mailbox.c: In function 'dbmail_mailbox_imap_modseq_as_string':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c:450:9: note: in expansion of macro 'g_string_free'
  450 |         g_string_free(t, FALSE);
      |         ^~~~~~~~~~~~~
dm_mailbox.c: In function 'dbmail_mailbox_ids_as_string':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c:514:9: note: in expansion of macro 'g_string_free'
  514 |         g_string_free(t, FALSE);
      |         ^~~~~~~~~~~~~
dm_mailbox.c: In function 'dbmail_mailbox_sorted_as_string':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c:548:9: note: in expansion of macro 'g_string_free'
  548 |         g_string_free(t, FALSE);
      |         ^~~~~~~~~~~~~
dm_mailbox.c: In function 'mailbox_search':
dm_mailbox.c:1250:39: warning: 'config_get_value_default_int' reading 1024 bytes from a region of size 24 [-Wstringop-overread]
 1250 |         int mailbox_search_strategy = config_get_value_default_int("mailbox_search_strategy", "IMAP", 1);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c:1250:39: note: referencing argument 1 of type 'const char[1024]'
In file included from dbmail.h:129:
dm_config.h:68:5: note: in a call to function 'config_get_value_default_int'
   68 | int config_get_value_default_int(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c: In function 'dbmail_mailbox_orderedsubject':
dm_mailbox.c:290:15: warning: variable 'res' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  290 |         char *res = NULL;
      |               ^~~
dm_mailbox.c: In function 'mailbox_search.isra':
dm_mailbox.c:1236:16: warning: variable 'ids' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1236 |         GTree *ids;
      |                ^~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_mailbox.lo -MD -MP -MF .deps/libdbmail_la-dm_mailbox.Tpo -c dm_mailbox.c -o libdbmail_la-dm_mailbox.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_mailbox.Tpo .deps/libdbmail_la-dm_mailbox.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_mailboxstate.lo -MD -MP -MF .deps/libdbmail_la-dm_mailboxstate.Tpo -c -o libdbmail_la-dm_mailboxstate.lo `test -f 'dm_mailboxstate.c' || echo './'`dm_mailboxstate.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_mailboxstate.lo -MD -MP -MF .deps/libdbmail_la-dm_mailboxstate.Tpo -c dm_mailboxstate.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_mailboxstate.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_mailboxstate.c:24:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/giochannel.h:36,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib.h:56,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0/gmime/gmime.h:25,
                 from dbmail.h:59:
dm_mailboxstate.c: In function 'MailboxState_flags':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailboxstate.c:1182:9: note: in expansion of macro 'g_string_free'
 1182 |         g_string_free(string, FALSE);
      |         ^~~~~~~~~~~~~
dm_mailboxstate.c: In function 'state_load_messages':
dm_mailboxstate.c:77:36: warning: 'config_get_value_default_int' reading 1024 bytes from a region of size 21 [-Wstringop-overread]
   77 |         int mailbox_sync_deleted = config_get_value_default_int("mailbox_sync_deleted", "IMAP", 1);
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailboxstate.c:77:36: note: referencing argument 1 of type 'const char[1024]'
In file included from dbmail.h:129:
dm_config.h:68:5: note: in a call to function 'config_get_value_default_int'
   68 | int config_get_value_default_int(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailboxstate.c:78:38: warning: 'config_get_value_default_int' reading 1024 bytes from a region of size 24 [-Wstringop-overread]
   78 |         int mailbox_sync_batch_size= config_get_value_default_int("mailbox_sync_batch_size", "IMAP", 64);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailboxstate.c:78:38: note: referencing argument 1 of type 'const char[1024]'
dm_config.h:68:5: note: in a call to function 'config_get_value_default_int'
   68 | int config_get_value_default_int(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailboxstate.c: In function 'MailboxState_update':
dm_mailboxstate.c:353:49: warning: 'config_get_value_default_int' reading 1024 bytes from a region of size 41 [-Wstringop-overread]
  353 |         int mailbox_diffential_max_iterations = config_get_value_default_int("mailbox_update_strategy_2_max_iterations", "IMAP", 300);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailboxstate.c:353:49: note: referencing argument 1 of type 'const char[1024]'
dm_config.h:68:5: note: in a call to function 'config_get_value_default_int'
   68 | int config_get_value_default_int(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailboxstate.c: In function '_update_recent':
dm_mailboxstate.c:1344:53: warning: argument 'slices' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1344 | static long long int _update_recent(volatile GList *slices, uint64_t seq)
      |                                     ~~~~~~~~~~~~~~~~^~~~~~
dm_mailboxstate.c: In function 'state_load_messages.isra':
dm_mailboxstate.c:176:17: warning: 'strncpy' output may be truncated copying 26 bytes from a string of length 26 [-Wstringop-truncation]
  176 |                 strncpy(result->internaldate,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  177 |                                 (query_result) ? query_result :
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  178 |                                 "01-Jan-1970 00:00:01 +0100",
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  179 |                                 IMAP_INTERNALDATE_LEN-1);
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailboxstate.c: In function 'MailboxState_hasPermission':
dm_mailboxstate.c:1189:22: warning: variable 'c' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1189 |         Connection_T c;
      |                      ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_mailboxstate.lo -MD -MP -MF .deps/libdbmail_la-dm_mailboxstate.Tpo -c dm_mailboxstate.c -o libdbmail_la-dm_mailboxstate.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_mailboxstate.Tpo .deps/libdbmail_la-dm_mailboxstate.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_cram.lo -MD -MP -MF .deps/libdbmail_la-dm_cram.Tpo -c -o libdbmail_la-dm_cram.lo `test -f 'dm_cram.c' || echo './'`dm_cram.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_cram.lo -MD -MP -MF .deps/libdbmail_la-dm_cram.Tpo -c dm_cram.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_cram.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_cram.c:22:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
dm_cram.c: In function 'init_challenge':
dm_cram.c:49:13: warning: implicit declaration of function 'getdomainname' [-Wimplicit-function-declaration]
   49 |         if (getdomainname(name,sizeof(name)-1)) {
      |             ^~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_cram.lo -MD -MP -MF .deps/libdbmail_la-dm_cram.Tpo -c dm_cram.c -o libdbmail_la-dm_cram.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_cram.Tpo .deps/libdbmail_la-dm_cram.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_capa.lo -MD -MP -MF .deps/libdbmail_la-dm_capa.Tpo -c -o libdbmail_la-dm_capa.lo `test -f 'dm_capa.c' || echo './'`dm_capa.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_capa.lo -MD -MP -MF .deps/libdbmail_la-dm_capa.Tpo -c dm_capa.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_capa.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_capa.c:22:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
dm_capa.c: In function 'Capa_new':
dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_capa.c:92:9: note: in expansion of macro 'GETCONFIGVALUE'
   92 |         GETCONFIGVALUE("capability", "IMAP", val);
      |         ^~~~~~~~~~~~~~
dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_capa.c:92:9: note: in expansion of macro 'GETCONFIGVALUE'
   92 |         GETCONFIGVALUE("capability", "IMAP", val);
      |         ^~~~~~~~~~~~~~
dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_capa.c:92:9: note: in expansion of macro 'GETCONFIGVALUE'
   92 |         GETCONFIGVALUE("capability", "IMAP", val);
      |         ^~~~~~~~~~~~~~
In file included from dbmail.h:129:
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
dm_capa.c:94:17: warning: 'strncpy' output may be truncated copying 1023 bytes from a string of length 1023 [-Wstringop-truncation]
   94 |                 strncpy((char *)maxcapa, val, MAX_CAPASIZE-1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_capa.lo -MD -MP -MF .deps/libdbmail_la-dm_capa.Tpo -c dm_capa.c -o libdbmail_la-dm_capa.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_capa.Tpo .deps/libdbmail_la-dm_capa.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_config.lo -MD -MP -MF .deps/libdbmail_la-dm_config.Tpo -c -o libdbmail_la-dm_config.lo `test -f 'dm_config.c' || echo './'`dm_config.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_config.lo -MD -MP -MF .deps/libdbmail_la-dm_config.Tpo -c dm_config.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_config.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_config.c:31:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
dm_config.c: In function 'config_get_security_actions':
dm_config.c:588:42: warning: cast between incompatible function types from 'gint (*)(const uint64_t *, const uint64_t *)' {aka 'int (*)(const long unsigned int *, const long unsigned int *)'} to 'gint (*)(const void *, const void *, void *)' {aka 'int (*)(const void *, const void *, void *)'} [-Wcast-function-type]
  588 |         GTree *actions = g_tree_new_full((GCompareDataFunc)ucmp, NULL, g_free, g_free);
      |                                          ^
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/giochannel.h:36,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib.h:56,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0/gmime/gmime.h:25,
                 from dbmail.h:59:
dm_config.c: In function 'config_get_pidfile':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:574:9: note: in expansion of macro 'g_string_free'
  574 |         g_string_free(s,FALSE);
      |         ^~~~~~~~~~~~~
dm_config.c: In function 'SetTraceLevel':
dm_config.c:285:9: warning: 'config_get_value' reading 1024 bytes from a region of size 12 [-Wstringop-overread]
  285 |         config_get_value("trace_level", service_name, trace_level);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:285:9: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:285:9: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:292:9: warning: 'config_get_value' reading 1024 bytes from a region of size 22 [-Wstringop-overread]
  292 |         config_get_value("syslog_logging_levels", service_name, syslog_logging_levels);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:292:9: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:292:9: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:293:9: warning: 'config_get_value' reading 1024 bytes from a region of size 20 [-Wstringop-overread]
  293 |         config_get_value("file_logging_levels", service_name, file_logging_levels);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:293:9: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:293:9: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:298:17: warning: 'config_get_value' reading 1024 bytes from a region of size 13 [-Wstringop-overread]
  298 |                 config_get_value("trace_syslog", service_name, trace_syslog);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:298:17: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:298:17: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:334:17: warning: 'config_get_value' reading 1024 bytes from a region of size 13 [-Wstringop-overread]
  334 |                 config_get_value("trace_stderr", service_name, trace_stderr);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:334:17: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:334:17: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c: In function 'GetDBParams':
dm_config.c:375:13: warning: 'config_get_value' reading 1024 bytes from a region of size 6 [-Wstringop-overread]
  375 |         if (config_get_value("dburi", "DBMAIL", db_params.dburi) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:375:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:375:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:378:21: warning: 'config_get_value' reading 1024 bytes from a region of size 7 [-Wstringop-overread]
  378 |                 if (config_get_value("driver", "DBMAIL", db_params.driver) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:378:21: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:378:21: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:392:21: warning: 'config_get_value' reading 1024 bytes from a region of size 5 [-Wstringop-overread]
  392 |                 if (config_get_value("host", "DBMAIL", db_params.host) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:392:21: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:392:21: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:394:21: warning: 'config_get_value' reading 1024 bytes from a region of size 3 [-Wstringop-overread]
  394 |                 if (config_get_value("db", "DBMAIL", db_params.db) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:394:21: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:394:21: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:396:21: warning: 'config_get_value' reading 1024 bytes from a region of size 5 [-Wstringop-overread]
  396 |                 if (config_get_value("user", "DBMAIL", db_params.user) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:396:21: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:396:21: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:398:21: warning: 'config_get_value' reading 1024 bytes from a region of size 5 [-Wstringop-overread]
  398 |                 if (config_get_value("pass", "DBMAIL", db_params.pass) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:398:21: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:398:21: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:400:21: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  400 |                 if (config_get_value("sqlport", "DBMAIL", port_string) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:400:21: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:400:21: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:402:21: warning: 'config_get_value' reading 1024 bytes from a region of size 10 [-Wstringop-overread]
  402 |                 if (config_get_value("sqlsocket", "DBMAIL", sock_string) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:402:21: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:402:21: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:438:13: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
  438 |         if (config_get_value("authdriver", "DBMAIL", db_params.authdriver) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:438:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:438:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:440:13: warning: 'config_get_value' reading 1024 bytes from a region of size 11 [-Wstringop-overread]
  440 |         if (config_get_value("sortdriver", "DBMAIL", db_params.sortdriver) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:440:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:440:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:442:13: warning: 'config_get_value' reading 1024 bytes from a region of size 9 [-Wstringop-overread]
  442 |         if (config_get_value("serverid", "DBMAIL", serverid_string) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:442:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:442:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:444:13: warning: 'config_get_value' reading 1024 bytes from a region of size 9 [-Wstringop-overread]
  444 |         if (config_get_value("encoding", "DBMAIL", db_params.encoding) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:444:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:444:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:446:13: warning: 'config_get_value' reading 1024 bytes from a region of size 13 [-Wstringop-overread]
  446 |         if (config_get_value("table_prefix", "DBMAIL", db_params.pfx) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:446:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:446:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:448:13: warning: 'config_get_value' reading 1024 bytes from a region of size 19 [-Wstringop-overread]
  448 |         if (config_get_value("max_db_connections", "DBMAIL", max_db_connections) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:448:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:448:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:451:13: warning: 'config_get_value' reading 1024 bytes from a region of size 16 [-Wstringop-overread]
  451 |         if (config_get_value("query_time_info", "DBMAIL", query_time) < 0) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:451:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:451:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:459:13: warning: 'config_get_value' reading 1024 bytes from a region of size 18 [-Wstringop-overread]
  459 |         if (config_get_value("query_time_notice", "DBMAIL", query_time) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:459:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:459:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:466:13: warning: 'config_get_value' reading 1024 bytes from a region of size 19 [-Wstringop-overread]
  466 |         if (config_get_value("query_time_warning", "DBMAIL", query_time) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:466:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:466:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:473:13: warning: 'config_get_value' reading 1024 bytes from a region of size 14 [-Wstringop-overread]
  473 |         if (config_get_value("query_timeout", "DBMAIL", query_time) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:473:13: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:473:13: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c: In function 'config_get_timeout':
dm_config.c:514:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  514 |         config_get_value("TIMEOUT", service, val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:514:9: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:514:9: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:524:9: warning: 'config_get_value' reading 1024 bytes from a region of size 14 [-Wstringop-overread]
  524 |         config_get_value("LOGIN_TIMEOUT", service, val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:524:9: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:524:9: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c: In function 'config_get_logfiles':
dm_config.c:541:9: warning: 'config_get_value' reading 1024 bytes from a region of size 8 [-Wstringop-overread]
  541 |         config_get_value("logfile", service, val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:541:9: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:541:9: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:549:9: warning: 'config_get_value' reading 1024 bytes from a region of size 9 [-Wstringop-overread]
  549 |         config_get_value("errorlog", service, val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:549:9: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:549:9: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c:557:9: warning: 'config_get_value' reading 1024 bytes from a region of size 14 [-Wstringop-overread]
  557 |         config_get_value("pid_directory", service, val);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:557:9: note: referencing argument 1 of type 'const char[1024]'
dm_config.c:557:9: note: referencing argument 3 of type 'char[1024]'
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
dm_config.c: In function 'config_get_security_actions':
dbmail.h:182:9: warning: 'config_get_value' reading 1024 bytes from a region of size 16 [-Wstringop-overread]
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:591:9: note: in expansion of macro 'GETCONFIGVALUE'
  591 |         GETCONFIGVALUE("security_action", "DBMAIL", var);
      |         ^~~~~~~~~~~~~~
dbmail.h:182:9: note: referencing argument 1 of type 'const char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:591:9: note: in expansion of macro 'GETCONFIGVALUE'
  591 |         GETCONFIGVALUE("security_action", "DBMAIL", var);
      |         ^~~~~~~~~~~~~~
dbmail.h:182:9: note: referencing argument 3 of type 'char[1024]'
  182 |         config_get_value(key, sect, var); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_config.c:591:9: note: in expansion of macro 'GETCONFIGVALUE'
  591 |         GETCONFIGVALUE("security_action", "DBMAIL", var);
      |         ^~~~~~~~~~~~~~
dm_config.c:189:5: note: in a call to function 'config_get_value'
  189 | int config_get_value(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_config.lo -MD -MP -MF .deps/libdbmail_la-dm_config.Tpo -c dm_config.c -o libdbmail_la-dm_config.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_config.Tpo .deps/libdbmail_la-dm_config.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_debug.lo -MD -MP -MF .deps/libdbmail_la-dm_debug.Tpo -c -o libdbmail_la-dm_debug.lo `test -f 'dm_debug.c' || echo './'`dm_debug.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_debug.lo -MD -MP -MF .deps/libdbmail_la-dm_debug.Tpo -c dm_debug.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_debug.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_debug.c:27:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
dm_debug.c: In function 'configure_stderr':
dm_debug.c:58:9: warning: 'config_get_value' reading 1024 bytes from a region of size 9 [-Wstringop-overread]
   58 |         config_get_value("errorlog", service_name, error_log);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_debug.c:58:9: note: referencing argument 1 of type 'const char[1024]'
dm_debug.c:58:9: note: referencing argument 3 of type 'char[1024]'
In file included from dbmail.h:129:
dm_config.h:64:5: note: in a call to function 'config_get_value'
   64 | int config_get_value(const Field_T name, const char *service_name,
      |     ^~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_debug.lo -MD -MP -MF .deps/libdbmail_la-dm_debug.Tpo -c dm_debug.c -o libdbmail_la-dm_debug.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_debug.Tpo .deps/libdbmail_la-dm_debug.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_list.lo -MD -MP -MF .deps/libdbmail_la-dm_list.Tpo -c -o libdbmail_la-dm_list.lo `test -f 'dm_list.c' || echo './'`dm_list.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_list.lo -MD -MP -MF .deps/libdbmail_la-dm_list.Tpo -c dm_list.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_list.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_list.c:24:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_list.lo -MD -MP -MF .deps/libdbmail_la-dm_list.Tpo -c dm_list.c -o libdbmail_la-dm_list.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_list.Tpo .deps/libdbmail_la-dm_list.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_db.lo -MD -MP -MF .deps/libdbmail_la-dm_db.Tpo -c -o libdbmail_la-dm_db.lo `test -f 'dm_db.c' || echo './'`dm_db.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_db.lo -MD -MP -MF .deps/libdbmail_la-dm_db.Tpo -c dm_db.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_db.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_db.c:28:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
dm_db.c: In function 'db_copymsg':
dm_db.c:2987:49: warning: unused parameter 'recent' [-Wunused-parameter]
 2987 |                uint64_t * newmsg_idnr, gboolean recent)
      |                                        ~~~~~~~~~^~~~~~
dm_db.c: In function 'db_mailbox_seq_update':
dm_db.c:4361:51: warning: 'config_get_value_default_int' reading 1024 bytes from a region of size 28 [-Wstringop-overread]
 4361 |                 int mailbox_update_seq_strategy = config_get_value_default_int("mailbox_update_seq_strategy", "IMAP", 1);
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_db.c:4361:51: note: referencing argument 1 of type 'const char[1024]'
In file included from dbmail.h:129:
dm_config.h:68:5: note: in a call to function 'config_get_value_default_int'
   68 | int config_get_value_default_int(const Field_T field_name,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_db.c: In function 'db_query':
dm_db.c:417:21: warning: variable 'r' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  417 |         ResultSet_T r = NULL;
      |                     ^
dm_db.c: In function 'mailboxes_by_regex.constprop':
dm_db.c:2223:18: warning: variable 'qs' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 2223 |         GString *qs = NULL;
      |                  ^~
dm_db.c: In function 'dm_quota_rebuild':
dm_db.c:1314:16: warning: variable 'quota' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1314 |         GList *quota = NULL;
      |                ^~~~~
dm_db.c: In function 'db_icheck_physmessages':
dm_db.c:1550:16: warning: variable 'ids' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1550 |         GList *ids = NULL;
      |                ^~~
dm_db.c: In function 'db_icheck_partlists':
dm_db.c:1586:16: warning: variable 'ids' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1586 |         GList *ids = NULL;
      |                ^~~
dm_db.c: In function 'db_icheck_mimeparts':
dm_db.c:1623:16: warning: variable 'ids' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1623 |         GList *ids = NULL;
      |                ^~~
dm_db.c: In function 'db_icheck_headernames':
dm_db.c:1659:16: warning: variable 'ids' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1659 |         GList *ids = NULL;
      |                ^~~
dm_db.c: In function 'db_icheck_headervalues':
dm_db.c:1695:16: warning: variable 'ids' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1695 |         GList *ids = NULL;
      |                ^~~
dm_db.c: In function 'db_update_rfcsize':
dm_db.c:1751:30: warning: argument 'lost' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1751 | int db_update_rfcsize(GList *lost)
      |                       ~~~~~~~^~~~
dm_db.c: In function 'db_update_pop':
dm_db.c:2070:18: warning: variable 'user_idnr' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 2070 |         uint64_t user_idnr = 0;
      |                  ^~~~~~~~~
dm_db.c: In function 'db_get_msgflag':
dm_db.c:3215:13: warning: variable 'val' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3215 |         int val = 0;
      |             ^~~
dm_db.c: In function 'db_empty_mailbox':
dm_db.c:1501:16: warning: variable 'mboxids' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 1501 |         GList *mboxids = NULL;
      |                ^~~~~~~
dm_db.c: In function 'db_getmailboxname':
dm_db.c:3150:9: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation]
 3150 |         strncpy(name, tmp_fq_name, tmp_fq_name_len);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_db.c:3147:27: note: length computed here
 3147 |         tmp_fq_name_len = strlen(tmp_fq_name);
      |                           ^~~~~~~~~~~~~~~~~~~
dm_db.c:3116:15: warning: variable 'tmp_name' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3116 |         char *tmp_name = NULL, *tmp_fq_name;
      |               ^~~~~~~~
dm_db.c: In function 'db_usermap_resolve':
dm_db.c:3571:63: warning: '%s' directive output may be truncated writing up to 1025 bytes into a region of size 102 [-Wformat-truncation=]
 3571 |                 snprintf(clientsock, DM_SOCKADDR_LEN-1, "inet:%s:%s", ci->dst_ip, ci->dst_port);
      |                                                               ^~
dm_db.c:3571:17: note: 'snprintf' output between 7 and 1064 bytes into a destination of size 107
 3571 |                 snprintf(clientsock, DM_SOCKADDR_LEN-1, "inet:%s:%s", ci->dst_ip, ci->dst_port);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_db.c:3556:21: warning: variable 'userid' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3556 |         const char *userid = NULL, *sockok = NULL, *sockno = NULL, *login = NULL;
      |                     ^~~~~~
dm_db.c:3556:69: warning: variable 'login' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3556 |         const char *userid = NULL, *sockok = NULL, *sockno = NULL, *login = NULL;
      |                                                                     ^~~~~
dm_db.c:3559:20: warning: variable 'bestscore' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3559 |         int score, bestscore = -1;
      |                    ^~~~~~~~~
dm_db.c:3560:15: warning: variable 'bestlogin' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3560 |         char *bestlogin = NULL, *bestuserid = NULL;
      |               ^~~~~~~~~
dm_db.c:3560:34: warning: variable 'bestuserid' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3560 |         char *bestlogin = NULL, *bestuserid = NULL;
      |                                  ^~~~~~~~~~
dm_db.c: In function 'db_user_validate':
dm_db.c:3826:25: warning: 'strncpy' output may be truncated copying 12 bytes from a string of length 255 [-Wstringop-truncation]
 3826 |                         strncpy(salt, dbpass, 12);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
dm_db.c: In function 'db_copymsg':
dm_db.c:2995:13: warning: variable 'tmp_physmessage' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 2995 |         int tmp_physmessage = 0;
      |             ^~~~~~~~~~~~~~~
dm_db.c:2996:13: warning: variable 'tmp_seen' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 2996 |         int tmp_seen = 0;
      |             ^~~~~~~~
dm_db.c:2997:13: warning: variable 'tmp_answered' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 2997 |         int tmp_answered = 0;
      |             ^~~~~~~~~~~~
dm_db.c:2998:13: warning: variable 'tmp_deleted' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 2998 |         int tmp_deleted = 0;
      |             ^~~~~~~~~~~
dm_db.c:2999:13: warning: variable 'tmp_flagged' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 2999 |         int tmp_flagged = 0;
      |             ^~~~~~~~~~~
dm_db.c:3000:13: warning: variable 'tmp_recent' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3000 |         int tmp_recent = 0;
      |             ^~~~~~~~~~
dm_db.c:3001:13: warning: variable 'tmp_draft' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3001 |         int tmp_draft = 0;
      |             ^~~~~~~~~
dm_db.c:3002:13: warning: variable 'tmp_status' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 3002 |         int tmp_status = 0;
      |             ^~~~~~~~~~
dm_db.c: In function 'db_rehash_store':
dm_db.c:4444:16: warning: variable 'ids' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
 4444 |         GList *ids = NULL;
      |                ^~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_db.lo -MD -MP -MF .deps/libdbmail_la-dm_db.Tpo -c dm_db.c -o libdbmail_la-dm_db.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_db.Tpo .deps/libdbmail_la-dm_db.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_sievescript.lo -MD -MP -MF .deps/libdbmail_la-dm_sievescript.Tpo -c -o libdbmail_la-dm_sievescript.lo `test -f 'dm_sievescript.c' || echo './'`dm_sievescript.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_sievescript.lo -MD -MP -MF .deps/libdbmail_la-dm_sievescript.Tpo -c dm_sievescript.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_sievescript.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_sievescript.c:28:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_sievescript.lo -MD -MP -MF .deps/libdbmail_la-dm_sievescript.Tpo -c dm_sievescript.c -o libdbmail_la-dm_sievescript.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_sievescript.Tpo .deps/libdbmail_la-dm_sievescript.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_acl.lo -MD -MP -MF .deps/libdbmail_la-dm_acl.Tpo -c -o libdbmail_la-dm_acl.lo `test -f 'dm_acl.c' || echo './'`dm_acl.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_acl.lo -MD -MP -MF .deps/libdbmail_la-dm_acl.Tpo -c dm_acl.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_acl.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_acl.c:23:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_acl.lo -MD -MP -MF .deps/libdbmail_la-dm_acl.Tpo -c dm_acl.c -o libdbmail_la-dm_acl.o >/dev/null 2>&1
mv -f .deps/libdbmail_la-dm_acl.Tpo .deps/libdbmail_la-dm_acl.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.. -DSYSCONFDIR='"/etc/opt/pkg"' -DLIBDIR='"/opt/pkg/lib"' -DLOCALSTATEDIR='"/var/opt/pkg/run"' -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -I/opt/pkg/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/usr/include -I/opt/pkg/include/mysql -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/gmime-3.0 -I/opt/pkg/include -pthread -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_misc.lo -MD -MP -MF .deps/libdbmail_la-dm_misc.Tpo -c -o libdbmail_la-dm_misc.lo `test -f 'dm_misc.c' || echo './'`dm_misc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DSYSCONFDIR=\"/etc/opt/pkg\" -DLIBDIR=\"/opt/pkg/lib\" -DLOCALSTATEDIR=\"/var/opt/pkg/run\" -I/home/pbulk/build/mail/dbmail/work/.buildlink/include -DLDAP_DEPRECATED -I/usr/include/kerberosv5 -I/usr/include/gssapi -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/mysql -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gio-unix-2.0 -I/home/pbulk/build/mail/dbmail/work/.buildlink/lib/glib-2.0/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DLDAP_DEPRECATED -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0 -pthread -I/home/pbulk/build/mail/dbmail/work/.buildlink/include/zdb -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -MT libdbmail_la-dm_misc.lo -MD -MP -MF .deps/libdbmail_la-dm_misc.Tpo -c dm_misc.c  -fPIC -DPIC -o .libs/libdbmail_la-dm_misc.o
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mincludes.h:34,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/mhash.h:6,
                 from dbmail.h:93,
                 from dm_misc.c:28:
/home/pbulk/build/mail/dbmail/work/.buildlink/include/mutils/mhash_config.h:210: warning: "VERSION" redefined
  210 | #define VERSION "0.9.9"
      | 
In file included from dbmail.h:32:
../config.h:133: note: this is the location of the previous definition
  133 | #define VERSION "3.3.1"
      | 
dm_misc.c: In function 'drop_privileges':
dm_misc.c:120:13: error: too many arguments to function 'getgrnam_r'
  120 |         if (getgrnam_r(newgroup, &grp, buf, sizeof(buf)-1, &gresult))
      |             ^~~~~~~~~~
In file included from dbmail.h:62:
/usr/include/grp.h:149:22: note: declared here
  149 | extern struct group *getgrnam_r(const char *, struct group *, char *, int);
      |                      ^~~~~~~~~~
dm_misc.c:123:13: error: too many arguments to function 'getpwnam_r'
  123 |         if (getpwnam_r(newuser, &pwd, buf, sizeof(buf)-1, &presult))
      |             ^~~~~~~~~~
In file included from dbmail.h:66:
/usr/include/pwd.h:167:23: note: declared here
  167 | extern struct passwd *getpwnam_r(const char *, struct passwd *, char *, int);
      |                       ^~~~~~~~~~
In file included from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/giochannel.h:36,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib.h:56,
                 from /home/pbulk/build/mail/dbmail/work/.buildlink/include/gmime-3.0/gmime/gmime.h:25,
                 from dbmail.h:59:
dm_misc.c: In function 'mailbox_add_namespace':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c:225:9: note: in expansion of macro 'g_string_free'
  225 |         g_string_free(t,FALSE);
      |         ^~~~~~~~~~~~~
dm_misc.c: In function 'dbmail_imap_plist_as_string':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c:1439:9: note: in expansion of macro 'g_string_free'
 1439 |         g_string_free(tmp1,FALSE);
      |         ^~~~~~~~~~~~~
dm_misc.c: In function '_structure_part_multipart':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c:1775:17: note: in expansion of macro 'g_string_free'
 1775 |                 g_string_free(s,FALSE);
      |                 ^~~~~~~~~~~~~
dm_misc.c: In function 'imap_cleanup_address':
/home/pbulk/build/mail/dbmail/work/.buildlink/include/glib-2.0/glib/gstring.h:74:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result]
   70 |   (__builtin_constant_p (free_segment) ?        \
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   71 |     ((free_segment) ?                           \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |       (g_string_free) ((str), (free_segment)) : \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |       g_string_free_and_steal (str))            \
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |     :                                           \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |     (g_string_free) ((str), (free_segment)))
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c:2423:9: note: in expansion of macro 'g_string_free'
 2423 |         g_string_free(s,FALSE);
      |         ^~~~~~~~~~~~~
gmake[3]: *** [Makefile:2631: libdbmail_la-dm_misc.lo] Error 1
gmake[3]: Leaving directory '/home/pbulk/build/mail/dbmail/work/dbmail-3.3.1/src'
gmake[2]: *** [Makefile:2784: all-recursive] Error 1
gmake[2]: Leaving directory '/home/pbulk/build/mail/dbmail/work/dbmail-3.3.1/src'
gmake[1]: *** [Makefile:2091: all-recursive] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/mail/dbmail/work/dbmail-3.3.1'
gmake: *** [Makefile:2023: all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/mail/dbmail
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/mail/dbmail