=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for unworkable-0.53nb1 cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c announce.c announce.c:292:14: warning: passing 'u_int8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ /usr/include/string.h:63:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t); ^ announce.c:292:61: warning: passing 'u_int8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(c, HTTP_1_0, strlen(HTTP_1_0)) != 0 && strncmp(c, HTTP_1_1, strlen(HTTP_1_1))) { ^ /usr/include/string.h:63:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t); ^ announce.c:297:14: warning: passing 'u_int8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp(c, HTTP_OK, strlen(HTTP_OK)) != 0) { ^ /usr/include/string.h:63:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t); ^ announce.c:302:13: warning: passing 'u_int8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] c = strstr(c, HTTP_END); ^ /usr/include/string.h:68:26: note: passing argument to parameter here char *strstr(const char *, const char *); ^ announce.c:302:4: warning: assigning to 'u_int8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] c = strstr(c, HTTP_END); ^ ~~~~~~~~~~~~~~~~~~~ 5 warnings generated. cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c bencode.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c buf.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c ctl_server.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c network.c network.c:631:49: warning: expression result unused [-Wunused-value] trace("REQUEST offset out of bounds (%u)"), off; ^~~ 1 warning generated. yacc parse.y cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c -o parse.o y.tab.c parse.y:113:11: warning: implicit declaration of function 'strtonum' is invalid in C99 [-Wimplicit-function-declaration] lval = strtonum(yystack.l_mark[0].string, LLONG_MIN, LLONG_MAX, &errstr); ^ 1 warning generated. rm -f y.tab.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c progressmeter.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c scheduler.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c torrent.c torrent.c:77:19: warning: passing 'char *' to parameter of type 'const u_int8_t *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] SHA1Update(&sha, p, (infoend - (p - buf))); ^ openbsd-compat/sha1.h:25:45: note: passing argument to parameter here void SHA1Update(SHA1_CTX *, const u_int8_t *, size_t); ^ torrent.c:767:5: warning: assigning to 'u_int8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = tp->body.multifile.pieces ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ torrent.c:770:5: warning: assigning to 'u_int8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = tp->body.singlefile.pieces ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c trace.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c util.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c xmalloc.c cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c sha1.c sha1.c:134:46: warning: cast from 'const unsigned char *' to 'unsigned char *' drops const qualifier [-Wcast-qual] SHA1Transform(context->state, (u_int8_t *)&data[i]); ^ 1 warning generated. cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c strtonum.c ar rcs libunworkable.a announce.o bencode.o buf.o ctl_server.o network.o parse.o progressmeter.o scheduler.o torrent.o trace.o util.o xmalloc.o sha1.o strtonum.o cc -O2 -march=i586 -I/usr/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -ggdb -Iopenbsd-compat -I/usr/include -c main.c cc -o unworkable -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L. -levent -lcrypto main.o -lunworkable ./libunworkable.a(torrent.o): In function `torrent_mmap_create': /usr/pkgsrc/work/net/unworkable/work/unworkable/torrent.c:568: undefined reference to `madvise' ./libunworkable.a(torrent.o): In function `torrent_piece_sync': /usr/pkgsrc/work/net/unworkable/work/unworkable/torrent.c:801: undefined reference to `__msync13' ./libunworkable.a(torrent.o): In function `torrent_piece_unmap': /usr/pkgsrc/work/net/unworkable/work/unworkable/torrent.c:824: undefined reference to `__msync13' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/unworkable/work/unworkable *** Error code 1 Stop. bmake[1]: stopped in /usr/pkgsrc/net/unworkable *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/unworkable