+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/sslsplit-0.5.5nb3/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/sslsplit-0.5.5nb3/work.log
===> Building for sslsplit-0.5.5nb3
------------------------------------------------------------------------------
SSLsplit 0.5.5
------------------------------------------------------------------------------
Report bugs at https://github.com/droe/sslsplit/issues/new
Please supply this header for diagnostics when reporting build issues
Before reporting bugs, make sure to try the latest develop branch first:
% git clone -b develop https://github.com/droe/sslsplit.git
------------------------------------------------------------------------------
Via pkg-config: 
OPENSSL_BASE:   /opt/pkg
LIBEVENT_BASE:  /opt/pkg
LIBPCAP_BASE:   /opt/pkg
LIBNET_BASE:    /opt/pkg
Build options:  -DHAVE_IPFILTER
Build info:     V:FILE HDIFF:3 N:83c4edf
uname -a:       SunOS pkgsrc-upstream-trunk 5.11 joyent_20240222T001232Z i86pc i386 i86pc
------------------------------------------------------------------------------
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o base64.o base64.c
base64.c: In function 'base64_dec':
base64.c:89:41: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
   89 |                 return (unsigned char *)strdup("");
      |                                         ^~~~~~
      |                                         strcmp
base64.c:89:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   89 |                 return (unsigned char *)strdup("");
      |                        ^
base64.c: In function 'base64_enc':
base64.c:160:24: warning: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion]
  160 |                 return strdup("");
      |                        ^~~~~~~~~~
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -D"BUILD_PKGNAME=\"sslsplit\"" -D"BUILD_VERSION=\"0.5.5\"" -D"BUILD_DATE=\"2024-11-14\"" -D"BUILD_INFO=\"V:FILE HDIFF:3 N:83c4edf\"" -D"BUILD_FEATURES=\"-DHAVE_IPFILTER\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o build.o build.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o cache.o cache.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o cachedsess.o cachedsess.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o cachefkcrt.o cachefkcrt.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o cachemgr.o cachemgr.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o cachessess.o cachessess.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o cachetgcrt.o cachetgcrt.c
cachetgcrt.c: In function 'cachetgcrt_mkkey':
cachetgcrt.c:151:16: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
  151 |         return strdup(keycn);
      |                ^~~~~~
      |                strcmp
cachetgcrt.c:151:16: warning: returning 'int' from a function with return type 'cache_key_t' {aka 'void *'} makes pointer from integer without a cast [-Wint-conversion]
  151 |         return strdup(keycn);
      |                ^~~~~~~~~~~~~
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o cert.o cert.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o dynbuf.o dynbuf.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o log.o log.c
In file included from logpkt.h:39,
                 from log.c:36:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/libnet11/libnet.h:62: warning: "_GNU_SOURCE" redefined
   62 | #define _GNU_SOURCE
      | 
<command-line>: note: this is the location of the previous definition
log.c:1677:46: warning: argument 3 of type 'int[5]' with mismatched bound [-Warray-parameter=]
 1677 | log_init(opts_t *opts, proxy_ctx_t *ctx, int clisock[5])
      |                                          ~~~~^~~~~~~~~~
In file included from log.c:29:
log.h:97:39: note: previously declared as 'int[3]'
   97 | int log_init(opts_t *, proxy_ctx_t *, int[3]) NONNULL(1,2) WUNRES;
      |                                       ^~~~~~
log.c: In function 'log_init':
log.c:1716:17: warning: array subscript 3 is outside array bounds of 'int[3]' [-Warray-bounds=]
 1716 |                 privsep_client_close(clisock[3]);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
log.c:1677:46: note: at offset 12 into object 'clisock' of size [0, 12]
 1677 | log_init(opts_t *opts, proxy_ctx_t *ctx, int clisock[5])
      |                                          ~~~~^~~~~~~~~~
log.c:1712:38: warning: array subscript 3 is outside array bounds of 'int[3]' [-Warray-bounds=]
 1712 |                 content_pcap_clisock = clisock[3];
      |                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
