=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for btget-1.05nb32
cd src && /opt/pkg/bin/bmake depend
makedepend -- -g -Wall -I../include -I../include - benc.c  bts.c  types.c  random.c  strbuf.c  stream.c  peer.c  segmenter.c  util.c  bitset.c  context.c  bterror.c
makedepend: warning:  benc.c, line 16: cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  benc.c (reading ../include/types.h, line 3): cannot find include file "assert.h"
	not in ../include/assert.h
	not in ../include/assert.h
	not in /usr/include/assert.h
makedepend: warning:  benc.c (reading ../include/util.h, line 3): cannot find include file "errno.h"
	not in ../include/errno.h
	not in ../include/errno.h
	not in /usr/include/errno.h
makedepend: warning:  benc.c (reading ../include/util.h, line 4): cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  benc.c (reading ../include/bts.h, line 3): cannot find include file "stdio.h"
	not in ../include/stdio.h
	not in ../include/stdio.h
	not in /usr/include/stdio.h
makedepend: warning:  bts.c, line 16: cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  bts.c, line 17: cannot find include file "stdio.h"
	not in ../include/stdio.h
	not in ../include/stdio.h
	not in /usr/include/stdio.h
makedepend: warning:  bts.c, line 18: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  bts.c, line 20: cannot find include file "strings.h"
	not in ../include/strings.h
	not in ../include/strings.h
	not in /usr/include/strings.h
makedepend: warning:  bts.c, line 22: cannot find include file "stdarg.h"
	not in ../include/stdarg.h
	not in ../include/stdarg.h
	not in /usr/include/stdarg.h
makedepend: warning:  bts.c, line 23: cannot find include file "assert.h"
	not in ../include/assert.h
	not in ../include/assert.h
	not in /usr/include/assert.h
makedepend: warning:  types.c, line 17: cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  types.c, line 18: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  types.c, line 20: cannot find include file "strings.h"
	not in ../include/strings.h
	not in ../include/strings.h
	not in /usr/include/strings.h
makedepend: warning:  types.c, line 22: cannot find include file "stdio.h"
	not in ../include/stdio.h
	not in ../include/stdio.h
	not in /usr/include/stdio.h
makedepend: warning:  random.c, line 21: cannot find include file "uuid/uuid.h"
	not in ../include/uuid/uuid.h
	not in ../include/uuid/uuid.h
	not in /usr/include/uuid/uuid.h
makedepend: warning:  random.c, line 27: cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  random.c, line 28: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  random.c, line 30: cannot find include file "strings.h"
	not in ../include/strings.h
	not in ../include/strings.h
	not in /usr/include/strings.h
makedepend: warning:  random.c, line 32: cannot find include file "openssl/sha.h"
	not in ../include/openssl/sha.h
	not in ../include/openssl/sha.h
	not in /usr/include/openssl/sha.h
makedepend: warning:  random.c, line 33: cannot find include file "math.h"
	not in ../include/math.h
	not in ../include/math.h
	not in /usr/include/math.h
makedepend: warning:  strbuf.c, line 17: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  strbuf.c, line 19: cannot find include file "strings.h"
	not in ../include/strings.h
	not in ../include/strings.h
	not in /usr/include/strings.h
makedepend: warning:  strbuf.c (reading ../include/strbuf.h, line 4): cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  strbuf.c (reading ../include/strbuf.h, line 5): cannot find include file "stdio.h"
	not in ../include/stdio.h
	not in ../include/stdio.h
	not in /usr/include/stdio.h
makedepend: warning:  strbuf.c (reading ../include/strbuf.h, line 6): cannot find include file "stdarg.h"
	not in ../include/stdarg.h
	not in ../include/stdarg.h
	not in /usr/include/stdarg.h
makedepend: warning:  strbuf.c (reading ../include/strbuf.h, line 7): cannot find include file "assert.h"
	not in ../include/assert.h
	not in ../include/assert.h
	not in /usr/include/assert.h
makedepend: warning:  stream.c, line 16: cannot find include file "errno.h"
	not in ../include/errno.h
	not in ../include/errno.h
	not in /usr/include/errno.h
makedepend: warning:  stream.c, line 17: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  stream.c, line 18: cannot find include file "stdarg.h"
	not in ../include/stdarg.h
	not in ../include/stdarg.h
	not in /usr/include/stdarg.h
