=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for nap-1.4.4nb5 --- alias.o --- --- cmds.o --- --- exp.o --- --- getopt.o --- --- handlers.o --- --- irc.o --- --- lists.o --- --- md5.o --- --- alias.o --- clang -DPACKAGE=\"nap\" -DVERSION=\"1.4.4\" -DHAVE_LIBDL=1 -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_NCURSES_H=1 -I. -I. -O2 -c alias.c --- cmds.o --- clang -DPACKAGE=\"nap\" -DVERSION=\"1.4.4\" -DHAVE_LIBDL=1 -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_NCURSES_H=1 -I. -I. -O2 -c cmds.c --- exp.o --- clang -DPACKAGE=\"nap\" -DVERSION=\"1.4.4\" -DHAVE_LIBDL=1 -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_NCURSES_H=1 -I. -I. -O2 -c exp.c --- getopt.o --- clang -DPACKAGE=\"nap\" -DVERSION=\"1.4.4\" -DHAVE_LIBDL=1 -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_NCURSES_H=1 -I. -I. -O2 -c getopt.c --- handlers.o --- clang -DPACKAGE=\"nap\" -DVERSION=\"1.4.4\" -DHAVE_LIBDL=1 -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_NCURSES_H=1 -I. -I. -O2 -c handlers.c --- irc.o --- clang -DPACKAGE=\"nap\" -DVERSION=\"1.4.4\" -DHAVE_LIBDL=1 -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_NCURSES_H=1 -I. -I. -O2 -c irc.c --- lists.o --- clang -DPACKAGE=\"nap\" -DVERSION=\"1.4.4\" -DHAVE_LIBDL=1 -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_NCURSES_H=1 -I. -I. -O2 -c lists.c --- md5.o --- clang -DPACKAGE=\"nap\" -DVERSION=\"1.4.4\" -DHAVE_LIBDL=1 -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_NCURSES_H=1 -I. -I. -O2 -c md5.c --- exp.o --- In file included from exp.c:14: ./nap.h:1:9: warning: '_NAP_NAP_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] --- lists.o --- lists.c:74:9: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] i = abs(pd-hd); ^ lists.c:74:9: note: remove the call to 'abs' since unsigned values cannot be negative i = abs(pd-hd); ^~~ --- exp.o --- #ifndef _NAP_NAP_H ^~~~~~~~~~ --- handlers.o --- In file included from handlers.c:13: ./cmds.h:303:21: error: unknown type name 'u_short'; did you mean 'short'? static int in_cksum(u_short *, int); ^~~~~~~ short --- exp.o --- ./nap.h:2:9: note: '_NAP_HAP_H' is defined here; did you mean '_NAP_NAP_H'? --- handlers.o --- handlers.c:26:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] t = strdup(al->args); ^~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here --- exp.o --- #define _NAP_HAP_H ^~~~~~~~~~ _NAP_NAP_H --- handlers.o --- char *strdup(const char *__s1); ^ --- lists.o --- lists.c:82:9: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value] i = abs(pd-hd); ^ --- handlers.o --- handlers.c:174:7: warning: implicit declaration of function 'msprintf' is invalid in C99 [-Wimplicit-function-declaration] msprintf(&atok[i], "%i", cnt-1); ^ --- lists.o --- lists.c:82:9: note: remove the call to 'abs' since unsigned values cannot be negative i = abs(pd-hd); ^~~ lists.c:89:11: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] str = (void *)(*(int *)(cur->d)); ^ --- handlers.o --- handlers.c:310:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->args = strdup(buf+i+1); ^ ~~~~~~~~~~~~~~~ 3 warnings and 1 error generated. --- exp.o --- exp.c:59:43: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] getpeername(s, (struct sockaddr *)&frm, &frmlen); ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:704:78: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ --- handlers.o --- *** [handlers.o] Error code 1 bmake: stopped in /opt/work/net/nap/work/nap-1.4.4 --- exp.o --- 2 warnings generated. --- irc.o --- In file included from irc.c:21: ./nap.h:1:9: warning: '_NAP_NAP_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] #ifndef _NAP_NAP_H ^~~~~~~~~~ ./nap.h:2:9: note: '_NAP_HAP_H' is defined here; did you mean '_NAP_NAP_H'? #define _NAP_HAP_H ^~~~~~~~~~ _NAP_NAP_H --- alias.o --- In file included from alias.c:15: ./cmds.h:303:21: error: unknown type name 'u_short'; did you mean 'short'? static int in_cksum(u_short *, int); ^~~~~~~ short alias.c:55:3: warning: implicit declaration of function 'wp' is invalid in C99 [-Wimplicit-function-declaration] wp(wchan, "|%s|\n", buf); ^ alias.c:56:3: warning: implicit declaration of function 'drw' is invalid in C99 [-Wimplicit-function-declaration] drw(wchan); ^ --- cmds.o --- In file included from cmds.c:33: ./nap.h:1:9: warning: '_NAP_NAP_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] #ifndef _NAP_NAP_H ^~~~~~~~~~ ./nap.h:2:9: note: '_NAP_HAP_H' is defined here; did you mean '_NAP_NAP_H'? #define _NAP_HAP_H ^~~~~~~~~~ --- alias.o --- alias.c:66:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] r = strdup(getval(nm, &tp)); ^~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here --- cmds.o --- _NAP_NAP_H --- alias.o --- char *strdup(const char *__s1); ^ alias.c:66:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] r = strdup(getval(nm, &tp)); ^ ~~~~~~~~~~~~~~~~~~~~~~~ alias.c:68:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strchr(nm, '(')) ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:76:26: note: passing argument to parameter '__s' here char *strchr(const char *__s, int __c); ^ alias.c:71:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(b, strchr(nm, '(')+1); ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:84:33: note: expanded from macro 'strcpy' __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:76:26: note: passing argument to parameter '__s' here char *strchr(const char *__s, int __c); ^ alias.c:82:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] t = dovars(vtok[i]+1); ^~~~~~~~~ alias.c:59:38: note: passing argument to parameter 'nm' here unsigned char *dovars(unsigned char *nm) ^ alias.c:86:19: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] vtok[i] = t; ^ ~ alias.c:101:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] t = dovars(tok[j]+1); ^~~~~~~~ alias.c:59:38: note: passing argument to parameter 'nm' here unsigned char *dovars(unsigned char *nm) ^ alias.c:105:20: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] tok[j] = t; ^ ~ alias.c:169:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcasecmp(vars[i].nm, b)) ^~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ alias.c:183:11: warning: returning 'char *' from a function with result type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] return(strdup("")); ^~~~~~~~~~~~ alias.c:237:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] t = strdup(al->args); ^~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ --- cmds.o --- cmds.c:323:61: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] recvfrom(s, buf, sizeof(buf), 0, (struct sockaddr *)&frm, &frmlen); ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:712:27: note: passing argument to parameter here socklen_t * __restrict) __DARWIN_ALIAS_C(recvfrom); ^ --- irc.o --- irc.c:146:45: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] s = accept(m->s, (struct sockaddr *)&frm, &frmlen); ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:700:73: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ --- cmds.o --- cmds.c:492:9: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] b = dohandler(cur, tok, cnt); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ cmds.c:514:9: warning: implicit declaration of function 'userhandler' is invalid in C99 [-Wimplicit-function-declaration] r = userhandler(s, op, tok, cnt, buf, win); ^ cmds.c:520:9: warning: implicit declaration of function 'userhandler' is invalid in C99 [-Wimplicit-function-declaration] r = userhandler(s, op, NULL, 0, NULL, win); ^ --- alias.o --- alias.c:385:7: warning: implicit declaration of function 'msprintf' is invalid in C99 [-Wimplicit-function-declaration] msprintf(&atok[i], "%i", cnt-1); ^ --- irc.o --- irc.c:193:16: warning: address of array 'cur->cmd' will always evaluate to 'true' [-Wpointer-bool-conversion] if (cur->cmd) ~~ ~~~~~^~~ irc.c:195:16: warning: passing 'unsigned char [512]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] indraw(cur->cmd, curx, winput); ^~~~~~~~ ./nap.h:99:19: note: passing argument to parameter here void indraw(char *, int, WINDOW *); ^ irc.c:274:18: warning: address of array 'cur->cmd' will always evaluate to 'true' [-Wpointer-bool-conversion] if (cur->cmd) ~~ ~~~~~^~~ irc.c:276:18: warning: passing 'unsigned char [512]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] indraw(cur->cmd, curx, winput); ^~~~~~~~ ./nap.h:99:19: note: passing argument to parameter here void indraw(char *, int, WINDOW *); ^ --- cmds.o --- cmds.c:703:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = dovars(tok[i]+1); ^~~~~~~~ ./alias.h:29:38: note: passing argument to parameter here unsigned char *dovars(unsigned char *); ^ cmds.c:703:17: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = dovars(tok[i]+1); ^ ~~~~~~~~~~~~~~~~ cmds.c:762:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcasecmp(tok[0], cur->nm)) ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:43: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ cmds.c:764:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] st = doalias(cur, tok, cnt); ^ ~~~~~~~~~~~~~~~~~~~~~~ --- alias.o --- alias.c:538:15: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->args = strdup(buf+i+1); ^ ~~~~~~~~~~~~~~~ alias.c:539:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->nm = (char *)malloc(i); ^ ~~~~~~~~~~~~~~~~~ alias.c:546:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(cur->nm, buf, i); ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~ --- lists.o --- 3 warnings generated. --- alias.o --- alias.c:575:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] nm = (unsigned char *)malloc(i+1); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alias.c:587:12: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] addset(nm, buf+j, t); ^~ ./alias.h:36:28: note: passing argument to parameter here void addset(unsigned char *, unsigned char *, unsigned char); ^ alias.c:587:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] addset(nm, buf+j, t); ^~~~~ ./alias.h:36:45: note: passing argument to parameter here void addset(unsigned char *, unsigned char *, unsigned char); ^ alias.c:630:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->nm = strdup(nm); ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ alias.c:630:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->nm = strdup(nm); ^ ~~~~~~~~~~ alias.c:631:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->d = strdup(val); ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ --- cmds.o --- cmds.c:833:18: warning: initializing 'unsigned char *' with an expression of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] unsigned char *t = buf, f=0; ^ ~~~ --- alias.o --- alias.c:631:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- cmds.o --- cmds.c:835:19: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] tok = form_toks(t, &cnt); ^ cmds.c:336:24: note: passing argument to parameter 'buf' here char **form_toks(char *buf, int *cnt) ^ --- alias.o --- cur->d = strdup(val); ^ ~~~~~~~~~~~ --- cmds.o --- cmds.c:844:7: warning: implicit declaration of function 'usercmd' is invalid in C99 [-Wimplicit-function-declaration] r = usercmd(s, tok, cnt, t, win); ^ --- alias.o --- alias.c:652:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strlen(d)) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ --- cmds.o --- cmds.c:857:29: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!checkouts(ircsock, t, tok, cnt, win)) ^ ./irc.h:85:28: note: passing argument to parameter here int checkouts(int s, char *, char **, int, WINDOW *); ^ --- alias.o --- alias.c:662:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (cur=setl;cur&&strcasecmp(cur->nm, nm);cur=cur->next); ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ alias.c:662:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (cur=setl;cur&&strcasecmp(cur->nm, nm);cur=cur->next); ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:43: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ --- cmds.o --- cmds.c:887:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] r = out[i].func(s, t, tok, cnt, win); ^ --- alias.o --- alias.c:687:33: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (cur=setl;cur&&strcasecmp(cur->nm, nm);cur=cur->next) ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ alias.c:687:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] for (cur=setl;cur&&strcasecmp(cur->nm, nm);cur=cur->next) ^~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:43: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ alias.c:716:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] return(atol(cur->d)); ^~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:136:24: note: passing argument to parameter here long atol(const char *); ^ alias.c:778:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] t = dovars(tok[i]+1); ^~~~~~~~ alias.c:59:38: note: passing argument to parameter 'nm' here unsigned char *dovars(unsigned char *nm) ^ alias.c:778:9: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] t = dovars(tok[i]+1); ^ ~~~~~~~~~~~~~~~~ alias.c:823:25: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] s2 = (char *)malloc(abs(strchr(s1, r)-s1)); ^ --- cmds.o --- cmds.c:1277:74: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- alias.o --- alias.c:823:25: note: use function 'labs' instead --- cmds.o --- if (dwi && ((!strcasecmp(tok[0], "information") && !strcasecmp(tok[2], dwi)) || (!strcasecmp(tok[0], "user") && !strcasecmp(tok[1], dwi)))) ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:43: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ --- alias.o --- s2 = (char *)malloc(abs(strchr(s1, r)-s1)); ^~~ labs --- cmds.o --- cmds.c:1277:135: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dwi && ((!strcasecmp(tok[0], "information") && !strcasecmp(tok[2], dwi)) || (!strcasecmp(tok[0], "user") && !strcasecmp(tok[1], dwi)))) ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:43: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ --- alias.o --- alias.c:824:23: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] strncpy(s2, s1+1, abs(strchr(s1, r)-s1)-1); ^ alias.c:824:23: note: use function 'labs' instead strncpy(s2, s1+1, abs(strchr(s1, r)-s1)-1); ^~~ labs /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:128:34: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^ --- cmds.o --- cmds.c:1316:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dwi && !strcasecmp(dwi, tok[0])) ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ --- alias.o --- alias.c:825:8: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] s2[abs(strchr(s1, r)-s1)-1] = '\0'; ^ alias.c:825:8: note: use function 'labs' instead s2[abs(strchr(s1, r)-s1)-1] = '\0'; ^~~ labs alias.c:836:21: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] rt = ins(t2, t, abs(s1-t2), abs((s1-t2))+(abs((strchr(s1, r)-s1))+1)); ^ alias.c:836:21: note: use function 'labs' instead --- cmds.o --- cmds.c:1384:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (dwi && !strcasecmp(dwi, tok[0])) --- alias.o --- rt = ins(t2, t, abs(s1-t2), abs((s1-t2))+(abs((strchr(s1, r)-s1))+1)); ^~~ labs --- cmds.o --- ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here --- alias.o --- alias.c:836:33: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] rt = ins(t2, t, abs(s1-t2), abs((s1-t2))+(abs((strchr(s1, r)-s1))+1)); ^ --- cmds.o --- int strcasecmp(const char *, const char *); ^ --- alias.o --- alias.c:836:33: note: use function 'labs' instead rt = ins(t2, t, abs(s1-t2), abs((s1-t2))+(abs((strchr(s1, r)-s1))+1)); ^~~ labs alias.c:836:47: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] rt = ins(t2, t, abs(s1-t2), abs((s1-t2))+(abs((strchr(s1, r)-s1))+1)); ^ alias.c:836:47: note: use function 'labs' instead rt = ins(t2, t, abs(s1-t2), abs((s1-t2))+(abs((strchr(s1, r)-s1))+1)); ^~~ labs alias.c:892:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] tm = dovars(tok[0]+1); ^~~~~~~~ alias.c:59:38: note: passing argument to parameter 'nm' here unsigned char *dovars(unsigned char *nm) ^ alias.c:892:10: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] tm = dovars(tok[0]+1); ^ ~~~~~~~~~~~~~~~~ alias.c:901:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] tm = dovars(tok[1]+1); ^~~~~~~~ alias.c:59:38: note: passing argument to parameter 'nm' here unsigned char *dovars(unsigned char *nm) ^ alias.c:901:10: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] tm = dovars(tok[1]+1); ^ ~~~~~~~~~~~~~~~~ alias.c:910:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] tm = dovars(tok[2]+1); ^~~~~~~~ alias.c:59:38: note: passing argument to parameter 'nm' here unsigned char *dovars(unsigned char *nm) ^ alias.c:910:10: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] tm = dovars(tok[2]+1); ^ ~~~~~~~~~~~~~~~~ alias.c:922:7: warning: implicit declaration of function 'msprintf' is invalid in C99 [-Wimplicit-function-declaration] msprintf(&tm, "\'%s\' %s \'%s\'", tok[0]?tok[0]:"", tok[1]?tok[1]:"", tok[2]?tok[2]:""); ^ --- irc.o --- irc.c:1905:43: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] getsockname(s, (struct sockaddr *)&frm, &frmlen); ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:706:78: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ --- alias.o --- alias.c:1106:3: warning: implicit declaration of function 'msprintf' is invalid in C99 [-Wimplicit-function-declaration] msprintf(&rt, "%i", t); ^ 46 warnings and 1 error generated. --- cmds.o --- cmds.c:1575:34: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->timer = addtimer(90, s, nm, win); ^~ ./timer.h:24:41: note: passing argument to parameter here void *addtimer(int, int, unsigned char *, WINDOW *); ^ --- alias.o --- *** [alias.o] Error code 1 bmake: stopped in /opt/work/net/nap/work/nap-1.4.4 --- cmds.o --- cmds.c:1713:32: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->timer = addtimer(90, s, nm, win); ^~ ./timer.h:24:41: note: passing argument to parameter here void *addtimer(int, int, unsigned char *, WINDOW *); ^ cmds.c:1819:37: warning: passing 'char [15]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] int min, sec, i, c, lp, dr = nvar("noresultscreen"); ^~~~~~~~~~~~~~~~ ./alias.h:41:26: note: passing argument to parameter here long nvar(unsigned char *); ^ cmds.c:2029:29: warning: passing 'char [15]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] int min, sec, i, r = nvar("noresultscreen"); ^~~~~~~~~~~~~~~~ ./alias.h:41:26: note: passing argument to parameter here long nvar(unsigned char *); ^ cmds.c:2078:3: warning: implicit declaration of function 'initfserv' is invalid in C99 [-Wimplicit-function-declaration] initfserv(atoi(tok[0])); ^ cmds.c:3006:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] dwi = strdup(tok[1]); ^ ~~~~~~~~~~~~~~ cmds.c:3007:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] sendpack(s, F_WHOIS, dwi); ^~~ ./nap.h:95:41: note: passing argument to parameter here int sendpack(int, unsigned short, char *, ...); ^ cmds.c:3275:3: warning: implicit declaration of function 'libunload' is invalid in C99 [-Wimplicit-function-declaration] libunload(&hnd); ^ cmds.c:3276:7: warning: implicit declaration of function 'libload' is invalid in C99 [-Wimplicit-function-declaration] if (libload(USERLIB) == -1) ^ cmds.c:3754:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcasecmp(cur->nm, tok[1])) ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ cmds.c:3766:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->nm = strdup(tok[1]); ^ ~~~~~~~~~~~~~~ cmds.c:3767:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->args = strdup(cstr(str, 2)); ^ ~~~~~~~~~~~~~~~~~~~~ cmds.c:3795:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!strcasecmp(cur->nm, tok[1])) ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/strings.h:78:29: note: passing argument to parameter here int strcasecmp(const char *, const char *); ^ cmds.c:3851:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] cur->args = strdup(cspstr(tok, num, 2)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmds.c:4460:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = dovars(tok[1]); ^~~~~~ ./alias.h:29:38: note: passing argument to parameter here unsigned char *dovars(unsigned char *); ^ cmds.c:4480:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], cstr(str, 2)); ^~~~~~ ./alias.h:37:27: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4480:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], cstr(str, 2)); ^~~~~~~~~~~~ ./alias.h:37:44: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4482:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], ""); ^~~~~~ ./alias.h:37:27: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4482:19: warning: passing 'char [1]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], ""); ^~ ./alias.h:37:44: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4484:12: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (nvar("echosets") == 1) ^~~~~~~~~~ ./alias.h:41:26: note: passing argument to parameter here long nvar(unsigned char *); ^ cmds.c:4504:15: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (!getval(tok[1], &t)) ^~~~~~ ./alias.h:39:38: note: passing argument to parameter here unsigned char *getval(unsigned char *, unsigned char *); ^ cmds.c:4506:14: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (nvar("echosets") == 1) ^~~~~~~~~~ ./alias.h:41:26: note: passing argument to parameter here long nvar(unsigned char *); ^ cmds.c:4514:10: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] delset(tok[1]); ^~~~~~ ./alias.h:40:28: note: passing argument to parameter here void delset(unsigned char *); ^ cmds.c:4516:12: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (nvar("echosets") == 1) ^~~~~~~~~~ ./alias.h:41:26: note: passing argument to parameter here long nvar(unsigned char *); ^ cmds.c:4687:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] addtimer(sec, s, cstr(str, 3), win); ^~~~~~~~~~~~ ./timer.h:24:41: note: passing argument to parameter here void *addtimer(int, int, unsigned char *, WINDOW *); ^ cmds.c:4894:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = getval(tok[1], &t); ^~~~~~ ./alias.h:39:38: note: passing argument to parameter here unsigned char *getval(unsigned char *, unsigned char *); ^ cmds.c:4895:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (t && strlen(p)) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ cmds.c:4897:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] tp = strdup(p+1); ^~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ cmds.c:4898:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], tp); ^~~~~~ ./alias.h:37:27: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4898:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], tp); ^~ ./alias.h:37:44: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4903:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] msprintf(&tp, "%i", atoi(p)+1); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:135:23: note: passing argument to parameter here int atoi(const char *); ^ cmds.c:4904:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], tp); ^~~~~~ ./alias.h:37:27: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4904:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], tp); ^~ ./alias.h:37:44: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4908:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = getval(tok[1], &t); ^~~~~~ ./alias.h:39:38: note: passing argument to parameter here unsigned char *getval(unsigned char *, unsigned char *); ^ cmds.c:4910:12: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (nvar("echosets") == 1) ^~~~~~~~~~ ./alias.h:41:26: note: passing argument to parameter here long nvar(unsigned char *); ^ cmds.c:4931:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = getval(tok[1], &t); ^~~~~~ ./alias.h:39:38: note: passing argument to parameter here unsigned char *getval(unsigned char *, unsigned char *); ^ cmds.c:4932:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (t && strlen(p)) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:82:28: note: passing argument to parameter '__s' here size_t strlen(const char *__s); ^ cmds.c:4934:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] tp = strdup(p); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:117:26: note: passing argument to parameter '__s1' here char *strdup(const char *__s1); ^ cmds.c:4936:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], tp); ^~~~~~ ./alias.h:37:27: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4936:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], tp); ^~ ./alias.h:37:44: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4941:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] msprintf(&tp, "%i", atoi(p)-1); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:135:23: note: passing argument to parameter here int atoi(const char *); ^ cmds.c:4942:11: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], tp); ^~~~~~ ./alias.h:37:27: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4942:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] chset(tok[1], tp); ^~ ./alias.h:37:44: note: passing argument to parameter here void chset(unsigned char *, unsigned char *); ^ cmds.c:4946:14: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = getval(tok[1], &t); ^~~~~~ ./alias.h:39:38: note: passing argument to parameter here unsigned char *getval(unsigned char *, unsigned char *); ^ cmds.c:4948:12: warning: passing 'char [9]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (nvar("echosets") == 1) ^~~~~~~~~~ ./alias.h:41:26: note: passing argument to parameter here long nvar(unsigned char *); ^ cmds.c:4986:16: warning: passing 'unsigned char [256]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strstr(cur->ln, tok[1]) && cur->d != 2) ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:89:26: note: passing argument to parameter '__big' here char *strstr(const char *__big, const char *__little); ^ cmds.c:5101:47: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getpeername(s, (struct sockaddr *)&dst, &frmlen)) ^~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:704:78: note: passing argument to parameter here int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ --- irc.o --- 7 warnings generated. --- cmds.o --- 65 warnings generated. 2 errors bmake: stopped in /opt/work/net/nap/work/nap-1.4.4 *** Error code 2 Stop. bmake[1]: stopped in /opt/pkgsrc/net/nap *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/net/nap