log.c:1677:46: note: at offset 12 into object 'clisock' of size [0, 12]
 1677 | log_init(opts_t *opts, proxy_ctx_t *ctx, int clisock[5])
      |                                          ~~~~^~~~~~~~~~
log.c:1731:17: warning: array subscript 4 is outside array bounds of 'int[3]' [-Warray-bounds=]
 1731 |                 privsep_client_close(clisock[4]);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
log.c:1677:46: note: at offset 16 into object 'clisock' of size [0, 12]
 1677 | log_init(opts_t *opts, proxy_ctx_t *ctx, int clisock[5])
      |                                          ~~~~^~~~~~~~~~
log.c:1727:30: warning: array subscript 4 is outside array bounds of 'int[3]' [-Warray-bounds=]
 1727 |                 cert_clisock = clisock[4];
      |                 ~~~~~~~~~~~~~^~~~~~~~~~~~
log.c:1677:46: note: at offset 16 into object 'clisock' of size [0, 12]
 1677 | log_init(opts_t *opts, proxy_ctx_t *ctx, int clisock[5])
      |                                          ~~~~^~~~~~~~~~
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o logbuf.o logbuf.c
logbuf.c: In function 'logbuf_new_printf':
logbuf.c:138:18: warning: implicit declaration of function 'vasprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
  138 |         lb->sz = vasprintf((char**)&lb->buf, fmt, ap);
      |                  ^~~~~~~~~
      |                  vsprintf
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o logger.o logger.c
logger.c: In function 'logger_printf':
logger.c:311:18: warning: implicit declaration of function 'vasprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
  311 |         lb->sz = vasprintf((char**)&lb->buf, fmt, ap);
      |                  ^~~~~~~~~
      |                  vsprintf
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o logpkt.o logpkt.c
In file included from logpkt.h:39,
                 from logpkt.c:29:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/libnet11/libnet.h:62: warning: "_GNU_SOURCE" redefined
   62 | #define _GNU_SOURCE
      | 
<command-line>: note: this is the location of the previous definition
logpkt.c: In function 'logpkt_pcap_build':
logpkt.c:351:17: warning: converting a packed 'ip4_hdr_t' pointer (alignment 1) to a 'uint16_t' {aka 'short unsigned int'} pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member]
  351 |                 CHKSUM_ADD_RANGE(sum, ip4_hdr, sizeof(ip4_hdr_t));
      |                 ^~~~~~~~~~~~~~~~
logpkt.c:81:9: note: defined here
   81 | typedef struct __attribute__((packed)) {
      |         ^~~~~~
logpkt.c:399:9: warning: converting a packed 'tcp_hdr_t' pointer (alignment 1) to a 'uint16_t' {aka 'short unsigned int'} pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member]
  399 |         CHKSUM_ADD_RANGE(sum, tcp_hdr, sizeof(tcp_hdr_t) + payloadlen);
      |         ^~~~~~~~~~~~~~~~
