+ 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.5nb1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/sslsplit-0.5.5nb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for sslsplit-0.5.5nb1 ------------------------------------------------------------------------------ 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:1 N:83c4edf uname -a: SunOS pkgsrc-upstream-trunk 5.11 joyent_20220728T031731Z 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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o base64.o base64.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 -D"BUILD_PKGNAME=\"sslsplit\"" -D"BUILD_VERSION=\"0.5.5\"" -D"BUILD_DATE=\"2022-10-22\"" -D"BUILD_INFO=\"V:FILE HDIFF:1 N:83c4edf\"" -D"BUILD_FEATURES=\"-DHAVE_IPFILTER\"" -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o build.o build.c base64.c: In function 'base64_dec': base64.c:89:27: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 89 | return (unsigned char *)strdup(""); | ^~~~~~ | strcmp base64.c:89:10: 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:10: 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 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachetgcrt.o cachetgcrt.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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o log.o log.c cachetgcrt.c: In function 'cachetgcrt_mkkey': cachetgcrt.c:151:9: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 151 | return strdup(keycn); | ^~~~~~ | strcmp cachetgcrt.c:151:9: 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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logbuf.o logbuf.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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logger.o logger.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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logpkt.o logpkt.c logbuf.c: In function 'logbuf_new_printf': logbuf.c:138:11: 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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o main.o main.c logger.c: In function 'logger_printf': logger.c:311:11: warning: implicit declaration of function 'vasprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] 311 | lb->sz = vasprintf((char**)&lb->buf, fmt, ap); | ^~~~~~~~~ | vsprintf 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 | : note: this is the location of the previous definition 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 | : note: this is the location of the previous definition 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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o opts.o opts.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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o proxy.o proxy.c logpkt.c: In function 'logpkt_pcap_build': logpkt.c:351:3: 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:2: 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)) { | ^~~~~~ 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 | : note: this is the location of the previous definition main.c: In function 'main_version': main.c:123:20: 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:20: 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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxyconn.o pxyconn.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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o ssl.o ssl.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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o sys.o sys.c nat.c: In function 'nat_ipfilter_preinit': nat.c:225:20: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 225 | nat_ipfilter_fd = open(IPNAT_NAME, O_RDONLY); | ^~~~ | popen 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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o thrqueue.o thrqueue.c nat.c:225:37: error: 'O_RDONLY' undeclared (first use in this function); did you mean 'HOOK_RDONLY'? 225 | nat_ipfilter_fd = open(IPNAT_NAME, O_RDONLY); | ^~~~~~~~ | HOOK_RDONLY nat.c:225:37: note: each undeclared identifier is reported only once for each function it appears in nat.c: In function 'nat_ipfilter_init': nat.c:239:7: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration] 239 | rv = fcntl(nat_ipfilter_fd, F_SETFD, | ^~~~~ nat.c:239:30: error: 'F_SETFD' undeclared (first use in this function) 239 | rv = fcntl(nat_ipfilter_fd, F_SETFD, | ^~~~~~~ pxyconn.c: In function 'pxy_http_reqhdr_filter_line': pxyconn.c:1400:27: warning: implicit declaration of function 'strncasecmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration] 1400 | if (!ctx->http_host && !strncasecmp(line, "Host:", 5)) { | ^~~~~~~~~~~ | strncmp nat.c:240:36: error: 'F_GETFD' undeclared (first use in this function) 240 | fcntl(nat_ipfilter_fd, F_GETFD) | FD_CLOEXEC); | ^~~~~~~ pxyconn.c: In function 'pxy_conn_autossl_peek_and_upgrade': pxyconn.c:1675:43: warning: pointer targets in passing argument 1 of 'ssl_tls_clienthello_parse' differ in signedness [-Wpointer-sign] 1675 | if (ssl_tls_clienthello_parse(vec_out[0].iov_base, | ~~~~~~~~~~^~~~~~~~~ | | | caddr_t {aka char *} In file included from opts.h:34, from pxyconn.h:32, from pxyconn.c:29: 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 -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/libnet11 -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o url.o url.c nat.c:240:47: error: 'FD_CLOEXEC' undeclared (first use in this function); did you mean 'SOCK_CLOEXEC'? 240 | fcntl(nat_ipfilter_fd, F_GETFD) | FD_CLOEXEC); | ^~~~~~~~~~ | SOCK_CLOEXEC gmake: *** [GNUmakefile:491: nat.o] Error 1 gmake: *** Waiting for unfinished jobs.... url.c: In function 'url_dec': url.c:83:10: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 83 | return strdup(""); | ^~~~~~ | strcmp url.c:83:10: warning: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion] 83 | return strdup(""); | ^~~~~~~~~~ ssl.c: In function 'ssl_sha1_to_str': ssl.c:549:7: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] 549 | rv = asprintf(&str, colons ? | ^~~~~~~~ | vsprintf sys.c: In function 'sys_pidf_open': sys.c:257:6: 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:15: error: 'SIOCGIFMTU' undeclared (first use in this function) 554 | if (ioctl(s, SIOCGIFMTU, &ifr) == -1) { | ^~~~~~~~~~ sys.c:554:15: note: each undeclared identifier is reported only once for each function it appears in sys.c: In function 'sys_sendmsgfd': sys.c:767:15: warning: implicit declaration of function 'CMSG_SPACE' [-Wimplicit-function-declaration] 767 | char cmsgbuf[CMSG_SPACE(sizeof(int))]; | ^~~~~~~~~~ sys.c:777:5: error: 'struct msghdr' has no member named 'msg_flags' 777 | msg.msg_flags = 0; | ^ sys.c:780:6: error: 'struct msghdr' has no member named 'msg_control' 780 | msg.msg_control = cmsgbuf; | ^ sys.c:781:6: error: 'struct msghdr' has no member named 'msg_controllen' 781 | msg.msg_controllen = sizeof(cmsgbuf); | ^ sys.c:784:10: warning: implicit declaration of function 'CMSG_FIRSTHDR' [-Wimplicit-function-declaration] 784 | cmsg = CMSG_FIRSTHDR(&msg); | ^~~~~~~~~~~~~ sys.c:784:8: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 784 | cmsg = CMSG_FIRSTHDR(&msg); | ^ sys.c:787:20: warning: implicit declaration of function 'CMSG_LEN' [-Wimplicit-function-declaration] 787 | cmsg->cmsg_len = CMSG_LEN(sizeof(int)); | ^~~~~~~~ sys.c:791:13: warning: implicit declaration of function 'CMSG_DATA' [-Wimplicit-function-declaration] 791 | *((int *) CMSG_DATA(cmsg)) = fd; | ^~~~~~~~~ sys.c:791:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 791 | *((int *) CMSG_DATA(cmsg)) = fd; | ^ sys.c:793:6: error: 'struct msghdr' has no member named 'msg_control' 793 | msg.msg_control = NULL; | ^ sys.c:794:6: error: 'struct msghdr' has no member named 'msg_controllen' 794 | msg.msg_controllen = 0; | ^ sys.c: In function 'sys_recvmsgfd': sys.c:831:6: error: 'struct msghdr' has no member named 'msg_control' 831 | msg.msg_control = cmsgbuf; | ^ sys.c:832:6: error: 'struct msghdr' has no member named 'msg_controllen' 832 | msg.msg_controllen = sizeof(cmsgbuf); | ^ sys.c:838:8: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 838 | cmsg = CMSG_FIRSTHDR(&msg); | ^ sys.c:839:30: 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:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 848 | *pfd = *((int *) CMSG_DATA(cmsg)); | ^ gmake: *** [GNUmakefile:491: sys.o] Error 1 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/sslsplit *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/sslsplit