=> Bootstrap dependency digest>=20010302: found digest-20180917 ===> 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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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-10-11\"" -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 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-10-11\"" -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 via pkg-config: 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-10-11\"" -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-10-11\"" -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 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__))) ^ 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__))) ^ 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-10-11\"" -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 2ssl.c:280:32: warning: warningsunused parameter 'id' [-Wunused-parameter] generated. ssl_thr_id_cb(CRYPTO_THREADID *id) ^ 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' 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-10-11\"" -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 SCOPE void kh_clear_##name(kh_##name##_t *h) \ ^ :201:1: note: expanded from here kh_clear_dynbufmap_t ^ ssl.c:395:2: warning: 'ERR_remove_state' is deprecated [-Wdeprecated-declarations] ERR_remove_state(0); /* current thread */ ^ /usr/include/openssl/err.h:260: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:161:34: note: expanded from macro 'DEPRECATEDIN_1_0_0' # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:118:55: 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:147: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:147: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:147: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:147:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ ssl.c:437:30: error: use of undeclared identifier 'SSL_ST_BEFORE'; did you mean 'TLS_ST_BEFORE'? (ssl->state & SSL_ST_BEFORE) ? "SSL_ST_BEFORE|" : "", ^~~~~~~~~~~~~ TLS_ST_BEFORE /usr/include/openssl/ssl.h:979:5: note: 'TLS_ST_BEFORE' declared here TLS_ST_BEFORE, ^ ssl.c:438:19: error: incomplete definition of type 'struct ssl_st' ssl->state & SSL_ST_MASK, ~~~^ /usr/include/openssl/ossl_typ.h:147:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ ssl.c:441:20: error: incomplete definition of type 'struct ssl_st' (ssl->type == SSL_ST_CONNECT) ? "connect socket" ~~~^ /usr/include/openssl/ossl_typ.h:147:16: note: forward declaration of 'struct ssl_st' typedef struct ssl_st SSL; ^ 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:44: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:155:34: note: expanded from macro 'DEPRECATEDIN_1_1_0' # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:118:55: 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:148: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:148: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:148: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:234: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:167:34: note: expanded from macro 'DEPRECATEDIN_0_9_8' # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f) ^ /usr/include/openssl/opensslconf.h:118:55: note: expanded from macro 'DECLARE_DEPRECATED' # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); ^ 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; ^ 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-10-11\"" -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 fatal error: too many errors emitted, stopping now [-ferror-limit=] 7 warnings and 20 errors generated. gmake: *** [GNUmakefile:320: ssl.o] Error 1 gmake: *** Waiting for unfinished jobs.... 2 warnings generated. 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:213: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:213: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:41: note: expanded from macro 'cachemgr_ssess_del' cachessess_mkkey((val)->session_id, \ ~~~~~^ /usr/include/openssl/ssl.h:213: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:72:41: note: expanded from macro 'cachemgr_ssess_del' (val)->session_id_length)) ~~~~~^ /usr/include/openssl/ssl.h:213:16: note: forward declaration of 'struct ssl_session_st' typedef struct ssl_session_st SSL_SESSION; ^ 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:708: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; ^ 1 warning and 6 errors generated. gmake: *** [GNUmakefile:320: pxyconn.o] Error 1 1 warning generated. 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) \ ^ :197:1: note: expanded from here kh_clear_dynbufmap_t ^ 1 warning generated. 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) \ ^ :198:1: note: expanded from here kh_clear_cstrmap_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