=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for sslsplit-0.4.10nb1 sh: pkg-config: not found clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachessess.o cachessess.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxythrmgr.o pxythrmgr.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o ssl.o ssl.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o dynbuf.o dynbuf.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logger.o logger.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o proxy.o proxy.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxyconn.o pxyconn.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cache.o cache.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o util.o util.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o url.o url.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o main.o main.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachedsess.o cachedsess.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o version.o version.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o base64.o base64.c via pkg-config: SSLsplit 0.4.10 clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o nat.o nat.c OPENSSL_BASE: /usr LIBEVENT_BASE: /usr Build options: -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o log.o log.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachetgcrt.o cachetgcrt.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o proc.o proc.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o thrqueue.o thrqueue.c cachessess.c:66:1: warning: unused function 'kh_clear_dynbufmap_t' [-Wunused-function] KHASH_INIT(dynbufmap_t, dynbuf_t*, dynbuf_t*, 1, kh_dynbuf_hash_func, ^ ./khash.h:358:2: note: expanded from macro 'KHASH_INIT' KHASH_INIT2(name, static kh_inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) ^ ./khash.h:355:2: note: expanded from macro 'KHASH_INIT2' __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) ^ ./khash.h:215:13: note: expanded from macro '__KHASH_IMPL' SCOPE void kh_clear_##name(kh_##name##_t *h) \ ^ :150:1: note: expanded from here kh_clear_dynbufmap_t ^ clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o sys.o sys.c clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o opts.o opts.c logger.c:278:32: warning: nonnull parameter 's' will evaluate to 'true' on first encounter [-Wpointer-bool-conversion] if (!(lb = logbuf_new_copy(s, s ? strlen(s) : 0, fh, NULL))) ^ ~ ./logger.h:59:32: note: declared 'nonnull' here const char *) NONNULL(1,4) WUNRES; ^ ./attrib.h:55:40: note: expanded from macro 'NONNULL' #define NONNULL(...) __attribute__((nonnull(__VA_ARGS__))) ^ logger.c:298:27: warning: nonnull parameter 's' will evaluate to 'true' on first encounter [-Wpointer-bool-conversion] if (!(lb = logbuf_new(s, s ? strlen(s) : 0, fh, NULL))) ^ ~ ./logger.h:63:34: note: declared 'nonnull' here char *) NONNULL(1,4) WUNRES; ^ ./attrib.h:55:40: note: expanded from macro 'NONNULL' #define NONNULL(...) __attribute__((nonnull(__VA_ARGS__))) ^ clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxysslshut.o pxysslshut.c ssl.c:280:32: warning: unused parameter 'id' [-Wunused-parameter] ssl_thr_id_cb(CRYPTO_THREADID *id) ^ ssl.c:395:2: warning: 'ERR_remove_state' is deprecated [-Wdeprecated-declarations] ERR_remove_state(0); /* current thread */ ^ /usr/include/openssl/err.h:248:1: note: 'ERR_remove_state' has been explicitly marked deprecated here DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid)) ^ /usr/include/openssl/opensslconf.h:133:34: note: expanded from macro 'DEPRECATEDIN_1_0_0' # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ ssl.c:434:19: error: incomplete definition of type 'struct ssl_st' ssl->state, ~~~^ /usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ ssl.c:435:20: error: incomplete definition of type 'struct ssl_st' (ssl->state & SSL_ST_CONNECT) ? "SSL_ST_CONNECT|" : "", ~~~^ /usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ ssl.c:436:20: error: incomplete definition of type 'struct ssl_st' (ssl->state & SSL_ST_ACCEPT) ? "SSL_ST_ACCEPT|" : "", ~~~^ /usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ ssl.c:437:20: error: incomplete definition of type 'struct ssl_st' (ssl->state & SSL_ST_BEFORE) ? "SSL_ST_BEFORE|" : "", ~~~^ /usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ pxyconn.c:550:3: error: incomplete definition of type 'struct ssl_session_st' cachemgr_ssess_set(sess); ^~~~~~~~~~~~~~~~~~~~~~~~ ./cachemgr.h:66:41: note: expanded from macro 'cachemgr_ssess_set' cachessess_mkkey((val)->session_id, \ ~~~~~^ /usr/include/openssl/ssl.h:228:16: note: forward declaration of 'struct ssl_session_st' typedef struct ssl_session_st SSL_SESSION; ^ pxyconn.c:550:3: error: incomplete definition of type 'struct ssl_session_st' cachemgr_ssess_set(sess); ^~~~~~~~~~~~~~~~~~~~~~~~ ./cachemgr.h:67:41: note: expanded from macro 'cachemgr_ssess_set' (val)->session_id_length), \ ~~~~~^ /usr/include/openssl/ssl.h:228:16: note: forward declaration of 'struct ssl_session_st' typedef struct ssl_session_st SSL_SESSION; ^ pxyconn.c:572:3: error: incomplete definition of type 'struct ssl_session_st' cachemgr_ssess_del(sess); ^~~~~~~~~~~~~~~~~~~~~~~~ ./cachemgr.h:71:41ssl.c: note: :expanded from macro 'cachemgr_ssess_del'437 :30: error cachessess_mkkey((val)->session_id, \: use of undeclared identifier 'SSL_ST_BEFORE'; did you mean 'TLS_ST_BEFORE'? ~~~~~^ /usr/include/openssl/ssl.h: (ssl->state & SSL_ST_BEFORE) ? "SSL_ST_BEFORE|" : "",228 ^~~~~~~~~~~~~: 16: TLS_ST_BEFORE note: forward declaration of 'struct ssl_session_st' typedef struct ssl_session_st SSL_SESSION; ^/usr/include/openssl/ssl.h :871pxyconn.c::5725: note:: 'TLS_ST_BEFORE' declared here 3: TLS_ST_BEFORE, ^ error: incomplete definition of type 'struct ssl_session_st' ssl.c: cachemgr_ssess_del(sess);438 :19: ^~~~~~~~~~~~~~~~~~~~~~~~ error : ./cachemgr.hincomplete definition of type 'struct ssl_st' :72 ssl->state & SSL_ST_MASK,: 41 ~~~^ :/usr/include/openssl/ossl_typ.h :note: 144:expanded from macro 'cachemgr_ssess_del'16: note: (val)->session_id_length))forward declaration of 'struct ssl_st' ~~~~~^typedef struct ssl_st SSL; /usr/include/openssl/ssl.h ^: 228:16: note: ssl.cforward declaration of 'struct ssl_session_st': 441:20: typedef struct ssl_session_st SSL_SESSION;error : ^incomplete definition of type 'struct ssl_st' (ssl->type == SSL_ST_CONNECT) ? "connect socket" ~~~^ /usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ pxyconn.c:668:34: warning: incompatible pointer types passing 'SSL_SESSION *(SSL *, unsigned char *, int, int *)' (aka 'struct ssl_session_st *(struct ssl_st *, unsigned char *, int, int *)') to parameter of type 'SSL_SESSION *(*)(struct ssl_st *, const unsigned char *, int, int *)' (aka 'struct ssl_session_st *(*)(struct ssl_st *, const unsigned char *, int, int *)') [-Wincompatible-pointer-types] SSL_CTX_sess_set_get_cb(sslctx, pxy_ossl_sessget_cb); ^~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ssl.h:643:45: note: passing argument to parameter 'get_session_cb' here SSL_SESSION *(*get_session_cb) (struct ssl_st ^ pxyconn.c:682:30: error: incomplete definition of type 'struct evp_pkey_st' } else if (EVP_PKEY_type(key->type) != EVP_PKEY_RSA) { ~~~^ /usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'struct evp_pkey_st' typedef struct evp_pkey_st EVP_PKEY; ^ pxyconn.c:691:30: error: incomplete definition of type 'struct evp_pkey_st' } else if (EVP_PKEY_type(key->type) != EVP_PKEY_RSA) { ~~~^ /usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'struct evp_pkey_st' typedef struct evp_pkey_st EVP_PKEY;ssl.c : ^551 :6: error: incomplete definition of type 'struct dh_st' dh->p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL); ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ ssl.c:554:6: error: incomplete definition of type 'struct dh_st' dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL); ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ ssl.c:557:6: error: incomplete definition of type 'struct dh_st' dh->p = BN_bin2bn(dh2048_p, sizeof(dh2048_p), NULL); ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ ssl.c:560:6: error: incomplete definition of type 'struct dh_st' dh->p = BN_bin2bn(dh4096_p, sizeof(dh4096_p), NULL); ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ ssl.c:569:4: error: incomplete definition of type 'struct dh_st' dh->g = BN_bin2bn(dh_g, sizeof(dh_g), NULL); ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ ssl.c:570:9: error: incomplete definition of type 'struct dh_st' if (!dh->p || !dh->g) { ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ ssl.c:570:19: error: incomplete definition of type 'struct dh_st' if (!dh->p || !dh->g) { ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ ssl.c:674:7: warning: 'RAND_pseudo_bytes' is deprecated [-Wdeprecated-declarations] rv = RAND_pseudo_bytes((unsigned char*)p, sz); ^ /usr/include/openssl/rand.h:47:1: note: 'RAND_pseudo_bytes' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) ^ /usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ ssl.c:798:20: warning: implicit declaration of function 'M_ASN1_IA5STRING_new' is invalid in C99 [-Wimplicit-function-declaration] gn->d.dNSName = M_ASN1_IA5STRING_new(); ^ ssl.c:798:18: warning: incompatible integer to pointer conversion assigning to 'ASN1_IA5STRING *' (aka 'struct asn1_string_st *') from 'int' [-Wint-conversion] gn->d.dNSName = M_ASN1_IA5STRING_new(); ^ ~~~~~~~~~~~~~~~~~~~~~~ ssl.c:822:29: error: incomplete definition of type 'struct evp_pkey_st' switch (EVP_PKEY_type(cakey->type)) { ~~~~~^ /usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'struct evp_pkey_st' typedef struct evp_pkey_st EVP_PKEY; ^ ssl.c:909:40: error: incomplete definition of type 'struct ssl_ctx_st' for (int i = 0; i < sk_X509_num(tmpctx->extra_certs); i++) { ~~~~~~^ /usr/include/openssl/ossl_typ.h:145:16: note: forward declaration of 'struct ssl_ctx_st' typedef struct ssl_ctx_st SSL_CTX; ^ ssl.c:910:32: error: incomplete definition of type 'struct ssl_ctx_st' tmpcrt = sk_X509_value(tmpctx->extra_certs, i); ~~~~~~^ /usr/include/openssl/ossl_typ.h:145:16: note: forward declaration of 'struct ssl_ctx_st' typedef struct ssl_ctx_st SSL_CTX; ^ ssl.c:941:22: error: incomplete definition of type 'struct ssl_ctx_st' sk_X509_push(sslctx->extra_certs, tmpcrt); ~~~~~~^ /usr/include/openssl/ossl_typ.h:145:16: note: forward declaration of 'struct ssl_ctx_st' typedef struct ssl_ctx_st SSL_CTX; ^ ssl.c:1026:8: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] rsa = RSA_generate_key(keysize, 3, NULL, NULL); ^ /usr/include/openssl/rsa.h:193:1: note: 'RSA_generate_key' has been explicitly marked deprecated here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ /usr/include/openssl/opensslconf.h:139:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ 1 warning generated. ssl.c:1092:2: warning: implicit declaration of function 'CRYPTO_add' is invalid in C99 [-Wimplicit-function-declaration] CRYPTO_add(&dh->references, 1, CRYPTO_LOCK_DH); ^ ssl.c:1092:16: error: incomplete definition of type 'struct dh_st' CRYPTO_add(&dh->references, 1, CRYPTO_LOCK_DH); ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ 1 warning and 6 errors generated. fatal error: too many errors emitted, stopping now [-ferror-limit=] 7 warnings and 20 errors generated. clang -c -I/usr/include -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.4.10\"" -D"BUILD_DATE=\"2018-09-23\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachefkcrt.o cachefkcrt.c gmake: *** [GNUmakefile:320: pxyconn.o] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [GNUmakefile:320: ssl.o] Error 1 2 warnings generated. cachedsess.c:68:1: warning: unused function 'kh_clear_dynbufmap_t' [-Wunused-function] KHASH_INIT(dynbufmap_t, dynbuf_t*, dynbuf_t*, 1, kh_dynbuf_hash_func, ^ ./khash.h:358:2: note: expanded from macro 'KHASH_INIT' KHASH_INIT2(name, static kh_inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) ^ ./khash.h:355:2: note: expanded from macro 'KHASH_INIT2' __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) ^ ./khash.h:215:13: note: expanded from macro '__KHASH_IMPL' SCOPE void kh_clear_##name(kh_##name##_t *h) \ ^ :160:1: note: expanded from here kh_clear_dynbufmap_t ^ pxythrmgr.c:121:7: warning: nonnull parameter 'ctx' will evaluate to 'true' on first encounter [-Wpointer-bool-conversion] if (!ctx) ~^~~ ./pxythrmgr.h:44:40: note: declared 'nonnull' here int pxy_thrmgr_run(pxy_thrmgr_ctx_t *) NONNULL(1) WUNRES; ^ ./attrib.h:55:40: note: expanded from macro 'NONNULL' #define NONNULL(...) __attribute__((nonnull(__VA_ARGS__))) ^ pxythrmgr.c:206:7: warning: nonnull parameter 'ctx' will evaluate to 'true' on first encounter [-Wpointer-bool-conversion] if (!ctx) ~^~~ ./pxythrmgr.h:45:42: note: declared 'nonnull' here void pxy_thrmgr_free(pxy_thrmgr_ctx_t *) NONNULL(1); ^ ./attrib.h:55:40: note: expanded from macro 'NONNULL' #define NONNULL(...) __attribute__((nonnull(__VA_ARGS__))) ^ cachetgcrt.c:42:1: warning: unused function 'kh_clear_cstrmap_t' [-Wunused-function] KHASH_INIT(cstrmap_t, char*, void*, 1, kh_str_hash_func, kh_str_hash_equal) ^ ./khash.h:358:2: note: expanded from macro 'KHASH_INIT' KHASH_INIT2(name, static kh_inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) ^ ./khash.h:355:2: note: expanded from macro 'KHASH_INIT2' __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) ^ ./khash.h:215:13: note: expanded from macro '__KHASH_IMPL' SCOPE void kh_clear_##name(kh_##name##_t *h) \ ^ :151:1: note: expanded from here kh_clear_cstrmap_t ^ 2 warnings generated. 1 warning generated. 1 warning generated. opts.c:148:21: error: use of undeclared identifier 'SSLv3_method' opts->sslmethod = SSLv3_method; ^ opts.c:153:21: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] opts->sslmethod = TLSv1_method; ^ /usr/include/openssl/ssl.h:1627:1: note: 'TLSv1_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ /usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ opts.c:158:21: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations] opts->sslmethod = TLSv1_1_method; ^ /usr/include/openssl/ssl.h:1633:1: note: 'TLSv1_1_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */ ^ /usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ opts.c:163:21: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations] opts->sslmethod = TLSv1_2_method; ^ /usr/include/openssl/ssl.h:1639:1: note: 'TLSv1_2_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */ ^ /usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ opts.c:223:37: error: use of undeclared identifier 'SSLv3_method' (opts->sslmethod == SSLv3_method) ? "ssl3" : ^ opts.c:226:37: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] (opts->sslmethod == TLSv1_method) ? "tls10" : ^ /usr/include/openssl/ssl.h:1627:1: note: 'TLSv1_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ /usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ opts.c:229:37: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations] (opts->sslmethod == TLSv1_1_method) ? "tls11" : ^ /usr/include/openssl/ssl.h:1633:1: note: 'TLSv1_1_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */ ^ /usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ opts.c:232:37: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations] (opts->sslmethod == TLSv1_2_method) ? "tls12" : ^ /usr/include/openssl/ssl.h:1639:1: note: 'TLSv1_2_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */ ^ /usr/include/openssl/opensslconf.h:127:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:102:53: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ opts.c:415:9: warning: nonnull parameter 'spec' will evaluate to 'true' on first encounter [-Wpointer-bool-conversion] while (spec) { ~~~~~ ^~~~ ./opts.h:114:36: note: declared 'nonnull' here void proxyspec_free(proxyspec_t *) NONNULL(1); ^ ./attrib.h:55:40: note: expanded from macro 'NONNULL' #define NONNULL(...) __attribute__((nonnull(__VA_ARGS__))) ^ 7 warnings and 2 errors generated. gmake: *** [GNUmakefile:320: opts.o] Error 1 cachefkcrt.c:56:1: warning: unused function 'kh_clear_sha1map_t' [-Wunused-function] KHASH_INIT(sha1map_t, void*, void*, 1, kh_x509fpr_hash_func, ^ ./khash.h:358:2: note: expanded from macro 'KHASH_INIT' KHASH_INIT2(name, static kh_inline, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) ^ ./khash.h:355:2: note: expanded from macro 'KHASH_INIT2' __KHASH_IMPL(name, SCOPE, khkey_t, khval_t, kh_is_map, __hash_func, __hash_equal) ^ ./khash.h:215:13: note: expanded from macro '__KHASH_IMPL' SCOPE void kh_clear_##name(kh_##name##_t *h) \ ^ :146:1: note: expanded from here kh_clear_sha1map_t ^ 1 warning generated. *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/security/sslsplit *** Error code 1 Stop. make: stopped in /data/pkgsrc/security/sslsplit