=> 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 opensc-0.16.0 /usr/pkg/bin/gmake all-recursive gmake[1]: Entering directory '/data/scratch/security/opensc/work/opensc-0.16.0' Making all in etc gmake[2]: Entering directory '/data/scratch/security/opensc/work/opensc-0.16.0/etc' gmake[2]: Leaving directory '/data/scratch/security/opensc/work/opensc-0.16.0/etc' Making all in src gmake[2]: Entering directory '/data/scratch/security/opensc/work/opensc-0.16.0/src' Making all in common gmake[3]: Entering directory '/data/scratch/security/opensc/work/opensc-0.16.0/src/common' CC compat_dummy.lo CC compat_strlcat.lo CC compat_strlcpy.lo CC compat_getpass.lo CC compat_report_rangecheckfailure.lo CC libpkcs11.lo CC compat_strnlen.lo CC simclist.lo CC compat_getopt.lo CC compat_getopt_main.o CC libscdl.lo compat_getopt_main.c:102:22: warning: array subscript is of type 'char' [-Wchar-subscripts] rc = toupper(rc); ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ 1 warning generated. CCLD libpkcs11.la CCLD libscdl.la CCLD libcompat.la CCLD compat_getopt_main gmake[3]: Leaving directory '/data/scratch/security/opensc/work/opensc-0.16.0/src/common' Making all in scconf gmake[3]: Entering directory '/data/scratch/security/opensc/work/opensc-0.16.0/src/scconf' CC scconf.lo CC write.lo CC parse.lo CC sclex.lo CC test-conf.o CCLD libscconf.la CCLD test-conf gmake[3]: Leaving directory '/data/scratch/security/opensc/work/opensc-0.16.0/src/scconf' Making all in pkcs15init gmake[3]: Entering directory '/data/scratch/security/opensc/work/opensc-0.16.0/src/pkcs15init' CC pkcs15-lib.lo CC profile.lo CC pkcs15-westcos.lo CC pkcs15-entersafe.lo CC pkcs15-asepcos.lo CC pkcs15-muscle.lo CC pkcs15-jcop.lo CC pkcs15-starcos.lo CC pkcs15-gpk.lo CC pkcs15-setcos.lo CC pkcs15-miocos.lo CC pkcs15-incrypto34.lo CC pkcs15-rutoken.lo CC pkcs15-epass2003.lo CC pkcs15-cardos.lo CC pkcs15-cflex.lo profile.c:2275:10: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isspace(*s)) ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace' #define isspace(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S)) ^~~~ profile.c:2279:6: warning: array subscript is of type 'char' [-Wchar-subscripts] if (isdigit(*s)) { ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ profile.c:2280:10: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isdigit(*s)) ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ profile.c:2285:10: warning: array subscript is of type 'char' [-Wchar-subscripts] while (isalnum(*s) || *s == '-' || *s == '_') ^~~~~~~~~~~ /usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum' #define isalnum(c) ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D))) ^~~~ profile.c:2334:11: warning: array subscript is of type 'char' [-Wchar-subscripts] else if (isdigit(*tok)) { ^~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ pkcs15-westcos.c:258:5: error: incomplete definition of type 'struct rsa_st' rsa->meth = RSA_PKCS1_SSLeay(); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-westcos.c:258:14: warning: implicit declaration of function 'RSA_PKCS1_SSLeay' is invalid in C99 [-Wimplicit-function-declaration] rsa->meth = RSA_PKCS1_SSLeay(); ^ 1 warning and 1 error generated. gmake[3]: *** [Makefile:545: pkcs15-westcos.lo] Error 1 gmake[3]: *** Waiting for unfinished jobs.... pkcs15-lib.c:2185:6: error: incomplete definition of type 'struct rsa_st' rsa->n = BN_bin2bn(key->modulus.data, key->modulus.len, NULL); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2186:6: error: incomplete definition of type 'struct rsa_st' rsa->e = BN_bin2bn(key->exponent.data, key->exponent.len, NULL); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2187:6: error: incomplete definition of type 'struct rsa_st' rsa->d = BN_bin2bn(key->d.data, key->d.len, NULL); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2188:6: error: incomplete definition of type 'struct rsa_st' rsa->p = BN_bin2bn(key->p.data, key->p.len, NULL); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2189:6: error: incomplete definition of type 'struct rsa_st' rsa->q = BN_bin2bn(key->q.data, key->q.len, NULL); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2190:11: error: incomplete definition of type 'struct rsa_st' if (!rsa->dmp1) ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2191:7: error: incomplete definition of type 'struct rsa_st' rsa->dmp1 = BN_new(); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2192:11: error: incomplete definition of type 'struct rsa_st' if (!rsa->dmq1) ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2193:7: error: incomplete definition of type 'struct rsa_st' rsa->dmq1 = BN_new(); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2194:11: error: incomplete definition of type 'struct rsa_st' if (!rsa->iqmp) ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2195:7: error: incomplete definition of type 'struct rsa_st' rsa->iqmp = BN_new(); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2200:18: error: incomplete definition of type 'struct rsa_st' BN_sub(aux, rsa->q, BN_value_one()); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2201:13: error: incomplete definition of type 'struct rsa_st' BN_mod(rsa->dmq1, rsa->d, aux, bn_ctx); ~~~^ /usr/include/openssl/bn.h:206:43: note: expanded from macro 'BN_mod' # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) ^~~ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2201:24: error: incomplete definition of type 'struct rsa_st' BN_mod(rsa->dmq1, rsa->d, aux, bn_ctx); ~~~^ /usr/include/openssl/bn.h:206:49: note: expanded from macro 'BN_mod' # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) ^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2203:18: error: incomplete definition of type 'struct rsa_st' BN_sub(aux, rsa->p, BN_value_one()); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2204:13: error: incomplete definition of type 'struct rsa_st' BN_mod(rsa->dmp1, rsa->d, aux, bn_ctx); ~~~^ /usr/include/openssl/bn.h:206:43: note: expanded from macro 'BN_mod' # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) ^~~ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2204:24: error: incomplete definition of type 'struct rsa_st' BN_mod(rsa->dmp1, rsa->d, aux, bn_ctx); ~~~^ /usr/include/openssl/bn.h:206:49: note: expanded from macro 'BN_mod' # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx)) ^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2206:21: error: incomplete definition of type 'struct rsa_st' BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, bn_ctx); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ pkcs15-lib.c:2206:32: error: incomplete definition of type 'struct rsa_st' BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, bn_ctx); ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. gmake[3]: *** [Makefile:545: pkcs15-lib.lo] Error 1 5 warnings generated. gmake[3]: Leaving directory '/data/scratch/security/opensc/work/opensc-0.16.0/src/pkcs15init' gmake[2]: *** [Makefile:416: all-recursive] Error 1 gmake[2]: Leaving directory '/data/scratch/security/opensc/work/opensc-0.16.0/src' gmake[1]: *** [Makefile:543: all-recursive] Error 1 gmake[1]: Leaving directory '/data/scratch/security/opensc/work/opensc-0.16.0' gmake: *** [Makefile:450: all] Error 2 *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/security/opensc *** Error code 1 Stop. make: stopped in /data/pkgsrc/security/opensc