=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Building for sslsplit-0.4.10nb1 sh: pkg-config: not found gcc -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=\"2020-03-10\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachessess.o cachessess.c gcc -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=\"2020-03-10\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxythrmgr.o pxythrmgr.c SSLsplit 0.4.10 gcc -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=\"2020-03-10\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o ssl.o ssl.c via pkg-config: OPENSSL_BASE: /usr LIBEVENT_BASE: /usr Build options: -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF gcc -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=\"2020-03-10\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o dynbuf.o dynbuf.c gcc -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=\"2020-03-10\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logger.o logger.c logger.c: In function 'logger_print': logger.c:278:13: warning: nonnull argument 's' compared to NULL [-Wnonnull-compare] logger.c: In function 'logger_print_freebuf': logger.c:298:13: warning: nonnull argument 's' compared to NULL [-Wnonnull-compare] gcc -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=\"2020-03-10\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o proxy.o proxy.c distcc[21614] ERROR: compile ssl.c on 10.0.20.122:3648 failed distcc[21614] (dcc_build_somewhere) Warning: remote compilation of 'ssl.c' failed, retrying locally distcc[21614] Warning: failed to distribute ssl.c to 10.0.20.122:3648, running locally instead pxythrmgr.c: In function 'pxy_thrmgr_run': pxythrmgr.c:121:5: warning: nonnull argument 'ctx' compared to NULL [-Wnonnull-compare] pxythrmgr.c: In function 'pxy_thrmgr_free': pxythrmgr.c:206:5: warning: nonnull argument 'ctx' compared to NULL [-Wnonnull-compare] gcc -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=\"2020-03-10\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxyconn.o pxyconn.c gcc -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=\"2020-03-10\"" -D"FEATURES=\"-DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_IPFILTER -DHAVE_IPFW -DHAVE_PF -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cache.o cache.c ssl.c: In function 'ssl_thr_id_cb': ssl.c:280:32: warning: unused parameter 'id' [-Wunused-parameter] ssl_thr_id_cb(CRYPTO_THREADID *id) ^~ ssl.c: In function 'ssl_fini': ssl.c:395:2: warning: 'ERR_remove_state' is deprecated [-Wdeprecated-declarations] ERR_remove_state(0); /* current thread */ ^~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/e_os2.h:13:0, from /usr/include/openssl/ssl.h:15, from ssl.h:35, from ssl.c:29: /usr/include/openssl/err.h:261:1: note: declared here DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid)) ^ ssl.c: In function 'ssl_ssl_state_to_str': ssl.c:434:19: error: dereferencing pointer to incomplete type 'SSL {aka struct ssl_st}' ssl->state, ^~ ssl.c:437:30: error: 'SSL_ST_BEFORE' undeclared (first use in this function); did you mean 'TLS_ST_BEFORE'? (ssl->state & SSL_ST_BEFORE) ? "SSL_ST_BEFORE|" : "", ^~~~~~~~~~~~~ TLS_ST_BEFORE ssl.c:437:30: note: each undeclared identifier is reported only once for each function it appears in ssl.c: In function 'ssl_tmp_dh_callback': ssl.c:551:6: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}' dh->p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL); ^~ ssl.c: In function 'ssl_rand': ssl.c:674:2: warning: 'RAND_pseudo_bytes' is deprecated [-Wdeprecated-declarations] rv = RAND_pseudo_bytes((unsigned char*)p, sz); ^~ In file included from /usr/include/openssl/e_os2.h:13:0, from /usr/include/openssl/ssl.h:15, from ssl.h:35, from ssl.c:29: /usr/include/openssl/rand.h:44:1: note: declared here DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) ^ ssl.c: In function 'ssl_x509_forge': ssl.c:798:20: warning: implicit declaration of function 'M_ASN1_IA5STRING_new'; did you mean 'ASN1_IA5STRING_new'? [-Wimplicit-function-declaration] gn->d.dNSName = M_ASN1_IA5STRING_new(); ^~~~~~~~~~~~~~~~~~~~ ASN1_IA5STRING_new ssl.c:798:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion] gn->d.dNSName = M_ASN1_IA5STRING_new(); ^ ssl.c:822:29: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' switch (EVP_PKEY_type(cakey->type)) { ^~ ssl.c:830:9: warning: implicit declaration of function 'EVP_dss1'; did you mean 'EVP_sm3'? [-Wimplicit-function-declaration] md = EVP_dss1(); ^~~~~~~~ EVP_sm3 ssl.c:830:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion] md = EVP_dss1(); ^ ssl.c:835:9: warning: implicit declaration of function 'EVP_ecdsa'; did you mean 'EVP_rc4'? [-Wimplicit-function-declaration] md = EVP_ecdsa(); ^~~~~~~~~ EVP_rc4 ssl.c:835:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion] md = EVP_ecdsa(); ^ ssl.c: In function 'ssl_x509chain_load': ssl.c:909:40: error: dereferencing pointer to incomplete type 'SSL_CTX {aka struct ssl_ctx_st}' for (int i = 0; i < sk_X509_num(tmpctx->extra_certs); i++) { ^~ ssl.c: In function 'ssl_key_genrsa': ssl.c:1026:2: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] rsa = RSA_generate_key(keysize, 3, NULL, NULL); ^~~ In file included from /usr/include/openssl/e_os2.h:13:0, from /usr/include/openssl/ssl.h:15, from ssl.h:35, from ssl.c:29: /usr/include/openssl/rsa.h:234:1: note: declared here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ ssl.c: In function 'ssl_dh_refcount_inc': ssl.c:1092:2: warning: implicit declaration of function 'CRYPTO_add'; did you mean 'CRYPTO_free'? [-Wimplicit-function-declaration] CRYPTO_add(&dh->references, 1, CRYPTO_LOCK_DH); ^~~~~~~~~~ CRYPTO_free ssl.c:1092:33: error: 'CRYPTO_LOCK_DH' undeclared (first use in this function); did you mean 'CRYPTO_LOCK'? CRYPTO_add(&dh->references, 1, CRYPTO_LOCK_DH); ^~~~~~~~~~~~~~ CRYPTO_LOCK distcc[27381] ERROR: compile pxyconn.c on 10.0.20.122:3648 failed distcc[27381] (dcc_build_somewhere) Warning: remote compilation of 'pxyconn.c' failed, retrying locally distcc[27381] Warning: failed to distribute pxyconn.c to 10.0.20.122:3648, running locally instead ssl.c: In function 'ssl_key_refcount_inc': ssl.c:1107:34: error: 'CRYPTO_LOCK_EVP_PKEY' undeclared (first use in this function); did you mean 'CRYPTO_LOCK'? CRYPTO_add(&key->references, 1, CRYPTO_LOCK_EVP_PKEY); ^~~~~~~~~~~~~~~~~~~~ CRYPTO_LOCK ssl.c: In function 'ssl_x509_refcount_inc': ssl.c:1122:17: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}' CRYPTO_add(&crt->references, 1, CRYPTO_LOCK_X509); ^~ ssl.c:1122:34: error: 'CRYPTO_LOCK_X509' undeclared (first use in this function); did you mean 'CRYPTO_LOCK'? CRYPTO_add(&crt->references, 1, CRYPTO_LOCK_X509); ^~~~~~~~~~~~~~~~ CRYPTO_LOCK At top level: ssl.c:280:1: warning: 'ssl_thr_id_cb' defined but not used [-Wunused-function] ssl_thr_id_cb(CRYPTO_THREADID *id) ^~~~~~~~~~~~~ ssl.c:260:1: warning: 'ssl_thr_dyn_destroy_cb' defined but not used [-Wunused-function] ssl_thr_dyn_destroy_cb(struct CRYPTO_dynlock_value *dl, ^~~~~~~~~~~~~~~~~~~~~~ ssl.c:246:1: warning: 'ssl_thr_dyn_lock_cb' defined but not used [-Wunused-function] ssl_thr_dyn_lock_cb(int mode, struct CRYPTO_dynlock_value *dl, ^~~~~~~~~~~~~~~~~~~ ssl.c:232:1: warning: 'ssl_thr_dyn_create_cb' defined but not used [-Wunused-function] ssl_thr_dyn_create_cb(UNUSED const char *file, UNUSED int line) ^~~~~~~~~~~~~~~~~~~~~ ssl.c:218:1: warning: 'ssl_thr_locking_cb' defined but not used [-Wunused-function] ssl_thr_locking_cb(int mode, int type, UNUSED const char *file, ^~~~~~~~~~~~~~~~~~ distcc[21614] ERROR: compile ssl.c on localhost failed gmake: *** [GNUmakefile:320: ssl.o] Error 1 gmake: *** Waiting for unfinished jobs.... In file included from pxyconn.c:32:0: pxyconn.c: In function 'pxy_ossl_sessnew_cb': cachemgr.h:66:41: error: dereferencing pointer to incomplete type 'SSL_SESSION {aka struct ssl_session_st}' cachessess_mkkey((val)->session_id, \ ^ pxyconn.c:550:3: note: in expansion of macro 'cachemgr_ssess_set' cachemgr_ssess_set(sess); ^~~~~~~~~~~~~~~~~~ pxyconn.c: In function 'pxy_srcsslctx_create': pxyconn.c:668:34: warning: passing argument 2 of 'SSL_CTX_sess_set_get_cb' from incompatible pointer type [-Wincompatible-pointer-types] SSL_CTX_sess_set_get_cb(sslctx, pxy_ossl_sessget_cb); ^~~~~~~~~~~~~~~~~~~ In file included from ssl.h:35:0, from opts.h:34, from pxyconn.h:32, from pxyconn.c:29: /usr/include/openssl/ssl.h:720:6: note: expected 'SSL_SESSION * (*)(struct ssl_st *, const unsigned char *, int, int *) {aka struct ssl_session_st * (*)(struct ssl_st *, const unsigned char *, int, int *)}' but argument is of type 'SSL_SESSION * (*)(SSL *, unsigned char *, int, int *) {aka struct ssl_session_st * (*)(struct ssl_st *, unsigned char *, int, int *)}' void SSL_CTX_sess_set_get_cb(SSL_CTX *ctx, ^~~~~~~~~~~~~~~~~~~~~~~ pxyconn.c:682:30: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' } else if (EVP_PKEY_type(key->type) != EVP_PKEY_RSA) { ^~ distcc[27381] ERROR: compile pxyconn.c on localhost failed gmake: *** [GNUmakefile:320: pxyconn.o] Error 1 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/security/sslsplit *** Error code 1 Stop. make: stopped in /usr/pkgsrc/security/sslsplit