=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> 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.1bnb8 --- tcpa.o --- --- transmit.o --- --- owner.o --- --- oiaposap.o --- --- transmit.o --- gcc -g -Wall -I. -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c transmit.c --- oiaposap.o --- gcc -g -Wall -I. -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c oiaposap.c --- owner.o --- gcc -g -Wall -I. -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c owner.c --- tcpa.o --- gcc -g -Wall -I. -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c tcpa.c --- oiaposap.o --- oiaposap.c: In function 'TPM_OIAP': oiaposap.c:32:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(oiap_open_fmt, tcpadata); ^~~~~~~~~~~~~ In file included from oiaposap.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ oiaposap.c: In function 'TPM_OSAP': oiaposap.c:59:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(osap_open_fmt, tcpadata, etype, evalue, ^~~~~~~~~~~~~ In file included from oiaposap.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ oiaposap.c: In function 'TPM_Terminate_Handle': oiaposap.c:89:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(hand_close_fmt, tcpadata, handle); ^~~~~~~~~~~~~~ In file included from oiaposap.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ --- owner.o --- owner.c: In function 'TPM_TakeOwnership': owner.c:129:33: warning: pointer targets in passing argument 2 of 'TPM_OIAP' differ in signedness [-Wpointer-sign] ret = TPM_OIAP(&authhandle, nonceeven, log); ^~~~~~~~~ In file included from owner.c:11:0: ./tcpa.h:26:10: note: expected 'char *' but argument is of type 'unsigned char *' uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^~~~~~~~ owner.c:144:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(take_owner_fmt, tcpadata, ^~~~~~~~~~~~~~ In file included from owner.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ --- hmac.o --- gcc -g -Wall -I. -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c hmac.c --- buildbuff.o --- --- keys.o --- --- buildbuff.o --- gcc -g -Wall -I. -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c buildbuff.c --- keys.o --- gcc -g -Wall -I. -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c keys.c --- seal.o --- gcc -g -Wall -I. -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -c seal.c --- buildbuff.o --- buildbuff.c: In function 'buildbuff': buildbuff.c:99:9: warning: variable 'i' set but not used [-Wunused-but-set-variable] int i; ^ buildbuff.c:203:18: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized] byte = byte << 4; ~~~~~^~~~~~~~~~~ --- keys.o --- keys.c: In function 'TPM_ReadPubek': keys.c:40:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(read_pubek_fmt, tcpadata, TCPA_HASH_SIZE, nonce); ^~~~~~~~~~~~~~ In file included from keys.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ keys.c: In function 'TPM_CreateWrapKey': keys.c:142:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(create_key_fmt, tcpadata, ^~~~~~~~~~~~~~ In file included from keys.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ keys.c: In function 'TPM_LoadKey': keys.c:210:33: warning: pointer targets in passing argument 2 of 'TPM_OIAP' differ in signedness [-Wpointer-sign] ret = TPM_OIAP(&authhandle, evennonce, log); ^~~~~~~~~ In file included from keys.c:11:0: ./tcpa.h:26:10: note: expected 'char *' but argument is of type 'unsigned char *' uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^~~~~~~~ keys.c:231:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(load_key_fmt, tcpadata, ^~~~~~~~~~~~ In file included from keys.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ keys.c: In function 'TPM_EvictKey': keys.c:271:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(evict_key_fmt, tcpadata, keyhandle); ^~~~~~~~~~~~~ In file included from keys.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ keys.c: In function 'BuildKey': keys.c:286:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(build_key_fmt, buffer, ^~~~~~~~~~~~~ In file included from keys.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ keys.c: In function 'convpubkey': keys.c:455:8: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' rsa->n = mod; ^~ --- hmac.o --- hmac.c: In function 'authhmac': hmac.c:135:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (unsigned char *) va_arg(argp, int); ^ hmac.c: In function 'rawhmac': hmac.c:170:14: error: storage size of 'hmac' isn't known HMAC_CTX hmac; ^~~~ hmac.c:175:5: warning: 'HMAC_Init' is deprecated [-Wdeprecated-declarations] HMAC_Init(&hmac, key, keylen, EVP_sha1()); ^~~~~~~~~ In file included from /usr/include/openssl/rsa.h:13:0, from ./keys.h:10, from ./tcpa.h:13, from hmac.c:11: /usr/include/openssl/hmac.h:30:1: note: declared here DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, ^ hmac.c:181:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] data = (unsigned char *) va_arg(argp, int); ^ hmac.c:187:5: warning: implicit declaration of function 'HMAC_cleanup'; did you mean 'EVP_cleanup'? [-Wimplicit-function-declaration] HMAC_cleanup(&hmac); ^~~~~~~~~~~~ EVP_cleanup hmac.c:170:14: warning: unused variable 'hmac' [-Wunused-variable] HMAC_CTX hmac; ^~~~ --- keys.o --- *** [keys.o] Error code 1 make: stopped in /tmp/security/libtcpa/work/TPM/libtcpa --- hmac.o --- *** [hmac.o] Error code 1 make: stopped in /tmp/security/libtcpa/work/TPM/libtcpa --- seal.o --- seal.c: In function 'TPM_Seal': seal.c:117:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(seal_fmt, tcpadata, ^~~~~~~~ In file included from seal.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ seal.c: In function 'TPM_Seal_CurrPCR': seal.c:185:14: warning: variable 'ret' set but not used [-Wunused-but-set-variable] uint32_t ret; ^~~ seal.c: In function 'TPM_Unseal': seal.c:237:34: warning: pointer targets in passing argument 2 of 'TPM_OIAP' differ in signedness [-Wpointer-sign] ret = TPM_OIAP(&authhandle1, enonce1, log); ^~~~~~~ In file included from seal.c:11:0: ./tcpa.h:26:10: note: expected 'char *' but argument is of type 'unsigned char *' uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^~~~~~~~ seal.c:240:34: warning: pointer targets in passing argument 2 of 'TPM_OIAP' differ in signedness [-Wpointer-sign] ret = TPM_OIAP(&authhandle2, enonce2, log); ^~~~~~~ In file included from seal.c:11:0: ./tcpa.h:26:10: note: expected 'char *' but argument is of type 'unsigned char *' uint32_t TPM_OIAP(uint32_t *handle, char *enonce, FILE *log); ^~~~~~~~ seal.c:266:21: warning: pointer targets in passing argument 1 of 'buildbuff' differ in signedness [-Wpointer-sign] ret = buildbuff(unseal_fmt, tcpadata, ^~~~~~~~~~ In file included from seal.c:12:0: ./buildbuff.h:10:5: note: expected 'char *' but argument is of type 'unsigned char *' int buildbuff(char *format, unsigned char *buffer, ...); ^~~~~~~~~ 2 errors make: stopped in /tmp/security/libtcpa/work/TPM/libtcpa *** Error code 2 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/security/libtcpa *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/security/libtcpa