+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/btget-1.05nb28/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/btget-1.05nb28/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for btget-1.05nb28 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: 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: 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: 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: 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 cd src && /opt/pkg/bin/bmake gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include benc.c -o benc.o gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include bts.c -o bts.o bts.c: In function 'bts_get_buf': bts.c:230:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 230 | buf.buf = bss->buf; | ^ gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include types.c -o types.o gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include random.c -o random.o random.c: In function 'seed_rnd': random.c:39:11: warning: pointer targets in passing argument 1 of 'SHA1' differ in signedness [-Wpointer-sign] 39 | SHA1( buf, len, dg); | ^~~ | | | char * In file included from random.c:32: /home/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:44:42: note: expected 'const unsigned char *' but argument is of type 'char *' 44 | unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md); | ~~~~~~~~~~~~~~~~~~~~~^ random.c:39:21: warning: pointer targets in passing argument 3 of 'SHA1' differ in signedness [-Wpointer-sign] 39 | SHA1( buf, len, dg); | ^~ | | | char * In file included from random.c:32: /home/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:44:70: note: expected 'unsigned char *' but argument is of type 'char *' 44 | unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md); | ~~~~~~~~~~~~~~~^~ gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include strbuf.c -o strbuf.o gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include stream.c -o stream.o gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include peer.c -o peer.o gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include segmenter.c -o segmenter.o segmenter.c: In function '_checkhash': segmenter.c:150:11: warning: pointer targets in passing argument 1 of 'SHA1' differ in signedness [-Wpointer-sign] 150 | SHA1( buf, len, digest); | ^~~ | | | char * In file included from segmenter.c:18: /home/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:44:42: note: expected 'const unsigned char *' but argument is of type 'char *' 44 | unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md); | ~~~~~~~~~~~~~~~~~~~~~^ segmenter.c: In function 'seg_readbuf': segmenter.c:366:51: warning: format '%d' expects argument of type 'int', but argument 5 has type 'ssize_t' {aka 'long int'} [-Wformat=] 366 | fprintf(stderr, "read( ..., buf[%lld], %lld) = %d\n", beg, rlen, res); | ~^ ~~~ | | | | int ssize_t {aka long int} | %ld gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include util.c -o util.o gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include bitset.c -o bitset.o gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include context.c -o context.o context.c: In function 'btContext_create': context.c:105:23: warning: pointer targets in passing argument 1 of 'hexencode' differ in signedness [-Wpointer-sign] 105 | hexencode( ctx->myid, IDSIZE, hexbuf, sizeof(hexbuf)); | ~~~^~~~~~ | | | char * In file included from ../include/types.h:4, from ../include/context.h:11, from context.c:41: ../include/util.h:25:38: note: expected 'const unsigned char *' but argument is of type 'char *' 25 | void hexencode (const unsigned char *digest, int len, char *buf, int buflen); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ context.c:107:23: warning: pointer targets in passing argument 1 of 'hexencode' differ in signedness [-Wpointer-sign] 107 | hexencode( ctx->mykey, KEYSIZE, hexbuf, sizeof(hexbuf)); | ~~~^~~~~~~ | | | char * In file included from ../include/types.h:4, from ../include/context.h:11, from context.c:41: ../include/util.h:25:38: note: expected 'const unsigned char *' but argument is of type 'char *' 25 | void hexencode (const unsigned char *digest, int len, char *buf, int buflen); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ context.c:116:66: warning: pointer targets in passing argument 4 of 'parse_config_digest' differ in signedness [-Wpointer-sign] 116 | if (parse_config_digest( rcfile, lineno, "myid:", ctx->myid, IDSIZE, hexbuf)==0) { | ~~~^~~~~~ | | | char * context.c:59:17: note: expected 'unsigned char *' but argument is of type 'char *' 59 | unsigned char *digest, int len, | ~~~~~~~~~~~~~~~^~~~~~ context.c:119:67: warning: pointer targets in passing argument 4 of 'parse_config_digest' differ in signedness [-Wpointer-sign] 119 | if (parse_config_digest( rcfile, lineno, "mykey:", ctx->mykey, KEYSIZE, hexbuf)==0) { | ~~~^~~~~~~ | | | char * context.c:59:17: note: expected 'unsigned char *' but argument is of type 'char *' 59 | unsigned char *digest, int len, | ~~~~~~~~~~~~~~~^~~~~~ context.c: In function 'btresponse': context.c:212:13: warning: variable 'p' set but not used [-Wunused-but-set-variable] 212 | btPeer *p; | ^ context.c: In function 'ctx_register': context.c:493:18: warning: pointer targets in passing argument 2 of 'btrequest' differ in signedness [-Wpointer-sign] 493 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~~^~~~~~ | | | char * context.c:313:16: note: expected 'unsigned char *' but argument is of type 'char *' 313 | unsigned char myid[IDSIZE], | ~~~~~~~~~~~~~~^~~~~~~~~~~~ context.c:493:29: warning: pointer targets in passing argument 3 of 'btrequest' differ in signedness [-Wpointer-sign] 493 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~~^~~~~~~ | | | char * context.c:314:16: note: expected 'unsigned char *' but argument is of type 'char *' 314 | unsigned char mykey[KEYSIZE], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ context.c:493:40: warning: pointer targets in passing argument 4 of 'btrequest' differ in signedness [-Wpointer-sign] 493 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~^~~~~~~~~~ | | | char * context.c:315:16: note: expected 'unsigned char *' but argument is of type 'char *' 315 | unsigned char digest[SHA_DIGEST_LENGTH], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ context.c: In function 'ctx_shutdown': context.c:548:18: warning: pointer targets in passing argument 2 of 'btrequest' differ in signedness [-Wpointer-sign] 548 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~~^~~~~~ | | | char * context.c:313:16: note: expected 'unsigned char *' but argument is of type 'char *' 313 | unsigned char myid[IDSIZE], | ~~~~~~~~~~~~~~^~~~~~~~~~~~ context.c:548:29: warning: pointer targets in passing argument 3 of 'btrequest' differ in signedness [-Wpointer-sign] 548 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~~^~~~~~~ | | | char * context.c:314:16: note: expected 'unsigned char *' but argument is of type 'char *' 314 | unsigned char mykey[KEYSIZE], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ context.c:548:40: warning: pointer targets in passing argument 4 of 'btrequest' differ in signedness [-Wpointer-sign] 548 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~^~~~~~~~~~ | | | char * context.c:315:16: note: expected 'unsigned char *' but argument is of type 'char *' 315 | unsigned char digest[SHA_DIGEST_LENGTH], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ context.c: In function 'ctx_complete': context.c:585:18: warning: pointer targets in passing argument 2 of 'btrequest' differ in signedness [-Wpointer-sign] 585 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~~^~~~~~ | | | char * context.c:313:16: note: expected 'unsigned char *' but argument is of type 'char *' 313 | unsigned char myid[IDSIZE], | ~~~~~~~~~~~~~~^~~~~~~~~~~~ context.c:585:29: warning: pointer targets in passing argument 3 of 'btrequest' differ in signedness [-Wpointer-sign] 585 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~~^~~~~~~ | | | char * context.c:314:16: note: expected 'unsigned char *' but argument is of type 'char *' 314 | unsigned char mykey[KEYSIZE], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ context.c:585:40: warning: pointer targets in passing argument 4 of 'btrequest' differ in signedness [-Wpointer-sign] 585 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~^~~~~~~~~~ | | | char * context.c:315:16: note: expected 'unsigned char *' but argument is of type 'char *' 315 | unsigned char digest[SHA_DIGEST_LENGTH], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ context.c: In function 'ctx_reregister': context.c:614:18: warning: pointer targets in passing argument 2 of 'btrequest' differ in signedness [-Wpointer-sign] 614 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~~^~~~~~ | | | char * context.c:313:16: note: expected 'unsigned char *' but argument is of type 'char *' 313 | unsigned char myid[IDSIZE], | ~~~~~~~~~~~~~~^~~~~~~~~~~~ context.c:614:29: warning: pointer targets in passing argument 3 of 'btrequest' differ in signedness [-Wpointer-sign] 614 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~~^~~~~~~ | | | char * context.c:314:16: note: expected 'unsigned char *' but argument is of type 'char *' 314 | unsigned char mykey[KEYSIZE], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ context.c:614:40: warning: pointer targets in passing argument 4 of 'btrequest' differ in signedness [-Wpointer-sign] 614 | dl->url, ctx->myid, ctx->mykey, dl->infohash, ctx->listenport, | ~~^~~~~~~~~~ | | | char * context.c:315:16: note: expected 'unsigned char *' but argument is of type 'char *' 315 | unsigned char digest[SHA_DIGEST_LENGTH], | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ context.c: In function 'ctx_loadfile': context.c:676:17: warning: pointer targets in passing argument 1 of 'SHA1' differ in signedness [-Wpointer-sign] 676 | SHA1( strbuf.buf, strbuf.len, dl->infohash); | ~~~~~~^~~~ | | | char * In file included from context.c:19: /home/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:44:42: note: expected 'const unsigned char *' but argument is of type 'char *' 44 | unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md); | ~~~~~~~~~~~~~~~~~~~~~^ context.c:676:37: warning: pointer targets in passing argument 3 of 'SHA1' differ in signedness [-Wpointer-sign] 676 | SHA1( strbuf.buf, strbuf.len, dl->infohash); | ~~^~~~~~~~~~ | | | char * In file included from context.c:19: /home/pbulk/build/net/btget/work/.buildlink/include/openssl/sha.h:44:70: note: expected 'unsigned char *' but argument is of type 'char *' 44 | unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md); | ~~~~~~~~~~~~~~~^~ context.c: In function 'btresponse': context.c:256:76: warning: 'target.sin_port' may be used uninitialized in this function [-Wmaybe-uninitialized] 256 | "Skipping old peer: %s:%d", inet_ntoa(target.sin_addr), ntohs(target.sin_port)); | ~~~~~~^~~~~~~~~ gcc -c -g -Wall -I../include -I../include -I/usr/include -I/opt/pkg/include 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 gcc -g -Wall -I../include -I../include -DVERSION=1.05 -g -L. -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -liconv -lintl -o btcheck btcheck.c -lbt -lresolv -luuid -lcurl `curl-config --libs` -lm Undefined first referenced symbol in file SHA1 ./libbt.a(context.o) (symbol belongs to implicit dependency /home/pbulk/build/net/btget/work/.buildlink/lib/libcrypto.so.1.1) bind ./libbt.a(context.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) recv ./libbt.a(stream.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) listen ./libbt.a(context.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) socket ./libbt.a(context.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) getsockopt ./libbt.a(peer.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) connect ./libbt.a(peer.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) getaddrinfo ./libbt.a(context.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) getpeername ./libbt.a(peer.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) freeaddrinfo ./libbt.a(context.o) (symbol belongs to implicit dependency /lib/amd64/libsocket.so.1) ld: fatal: symbol referencing errors. No output written to btcheck collect2: error: ld returned 1 exit status *** [btcheck] Error code 1 bmake[1]: stopped in /home/pbulk/build/net/btget/work/libbt-1.05/src 1 error bmake[1]: stopped in /home/pbulk/build/net/btget/work/libbt-1.05/src *** [compile] Error code 2 bmake: stopped in /home/pbulk/build/net/btget/work/libbt-1.05 1 error bmake: stopped in /home/pbulk/build/net/btget/work/libbt-1.05 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/btget *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/btget