makedepend: warning:  stream.c, line 26: cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  stream.c, line 27: cannot find include file "sys/socket.h"
	not in ../include/sys/socket.h
	not in ../include/sys/socket.h
	not in /usr/include/sys/socket.h
makedepend: warning:  stream.c, line 29: cannot find include file "unistd.h"
	not in ../include/unistd.h
	not in ../include/unistd.h
	not in /usr/include/unistd.h
makedepend: warning:  stream.c, line 32: cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  peer.c, line 17: cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  peer.c, line 18: cannot find include file "netinet/in.h"
	not in ../include/netinet/in.h
	not in ../include/netinet/in.h
	not in /usr/include/netinet/in.h
makedepend: warning:  peer.c, line 19: cannot find include file "arpa/inet.h"
	not in ../include/arpa/inet.h
	not in ../include/arpa/inet.h
	not in /usr/include/arpa/inet.h
makedepend: warning:  peer.c, line 20: cannot find include file "netdb.h"
	not in ../include/netdb.h
	not in ../include/netdb.h
	not in /usr/include/netdb.h
makedepend: warning:  peer.c, line 21: cannot find include file "sys/socket.h"
	not in ../include/sys/socket.h
	not in ../include/sys/socket.h
	not in /usr/include/sys/socket.h
makedepend: warning:  peer.c, line 22: cannot find include file "limits.h"
	not in ../include/limits.h
	not in ../include/limits.h
	not in /usr/include/limits.h
makedepend: warning:  peer.c, line 24: cannot find include file "unistd.h"
	not in ../include/unistd.h
	not in ../include/unistd.h
	not in /usr/include/unistd.h
makedepend: warning:  peer.c, line 27: cannot find include file "fcntl.h"
	not in ../include/fcntl.h
	not in ../include/fcntl.h
	not in /usr/include/fcntl.h
makedepend: warning:  peer.c, line 30: cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  peer.c, line 31: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  peer.c, line 33: cannot find include file "strings.h"
	not in ../include/strings.h
	not in ../include/strings.h
	not in /usr/include/strings.h
makedepend: warning:  peer.c, line 35: cannot find include file "errno.h"
	not in ../include/errno.h
	not in ../include/errno.h
	not in /usr/include/errno.h
makedepend: warning:  peer.c, line 36: cannot find include file "time.h"
	not in ../include/time.h
	not in ../include/time.h
	not in /usr/include/time.h
makedepend: warning:  peer.c, line 37: cannot find include file "poll.h"
	not in ../include/poll.h
	not in ../include/poll.h
	not in /usr/include/poll.h
makedepend: warning:  peer.c, line 38: cannot find include file "assert.h"
	not in ../include/assert.h
	not in ../include/assert.h
	not in /usr/include/assert.h
makedepend: warning:  peer.c (reading ../include/segmenter.h, line 3): cannot find include file "openssl/sha.h"
	not in ../include/openssl/sha.h
	not in ../include/openssl/sha.h
	not in /usr/include/openssl/sha.h
makedepend: warning:  peer.c (reading ../include/context.h, line 3): cannot find include file "openssl/sha.h"
	not in ../include/openssl/sha.h
	not in ../include/openssl/sha.h
	not in /usr/include/openssl/sha.h
makedepend: warning:  peer.c (reading ../include/context.h, line 4): cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  peer.c (reading ../include/context.h, line 8): cannot find include file "sys/poll.h"
	not in ../include/sys/poll.h
	not in ../include/sys/poll.h
	not in /usr/include/sys/poll.h
makedepend: warning:  peer.c (reading ../include/context.h, line 9): cannot find include file "netinet/in.h"
	not in ../include/netinet/in.h
	not in ../include/netinet/in.h
	not in /usr/include/netinet/in.h
makedepend: warning:  segmenter.c, line 17: cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  segmenter.c, line 18: cannot find include file "openssl/sha.h"
	not in ../include/openssl/sha.h
	not in ../include/openssl/sha.h
	not in /usr/include/openssl/sha.h
makedepend: warning:  segmenter.c, line 19: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  segmenter.c, line 21: cannot find include file "strings.h"
	not in ../include/strings.h
	not in ../include/strings.h
	not in /usr/include/strings.h
makedepend: warning:  segmenter.c, line 26: cannot find include file "unistd.h"
	not in ../include/unistd.h
	not in ../include/unistd.h
	not in /usr/include/unistd.h
