=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. ===> Building for sharity-light-1.3 --- nfs_dir --- --- proc.o --- --- recode.o --- --- sock.o --- --- rumba.o --- --- psinode.o --- --- kernel.o --- --- smb_abstraction.o --- --- fo_nfs.o --- --- nfs_dir --- (cd nfs; /usr/bin/make "CFLAGS=-Wall -O2 -DNETBSD" "CC=clang" "ARCH= " "RPC_WARNFLAGS=-Wno-unused -Wno-switch -Wno-uninitialized") --- proc.o --- clang -Iinclude -I. -Wall -O2 -DNETBSD -c -o proc.o proc.c --- recode.o --- clang -Iinclude -I. -Wall -O2 -DNETBSD -c -o recode.o recode.c --- rumba.o --- clang -Iinclude -I. -Wall -O2 -DNETBSD -c -o rumba.o rumba.c --- sock.o --- clang -Iinclude -I. -Wall -O2 -DNETBSD -c -o sock.o sock.c --- fo_nfs.o --- clang -Iinclude -I. -Wall -O2 -DNETBSD -c -o fo_nfs.o fo_nfs.c --- kernel.o --- clang -Iinclude -I. -Wall -O2 -DNETBSD -c -o kernel.o kernel.c --- psinode.o --- clang -Iinclude -I. -Wall -O2 -DNETBSD -c -o psinode.o psinode.c --- smb_abstraction.o --- clang -Iinclude -I. -Wall -O2 -DNETBSD -c -o smb_abstraction.o smb_abstraction.c --- nfs_dir --- --- nfs_prot.h --- --- nfs_prot_xdr.c --- --- mount.o --- --- nfs_funcs.o --- --- syscalls.o --- --- nfs_prot_xdr.c --- rm -f nfs_prot_xdr.c rpcgen -c nfs_prot.x | sed 's;^#include ".*/nfs_prot.h"$;#include "nfs_prot.h";' >nfs_prot_xdr.c --- mount.o --- clang -c -I. -I.. -Wall -O2 -DNETBSD mount.c --- nfs_funcs.o --- clang -c -I. -I.. -Wall -O2 -DNETBSD nfs_funcs.c --- nfs_prot.h --- rm -f nfs_prot.h --- syscalls.o --- clang -c -I. -I.. -Wall -O2 -DNETBSD syscalls.c --- nfs_prot.h --- rpcgen -h nfs_prot.x | sed 's@char data\[NFS_FHSIZE\];@long long data\[NFS_FHSIZE / sizeof(long long)\];@' > nfs_prot.h --- nfs_funcs.o --- nfs_funcs.c:62:39: error: unknown type name 'sattr' static void input_attr(my_attr_t *ma, sattr *sa) ^ nfs_funcs.c:79:40: error: unknown type name 'fattr' static void output_attr(my_attr_t *ma, fattr *fa) ^ nfs_funcs.c:82:13: error: use of undeclared identifier 'NFNON' fa->type = NFNON; ^ nfs_funcs.c:83:17: error: use of undeclared identifier 'NFSMODE_FMT' if((ma->mode & NFSMODE_FMT) == NFSMODE_DIR) ^ nfs_funcs.c:83:33: error: use of undeclared identifier 'NFSMODE_DIR' if((ma->mode & NFSMODE_FMT) == NFSMODE_DIR) ^ nfs_funcs.c:84:14: error: use of undeclared identifier 'NFDIR' fa->type = NFDIR; ^ nfs_funcs.c:85:22: error: use of undeclared identifier 'NFSMODE_FMT' else if((ma->mode & NFSMODE_FMT) == NFSMODE_REG) ^ nfs_funcs.c:85:38: error: use of undeclared identifier 'NFSMODE_REG' else if((ma->mode & NFSMODE_FMT) == NFSMODE_REG) ^ nfs_funcs.c:86:14: error: use of undeclared identifier 'NFREG'; did you mean '_NGREG'? fa->type = NFREG; ^~~~~ _NGREG /usr/include/machine/mcontext.h:43:34: note: '_NGREG' declared here enum { _FRAME_GREG(GREG_OFFSETS) _NGREG = 26 }; ^ nfs_funcs.c:87:22: error: use of undeclared identifier 'NFSMODE_FMT' else if((ma->mode & NFSMODE_FMT) == NFSMODE_LNK) ^ --- rumba.o --- rumba.c:81:11: warning: array subscript is of type 'char' [-Wchar-subscripts] *name = toupper(*name); ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ --- nfs_dir --- nfs_funcs.c:87:38: error: use of undeclared identifier 'NFSMODE_LNK' else if((ma->mode & NFSMODE_FMT) == NFSMODE_LNK) ^ nfs_funcs.c:88:14: error: use of undeclared identifier 'NFLNK' fa->type = NFLNK; ^ nfs_funcs.c:89:22: error: use of undeclared identifier 'NFSMODE_FMT' else if((ma->mode & NFSMODE_FMT) == NFSMODE_CHR) ^ nfs_funcs.c:89:38: error: use of undeclared identifier 'NFSMODE_CHR' else if((ma->mode & NFSMODE_FMT) == NFSMODE_CHR) ^ nfs_funcs.c:90:14: error: use of undeclared identifier 'NFCHR' fa->type = NFCHR; ^ nfs_funcs.c:91:22: error: use of undeclared identifier 'NFSMODE_FMT' else if((ma->mode & NFSMODE_FMT) == NFSMODE_BLK) ^ nfs_funcs.c:91:38: error: use of undeclared identifier 'NFSMODE_BLK' else if((ma->mode & NFSMODE_FMT) == NFSMODE_BLK) ^ --- rumba.o --- rumba.c:377:7: warning: array subscript is of type 'char' [-Wchar-subscripts] if(isdigit(optarg[0])){ ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ --- nfs_dir --- nfs_funcs.c:92:14: error: use of undeclared identifier 'NFBLK' fa->type = NFBLK; ^ --- rumba.o --- rumba.c:389:7: warning: array subscript is of type 'char' [-Wchar-subscripts] if(isdigit(optarg[0])){ ^~~~~~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit' #define isdigit(c) ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D)) ^~~~ --- nfs_dir --- nfs_funcs.c:93:22: error: use of undeclared identifier 'NFSMODE_FMT' else if((ma->mode & NFSMODE_FMT) == NFSMODE_SOCK) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. *** [nfs_funcs.o] Error code 1 make[1]: stopped in /data/scratch/net/sharity-light/work/Sharity-Light.1.3/nfs --- sock.o --- sock.c:34:18: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] addr_len); ^~~~~~~~ /usr/include/sys/socket.h:658:58: note: passing argument to parameter here struct sockaddr * __restrict, socklen_t * __restrict); ^ sock.c:264:22: warning: cast to 'struct file *' from smaller integer type 'int' [-Wint-to-pointer-cast] server->sock_file = (struct file *)sock_fd; ^ --- nfs_dir --- --- mount.o --- mount.c:150:51: warning: passing 'int *' to parameter of type '__socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(sock, (struct sockaddr*) &sain, &namelen) <0) { ^~~~~~~~ /usr/include/sys/socket.h:651:74: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ mount.c:160:28: error: use of undeclared identifier 'NFS_PROGRAM' if(!svc_register(nfsxprt, NFS_PROGRAM, NFS_VERSION, proc, 0)){ ^ mount.c:160:41: error: use of undeclared identifier 'NFS_VERSION' if(!svc_register(nfsxprt, NFS_PROGRAM, NFS_VERSION, proc, 0)){ ^ 1 warning and 2 errors generated. *** [mount.o] Error code 1 make[1]: stopped in /data/scratch/net/sharity-light/work/Sharity-Light.1.3/nfs --- syscalls.o --- syscalls.c:97:16: warning: assigning to 'u_char *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] nfs_args.fh = (char *)root_fh; ^ ~~~~~~~~~~~~~~~ 1 warning generated. 2 errors make[1]: stopped in /data/scratch/net/sharity-light/work/Sharity-Light.1.3/nfs *** [nfs_dir] Error code 2 make: stopped in /data/scratch/net/sharity-light/work/Sharity-Light.1.3 --- sock.o --- 2 warnings generated. --- smb_abstraction.o --- smb_abstraction.c:85:11: warning: array subscript is of type 'char' [-Wchar-subscripts] *name = toupper(*name); ^~~~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper' #define toupper(c) ((int)((_toupper_tab_ + 1)[(c)])) ^~~~ smb_abstraction.c:100:6: warning: array subscript is of type 'char' [-Wchar-subscripts] if(tolower(*s1) != tolower(*s2)) ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ smb_abstraction.c:100:22: warning: array subscript is of type 'char' [-Wchar-subscripts] if(tolower(*s1) != tolower(*s2)) ^~~~~~~~~~~~ /usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower' --- proc.o --- proc.c:88:16: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] --- smb_abstraction.o --- #define tolower(c) ((int)((_tolower_tab_ + 1)[(c)])) ^~~~ --- proc.o --- strcpy(p, name); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:88:19: warning: passing 'const byte *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, name); ^~~~ /usr/include/string.h:58:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:96:9: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, name); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:96:12: warning: passing 'const byte *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, name); ^~~~ /usr/include/string.h:58:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:137:22: warning: passing 'const byte *' (aka 'const unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] len = strlen(name); ^~~~ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ --- rumba.o --- 3 warnings generated. --- proc.o --- proc.c:546:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char* buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:554:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBopen, 2, 2 + len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:557:26: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, pathname, len); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:557:29: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, pathname, len); ^~~~~~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:570:19: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBopen, 2, 2 + len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:573:34: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, pathname, len); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:573:37: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, pathname, len); ^~~~~~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:608:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:628:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:645:50: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_decode_data(SMB_BUF(server->packet), data, &data_len, fs); ^~~~ proc.c:113:32: note: passing argument to parameter 'data' here smb_decode_data(byte *p, byte *data, word *data_len, int fs) ^ proc.c:668:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:683:47: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] result = smb_request_read_raw(server, data, count); ^~~~ include/smb/smb_fs.h:158:41: note: passing argument to parameter 'target' here unsigned char *target, int max_len); ^ proc.c:693:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:720:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:748:48: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] result = smb_request_write_raw(server, data, count); ^~~~ include/smb/smb_fs.h:160:48: note: passing argument to parameter 'source' here unsigned const char *source, int length); ^ proc.c:778:9: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:782:5: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, command, 3, len + 2); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:785:20: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:785:23: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:824:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:831:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBmv, 1, olen + nlen + 4); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:833:30: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, opath, olen); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:833:33: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, opath, olen); ^~~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:833:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, opath, olen); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:834:26: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, npath, olen); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:834:29: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, npath, olen); ^~~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:854:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBmkdir, 0, 2 + len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:855:26: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:855:29: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:875:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBrmdir, 0, 2 + len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:876:26: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:876:29: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:891:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:897:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBunlink, 1, 2 + len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:899:26: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:899:29: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:914:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:919:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBwrite, 5, 3); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:924:26: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, "", 0); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:924:29: warning: passing 'char [1]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, "", 0); ^~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:987:13: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:998:27: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBsearch, 2, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1002:46: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, mask, strlen(mask)); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1002:49: warning: passing 'char [dirlen + 5]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, mask, strlen(mask)); ^~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1002:27: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, mask, strlen(mask)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1004:45: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_word(p, 0); ^ proc.c:59:23: note: passing argument to parameter 'p' here smb_encode_word(byte *p, word data) ^ proc.c:1004:27: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_word(p, 0); ^ ~~~~~~~~~~~~~~~~~~~~~ proc.c:1006:27: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBsearch, 2, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1010:46: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, "", 0); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1010:49: warning: passing 'char [1]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, "", 0); ^~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1010:27: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, "", 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1011:47: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_vblock(p, status, SMB_STATUS_SIZE, 0); ^ proc.c:104:25: note: passing argument to parameter 'p' here smb_encode_vblock(byte *p, const byte *data, word len, int fs) ^ proc.c:1011:50: warning: passing 'char [21]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_vblock(p, status, SMB_STATUS_SIZE, 0); ^~~~~~ proc.c:104:40: note: passing argument to parameter 'data' here smb_encode_vblock(byte *p, const byte *data, word len, int fs) ^ proc.c:1011:27: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_vblock(p, status, SMB_STATUS_SIZE, 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1030:19: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = SMB_VWV(server->packet); ^ ~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1031:37: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &count); /* vwv[0] = count-returned */ ^ proc.c:67:23: note: passing argument to parameter 'p' here smb_decode_word(byte *p, word *data) ^ proc.c:1031:19: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &count); /* vwv[0] = count-returned */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1032:37: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &bcc); ^ proc.c:67:23: note: passing argument to parameter 'p' here smb_decode_word(byte *p, word *data) ^ proc.c:1032:19: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &bcc); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1269:7: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = SMB_BUF(outbuf); ^ ~~~~~~~~~~~~~~~ proc.c:1257:28: warning: implicit conversion from 'int' to 'unsigned char' changes value from 4079 to 239 [-Wconstant-conversion] WSET(outbuf,smb_mdrcnt,TRANS2_MAX_TRANSFER); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ include/smb/smb.h:18:34: note: expanded from macro 'TRANS2_MAX_TRANSFER' #define TRANS2_MAX_TRANSFER (4096-17) ~~~~^~~ include/smb/smb.h:36:43: note: expanded from macro 'WSET' #define WSET(buf,pos,val) (BVAL(buf,pos)=(val), BVAL(buf,(pos)+1)=(unsigned)(val)>>8) ~ ^~~ proc.c:1461:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:1468:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBgetatr, 0, 2 + len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1469:26: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1469:29: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] smb_encode_ascii(p, path, len); ^~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1493:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char* buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:1557:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:1564:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_setup_header(server, SMBsetatr, 8, 4 + len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1567:30: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, path, len); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1567:33: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, path, len); ^~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1567:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, path, len); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1568:30: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, "", 0); ^ proc.c:93:24: note: passing argument to parameter 'p' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1568:33: warning: passing 'char [1]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, "", 0); ^~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1568:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, "", 0); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1585:15: warning: initializing 'char *' with an expression of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] char *buf = server->packet; ^ ~~~~~~~~~~~~~~ proc.c:1647:11: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = SMB_VWV(server->packet); ^ ~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1648:29: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &attr->total); ^ proc.c:67:23: note: passing argument to parameter 'p' here smb_decode_word(byte *p, word *data) ^ proc.c:1648:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &attr->total); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1649:29: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &attr->allocblocks); ^ proc.c:67:23: note: passing argument to parameter 'p' here smb_decode_word(byte *p, word *data) ^ proc.c:1649:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &attr->allocblocks); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1650:29: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &attr->blocksize); ^ proc.c:67:23: note: passing argument to parameter 'p' here smb_decode_word(byte *p, word *data) ^ proc.c:1650:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &attr->blocksize); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1651:29: warning: passing 'char *' to parameter of type 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &attr->free); ^ proc.c:67:23: note: passing argument to parameter 'p' here smb_decode_word(byte *p, word *data) ^ proc.c:1651:11: warning: assigning to 'char *' from 'byte *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_decode_word(p, &attr->free); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proc.c:1728:32: warning: passing 'char [17]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_name_mangle(p, server->m.server_name); ^~~~~~~~~~~~~~~~~~~~~ proc.c:133:38: note: passing argument to parameter 'name' here smb_name_mangle(byte *p, const byte *name) ^ proc.c:1729:32: warning: passing 'char [17]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_name_mangle(p, server->m.client_name); ^~~~~~~~~~~~~~~~~~~~~ proc.c:133:38: note: passing argument to parameter 'name' here smb_name_mangle(byte *p, const byte *name) ^ proc.c:1773:42: warning: passing 'const char *' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_dialect(p,prots[i].name, strlen(prots[i].name)); ^~~~~~~~~~~~~ proc.c:85:41: note: passing argument to parameter 'name' here smb_encode_dialect(byte *p, const byte *name, int len) ^ proc.c:1841:32: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, server->m.password); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:1843:32: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, server->m.username); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:1845:32: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, cfg_workgroup); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:1846:37: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p += strlen(p) + 1; ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ proc.c:1847:32: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, OS_id); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:1848:37: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] p += strlen(p) + 1; ^ /usr/include/string.h:61:28: note: passing argument to parameter here size_t strlen(const char *); ^ proc.c:1849:32: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, client_id); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:1865:32: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, server->m.password); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:1867:32: warning: passing 'byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(p, server->m.username); ^ /usr/include/string.h:58:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ proc.c:1893:33: warning: passing 'char [64]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, server->m.service, strlen(server->m.service)); ^~~~~~~~~~~~~~~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1894:32: warning: passing 'char [64]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p,server->m.password, strlen(server->m.password)); ^~~~~~~~~~~~~~~~~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ proc.c:1895:33: warning: passing 'char [3]' to parameter of type 'const byte *' (aka 'const unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign] p = smb_encode_ascii(p, dev, strlen(dev)); ^~~ proc.c:93:39: note: passing argument to parameter 'name' here smb_encode_ascii(byte *p, const byte *name, int len) ^ --- smb_abstraction.o --- 3 warnings generated. --- proc.o --- 104 warnings generated. 1 error make: stopped in /data/scratch/net/sharity-light/work/Sharity-Light.1.3 *** Error code 2 Stop. make[1]: stopped in /data/pkgsrc/net/sharity-light *** Error code 1 Stop. make: stopped in /data/pkgsrc/net/sharity-light