+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/clamsmtp-1.10nb1/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/clamsmtp-1.10nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for clamsmtp-1.10nb1
--- all ---
/usr/pkg/bin/bmake  all-recursive
--- all-recursive ---
Making all in src
--- all-local ---
--- clamsmtpd-clamsmtpd.o ---
--- all-local ---
NOTE: Ignore any warnings about mktemp(). It's used safely in this case.
--- clamsmtpd-spio.o ---
--- clamsmtpd-clamsmtpd.o ---
cc -DHAVE_CONFIG_H -I. -I..   -I/usr/include -I../common/ -I../ -pipe -O2 -I/usr/include -I/usr/local/include  -pthread  -D_POSIX_PTHREAD_SEMANTICS -MT clamsmtpd-clamsmtpd.o -MD -MP -MF .deps/clamsmtpd-clamsmtpd.Tpo -c -o clamsmtpd-clamsmtpd.o `test -f 'clamsmtpd.c' || echo './'`clamsmtpd.c
--- clamsmtpd-spio.o ---
cc -DHAVE_CONFIG_H -I. -I..   -I/usr/include -I../common/ -I../ -pipe -O2 -I/usr/include -I/usr/local/include  -pthread  -D_POSIX_PTHREAD_SEMANTICS -MT clamsmtpd-spio.o -MD -MP -MF .deps/clamsmtpd-spio.Tpo -c -o clamsmtpd-spio.o `test -f '../common/spio.c' || echo './'`../common/spio.c
../common/spio.c: In function 'spio_attach':
../common/spio.c:124:45: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types]
  124 |     if(getsockname(fd, &SANY_ADDR(locaddr), &SANY_LEN(locaddr)) == -1 ||
In file included from ../common/spio.c:46:
/usr/include/sys/socket.h:117:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
  117 |                         socklen_t *__restrict __len) __THROW;
      |                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~
../common/spio.c:139:43: warning: passing argument 3 of 'getpeername' from incompatible pointer type [-Wincompatible-pointer-types]
  139 |     if(getpeername(fd, &SANY_ADDR(*peer), &SANY_LEN(*peer)) == -1 ||
In file included from ../common/spio.c:46:
/usr/include/sys/socket.h:131:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
  131 |                         socklen_t *__restrict __len) __THROW;
      |                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~
--- clamsmtpd-clamsmtpd.o ---
mv -f .deps/clamsmtpd-clamsmtpd.Tpo .deps/clamsmtpd-clamsmtpd.Po
--- clamsmtpd-smtppass.o ---
cc -DHAVE_CONFIG_H -I. -I..   -I/usr/include -I../common/ -I../ -pipe -O2 -I/usr/include -I/usr/local/include  -pthread  -D_POSIX_PTHREAD_SEMANTICS -MT clamsmtpd-smtppass.o -MD -MP -MF .deps/clamsmtpd-smtppass.Tpo -c -o clamsmtpd-smtppass.o `test -f '../common/smtppass.c' || echo './'`../common/smtppass.c
--- clamsmtpd-spio.o ---
../common/spio.c: In function 'read_raw':
../common/spio.c:466:38: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  466 |             io->line[SP_LINE_LENGTH] = 0;
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from ../common/sppriv.h:42,
                 from ../common/spio.c:64:
../common/smtppass.h:74:10: note: at offset 4224 into destination object 'line' of size 4224
   74 |     char line[SP_LINE_LENGTH];
      |          ^~~~
