=> Bootstrap dependency digest>=20010302: found digest-20160304 WARNING: [license.mk] Every package should define a LICENSE. ===> 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 sslwrap-206nb8 --- .gdbinit --- --- s_server.o --- --- s_socket.o --- --- s_cb.o --- --- .gdbinit --- rm -f .gdbinit --- s_server.o --- # compile sslwrap206/s_server.o clang -O2 -DFLAT_INC -I/usr/include -fPIE -std=gnu99 -I/usr/include -c s_server.c --- .gdbinit --- touch .gdbinit --- s_socket.o --- # compile sslwrap206/s_socket.o clang -O2 -DFLAT_INC -I/usr/include -fPIE -std=gnu99 -I/usr/include -c s_socket.c --- s_cb.o --- # compile sslwrap206/s_cb.o clang -O2 -DFLAT_INC -I/usr/include -fPIE -std=gnu99 -I/usr/include -c s_cb.c s_cb.c:104:13: error: incomplete definition of type 'struct x509_store_ctx_st' switch (ctx->error) ~~~^ /usr/include/openssl/ossl_typ.h:127:16: note: forward declaration of 'struct x509_store_ctx_st' typedef struct x509_store_ctx_st X509_STORE_CTX; ^ s_cb.c:192:4: warning: format specifies type 'unsigned int' but the argument has type 'BIO *' (aka 'struct bio_st *') [-Wformat] bio,argp,argi,ret,ret); ^~~ s_cb.c:192:8: warning: format specifies type 'unsigned long' but the argument has type 'char *' [-Wformat] bio,argp,argi,ret,ret); ^~~~ s_cb.c:192:22: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] bio,argp,argi,ret,ret); ^~~ s_cb.c:199:4: warning: format specifies type 'unsigned int' but the argument has type 'BIO *' (aka 'struct bio_st *') [-Wformat] bio,argp,argi,ret,ret); ^~~ s_cb.c:199:8: warning: format specifies type 'unsigned long' but the argument has type 'char *' [-Wformat] bio,argp,argi,ret,ret); ^~~~ s_cb.c:199:22: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] bio,argp,argi,ret,ret); ^~~ 6 warnings and 1 error generated. --- s_socket.o --- s_socket.c:224:51: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] i=getsockopt(sock,SOL_SOCKET,SO_ERROR,(char *)&j,&size); ^~~~~ /usr/include/sys/socket.h:657:71: note: passing argument to parameter here int getsockopt(int, int, int, void *__restrict, socklen_t * __restrict); ^ s_socket.c:373:47: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] ret=accept(acc_sock,(struct sockaddr *)&from,&len); ^~~~ /usr/include/sys/socket.h:651:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ --- s_cb.o --- *** [s_cb.o] Error code 1 make: stopped in /data/scratch/security/sslwrap/work/sslwrap206 --- s_server.o --- s_server.c:184:4: 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; ^ s_server.c:185:4: error: incomplete definition of type 'struct dh_st' dh->g=BN_bin2bn(dh512_g,sizeof(dh512_g),NULL); ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ s_server.c:186:9: error: incomplete definition of type 'struct dh_st' if ((dh->p == NULL) || (dh->g == NULL)) ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ s_server.c:186:28: error: incomplete definition of type 'struct dh_st' if ((dh->p == NULL) || (dh->g == NULL)) ~~^ /usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'struct dh_st' typedef struct dh_st DH; ^ s_server.c:275:6: warning: assigning to 'SSL_METHOD *' (aka 'struct ssl_method_st *') from 'const SSL_METHOD *' (aka 'const struct ssl_method_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] meth=SSLv23_server_method(); ^~~~~~~~~~~~~~~~~~~~~~~ s_server.c:285:2: warning: implicit declaration of function 'SSLeay_add_all_algorithms' is invalid in C99 [-Wimplicit-function-declaration] apps_startup(); ^ ./apps.h:124:43: note: expanded from macro 'apps_startup' # define apps_startup() do_pipe_sig(); SSLeay_add_all_algorithms(); ^ s_server.c:401:11: warning: implicit declaration of function 'SSLv2_server_method' is invalid in C99 [-Wimplicit-function-declaration] { meth=SSLv2_server_method(); } ^ s_server.c:401:10: warning: incompatible integer to pointer conversion assigning to 'SSL_METHOD *' (aka 'struct ssl_method_st *') from 'int' [-Wint-conversion] { meth=SSLv2_server_method(); } ^~~~~~~~~~~~~~~~~~~~~~ s_server.c:405:11: warning: implicit declaration of function 'SSLv3_server_method' is invalid in C99 [-Wimplicit-function-declaration] { meth=SSLv3_server_method(); } ^ s_server.c:405:10: warning: incompatible integer to pointer conversion assigning to 'SSL_METHOD *' (aka 'struct ssl_method_st *') from 'int' [-Wint-conversion] { meth=SSLv3_server_method(); } ^~~~~~~~~~~~~~~~~~~~~~ s_server.c:475:43: warning: incompatible pointer types passing 'void (SSL *, int, int)' (aka 'void (struct ssl_st *, int, int)') to parameter of type 'void (*)(const SSL *, int, int)' (aka 'void (*)(const struct ssl_st *, int, int)') [-Wincompatible-pointer-types] if (state) SSL_CTX_set_info_callback(ctx,apps_ssl_info_callback); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ssl.h:652:39: note: passing argument to parameter 'cb' here void (*cb) (const SSL *ssl, int type, ^ s_server.c:577:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] SSL_CTX_sess_connect(ssl_ctx)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ssl.h:608:9: note: expanded from macro 'SSL_CTX_sess_connect' SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT,0,NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s_server.c:579:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] SSL_CTX_sess_connect_good(ssl_ctx)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ssl.h:610:9: note: expanded from macro 'SSL_CTX_sess_connect_good' SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_GOOD,0,NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s_server.c:581:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] SSL_CTX_sess_accept(ssl_ctx)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ssl.h:614:9: note: expanded from macro 'SSL_CTX_sess_accept' SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT,0,NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s_server.c:583:3: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] SSL_CTX_sess_accept_good(ssl_ctx)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/ssl.h:618:9: note: expanded from macro 'SSL_CTX_sess_accept_good' SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_GOOD,0,NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s_server.c:584:44: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] BIO_printf(bio,"%4d session cache hits\n",SSL_CTX_sess_hits(ssl_ctx)); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ %4ld /usr/include/openssl/ssl.h:620:9: note: expanded from macro 'SSL_CTX_sess_hits' SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_HIT,0,NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s_server.c:585:46: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] BIO_printf(bio,"%4d session cache misses\n",SSL_CTX_sess_misses(ssl_ctx)); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ %4ld /usr/include/openssl/ssl.h:624:9: note: expanded from macro 'SSL_CTX_sess_misses' SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_MISSES,0,NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s_server.c:586:48: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] BIO_printf(bio,"%4d session cache timeouts\n",SSL_CTX_sess_timeouts(ssl_ctx)); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %4ld /usr/include/openssl/ssl.h:626:9: note: expanded from macro 'SSL_CTX_sess_timeouts' SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_TIMEOUTS,0,NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s_server.c:587:45: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] BIO_printf(bio,"%4d callback cache hits\n",SSL_CTX_sess_cb_hits(ssl_ctx)); ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %4ld /usr/include/openssl/ssl.h:622:9: note: expanded from macro 'SSL_CTX_sess_cb_hits' SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CB_HIT,0,NULL) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ s_server.c:871:11: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] rsa_tmp=RSA_generate_key(512,RSA_F4,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)); ^ 16 warnings and 4 errors generated. *** [s_server.o] Error code 1 make: stopped in /data/scratch/security/sslwrap/work/sslwrap206 --- s_socket.o --- 2 warnings generated. 2 errors make: stopped in /data/scratch/security/sslwrap/work/sslwrap206 *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/security/sslwrap *** Error code 1 Stop. make: stopped in /data/pkgsrc/security/sslwrap