=> 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 libtcpa-1.1bnb7 --- tcpa.o --- --- transmit.o --- --- owner.o --- --- oiaposap.o --- --- hmac.o --- --- buildbuff.o --- --- keys.o --- --- seal.o --- --- pcrs.o --- --- signature.o --- --- transmit.o --- gcc -g -Wall -I. -O2 -I/usr/include -c transmit.c --- oiaposap.o --- gcc -g -Wall -I. -O2 -I/usr/include -c oiaposap.c --- hmac.o --- gcc -g -Wall -I. -O2 -I/usr/include -c hmac.c --- tcpa.o --- gcc -g -Wall -I. -O2 -I/usr/include -c tcpa.c --- buildbuff.o --- gcc -g -Wall -I. -O2 -I/usr/include -c buildbuff.c --- owner.o --- gcc -g -Wall -I. -O2 -I/usr/include -c owner.c --- seal.o --- gcc -g -Wall -I. -O2 -I/usr/include -c seal.c --- keys.o --- gcc -g -Wall -I. -O2 -I/usr/include -c keys.c --- pcrs.o --- gcc -g -Wall -I. -O2 -I/usr/include -c pcrs.c --- signature.o --- gcc -g -Wall -I. -O2 -I/usr/include -c signature.c --- oiaposap.o --- oiaposap.c:32:21: warning: passing 'unsigned char [20]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(oiap_open_fmt, tcpadata); ^~~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ oiaposap.c:59:21: warning: passing 'unsigned char [26]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(osap_open_fmt, tcpadata, etype, evalue, ^~~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ oiaposap.c:89:21: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(hand_close_fmt, tcpadata, handle); ^~~~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ --- signature.o --- signature.c:54:33: warning: passing 'unsigned char [20]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = TPM_OIAP(&authhandle, evennonce, log); ^~~~~~~~~ ./tcpa.h:26:43: note: passing argument to parameter 'enonce' here uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^ signature.c:70:21: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(sign_fmt, tcpadata, ^~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ --- buildbuff.o --- buildbuff.c:117:37: warning: implicit declaration of function 'htonl' is invalid in C99 [-Wimplicit-function-declaration] *(uint32_t *) (o + 0) = htonl(l); ^ buildbuff.c:126:37: warning: implicit declaration of function 'htons' is invalid in C99 [-Wimplicit-function-declaration] *(uint16_t *) (o + 0) = htons(s); ^ buildbuff.c:251:38: warning: implicit declaration of function 'htonl' is invalid in C99 [-Wimplicit-function-declaration] *(uint32_t *) (totpos + 0) = htonl(totlen); ^ --- oiaposap.o --- 3 warnings generated. --- signature.o --- 2 warnings generated. --- seal.o --- seal.c:117:21: warning: passing 'unsigned char [26]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(seal_fmt, tcpadata, ^~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ --- pcrs.o --- pcrs.c:30:21: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(pcrread_fmt, tcpadata, pcrindex); ^~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ --- seal.o --- seal.c:237:34: warning: passing 'unsigned char [20]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = TPM_OIAP(&authhandle1, enonce1, log); ^~~~~~~ ./tcpa.h:26:43: note: passing argument to parameter 'enonce' here uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^ seal.c:240:34: warning: passing 'unsigned char [20]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = TPM_OIAP(&authhandle2, enonce2, log); ^~~~~~~ ./tcpa.h:26:43: note: passing argument to parameter 'enonce' here uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^ seal.c:266:21: warning: passing 'unsigned char [30]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(unseal_fmt, tcpadata, ^~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ --- keys.o --- keys.c:40:21: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(read_pubek_fmt, tcpadata, TCPA_HASH_SIZE, nonce); ^~~~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ --- owner.o --- owner.c:129:33: warning: passing 'unsigned char [20]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = TPM_OIAP(&authhandle, nonceeven, log); ^~~~~~~~~ ./tcpa.h:26:43: note: passing argument to parameter 'enonce' here uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^ owner.c:144:21: warning: passing 'unsigned char [27]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(take_owner_fmt, tcpadata, ^~~~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ --- keys.o --- keys.c:142:21: warning: passing 'unsigned char [26]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(create_key_fmt, tcpadata, ^~~~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ keys.c:210:33: warning: passing 'unsigned char [20]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = TPM_OIAP(&authhandle, evennonce, log); ^~~~~~~~~ ./tcpa.h:26:43: note: passing argument to parameter 'enonce' here uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^ keys.c:231:21: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(load_key_fmt, tcpadata, ^~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ keys.c:271:21: warning: passing 'unsigned char [22]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(evict_key_fmt, tcpadata, keyhandle); ^~~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ keys.c:286:21: warning: passing 'unsigned char [28]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] ret = buildbuff(build_key_fmt, buffer, ^~~~~~~~~~~~~ ./buildbuff.h:10:21: note: passing argument to parameter 'format' here int buildbuff(char *format, unsigned char *buffer, ...); ^ --- hmac.o --- hmac.c:130:20: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] va_start(argp, h3); ^ hmac.c:116:28: note: parameter of type 'unsigned char' is declared here unsigned char h3, ...) ^ hmac.c:135:16: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (unsigned char *) va_arg(argp, int); ^ hmac.c:170:14: error: variable has incomplete type 'HMAC_CTX' (aka 'struct hmac_ctx_st') HMAC_CTX hmac; ^ /usr/include/openssl/ossl_typ.h:102:16: note: forward declaration of 'struct hmac_ctx_st' typedef struct hmac_ctx_st HMAC_CTX; ^ hmac.c:175:5: warning: 'HMAC_Init' is deprecated [-Wdeprecated-declarations] HMAC_Init(&hmac, key, keylen, EVP_sha1()); ^ /usr/include/openssl/hmac.h:28:1: note: 'HMAC_Init' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, ^ /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)); ^ hmac.c:181:16: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] data = (unsigned char *) va_arg(argp, int); ^ hmac.c:187:5: warning: implicit declaration of function 'HMAC_cleanup' is invalid in C99 [-Wimplicit-function-declaration] HMAC_cleanup(&hmac); ^ 5 warnings and 1 error generated. --- keys.o --- keys.c:455:8: error: incomplete definition of type 'struct rsa_st' rsa->n = mod; ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ keys.c:456:8: error: incomplete definition of type 'struct rsa_st' rsa->e = exp; ~~~^ /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st' typedef struct rsa_st RSA; ^ 6 warnings and 2 errors generated. --- buildbuff.o --- 3 warnings generated. --- hmac.o --- *** [hmac.o] Error code 1 make: stopped in /data/scratch/security/libtcpa/work/TPM/libtcpa --- keys.o --- *** [keys.o] Error code 1 make: stopped in /data/scratch/security/libtcpa/work/TPM/libtcpa --- pcrs.o --- 1 warning generated. --- owner.o --- 2 warnings generated. --- seal.o --- 4 warnings generated. 2 errors make: stopped in /data/scratch/security/libtcpa/work/TPM/libtcpa *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/security/libtcpa *** Error code 1 Stop. make: stopped in /data/pkgsrc/security/libtcpa