logpkt.c:103:9: note: defined here
  103 | typedef struct __attribute__((packed)) {
      |         ^~~~~~
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o main.o main.c
In file included from main.c:60:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/libnet11/libnet.h:62: warning: "_GNU_SOURCE" redefined
   62 | #define _GNU_SOURCE
      | 
<command-line>: note: this is the location of the previous definition
main.c: In function 'main_version':
main.c:123:27: warning: implicit declaration of function 'libnet_version'; did you mean 'nat_version'? [-Wimplicit-function-declaration]
  123 |         const char *lnv = libnet_version();
      |                           ^~~~~~~~~~~~~~
      |                           nat_version
main.c:123:27: warning: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o nat.o nat.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o opts.o opts.c
opts.c: In function 'opts_free':
opts.c:131:17: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  131 |                 DH_free(opts->dh);
      |                 ^~~~~~~
In file included from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dsa.h:31,
                 from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/x509.h:37,
                 from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ssl.h:32,
                 from ssl.h:35,
                 from opts.h:34,
                 from opts.c:29:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:211:28: note: declared here
  211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
opts.c: In function 'opts_set_dh':
opts.c:765:17: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  765 |                 DH_free(opts->dh);
      |                 ^~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:211:28: note: declared here
  211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
opts.c: In function 'opts_set_ecdhcurve':
opts.c:794:9: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  794 |         EC_KEY_free(ec);
      |         ^~~~~~~~~~~
In file included from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/x509.h:33:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ec.h:1022:28: note: declared here
 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
      |                            ^~~~~~~~~~~
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o privsep.o privsep.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o proc.o proc.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o proxy.o proxy.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o pxyconn.o pxyconn.c
pxyconn.c: In function 'pxy_srcsslctx_create':
pxyconn.c:792:17: warning: 'SSL_CTX_set_tmp_dh_callback' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  792 |                 SSL_CTX_set_tmp_dh_callback(sslctx, ssl_tmp_dh_callback);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ssl.h:35,
                 from opts.h:34,
                 from pxyconn.h:32,
                 from pxyconn.c:29:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ssl.h:2275:6: note: declared here
 2275 | void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
pxyconn.c:799:17: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  799 |                 EC_KEY_free(ecdh);
      |                 ^~~~~~~~~~~
In file included from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/x509.h:33,
                 from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ssl.h:32:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ec.h:1022:28: note: declared here
 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
      |                            ^~~~~~~~~~~
pxyconn.c:803:17: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  803 |                 EC_KEY_free(ecdh);
      |                 ^~~~~~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ec.h:1022:28: note: declared here
 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
      |                            ^~~~~~~~~~~
pxyconn.c: In function 'pxy_http_reqhdr_filter_line':
pxyconn.c:1404:41: warning: implicit declaration of function 'strncasecmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
 1404 |                 if (!ctx->http_host && !strncasecmp(line, "Host:", 5)) {
      |                                         ^~~~~~~~~~~
      |                                         strncmp
pxyconn.c: In function 'pxy_conn_autossl_peek_and_upgrade':
pxyconn.c:1679:57: warning: pointer targets in passing argument 1 of 'ssl_tls_clienthello_parse' differ in signedness [-Wpointer-sign]
 1679 |                 if (ssl_tls_clienthello_parse(vec_out[0].iov_base,
      |                                               ~~~~~~~~~~^~~~~~~~~
      |                                                         |
      |                                                         caddr_t {aka char *}
ssl.h:261:31: note: expected 'const unsigned char *' but argument is of type 'caddr_t' {aka 'char *'}
  261 | int ssl_tls_clienthello_parse(const unsigned char *, ssize_t, int,
      |                               ^~~~~~~~~~~~~~~~~~~~~
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o pxythrmgr.o pxythrmgr.c
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o ssl.o ssl.c
ssl.c: In function 'ssl_engine':
ssl.c:530:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  530 |         engine = ENGINE_by_id(name);
      |         ^~~~~~
In file included from ssl.c:44:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/engine.h:336:31: note: declared here
  336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
      |                               ^~~~~~~~~~~~
ssl.c:534:9: warning: 'ENGINE_set_default' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  534 |         if (!ENGINE_set_default(engine, ENGINE_METHOD_ALL))
      |         ^~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/engine.h:708:27: note: declared here
  708 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_default(ENGINE *e, unsigned int flags);
      |                           ^~~~~~~~~~~~~~~~~~
ssl.c: In function 'ssl_sha1_to_str':
ssl.c:549:14: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
  549 |         rv = asprintf(&str, colons ?
      |              ^~~~~~~~
      |              vsprintf
ssl.c: In function 'ssl_tmp_dh_callback':
ssl.c:738:9: warning: 'DH_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  738 |         if (!(dh = DH_new())) {
      |         ^~
In file included from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dsa.h:31,
                 from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/x509.h:37,
                 from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ssl.h:32,
                 from ssl.h:35,
                 from ssl.c:29:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:210:27: note: declared here
  210 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
      |                           ^~~~~~
ssl.c:744:17: warning: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  744 |                 rv = DH_set0_pqg(dh,
      |                 ^~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:266:27: note: declared here
  266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ssl.c:750:17: warning: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  750 |                 rv = DH_set0_pqg(dh,
      |                 ^~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:266:27: note: declared here
  266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ssl.c:756:17: warning: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  756 |                 rv = DH_set0_pqg(dh,
      |                 ^~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:266:27: note: declared here
  266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ssl.c:762:17: warning: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  762 |                 rv = DH_set0_pqg(dh,
      |                 ^~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:266:27: note: declared here
  266 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ssl.c:771:17: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  771 |                 DH_free(dh);
      |                 ^~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:211:28: note: declared here
  211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
ssl.c:776:17: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  776 |                 DH_free(dh);
      |                 ^~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:211:28: note: declared here
  211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
ssl.c: In function 'ssl_dh_load':
ssl.c:798:9: warning: 'PEM_read_DHparams' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  798 |         dh = PEM_read_DHparams(fh, NULL, NULL, NULL);
      |         ^~
In file included from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ssl.h:37:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/pem.h:74:11: note: declared here
   74 |     type *PEM_##readname##_##name(INTYPE *out, type **x,                \
      |           ^~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/pem.h:238:10: note: in expansion of macro 'PEM_read_cb_fnsig'
  238 |     attr PEM_read_cb_fnsig(name, type, FILE, read);
      |          ^~~~~~~~~~~~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/pem.h:337:5: note: in expansion of macro 'DECLARE_PEM_read_fp_attr'
  337 |     DECLARE_PEM_read_fp_attr(attr, name, type)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/pem.h:346:5: note: in expansion of macro 'DECLARE_PEM_read_attr'
  346 |     DECLARE_PEM_read_attr(attr, name, type)                                 \
      |     ^~~~~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/pem.h:473:1: note: in expansion of macro 'DECLARE_PEM_rw_attr'
  473 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
      | ^~~~~~~~~~~~~~~~~~~
ssl.c: In function 'ssl_ec_by_name':
ssl.c:820:9: warning: 'EC_KEY_new_by_curve_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  820 |         return EC_KEY_new_by_curve_name(nid);
      |         ^~~~~~
In file included from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/x509.h:33:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/ec.h:1017:31: note: declared here
 1017 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~
ssl.c: In function 'ssl_key_genrsa':
ssl.c:1370:9: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1370 |         rsa = RSA_new();
      |         ^~~
In file included from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/x509.h:36:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/rsa.h:212:28: note: declared here
  212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
ssl.c:1373:9: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1373 |         rv = RSA_generate_key_ex(rsa, keysize, bn, NULL);
      |         ^~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/rsa.h:271:27: note: declared here
  271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
      |                           ^~~~~~~~~~~~~~~~~~~
ssl.c:1376:17: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1376 |                 RSA_free(rsa);
      |                 ^~~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/rsa.h:304:28: note: declared here
  304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
ssl.c:1385:9: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1385 |         EVP_PKEY_assign_RSA(pkey, rsa); /* does not increment refcount */
      |         ^~~~~~~~~~~~~~~~~~~
In file included from /home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/x509.h:29:
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/evp.h:1338:5: note: declared here
 1338 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
      |     ^~~~~~~~~~~~~~~
ssl.c: In function 'ssl_dh_refcount_inc':
ssl.c:1506:9: warning: 'DH_up_ref' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1506 |         DH_up_ref(dh);
      |         ^~~~~~~~~
/home/pbulk/build/security/sslsplit/work/.buildlink/include/openssl/dh.h:212:27: note: declared here
  212 | OSSL_DEPRECATEDIN_3_0 int DH_up_ref(DH *dh);
      |                           ^~~~~~~~~
ssl.c: In function 'ssl_wildcardify':
ssl.c:1602:24: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
 1602 |                 return strdup("*");
      |                        ^~~~~~
      |                        strcmp
ssl.c:1602:24: warning: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion]
 1602 |                 return strdup("*");
      |                        ^~~~~~~~~~~
ssl.c: In function 'ssl_x509_names_to_str':
ssl.c:1743:24: warning: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion]
 1743 |                 return strdup("-");
      |                        ^~~~~~~~~~~
ssl.c:1750:21: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1750 |                 buf = strdup("-");
      |                     ^
gcc -c -I/opt/pkg/include -I/opt/pkg/include/libnet11 -isystem/opt/pkg/include -isystem/opt/pkg/include -isystem/opt/pkg/include/libnet11 -isystem/opt/pkg/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFILTER -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/libnet11  -std=c99 -Wall -Wextra -pedantic -pthread -o sys.o sys.c
sys.c: In function 'sys_pidf_open':
sys.c:257:13: warning: implicit declaration of function 'flock'; did you mean 'clock'? [-Wimplicit-function-declaration]
  257 |         if (flock(fd, LOCK_EX|LOCK_NB) == -1) {
      |             ^~~~~
      |             clock
sys.c: In function 'sys_get_mtu':
sys.c:554:22: error: 'SIOCGIFMTU' undeclared (first use in this function)
  554 |         if (ioctl(s, SIOCGIFMTU, &ifr) == -1) {
      |                      ^~~~~~~~~~
sys.c:554:22: note: each undeclared identifier is reported only once for each function it appears in
sys.c: In function 'sys_sendmsgfd':
sys.c:767:22: warning: implicit declaration of function 'CMSG_SPACE' [-Wimplicit-function-declaration]
  767 |         char cmsgbuf[CMSG_SPACE(sizeof(int))];
      |                      ^~~~~~~~~~
sys.c:777:12: error: 'struct msghdr' has no member named 'msg_flags'
  777 |         msg.msg_flags = 0;
      |            ^
sys.c:780:20: error: 'struct msghdr' has no member named 'msg_control'
  780 |                 msg.msg_control = cmsgbuf;
      |                    ^
sys.c:781:20: error: 'struct msghdr' has no member named 'msg_controllen'
  781 |                 msg.msg_controllen = sizeof(cmsgbuf);
      |                    ^
sys.c:784:24: warning: implicit declaration of function 'CMSG_FIRSTHDR' [-Wimplicit-function-declaration]
  784 |                 cmsg = CMSG_FIRSTHDR(&msg);
      |                        ^~~~~~~~~~~~~
sys.c:784:22: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  784 |                 cmsg = CMSG_FIRSTHDR(&msg);
      |                      ^
sys.c:787:34: warning: implicit declaration of function 'CMSG_LEN' [-Wimplicit-function-declaration]
  787 |                 cmsg->cmsg_len = CMSG_LEN(sizeof(int));
      |                                  ^~~~~~~~
sys.c:791:27: warning: implicit declaration of function 'CMSG_DATA' [-Wimplicit-function-declaration]
  791 |                 *((int *) CMSG_DATA(cmsg)) = fd;
      |                           ^~~~~~~~~
sys.c:791:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  791 |                 *((int *) CMSG_DATA(cmsg)) = fd;
      |                   ^
sys.c:793:20: error: 'struct msghdr' has no member named 'msg_control'
  793 |                 msg.msg_control = NULL;
      |                    ^
sys.c:794:20: error: 'struct msghdr' has no member named 'msg_controllen'
  794 |                 msg.msg_controllen = 0;
      |                    ^
sys.c: In function 'sys_recvmsgfd':
sys.c:831:20: error: 'struct msghdr' has no member named 'msg_control'
  831 |                 msg.msg_control = cmsgbuf;
      |                    ^
sys.c:832:20: error: 'struct msghdr' has no member named 'msg_controllen'
  832 |                 msg.msg_controllen = sizeof(cmsgbuf);
      |                    ^
sys.c:838:22: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  838 |                 cmsg = CMSG_FIRSTHDR(&msg);
      |                      ^
sys.c:839:44: warning: comparison of integer expressions of different signedness: 'socklen_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
  839 |                 if (cmsg && cmsg->cmsg_len == CMSG_LEN(sizeof(int))) {
      |                                            ^~
sys.c:848:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  848 |                         *pfd = *((int *) CMSG_DATA(cmsg));
      |                                  ^
gmake: *** [GNUmakefile:490: sys.o] Error 1
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/sslsplit
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/sslsplit