makedepend: warning:  segmenter.c, line 29: cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  segmenter.c, line 30: cannot find include file "sys/stat.h"
	not in ../include/sys/stat.h
	not in ../include/sys/stat.h
	not in /usr/include/sys/stat.h
makedepend: warning:  segmenter.c, line 32: cannot find include file "fcntl.h"
	not in ../include/fcntl.h
	not in ../include/fcntl.h
	not in /usr/include/fcntl.h
makedepend: warning:  segmenter.c, line 34: cannot find include file "stdio.h"
	not in ../include/stdio.h
	not in ../include/stdio.h
	not in /usr/include/stdio.h
makedepend: warning:  util.c, line 16: cannot find include file "stdio.h"
	not in ../include/stdio.h
	not in ../include/stdio.h
	not in /usr/include/stdio.h
makedepend: warning:  util.c, line 17: cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  util.c, line 18: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  util.c, line 21: cannot find include file "unistd.h"
	not in ../include/unistd.h
	not in ../include/unistd.h
	not in /usr/include/unistd.h
makedepend: warning:  util.c, line 24: cannot find include file "fcntl.h"
	not in ../include/fcntl.h
	not in ../include/fcntl.h
	not in /usr/include/fcntl.h
makedepend: warning:  util.c, line 26: cannot find include file "sys/param.h"
	not in ../include/sys/param.h
	not in ../include/sys/param.h
	not in /usr/include/sys/param.h
makedepend: warning:  util.c, line 28: cannot find include file "sys/stat.h"
	not in ../include/sys/stat.h
	not in ../include/sys/stat.h
	not in /usr/include/sys/stat.h
makedepend: warning:  util.c, line 29: cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  bitset.c, line 17: cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  bitset.c, line 19: cannot find include file "stdio.h"
	not in ../include/stdio.h
	not in ../include/stdio.h
	not in /usr/include/stdio.h
makedepend: warning:  context.c, line 17: cannot find include file "curl/curl.h"
	not in ../include/curl/curl.h
	not in ../include/curl/curl.h
	not in /usr/include/curl/curl.h
makedepend: warning:  context.c, line 18: cannot find include file "curl/easy.h"
	not in ../include/curl/easy.h
	not in ../include/curl/easy.h
	not in /usr/include/curl/easy.h
makedepend: warning:  context.c, line 19: cannot find include file "openssl/sha.h"
	not in ../include/openssl/sha.h
	not in ../include/openssl/sha.h
	not in /usr/include/openssl/sha.h
makedepend: warning:  context.c, line 20: cannot find include file "stdlib.h"
	not in ../include/stdlib.h
	not in ../include/stdlib.h
	not in /usr/include/stdlib.h
makedepend: warning:  context.c, line 21: cannot find include file "string.h"
	not in ../include/string.h
	not in ../include/string.h
	not in /usr/include/string.h
makedepend: warning:  context.c, line 23: cannot find include file "strings.h"
	not in ../include/strings.h
	not in ../include/strings.h
	not in /usr/include/strings.h
makedepend: warning:  context.c, line 25: cannot find include file "errno.h"
	not in ../include/errno.h
	not in ../include/errno.h
	not in /usr/include/errno.h
makedepend: warning:  context.c, line 26: cannot find include file "stdio.h"
	not in ../include/stdio.h
	not in ../include/stdio.h
	not in /usr/include/stdio.h
makedepend: warning:  context.c, line 27: cannot find include file "sys/types.h"
	not in ../include/sys/types.h
	not in ../include/sys/types.h
	not in /usr/include/sys/types.h
makedepend: warning:  context.c, line 31: cannot find include file "sys/param.h"
	not in ../include/sys/param.h
	not in ../include/sys/param.h
	not in /usr/include/sys/param.h
makedepend: warning:  context.c, line 32: cannot find include file "sys/socket.h"
	not in ../include/sys/socket.h
	not in ../include/sys/socket.h
	not in /usr/include/sys/socket.h
makedepend: warning:  context.c, line 33: cannot find include file "unistd.h"
	not in ../include/unistd.h
	not in ../include/unistd.h
	not in /usr/include/unistd.h
makedepend: warning:  context.c, line 34: cannot find include file "netdb.h"
	not in ../include/netdb.h
	not in ../include/netdb.h
	not in /usr/include/netdb.h
makedepend: warning:  context.c, line 36: cannot find include file "time.h"
	not in ../include/time.h
	not in ../include/time.h
	not in /usr/include/time.h