--- clamsmtpd-smtppass.o ---
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:31:8: error: redefinition of 'struct in_addr'
   31 | struct in_addr
      |        ^~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:92:8: note: originally defined here
   92 | struct in_addr {
      |        ^~~~~~~
In file included from /usr/include/netinet/in.h:37,
                 from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/bits/in.h:150:8: error: redefinition of 'struct ip_mreqn'
  150 | struct ip_mreqn
      |        ^~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:182:8: note: originally defined here
  182 | struct ip_mreqn {
      |        ^~~~~~~~
In file included from /usr/include/netinet/in.h:37,
                 from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/bits/in.h:158:8: error: redefinition of 'struct in_pktinfo'
  158 | struct in_pktinfo
      |        ^~~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:231:8: note: originally defined here
  231 | struct in_pktinfo {
      |        ^~~~~~~~~~
/usr/include/netinet/in.h:42:5: error: redeclaration of enumerator 'IPPROTO_IP'
   42 |     IPPROTO_IP = 0,        /* Dummy protocol for TCP.  */
      |     ^~~~~~~~~~
/usr/include/linux/in.h:30:3: note: previous definition of 'IPPROTO_IP' with type 'enum <anonymous>'
   30 |   IPPROTO_IP = 0,               /* Dummy protocol for TCP               */
      |   ^~~~~~~~~~
/usr/include/netinet/in.h:44:5: error: redeclaration of enumerator 'IPPROTO_ICMP'
   44 |     IPPROTO_ICMP = 1,      /* Internet Control Message Protocol.  */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:32:3: note: previous definition of 'IPPROTO_ICMP' with type 'enum <anonymous>'
   32 |   IPPROTO_ICMP = 1,             /* Internet Control Message Protocol    */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:46:5: error: redeclaration of enumerator 'IPPROTO_IGMP'
   46 |     IPPROTO_IGMP = 2,      /* Internet Group Management Protocol. */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:34:3: note: previous definition of 'IPPROTO_IGMP' with type 'enum <anonymous>'
   34 |   IPPROTO_IGMP = 2,             /* Internet Group Management Protocol   */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:48:5: error: redeclaration of enumerator 'IPPROTO_IPIP'
   48 |     IPPROTO_IPIP = 4,      /* IPIP tunnels (older KA9Q tunnels use 94).  */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:36:3: note: previous definition of 'IPPROTO_IPIP' with type 'enum <anonymous>'
   36 |   IPPROTO_IPIP = 4,             /* IPIP tunnels (older KA9Q tunnels use 94) */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:50:5: error: redeclaration of enumerator 'IPPROTO_TCP'
   50 |     IPPROTO_TCP = 6,       /* Transmission Control Protocol.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:38:3: note: previous definition of 'IPPROTO_TCP' with type 'enum <anonymous>'
   38 |   IPPROTO_TCP = 6,              /* Transmission Control Protocol        */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:52:5: error: redeclaration of enumerator 'IPPROTO_EGP'
   52 |     IPPROTO_EGP = 8,       /* Exterior Gateway Protocol.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:40:3: note: previous definition of 'IPPROTO_EGP' with type 'enum <anonymous>'
   40 |   IPPROTO_EGP = 8,              /* Exterior Gateway Protocol            */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:54:5: error: redeclaration of enumerator 'IPPROTO_PUP'
   54 |     IPPROTO_PUP = 12,      /* PUP protocol.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:42:3: note: previous definition of 'IPPROTO_PUP' with type 'enum <anonymous>'
   42 |   IPPROTO_PUP = 12,             /* PUP protocol                         */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:56:5: error: redeclaration of enumerator 'IPPROTO_UDP'
   56 |     IPPROTO_UDP = 17,      /* User Datagram Protocol.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:44:3: note: previous definition of 'IPPROTO_UDP' with type 'enum <anonymous>'
   44 |   IPPROTO_UDP = 17,             /* User Datagram Protocol               */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:58:5: error: redeclaration of enumerator 'IPPROTO_IDP'
   58 |     IPPROTO_IDP = 22,      /* XNS IDP protocol.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:46:3: note: previous definition of 'IPPROTO_IDP' with type 'enum <anonymous>'
   46 |   IPPROTO_IDP = 22,             /* XNS IDP protocol                     */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:60:5: error: redeclaration of enumerator 'IPPROTO_TP'
   60 |     IPPROTO_TP = 29,       /* SO Transport Protocol Class 4.  */
      |     ^~~~~~~~~~
/usr/include/linux/in.h:48:3: note: previous definition of 'IPPROTO_TP' with type 'enum <anonymous>'
   48 |   IPPROTO_TP = 29,              /* SO Transport Protocol Class 4        */
      |   ^~~~~~~~~~
/usr/include/netinet/in.h:62:5: error: redeclaration of enumerator 'IPPROTO_DCCP'
   62 |     IPPROTO_DCCP = 33,     /* Datagram Congestion Control Protocol.  */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:50:3: note: previous definition of 'IPPROTO_DCCP' with type 'enum <anonymous>'
   50 |   IPPROTO_DCCP = 33,            /* Datagram Congestion Control Protocol */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:64:5: error: redeclaration of enumerator 'IPPROTO_IPV6'
   64 |     IPPROTO_IPV6 = 41,     /* IPv6 header.  */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:52:3: note: previous definition of 'IPPROTO_IPV6' with type 'enum <anonymous>'
   52 |   IPPROTO_IPV6 = 41,            /* IPv6-in-IPv4 tunnelling              */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:66:5: error: redeclaration of enumerator 'IPPROTO_RSVP'
   66 |     IPPROTO_RSVP = 46,     /* Reservation Protocol.  */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:54:3: note: previous definition of 'IPPROTO_RSVP' with type 'enum <anonymous>'
   54 |   IPPROTO_RSVP = 46,            /* RSVP Protocol                        */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:68:5: error: redeclaration of enumerator 'IPPROTO_GRE'
   68 |     IPPROTO_GRE = 47,      /* General Routing Encapsulation.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:56:3: note: previous definition of 'IPPROTO_GRE' with type 'enum <anonymous>'
   56 |   IPPROTO_GRE = 47,             /* Cisco GRE tunnels (rfc 1701,1702)    */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:70:5: error: redeclaration of enumerator 'IPPROTO_ESP'
   70 |     IPPROTO_ESP = 50,      /* encapsulating security payload.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:58:3: note: previous definition of 'IPPROTO_ESP' with type 'enum <anonymous>'
   58 |   IPPROTO_ESP = 50,             /* Encapsulation Security Payload protocol */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:72:5: error: redeclaration of enumerator 'IPPROTO_AH'
   72 |     IPPROTO_AH = 51,       /* authentication header.  */
      |     ^~~~~~~~~~
/usr/include/linux/in.h:60:3: note: previous definition of 'IPPROTO_AH' with type 'enum <anonymous>'
   60 |   IPPROTO_AH = 51,              /* Authentication Header protocol       */
      |   ^~~~~~~~~~
/usr/include/netinet/in.h:74:5: error: redeclaration of enumerator 'IPPROTO_MTP'
   74 |     IPPROTO_MTP = 92,      /* Multicast Transport Protocol.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:62:3: note: previous definition of 'IPPROTO_MTP' with type 'enum <anonymous>'
   62 |   IPPROTO_MTP = 92,             /* Multicast Transport Protocol         */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:76:5: error: redeclaration of enumerator 'IPPROTO_BEETPH'
   76 |     IPPROTO_BEETPH = 94,   /* IP option pseudo header for BEET.  */
      |     ^~~~~~~~~~~~~~
/usr/include/linux/in.h:64:3: note: previous definition of 'IPPROTO_BEETPH' with type 'enum <anonymous>'
   64 |   IPPROTO_BEETPH = 94,          /* IP option pseudo header for BEET     */
      |   ^~~~~~~~~~~~~~
/usr/include/netinet/in.h:78:5: error: redeclaration of enumerator 'IPPROTO_ENCAP'
   78 |     IPPROTO_ENCAP = 98,    /* Encapsulation Header.  */
      |     ^~~~~~~~~~~~~
/usr/include/linux/in.h:66:3: note: previous definition of 'IPPROTO_ENCAP' with type 'enum <anonymous>'
   66 |   IPPROTO_ENCAP = 98,           /* Encapsulation Header                 */
      |   ^~~~~~~~~~~~~
/usr/include/netinet/in.h:80:5: error: redeclaration of enumerator 'IPPROTO_PIM'
   80 |     IPPROTO_PIM = 103,     /* Protocol Independent Multicast.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:68:3: note: previous definition of 'IPPROTO_PIM' with type 'enum <anonymous>'
   68 |   IPPROTO_PIM = 103,            /* Protocol Independent Multicast       */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:82:5: error: redeclaration of enumerator 'IPPROTO_COMP'
   82 |     IPPROTO_COMP = 108,    /* Compression Header Protocol.  */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:70:3: note: previous definition of 'IPPROTO_COMP' with type 'enum <anonymous>'
   70 |   IPPROTO_COMP = 108,           /* Compression Header Protocol          */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:84:5: error: redeclaration of enumerator 'IPPROTO_SCTP'
   84 |     IPPROTO_SCTP = 132,    /* Stream Control Transmission Protocol.  */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:74:3: note: previous definition of 'IPPROTO_SCTP' with type 'enum <anonymous>'
   74 |   IPPROTO_SCTP = 132,           /* Stream Control Transport Protocol    */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:86:5: error: redeclaration of enumerator 'IPPROTO_UDPLITE'
   86 |     IPPROTO_UDPLITE = 136, /* UDP-Lite protocol.  */
      |     ^~~~~~~~~~~~~~~
/usr/include/linux/in.h:76:3: note: previous definition of 'IPPROTO_UDPLITE' with type 'enum <anonymous>'
   76 |   IPPROTO_UDPLITE = 136,        /* UDP-Lite (RFC 3828)                  */
      |   ^~~~~~~~~~~~~~~
/usr/include/netinet/in.h:88:5: error: redeclaration of enumerator 'IPPROTO_MPLS'
   88 |     IPPROTO_MPLS = 137,    /* MPLS in IP.  */
      |     ^~~~~~~~~~~~
/usr/include/linux/in.h:78:3: note: previous definition of 'IPPROTO_MPLS' with type 'enum <anonymous>'
   78 |   IPPROTO_MPLS = 137,           /* MPLS in IP (RFC 4023)                */
      |   ^~~~~~~~~~~~
/usr/include/netinet/in.h:90:5: error: redeclaration of enumerator 'IPPROTO_ETHERNET'
   90 |     IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation.  */
      |     ^~~~~~~~~~~~~~~~
/usr/include/linux/in.h:80:3: note: previous definition of 'IPPROTO_ETHERNET' with type 'enum <anonymous>'
   80 |   IPPROTO_ETHERNET = 143,       /* Ethernet-within-IPv6 Encapsulation   */
      |   ^~~~~~~~~~~~~~~~
/usr/include/netinet/in.h:92:5: error: redeclaration of enumerator 'IPPROTO_RAW'
   92 |     IPPROTO_RAW = 255,     /* Raw IP packets.  */
      |     ^~~~~~~~~~~
/usr/include/linux/in.h:82:3: note: previous definition of 'IPPROTO_RAW' with type 'enum <anonymous>'
   82 |   IPPROTO_RAW = 255,            /* Raw IP packets                       */
      |   ^~~~~~~~~~~
/usr/include/netinet/in.h:94:5: error: redeclaration of enumerator 'IPPROTO_MPTCP'
   94 |     IPPROTO_MPTCP = 262,   /* Multipath TCP connection.  */
      |     ^~~~~~~~~~~~~
/usr/include/linux/in.h:84:3: note: previous definition of 'IPPROTO_MPTCP' with type 'enum <anonymous>'
   84 |   IPPROTO_MPTCP = 262,          /* Multipath TCP connection             */
      |   ^~~~~~~~~~~~~
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:96:5: error: redeclaration of enumerator 'IPPROTO_MAX'
   96 |     IPPROTO_MAX
      |     ^~~~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:86:3: note: previous definition of 'IPPROTO_MAX' with type 'enum <anonymous>'
   86 |   IPPROTO_MAX
      |   ^~~~~~~~~~~
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:242:8: error: redefinition of 'struct sockaddr_in'
  242 | struct sockaddr_in
      |        ^~~~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:241:8: note: originally defined here
  241 | struct sockaddr_in {
      |        ^~~~~~~~~~~
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:269:8: error: redefinition of 'struct ip_mreq'
  269 | struct ip_mreq
      |        ^~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:177:8: note: originally defined here
  177 | struct ip_mreq  {
      |        ^~~~~~~
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:278:8: error: redefinition of 'struct ip_mreq_source'
  278 | struct ip_mreq_source
      |        ^~~~~~~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:188:8: note: originally defined here
  188 | struct ip_mreq_source {
      |        ^~~~~~~~~~~~~~
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:305:8: error: redefinition of 'struct group_req'
  305 | struct group_req
      |        ^~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:206:8: note: originally defined here
  206 | struct group_req {
      |        ^~~~~~~~~
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:314:8: error: redefinition of 'struct group_source_req'
  314 | struct group_source_req
      |        ^~~~~~~~~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:211:8: note: originally defined here
  211 | struct group_source_req {
      |        ^~~~~~~~~~~~~~~~
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:328:8: error: redefinition of 'struct ip_msfilter'
  328 | struct ip_msfilter
      |        ^~~~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:194:8: note: originally defined here
  194 | struct ip_msfilter {
      |        ^~~~~~~~~~~
In file included from ../common/sock_any.h:44,
                 from ../common/smtppass.c:68:
/usr/include/netinet/in.h:349:8: error: redefinition of 'struct group_filter'
  349 | struct group_filter
      |        ^~~~~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7,
                 from /usr/include/linux/netfilter_ipv4.h:9,
                 from ../common/smtppass.c:64:
/usr/include/linux/in.h:217:8: note: originally defined here
  217 | struct group_filter {
      |        ^~~~~~~~~~~~
../common/smtppass.c: In function 'sp_run':
../common/smtppass.c:309:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  309 |     siginterrupt(SIGINT, 1);
      |     ^~~~~~~~~~~~
In file included from /usr/include/sys/param.h:28,
                 from ../common/smtppass.c:46:
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c:310:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  310 |     siginterrupt(SIGTERM, 1);
      |     ^~~~~~~~~~~~
In file included from /usr/include/sys/param.h:28,
                 from ../common/smtppass.c:46:
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c: In function 'thread_main':
../common/smtppass.c:692:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  692 |     siginterrupt(SIGINT, 1);
      |     ^~~~~~~~~~~~
In file included from /usr/include/sys/param.h:28,
                 from ../common/smtppass.c:46:
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c:693:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  693 |     siginterrupt(SIGTERM, 1);
      |     ^~~~~~~~~~~~
In file included from /usr/include/sys/param.h:28,
                 from ../common/smtppass.c:46:
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c:730:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  730 |     return (void*)(ret == 0 ? 0 : 1);
      |            ^
../common/smtppass.c: In function 'make_connections':
../common/smtppass.c:758:82: warning: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types]
  758 |         if(getsockopt(ctx->client.fd, SOL_IP, SO_ORIGINAL_DST, &SANY_ADDR(addr), &SANY_LEN(addr)) == -1)
In file included from ../common/smtppass.c:45:
/usr/include/sys/socket.h:257:46: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
  257 |                        socklen_t *__restrict __optlen) __THROW;
      |                        ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
--- clamsmtpd-spio.o ---
mv -f .deps/clamsmtpd-spio.Tpo .deps/clamsmtpd-spio.Po
--- clamsmtpd-stringx.o ---
--- clamsmtpd-smtppass.o ---
../common/smtppass.c: In function 'sp_setup_forked':
../common/smtppass.c:1777:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
 1777 |     siginterrupt(SIGINT, 0);
      |     ^~~~~~~~~~~~
In file included from /usr/include/sys/param.h:28,
                 from ../common/smtppass.c:46:
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
../common/smtppass.c:1778:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
 1778 |     siginterrupt(SIGTERM, 0);
      |     ^~~~~~~~~~~~
In file included from /usr/include/sys/param.h:28,
                 from ../common/smtppass.c:46:
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
--- clamsmtpd-stringx.o ---
cc -DHAVE_CONFIG_H -I. -I..   -I/usr/include -I../common/ -I../ -pipe -O2 -I/usr/include -I/usr/local/include  -pthread  -D_POSIX_PTHREAD_SEMANTICS -MT clamsmtpd-stringx.o -MD -MP -MF .deps/clamsmtpd-stringx.Tpo -c -o clamsmtpd-stringx.o `test -f '../common/stringx.c' || echo './'`../common/stringx.c
--- clamsmtpd-smtppass.o ---
../common/smtppass.c: In function 'connection_loop':
../common/smtppass.c:540:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
  540 |                     write(fd, SMTP_STARTFAILED, KL(SMTP_STARTFAILED));
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../common/smtppass.c:557:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
  557 |             write(fd, SMTP_STARTBUSY, KL(SMTP_STARTBUSY));
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*** [clamsmtpd-smtppass.o] Error code 1

bmake[2]: stopped making "all" in /home/pbulk/build/mail/clamsmtp/work/clamsmtp-1.10/src
--- clamsmtpd-stringx.o ---
mv -f .deps/clamsmtpd-stringx.Tpo .deps/clamsmtpd-stringx.Po
bmake[2]: 1 error

bmake[2]: stopped making "all" in /home/pbulk/build/mail/clamsmtp/work/clamsmtp-1.10/src

bmake[1]: stopped making "all-recursive" in /home/pbulk/build/mail/clamsmtp/work/clamsmtp-1.10
*** [all] Error code 2

bmake: stopped making "all" in /home/pbulk/build/mail/clamsmtp/work/clamsmtp-1.10
bmake: 1 error

bmake: stopped making "all" in /home/pbulk/build/mail/clamsmtp/work/clamsmtp-1.10
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/mail/clamsmtp
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/mail/clamsmtp