makedepend: warning:  context.c, line 37: cannot find include file "signal.h"
	not in ../include/signal.h
	not in ../include/signal.h
	not in /usr/include/signal.h
makedepend: warning:  context.c, line 38: cannot find include file "netinet/in.h"
	not in ../include/netinet/in.h
	not in ../include/netinet/in.h
	not in /usr/include/netinet/in.h
makedepend: warning:  context.c, line 39: cannot find include file "arpa/inet.h"
	not in ../include/arpa/inet.h
	not in ../include/arpa/inet.h
	not in /usr/include/arpa/inet.h
cd src && /opt/pkg/bin/bmake
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED benc.c -o benc.o
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED bts.c -o bts.o
In file included from bts.c:24:
../include/bts.h:22:11: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
btStream* bts_create_strstream() ;
          ^
bts.c:109:11: note: conflicting prototype is here
btStream* bts_create_strstream( btsIo iodir) {
          ^
bts.c:230:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    buf.buf = bss->buf;
            ^ ~~~~~~~~
2 warnings generated.
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED types.c -o types.o
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED random.c -o random.o
random.c:39:11: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    SHA1( buf, len, dg);
          ^~~
/Users/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:55:42: note: passing argument to parameter 'd' here
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
                                         ^
random.c:39:21: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    SHA1( buf, len, dg);
                    ^~
/Users/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:55:70: note: passing argument to parameter 'md' here
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
                                                                     ^
2 warnings generated.
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED strbuf.c -o strbuf.o
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED stream.c -o stream.o
stream.c:173:9: warning: variable 'total' set but not used [-Wunused-but-set-variable]
    int total = 0;
        ^
1 warning generated.
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED peer.c -o peer.o
peer.c:87:62: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
    if (getsockopt( p->ios.fd, SOL_SOCKET, SO_ERROR, &error, &errlen)) {
                                                             ^~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/sys/socket.h:712:76: note: passing argument to parameter here
int     getsockopt(int, int, int, void * __restrict, socklen_t * __restrict);
                                                                           ^
peer.c:1136:48: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
    getpeername( sock, (struct sockaddr*)&sin, &sin_len);
                                               ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/sys/socket.h:708:78: note: passing argument to parameter here
int     getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict)
                                                                             ^
2 warnings generated.
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED segmenter.c -o segmenter.o
segmenter.c:150:11: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    SHA1( buf, len, digest);
          ^~~
/Users/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:55:42: note: passing argument to parameter 'd' here
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
                                         ^
segmenter.c:366:68: warning: format specifies type 'int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
                fprintf(stderr, "read( ..., buf[%lld], %lld) = %d\n", beg, rlen, res);
                                                               ~~                ^~~
                                                               %zd
2 warnings generated.
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED util.c -o util.o
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED bitset.c -o bitset.o
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED context.c -o context.o
context.c:105:20: warning: passing 'char[20]' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        hexencode( ctx->myid, IDSIZE, hexbuf, sizeof(hexbuf));
                   ^~~~~~~~~
../include/util.h:25:38: note: passing argument to parameter 'digest' here
void hexencode (const unsigned char *digest, int len, char *buf, int buflen);
                                     ^
context.c:107:20: warning: passing 'char[8]' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        hexencode( ctx->mykey, KEYSIZE, hexbuf, sizeof(hexbuf));
                   ^~~~~~~~~~
../include/util.h:25:38: note: passing argument to parameter 'digest' here
void hexencode (const unsigned char *digest, int len, char *buf, int buflen);
                                     ^
context.c:116:63: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (parse_config_digest( rcfile, lineno, "myid:", ctx->myid, IDSIZE, hexbuf)==0) {
                                                              ^~~~~~~~~
context.c:59:17: note: passing argument to parameter 'digest' here
        unsigned char *digest, int len, 
                       ^
context.c:119:64: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            if (parse_config_digest( rcfile, lineno, "mykey:", ctx->mykey, KEYSIZE, hexbuf)==0) {
                                                               ^~~~~~~~~~
context.c:59:17: note: passing argument to parameter 'digest' here
        unsigned char *digest, int len, 
                       ^
context.c:212:13: warning: variable 'p' set but not used [-Wunused-but-set-variable]
    btPeer *p;
            ^
context.c:383:30: warning: passing arguments to 'bts_create_strstream' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    io = bts_create_strstream( BTS_OUTPUT);
                             ^
context.c:493:15: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                     ^~~~~~~~~
context.c:313:16: note: passing argument to parameter 'myid' here
        unsigned char myid[IDSIZE], 
                      ^
context.c:493:26: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                                ^~~~~~~~~~
context.c:314:16: note: passing argument to parameter 'mykey' here
        unsigned char mykey[KEYSIZE],
                      ^
context.c:493:38: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                                            ^~~~~~~~~~~~
context.c:315:16: note: passing argument to parameter 'digest' here
        unsigned char digest[SHA_DIGEST_LENGTH], 
                      ^
context.c:548:15: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                     ^~~~~~~~~
context.c:313:16: note: passing argument to parameter 'myid' here
        unsigned char myid[IDSIZE], 
                      ^
context.c:548:26: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                                ^~~~~~~~~~
context.c:314:16: note: passing argument to parameter 'mykey' here
        unsigned char mykey[KEYSIZE],
                      ^
context.c:548:38: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                                            ^~~~~~~~~~~~
context.c:315:16: note: passing argument to parameter 'digest' here
        unsigned char digest[SHA_DIGEST_LENGTH], 
                      ^
context.c:585:15: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                     ^~~~~~~~~
context.c:313:16: note: passing argument to parameter 'myid' here
        unsigned char myid[IDSIZE], 
                      ^
context.c:585:26: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                                ^~~~~~~~~~
context.c:314:16: note: passing argument to parameter 'mykey' here
        unsigned char mykey[KEYSIZE],
                      ^
context.c:585:38: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                                            ^~~~~~~~~~~~
context.c:315:16: note: passing argument to parameter 'digest' here
        unsigned char digest[SHA_DIGEST_LENGTH], 
                      ^
context.c:614:15: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                     ^~~~~~~~~
context.c:313:16: note: passing argument to parameter 'myid' here
        unsigned char myid[IDSIZE], 
                      ^
context.c:614:26: warning: passing 'char[8]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                                ^~~~~~~~~~
context.c:314:16: note: passing argument to parameter 'mykey' here
        unsigned char mykey[KEYSIZE],
                      ^
context.c:614:38: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
            dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, 
                                            ^~~~~~~~~~~~
context.c:315:16: note: passing argument to parameter 'digest' here
        unsigned char digest[SHA_DIGEST_LENGTH], 
                      ^
context.c:673:35: warning: passing arguments to 'bts_create_strstream' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
    infostr = bts_create_strstream( BTS_OUTPUT);
                                  ^
context.c:676:11: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    SHA1( strbuf.buf, strbuf.len, dl->infohash);
          ^~~~~~~~~~
/Users/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:55:42: note: passing argument to parameter 'd' here
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
                                         ^
context.c:676:35: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    SHA1( strbuf.buf, strbuf.len, dl->infohash);
                                  ^~~~~~~~~~~~
/Users/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:55:70: note: passing argument to parameter 'md' here
unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);
                                                                     ^
21 warnings generated.
clang -c -g -Wall -I../include -I../include -I/opt/pkg/include -DLDAP_DEPRECATED bterror.c -o bterror.o
ar rc libbt.a benc.o bts.o types.o random.o strbuf.o stream.o peer.o segmenter.o util.o bitset.o context.o bterror.o
ranlib libbt.a
clang -g -Wall -I../include -I../include -DVERSION=1.05 -g -L. -L/usr/lib -L/opt/pkg/lib -o btcheck btcheck.c -lbt -luuid -lcurl  `curl-config --libs` -lm
ld: warning: ignoring duplicate libraries: '-lcurl'
ld: Undefined symbols:
  _SHA1, referenced from:
      _seed_rnd in libbt.a[5](random.o)
      __checkhash in libbt.a[9](segmenter.o)
      _ctx_loadfile in libbt.a[12](context.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [btcheck] Error code 1

bmake[1]: stopped in /Users/pbulk/build/net/btget/work/libbt-1.05/src
1 error

bmake[1]: stopped in /Users/pbulk/build/net/btget/work/libbt-1.05/src
*** [compile] Error code 2

bmake: stopped in /Users/pbulk/build/net/btget/work/libbt-1.05
1 error

bmake: stopped in /Users/pbulk/build/net/btget/work/libbt-1.05
*** Error code 2

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/btget
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/btget