=> Bootstrap dependency digest>=20211023: found digest-20211023 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for socks4-2.2nb1 --- LIB --- --- LIBIDENT --- --- LIB --- (cd lib; /usr/bin/make CC="cc" GETPASS="" OPTIMIZE="-O2 -fPIC -D_FORTIFY_SOURCE=2" RCMD="Rrcmd.o" SUPPORT_RCMD="-DSUPPORT_RCMD" DNS_THROUGH_NIS="" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 " RANLIB="ranlib") --- LIBIDENT --- (cd libident; /usr/bin/make CC="cc" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1" OPTIMIZE="-O2 -fPIC -D_FORTIFY_SOURCE=2" RANLIB="ranlib") --- echocwd --- --- ident.o --- --- id_open.o --- --- ident.o --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -c ident.c --- LIB --- --- echocwd --- /tmp/net/socks4/work/socks.cstc.4.2/lib --- Rconnect.o --- --- LIBIDENT --- --- id_open.o --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -c id_open.c --- echocwd --- /tmp/net/socks4/work/socks.cstc.4.2/libident --- id_close.o --- --- LIB --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c Rconnect.c --- LIBIDENT --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -c id_close.c --- id_open.o --- id_open.c:60:14: warning: conflicting types for built-in function 'malloc' [-Wbuiltin-declaration-mismatch] extern void *malloc __P((int size)); ^~~~~~ id_open.c: In function 'id_open': id_open.c:90:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(id); ^~~~ id_open.c:90:5: warning: incompatible implicit declaration of built-in function 'free' id_open.c:90:5: note: include '' or provide a declaration of 'free' id_open.c:172:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(id->fd); ^~~~~ pclose id_open.c:173:3: warning: incompatible implicit declaration of built-in function 'free' free(id); ^~~~ id_open.c:173:3: note: include '' or provide a declaration of 'free' --- id_close.o --- In file included from id_close.c:7:0: ident.h:34:37: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration # define __STRUCT_TIMEVAL_P struct timeval * ^ ident.h:16:19: note: in definition of macro '__P' # define __P(AL) AL ^~ ident.h:65:7: note: in expansion of macro '__STRUCT_TIMEVAL_P' __STRUCT_TIMEVAL_P timeout)); ^~~~~~~~~~~~~~~~~~ ident.h:28:37: warning: 'struct in_addr' declared inside parameter list will not be visible outside of this definition or declaration # define __STRUCT_IN_ADDR_P struct in_addr * ^ ident.h:16:19: note: in definition of macro '__P' # define __P(AL) AL ^~ ident.h:63:31: note: in expansion of macro '__STRUCT_IN_ADDR_P' extern ident_t * id_open __P((__STRUCT_IN_ADDR_P laddr, ^~~~~~~~~~~~~~~~~~ ident.h:34:37: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration # define __STRUCT_TIMEVAL_P struct timeval * ^ ident.h:16:19: note: in definition of macro '__P' # define __P(AL) AL ^~ ident.h:72:8: note: in expansion of macro '__STRUCT_TIMEVAL_P' __STRUCT_TIMEVAL_P timeout)); ^~~~~~~~~~~~~~~~~~ ident.h:34:37: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration # define __STRUCT_TIMEVAL_P struct timeval * ^ ident.h:16:19: note: in definition of macro '__P' # define __P(AL) AL ^~ ident.h:75:8: note: in expansion of macro '__STRUCT_TIMEVAL_P' __STRUCT_TIMEVAL_P timeout, ^~~~~~~~~~~~~~~~~~ id_close.c: In function 'id_close': id_close.c:19:9: warning: implicit declaration of function 'close'; did you mean 'id_close'? [-Wimplicit-function-declaration] res = close(id->fd); ^~~~~ id_close id_close.c:20:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(id); ^~~~ id_close.c:20:3: warning: incompatible implicit declaration of built-in function 'free' id_close.c:20:3: note: include '' or provide a declaration of 'free' --- ident.o --- ident.c: In function 'ident_lookup': ident.c:76:21: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] ident = (IDENT *) malloc(sizeof(IDENT)); ^~~~~~ ident.c:76:21: warning: incompatible implicit declaration of built-in function 'malloc' ident.c:76:21: note: include '' or provide a declaration of 'malloc' ident.c:98:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(ident); ^~~~ ident.c:98:5: warning: incompatible implicit declaration of built-in function 'free' ident.c:98:5: note: include '' or provide a declaration of 'free' ident.c: In function 'ident_free': ident.c:135:23: warning: incompatible implicit declaration of built-in function 'free' if (id->identifier) free(id->identifier); ^~~~ ident.c:135:23: note: include '' or provide a declaration of 'free' ident.c:136:18: warning: incompatible implicit declaration of built-in function 'free' if (id->opsys) free(id->opsys); ^~~~ ident.c:136:18: note: include '' or provide a declaration of 'free' ident.c:137:20: warning: incompatible implicit declaration of built-in function 'free' if (id->charset) free(id->charset); ^~~~ ident.c:137:20: note: include '' or provide a declaration of 'free' ident.c:138:3: warning: incompatible implicit declaration of built-in function 'free' free(id); ^~~~ ident.c:138:3: note: include '' or provide a declaration of 'free' --- id_query.o --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -c id_query.c --- LIB --- Rconnect.c: In function 'SOCKSinit': Rconnect.c:129:2: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] gethostname(socks_src_name, sizeof(socks_src_name)); ^~~~~~~~~~~ gethostbyname Rconnect.c:165:41: warning: implicit declaration of function 'inet_addr'; did you mean 'h_addr'? [-Wimplicit-function-declaration] _res.nsaddr_list[0].sin_addr.s_addr = inet_addr(ns); ^~~~~~~~~ h_addr Rconnect.c:211:26: warning: implicit declaration of function 'getuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] if ((pw = getpwuid(uid=getuid())) == NULL) { ^~~~~~ getpwuid Rconnect.c:219:25: warning: implicit declaration of function 'geteuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] if ((pw = getpwuid(uid=geteuid())) == NULL) { ^~~~~~~ getpwuid --- LIBIDENT --- --- id_parse.o --- --- LIB --- Rconnect.c: In function 'connect_sockd': Rconnect.c:279:16: warning: implicit declaration of function 'rresvport'; did you mean 'res_opt'? [-Wimplicit-function-declaration] new_sock = rresvport(lport); ^~~~~~~~~ res_opt --- LIBIDENT --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -c id_parse.c --- LIB --- Rconnect.c:289:8: warning: implicit declaration of function 'dup2' [-Wimplicit-function-declaration] if (dup2(new_sock, sock) < 0) { ^~~~ Rconnect.c:290:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(new_sock); ^~~~~ pclose Rconnect.c: In function 'send_src_user': Rconnect.c:343:11: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if((n = write(s, p, i)) <= 0) { ^~~~~ fwrite Rconnect.c: In function 'socksC_proto': Rconnect.c:359:13: warning: implicit declaration of function 'socks_SendDst'; did you mean 'socklen_t'? [-Wimplicit-function-declaration] if ((sta = socks_SendDst(s, dst)) < 0) { ^~~~~~~~~~~~~ socklen_t Rconnect.c:373:13: warning: implicit declaration of function 'socks_GetDst'; did you mean 'socket'? [-Wimplicit-function-declaration] if ((sta = socks_GetDst(s, dst)) < 0) { ^~~~~~~~~~~~ socket Rconnect.c: In function 'quit_C_proto': Rconnect.c:386:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(SOCKS_FAIL); ^~~~ Rconnect.c:386:2: warning: incompatible implicit declaration of built-in function 'exit' Rconnect.c:386:2: note: include '' or provide a declaration of 'exit' Rconnect.c: In function 'do_C_proto': Rconnect.c:397:2: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] alarm(CLIENT_CONN_TIMEOUT); ^~~~~ Rconnect.c:404:3: warning: incompatible implicit declaration of built-in function 'exit' exit(SOCKS_FAIL); ^~~~ Rconnect.c:404:3: note: include '' or provide a declaration of 'exit' Rconnect.c:409:3: warning: incompatible implicit declaration of built-in function 'exit' exit(dst.cmd); ^~~~ Rconnect.c:409:3: note: include '' or provide a declaration of 'exit' Rconnect.c:411:2: warning: incompatible implicit declaration of built-in function 'exit' exit(SOCKS_RESULT); ^~~~ Rconnect.c:411:2: note: include '' or provide a declaration of 'exit' Rconnect.c: At top level: Rconnect.c:416:1: warning: return type defaults to 'int' [-Wimplicit-int] Rconnect(sock, sin, size) ^~~~~~~~ Rconnect.c: In function 'Rconnect': Rconnect.c:528:11: warning: implicit declaration of function 'socks_check_cconf' [-Wimplicit-function-declaration] direct = socks_check_cconf(&me, sin); ^~~~~~~~~~~~~~~~~ Rconnect.c:600:22: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^~~~ Rconnect.c: At top level: Rconnect.c:628:1: warning: return type defaults to 'int' [-Wimplicit-int] Rbind(sock, sin, size) ^~~~~ Rconnect.c:780:1: warning: return type defaults to 'int' [-Wimplicit-int] Rlisten(s, n) ^~~~~~~ Rconnect.c:797:1: warning: return type defaults to 'int' [-Wimplicit-int] Rgetsockname(sock, sin, size) ^~~~~~~~~~~~ Rconnect.c:823:1: warning: return type defaults to 'int' [-Wimplicit-int] Raccept(sock, sin, size) ^~~~~~~ Rconnect.c: In function 'Raccept': Rconnect.c:851:11: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] return(dup(sock)); ^~~ --- LIBIDENT --- --- id_query.o --- In file included from id_query.c:21:0: ident.h:28:37: warning: 'struct in_addr' declared inside parameter list will not be visible outside of this definition or declaration # define __STRUCT_IN_ADDR_P struct in_addr * ^ ident.h:16:19: note: in definition of macro '__P' # define __P(AL) AL ^~ ident.h:63:31: note: in expansion of macro '__STRUCT_IN_ADDR_P' extern ident_t * id_open __P((__STRUCT_IN_ADDR_P laddr, ^~~~~~~~~~~~~~~~~~ id_query.c: In function 'id_query': id_query.c:63:9: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] res = write(id->fd, buf, strlen(buf)); ^~~~~ fwrite id_query.c:63:28: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] res = write(id->fd, buf, strlen(buf)); ^~~~~~ id_query.c:63:28: warning: incompatible implicit declaration of built-in function 'strlen' id_query.c:63:28: note: include '' or provide a declaration of 'strlen' --- id_parse.o --- In file included from id_parse.c:23:0: ident.h:28:37: warning: 'struct in_addr' declared inside parameter list will not be visible outside of this definition or declaration # define __STRUCT_IN_ADDR_P struct in_addr * ^ ident.h:16:19: note: in definition of macro '__P' # define __P(AL) AL ^~ ident.h:63:31: note: in expansion of macro '__STRUCT_IN_ADDR_P' extern ident_t * id_open __P((__STRUCT_IN_ADDR_P laddr, ^~~~~~~~~~~~~~~~~~ id_parse.c: In function 'id_parse': id_parse.c:148:10: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] (res = read(id->fd, id->buf + pos, 1)) == 1 && ^~~~ fread --- libident.a --- rm -f libident.a ar cq libident.a ident.o id_open.o id_close.o id_query.o id_parse.o ranlib libident.a --- LIB --- --- SendGetDst.o --- --- saddrtoname.o --- --- porttoserv.o --- --- SendGetDst.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c SendGetDst.c --- check_cconf.o --- --- saddrtoname.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c saddrtoname.c --- porttoserv.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c porttoserv.c --- check_cconf.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c check_cconf.c --- SendGetDst.o --- SendGetDst.c:13:0: warning: "NULL" redefined #define NULL ((char *)0) In file included from /usr/include/time.h:46:0, from /usr/include/sys/select.h:62, from /usr/include/sys/time.h:313, from SendGetDst.c:5: /usr/include/sys/null.h:13:0: note: this is the location of the previous definition #define NULL ((void *)0) SendGetDst.c: In function 'socks_SendDst': SendGetDst.c:28:2: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(&dst->port, c+2, sizeof(dst->port)); ^~~~~ SendGetDst.c:28:2: warning: incompatible implicit declaration of built-in function 'bcopy' --- porttoserv.o --- porttoserv.c: In function 'socks_porttoserv': --- SendGetDst.o --- SendGetDst.c:13:14: warning: passing argument 2 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] #define NULL ((char *)0) ^ SendGetDst.c:36:30: note: in expansion of macro 'NULL' if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) ^~~~ --- porttoserv.o --- porttoserv.c:15:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(name, serv->s_name, namelen); ^~~~~~~ porttoserv.c:15:3: warning: incompatible implicit declaration of built-in function 'strncpy' porttoserv.c:15:3: note: include '' or provide a declaration of 'strncpy' --- SendGetDst.o --- In file included from /usr/include/sys/time.h:313:0, from SendGetDst.c:5: /usr/include/sys/select.h:69:5: note: expected 'fd_set * restrict {aka struct fd_set * restrict}' but argument is of type 'char *' int select(int, fd_set * __restrict, fd_set * __restrict, ^~~~~~ SendGetDst.c:13:14: warning: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] #define NULL ((char *)0) ^ SendGetDst.c:36:42: note: in expansion of macro 'NULL' if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) ^~~~ --- porttoserv.o --- porttoserv.c:17:3: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration] sprintf(name, "%u", port); ^~~~~~~ porttoserv.c:17:3: warning: incompatible implicit declaration of built-in function 'sprintf' porttoserv.c:17:3: note: include '' or provide a declaration of 'sprintf' --- SendGetDst.o --- In file included from /usr/include/sys/time.h:313:0, from SendGetDst.c:5: /usr/include/sys/select.h:69:5: note: expected 'fd_set * restrict {aka struct fd_set * restrict}' but argument is of type 'char *' int select(int, fd_set * __restrict, fd_set * __restrict, ^~~~~~ SendGetDst.c:46:11: warning: implicit declaration of function 'write'; did you mean 'writev'? [-Wimplicit-function-declaration] if((n = write(s, p, i)) > 0) { ^~~~~ writev SendGetDst.c: In function 'socks_GetDst': SendGetDst.c:13:14: warning: passing argument 3 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] #define NULL ((char *)0) ^ SendGetDst.c:75:36: note: in expansion of macro 'NULL' if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) ^~~~ In file included from /usr/include/sys/time.h:313:0, from SendGetDst.c:5: /usr/include/sys/select.h:69:5: note: expected 'fd_set * restrict {aka struct fd_set * restrict}' but argument is of type 'char *' int select(int, fd_set * __restrict, fd_set * __restrict, ^~~~~~ SendGetDst.c:13:14: warning: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] #define NULL ((char *)0) ^ SendGetDst.c:75:42: note: in expansion of macro 'NULL' if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) ^~~~ In file included from /usr/include/sys/time.h:313:0, from SendGetDst.c:5: /usr/include/sys/select.h:69:5: note: expected 'fd_set * restrict {aka struct fd_set * restrict}' but argument is of type 'char *' int select(int, fd_set * __restrict, fd_set * __restrict, ^~~~~~ SendGetDst.c:85:11: warning: implicit declaration of function 'read'; did you mean 'readv'? [-Wimplicit-function-declaration] if((n = read(s, p, i)) > 0) { ^~~~ readv SendGetDst.c:98:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(c+2, &dst->port, sizeof(dst->port)); ^~~~~ --- saddrtoname.o --- saddrtoname.c: In function 'socks_saddrtoname': saddrtoname.c:14:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(name, host->h_name, namelen); ^~~~~~~ saddrtoname.c:14:3: warning: incompatible implicit declaration of built-in function 'strncpy' saddrtoname.c:14:3: note: include '' or provide a declaration of 'strncpy' saddrtoname.c:16:3: warning: incompatible implicit declaration of built-in function 'strncpy' strncpy(name, inet_ntoa(*addr), namelen); ^~~~~~~ saddrtoname.c:16:3: note: include '' or provide a declaration of 'strncpy' saddrtoname.c:16:17: warning: implicit declaration of function 'inet_ntoa' [-Wimplicit-function-declaration] strncpy(name, inet_ntoa(*addr), namelen); ^~~~~~~~~ saddrtoname.c:16:17: warning: passing argument 2 of 'strncpy' makes pointer from integer without a cast [-Wint-conversion] saddrtoname.c:16:17: note: expected 'const char *' but argument is of type 'int' --- check_cconf.o --- check_cconf.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_check_cconf(src, dst) ^~~~~~~~~~~~~~~~~ check_cconf.c: In function 'socks_check_cconf': check_cconf.c:46:17: warning: implicit declaration of function 'inet_addr'; did you mean 'h_addr'? [-Wimplicit-function-declaration] self.s_addr = inet_addr("127.0.0.1"); ^~~~~~~~~ h_addr check_cconf.c:83:3: warning: implicit declaration of function 'socks_shell_cmd'; did you mean 'socks_check_cconf'? [-Wimplicit-function-declaration] socks_shell_cmd(confPtr->cmdp, src, dst); ^~~~~~~~~~~~~~~ socks_check_cconf check_cconf.c: At top level: check_cconf.c:88:8: warning: return type defaults to 'int' [-Wimplicit-int] static read_cconf(void) ^~~~~~~~~~ check_cconf.c: In function 'read_cconf': check_cconf.c:142:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ check_cconf.c:142:4: warning: incompatible implicit declaration of built-in function 'exit' check_cconf.c:142:4: note: include '' or provide a declaration of 'exit' check_cconf.c:169:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ check_cconf.c:169:4: note: include '' or provide a declaration of 'exit' check_cconf.c:179:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ check_cconf.c:179:4: note: include '' or provide a declaration of 'exit' check_cconf.c:183:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ check_cconf.c:183:4: note: include '' or provide a declaration of 'exit' check_cconf.c:187:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ check_cconf.c:187:4: note: include '' or provide a declaration of 'exit' check_cconf.c:204:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ check_cconf.c:204:5: note: include '' or provide a declaration of 'exit' check_cconf.c:210:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ check_cconf.c:210:5: note: include '' or provide a declaration of 'exit' check_cconf.c:251:25: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] (struct config **) malloc(CONF_INCR *sizeof(struct config **)); ^~~~~~ check_cconf.c:251:25: warning: incompatible implicit declaration of built-in function 'malloc' check_cconf.c:251:25: note: include '' or provide a declaration of 'malloc' check_cconf.c:253:6: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] realloc(confNtries, (Ntries +CONF_INCR) *sizeof(struct config)); ^~~~~~~ check_cconf.c:253:6: warning: incompatible implicit declaration of built-in function 'realloc' check_cconf.c:253:6: note: include '' or provide a declaration of 'realloc' check_cconf.c:255:45: warning: incompatible implicit declaration of built-in function 'malloc' *(confNtries +Ntries) = (struct config *) malloc(sizeof(struct config)); ^~~~~~ check_cconf.c:255:45: note: include '' or provide a declaration of 'malloc' check_cconf.c:283:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ check_cconf.c:283:3: note: include '' or provide a declaration of 'exit' --- shell_cmd.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c shell_cmd.c --- check_user.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c check_user.c --- null_syslog.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c null_syslog.c --- shell_cmd.o --- shell_cmd.c: In function 'socks_shell_cmd': shell_cmd.c:64:26: warning: implicit declaration of function 'getpid'; did you mean 'getline'? [-Wimplicit-function-declaration] int daemon_pid = getpid(); ^~~~~~ getline shell_cmd.c:67:9: warning: implicit declaration of function 'strpbrk' [-Wimplicit-function-declaration] if (strpbrk(cmd, alpha_num) == NULL) { ^~~~~~~ shell_cmd.c:67:9: warning: incompatible implicit declaration of built-in function 'strpbrk' shell_cmd.c:67:9: note: include '' or provide a declaration of 'strpbrk' shell_cmd.c:77:25: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (child_pid = fork()) { ^~~~ shell_cmd.c:85:21: warning: implicit declaration of function 'wait'; did you mean 'exit'? [-Wimplicit-function-declaration] while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid) ^~~~ exit shell_cmd.c: In function 'do_child': shell_cmd.c:106:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(tmp_fd); ^~~~~ pclose shell_cmd.c:110:9: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] if (open("/dev/null", 2) != 0) { ^~~~ popen shell_cmd.c:112:16: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] } else if (dup(0) != 1 || dup(0) != 2) { ^~~ shell_cmd.c:115:9: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration] (void) execl("/bin/sh", "sh", "-c", command, (char *) 0); ^~~~~ shell_cmd.c:115:9: warning: incompatible implicit declaration of built-in function 'execl' shell_cmd.c: In function 'percent_x': shell_cmd.c:202:22: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] expansion_len = strlen(expansion); ^~~~~~ shell_cmd.c:202:22: warning: incompatible implicit declaration of built-in function 'strlen' shell_cmd.c:202:22: note: include '' or provide a declaration of 'strlen' --- null_syslog.o --- null_syslog.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_0openlog(ident, log_opt, fac) ^~~~~~~~~~~~~~ null_syslog.c:28:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_0closelog() ^~~~~~~~~~~~~~~ null_syslog.c:33:9: warning: return type defaults to 'int' [-Wimplicit-int] VARARGS(socks_0syslog, int, prio) ^ null_syslog.c:10:32: note: in definition of macro 'VARARGS' #define VARARGS(func,type,arg) func(type arg, ...) ^~~~ --- check_user.o --- check_user.c: In function 'socks_GetQuad': check_user.c:59:22: warning: implicit declaration of function 'inet_addr'; did you mean 'h_addr'? [-Wimplicit-function-declaration] if ((addr->s_addr = inet_addr(dotquad)) != (u_int32) -1) ^~~~~~~~~ h_addr check_user.c: In function 'socks_GetPort': check_user.c:101:9: warning: implicit declaration of function 'atol'; did you mean 'ntohl'? [-Wimplicit-function-declaration] return atol(name); ^~~~ ntohl --- Rrcmd.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -c Rrcmd.c Rrcmd.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int] Rrcmd(ahost, rport, locuser, remuser, cmd, fd2p) ^~~~~ Rrcmd.c: In function 'Rrcmd': Rrcmd.c:125:7: warning: implicit declaration of function 'Rconnect'; did you mean 'connect'? [-Wimplicit-function-declaration] if (Rconnect(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0) ^~~~~~~~ connect Rrcmd.c:184:7: warning: implicit declaration of function 'Rbind'; did you mean 'bind'? [-Wimplicit-function-declaration] if (Rbind(s2, (struct sockaddr *)&tsin, sizeof(tsin)) < 0) { ^~~~~ bind Rrcmd.c:193:7: warning: implicit declaration of function 'Rgetsockname'; did you mean 'getsockname'? [-Wimplicit-function-declaration] if (Rgetsockname(s2, (struct sockaddr *)&tsin, &tlen) < 0) { ^~~~~~~~~~~~ getsockname Rrcmd.c:198:3: warning: implicit declaration of function 'Rlisten'; did you mean 'listen'? [-Wimplicit-function-declaration] Rlisten(s2, 1); ^~~~~~~ listen Rrcmd.c:228:8: warning: implicit declaration of function 'Raccept'; did you mean 'paccept'? [-Wimplicit-function-declaration] s3 = Raccept(s2, (struct sockaddr *)&from, &len); ^~~~~~~ paccept --- libsocks.a --- rm -f libsocks.a ar rc libsocks.a Rconnect.o SendGetDst.o saddrtoname.o porttoserv.o check_cconf.o shell_cmd.o check_user.o null_syslog.o Rrcmd.o ranlib libsocks.a --- server --- --- RFINGER --- --- RTELNET --- --- RFTP --- --- RFINGER --- (cd rfinger; /usr/bin/make CC="cc" WHOIS_SERVER=-DWHOIS_SERVER\'=\"rs.internic.net\"\' OPTIMIZE="-O2 -fPIC -D_FORTIFY_SOURCE=2" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" RESOLV_LIB="" SOCKS_LIB="/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 ") --- RFTP --- (cd rftp; /usr/bin/make CC="cc" SOCKS_LIB="/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OPTIMIZE="-O2 -fPIC -D_FORTIFY_SOURCE=2" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" RESOLV_LIB="" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 ") --- RTELNET --- (cd rtelnet; /usr/bin/make CC="cc" OS="netbsd0.9" SOCKS_LIB="/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" OPTIMIZE="-O2 -fPIC -D_FORTIFY_SOURCE=2" SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" RESOLV_LIB="" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 ") --- server --- (cd sockd; /usr/bin/make CC="cc" RESOLV_LIB="" OPTIMIZE="-O2 -fPIC -D_FORTIFY_SOURCE=2" SOCKS_LIB="/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a" SUPPORT_RCMD="-DSUPPORT_RCMD" IDENT_LIB="/tmp/net/socks4/work/socks.cstc.4.2/libident/libident.a" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 ") --- RFINGER --- --- echocwd --- /tmp/net/socks4/work/socks.cstc.4.2/rfinger --- RTELNET --- --- echocwd --- --- RFTP --- --- echocwd --- --- server --- --- echocwd --- --- RFINGER --- --- rwhois --- --- RFTP --- /tmp/net/socks4/work/socks.cstc.4.2/rftp --- RTELNET --- /tmp/net/socks4/work/socks.cstc.4.2/rtelnet --- RFTP --- --- cmds.o --- --- server --- /tmp/net/socks4/work/socks.cstc.4.2/sockd --- RFINGER --- cc -DWHOIS_SERVER'="rs.internic.net"' -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -o rwhois finger.c /tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a --- server --- --- sockd --- --- RTELNET --- --- all --- --- RFTP --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c cmds.c --- server --- cc -I../include -I../libident -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -DSUPPORT_RCMD -o sockd sockd.c /tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a /tmp/net/socks4/work/socks.cstc.4.2/libident/libident.a --- RTELNET --- cd libtelnet; /usr/bin/make netbsd0.9 CC="cc" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 " SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" SOCKS_LIB=/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-O2 -fPIC -D_FORTIFY_SOURCE=2" --- netbsd0.9 --- /usr/bin/make -f ../Config.local WHAT= CC=cc OPTIMIZE=-O2 -fPIC -D_FORTIFY_SOURCE=2 SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 SOCKS_LIB=/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB= netbsd0.9 --- netbsd0.9 --- make -f Makefile.generic LIBS="/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a -lutil -ltermcap ../libtelnet/libtelnet.a " LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a ../libtelnet/libtelnet.a" DEST=/usr/bin DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 " INCLUDES="-I.. -I../../include" LIB_OBJ="getent.o" LIB_SRC="getent.c" AR=ar ARFLAGS=cq RANLIB=ranlib LIBEXEC=/usr/pkg/libexec CC="cc" LCCFLAGS="-O2 -fPIC -D_FORTIFY_SOURCE=2" --- auth.o --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DLINEMODE -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I.. -I../../include -c auth.c --- RFINGER --- finger.c: In function 'main': finger.c:56:2: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration] SOCKSinit(Progname); ^~~~~~~~~ finger.c:60:14: warning: implicit declaration of function 'getopt'; did you mean 'getenv'? [-Wimplicit-function-declaration] while ((i = getopt(argc,argv,"h:")) != EOF) { ^~~~~~ getenv finger.c:67:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ finger.c:67:4: warning: incompatible implicit declaration of built-in function 'exit' finger.c:67:4: note: include '' or provide a declaration of 'exit' finger.c:74:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(cp, " "); ^~~~~~ finger.c:74:3: warning: incompatible implicit declaration of built-in function 'strcat' finger.c:74:3: note: include '' or provide a declaration of 'strcat' finger.c:76:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(argv[i], "-l")) { ^~~~~~ finger.c:78:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] cp += strlen(argv[i]); ^~~~~~ finger.c:78:9: warning: incompatible implicit declaration of built-in function 'strlen' finger.c:78:9: note: include '' or provide a declaration of 'strlen' finger.c:101:12: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] if ((v = atoi(service)) == 0) { ^~~~ finger.c:104:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:104:4: note: include '' or provide a declaration of 'exit' finger.c:112:12: warning: implicit declaration of function 'inet_addr'; did you mean 'h_addr'? [-Wimplicit-function-declaration] if ((l = inet_addr(host)) == -1) { ^~~~~~~~~ h_addr finger.c:115:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:115:4: note: include '' or provide a declaration of 'exit' finger.c:123:4: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(*hp->h_addr_list, &(dstaddr[i].s_addr), hp->h_length); ^~~~~ finger.c:123:4: warning: incompatible implicit declaration of built-in function 'bcopy' finger.c:132:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:132:3: note: include '' or provide a declaration of 'exit' finger.c:135:20: warning: passing argument 2 of 'Rconnect' from incompatible pointer type [-Wincompatible-pointer-types] while (connect(s, &sin, sizeof(sin)) < 0) { ^ :0:9: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_in *' finger.c:142:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:142:3: note: include '' or provide a declaration of 'exit' finger.c:147:2: warning: incompatible implicit declaration of built-in function 'strcat' strcat(cp, "\r\n"); ^~~~~~ finger.c:147:2: note: include '' or provide a declaration of 'strcat' finger.c:149:6: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(s,cp,strlen(cp)) < 0) { ^~~~~ fwrite finger.c:149:17: warning: incompatible implicit declaration of built-in function 'strlen' if (write(s,cp,strlen(cp)) < 0) { ^~~~~~ finger.c:149:17: note: include '' or provide a declaration of 'strlen' finger.c:154:14: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { ^~~~ fread finger.c:158:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(s); ^~~~~ pclose --- RTELNET --- --- encrypt.o --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DLINEMODE -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I.. -I../../include -c encrypt.c --- server --- sockd.c: In function 'die': sockd.c:89:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ sockd.c:89:2: warning: incompatible implicit declaration of built-in function 'exit' sockd.c:89:2: note: include '' or provide a declaration of 'exit' sockd.c: At top level: sockd.c:99:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ --- RFTP --- cmds.c:101:1: warning: return type defaults to 'int' [-Wimplicit-int] another(pargc, pargv, prompt) ^~~~~~~ cmds.c: In function 'another': cmds.c:106:12: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] int len = strlen(line), ret; ^~~~~~ cmds.c:106:12: warning: incompatible implicit declaration of built-in function 'strlen' cmds.c:106:12: note: include '' or provide a declaration of 'strlen' --- server --- sockd.c: In function 'main': sockd.c:192:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:192:3: note: include '' or provide a declaration of 'exit' sockd.c:306:7: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] in = dup(0); ^~~ sockd.c:311:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:311:3: note: include '' or provide a declaration of 'exit' --- RFTP --- cmds.c:120:2: warning: implicit declaration of function 'makeargv'; did you mean 'makedev'? [-Wimplicit-function-declaration] makeargv(); ^~~~~~~~ makedev cmds.c: In function 'setpeer': --- server --- sockd.c:320:6: warning: implicit declaration of function 'socks_GetDst'; did you mean 'socks_GetPort'? [-Wimplicit-function-declaration] if (socks_GetDst(in, &dst) < 0) { ^~~~~~~~~~~~ socks_GetPort --- RFTP --- cmds.c:154:10: warning: implicit declaration of function 'atoi'; did you mean 'dtoc'? [-Wimplicit-function-declaration] port = atoi(argv[2]); ^~~~ dtoc --- server --- sockd.c:322:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:322:3: note: include '' or provide a declaration of 'exit' sockd.c:328:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:328:3: note: include '' or provide a declaration of 'exit' sockd.c:334:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:334:3: note: include '' or provide a declaration of 'exit' sockd.c:341:9: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while (read(in, &c, 1) == 1) ^~~~ fread --- RFTP --- cmds.c:178:11: warning: implicit declaration of function 'login' [-Wimplicit-function-declaration] (void) login(argv[1]); ^~~~~ cmds.c:188:7: warning: implicit declaration of function 'command'; did you mean 'howmany'? [-Wimplicit-function-declaration] if (command("SYST") == COMPLETE && overbose) { ^~~~~~~ howmany --- server --- sockd.c:355:11: warning: implicit declaration of function 'Validate'; did you mean 'getdate'? [-Wimplicit-function-declaration] permit = Validate(&from, &dstsin, in); ^~~~~~~~ getdate --- RFTP --- cmds.c:205:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (!strncmp(reply_string, "215 UNIX Type: L8", 17)) { ^~~~~~~ --- server --- sockd.c:380:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:380:3: note: include '' or provide a declaration of 'exit' --- RFTP --- cmds.c: In function 'settype': cmds.c:277:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(argv[1], p->t_name) == 0) ^~~~~~ --- server --- sockd.c:387:3: warning: implicit declaration of function 'socks_SendDst'; did you mean 'socks_GetPort'? [-Wimplicit-function-declaration] socks_SendDst(in, &dst); ^~~~~~~~~~~~~ socks_GetPort sockd.c:388:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:388:3: note: include '' or provide a declaration of 'exit' sockd.c:394:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:394:3: note: include '' or provide a declaration of 'exit' sockd.c:398:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:398:3: note: include '' or provide a declaration of 'exit' sockd.c:415:2: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] alarm(60*2); ^~~~~ --- RFTP --- cmds.c: In function 'put': cmds.c:419:7: warning: implicit declaration of function 'globulize' [-Wimplicit-function-declaration] if (!globulize(&argv[1])) { ^~~~~~~~~ --- server --- sockd.c:418:3: warning: implicit declaration of function 'DoConnect'; did you mean 'connect'? [-Wimplicit-function-declaration] DoConnect(in, &dst); ^~~~~~~~~ connect sockd.c:421:3: warning: implicit declaration of function 'DoNewBind'; did you mean 'rewind'? [-Wimplicit-function-declaration] DoNewBind(in, &dst); ^~~~~~~~~ rewind sockd.c: At top level: sockd.c:425:1: warning: return type defaults to 'int' [-Wimplicit-int] socks_fail(str, in, ndst) ^~~~~~~~~~ sockd.c: In function 'socks_fail': --- RFTP --- cmds.c: In function 'mput': cmds.c:470:17: warning: implicit declaration of function 'confirm' [-Wimplicit-function-declaration] if (mflag && confirm(argv[0], cp)) { ^~~~~~~ --- server --- sockd.c:433:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:433:2: note: include '' or provide a declaration of 'exit' sockd.c: At top level: sockd.c:440:1: warning: return type defaults to 'int' [-Wimplicit-int] DoConnect(in, dst) ^~~~~~~~~ --- RFTP --- cmds.c:479:27: warning: comparison between pointer and integer while ((*tp2 = *tp) != NULL) { ^~ --- server --- sockd.c: In function 'DoConnect': sockd.c:460:14: warning: implicit declaration of function 'rresvport' [-Wimplicit-function-declaration] if ((out = rresvport(&outport)) < 0) ^~~~~~~~~ --- RFTP --- cmds.c:535:5: warning: implicit declaration of function 'blkfree'; did you mean 'tzfree'? [-Wimplicit-function-declaration] blkfree(gargs); ^~~~~~~ tzfree cmds.c:536:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free((char *)gargs); ^~~~ cmds.c:536:5: warning: incompatible implicit declaration of built-in function 'free' cmds.c:536:5: note: include '' or provide a declaration of 'free' --- server --- sockd.c:466:24: warning: implicit declaration of function 'getpid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] fcntl(out, F_SETOWN, getpid()); ^~~~~~ getpwuid --- RFTP --- cmds.c:558:4: warning: incompatible implicit declaration of built-in function 'free' free((char *)gargs); ^~~~ cmds.c:558:4: note: include '' or provide a declaration of 'free' --- server --- sockd.c:491:2: warning: implicit declaration of function 'Pump'; did you mean 'bcmp'? [-Wimplicit-function-declaration] Pump(in, out); ^~~~ bcmp sockd.c: At top level: sockd.c:502:1: warning: return type defaults to 'int' [-Wimplicit-int] DoNewBind(in, dst) ^~~~~~~~~ --- RFTP --- cmds.c: In function 'reget': cmds.c:567:9: warning: implicit declaration of function 'getit'; did you mean 'getw'? [-Wimplicit-function-declaration] (void) getit(argc, argv, 1, "r+w"); ^~~~~ getw cmds.c: At top level: cmds.c:570:1: warning: return type defaults to 'int' [-Wimplicit-int] get(argc, argv) ^~~ cmds.c:580:1: warning: return type defaults to 'int' [-Wimplicit-int] getit(argc, argv, restartit, mode) ^~~~~ cmds.c: In function 'getit': cmds.c:580:1: warning: type of 'restartit' defaults to 'int' [-Wimplicit-int] cmds.c:616:24: warning: comparison between pointer and integer while ((*tp2 = *tp) != NULL) { ^~ --- server --- sockd.c: In function 'DoNewBind': sockd.c:579:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(out); ^~~~~ pclose sockd.c:602:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:602:3: note: include '' or provide a declaration of 'exit' --- RFTP --- cmds.c:686:6: warning: passing argument 5 of 'recvrequest' makes pointer from integer without a cast [-Wint-conversion] argv[1] != oldargv1 || argv[2] != oldargv2); ^~~~ cmds.c:76:6: note: expected 'char *' but argument is of type 'int' void recvrequest(char *cmd, char *local, char *remote, char *lmode, char *printnames); ^~~~~~~~~~~ cmds.c: In function 'mget': cmds.c:730:26: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] oldintr = signal(SIGINT,mabort); ^~~~~~ --- server --- sockd.c: At top level: sockd.c:617:1: warning: return type defaults to 'int' [-Wimplicit-int] Pump(in, out) ^~~~ --- RFTP --- In file included from /usr/include/sys/param.h:170:0, from cmds.c:44: /usr/include/sys/signal.h:239:8: note: expected 'void (*)(int)' but argument is of type 'void (*)(int, char **)' void (*signal(int, void (*)(int)))(int); ^~~~~~ --- server --- sockd.c: In function 'Pump': sockd.c:657:10: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(out, buf, n) < 0) { ^~~~~ fwrite --- RFTP --- cmds.c:746:26: warning: comparison between pointer and integer while ((*tp2 = *tp) != NULL) { ^~ cmds.c:763:8: warning: passing argument 5 of 'recvrequest' makes pointer from integer without a cast [-Wint-conversion] tp != cp || !interactive); ^~ cmds.c:76:6: note: expected 'char *' but argument is of type 'int' void recvrequest(char *cmd, char *local, char *remote, char *lmode, char *printnames); ^~~~~~~~~~~ --- server --- sockd.c: At top level: sockd.c:874:1: warning: return type defaults to 'int' [-Wimplicit-int] check_sp_conf(fd, s, src, dst) ^~~~~~~~~~~~~ --- RFTP --- cmds.c: In function 'remglob': cmds.c:824:10: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] (void) unlink(temp); ^~~~~~ unix cmds.c: At top level: cmds.c:904:1: warning: return type defaults to 'int' [-Wimplicit-int] setbell() ^~~~~~~ cmds.c:916:1: warning: return type defaults to 'int' [-Wimplicit-int] settrace() ^~~~~~~~ cmds.c:928:1: warning: return type defaults to 'int' [-Wimplicit-int] sethash() ^~~~~~~ cmds.c:943:1: warning: return type defaults to 'int' [-Wimplicit-int] setverbose() ^~~~~~~~~~ cmds.c:955:1: warning: return type defaults to 'int' [-Wimplicit-int] setport() ^~~~~~~ cmds.c:968:1: warning: return type defaults to 'int' [-Wimplicit-int] setprompt() ^~~~~~~~~ cmds.c:981:1: warning: return type defaults to 'int' [-Wimplicit-int] setglob() ^~~~~~~ --- server --- sockd.c: In function 'check_sp_conf': sockd.c:884:4: warning: implicit declaration of function 'socks_shell_cmd'; did you mean 'socks_check_user'? [-Wimplicit-function-declaration] socks_shell_cmd(buf+strlen(s), src, dst); ^~~~~~~~~~~~~~~ socks_check_user sockd.c:888:2: warning: 'return' with no value, in function returning non-void return; ^~~~~~ sockd.c:874:1: note: declared here check_sp_conf(fd, s, src, dst) ^~~~~~~~~~~~~ sockd.c: At top level: sockd.c:891:1: warning: return type defaults to 'int' [-Wimplicit-int] Validate(src, dst, in) ^~~~~~~~ sockd.c: In function 'Validate': sockd.c:924:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:924:3: note: include '' or provide a declaration of 'exit' sockd.c:965:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:965:4: note: include '' or provide a declaration of 'exit' --- RFTP --- cmds.c: In function 'lcd': cmds.c:1057:6: warning: implicit declaration of function 'chdir'; did you mean 'mkdir'? [-Wimplicit-function-declaration] if (chdir(argv[1]) < 0) { ^~~~~ mkdir --- server --- sockd.c:975:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:975:4: note: include '' or provide a declaration of 'exit' sockd.c:995:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:995:6: note: include '' or provide a declaration of 'exit' sockd.c:1009:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:1009:4: note: include '' or provide a declaration of 'exit' sockd.c:1014:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:1014:4: note: include '' or provide a declaration of 'exit' sockd.c:1018:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:1018:4: note: include '' or provide a declaration of 'exit' sockd.c:1027:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ --- RFTP --- cmds.c:1063:37: warning: implicit declaration of function 'getcwd'; did you mean 'getwd'? [-Wimplicit-function-declaration] printf("Local directory now %s\n", getcwd(buf, MAXPATHLEN-1)); ^~~~~~ getwd --- server --- sockd.c:1027:5: note: include '' or provide a declaration of 'exit' sockd.c:1031:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:1031:5: note: include '' or provide a declaration of 'exit' --- RTELNET --- --- genget.o --- --- RFTP --- cmds.c: In function 'mdelete': cmds.c:1102:27: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] oldintr = signal(SIGINT, mabort); ^~~~~~ In file included from /usr/include/sys/param.h:170:0, from cmds.c:44: /usr/include/sys/signal.h:239:8: note: expected 'void (*)(int)' but argument is of type 'void (*)(int, char **)' void (*signal(int, void (*)(int)))(int); ^~~~~~ --- server --- sockd.c:1053:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:1053:5: note: include '' or provide a declaration of 'exit' sockd.c:1059:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ sockd.c:1059:5: note: include '' or provide a declaration of 'exit' --- RTELNET --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DLINEMODE -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I.. -I../../include -c genget.c --- RFTP --- cmds.c: In function 'mls': cmds.c:1204:27: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] oldintr = signal(SIGINT, mabort); ^~~~~~ In file included from /usr/include/sys/param.h:170:0, from cmds.c:44: /usr/include/sys/signal.h:239:8: note: expected 'void (*)(int)' but argument is of type 'void (*)(int, char **)' void (*signal(int, void (*)(int)))(int); ^~~~~~ cmds.c: In function 'shell': cmds.c:1239:13: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] if ((pid = fork()) == 0) { ^~~~ cmds.c:1241:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(pid); ^~~~~ pclose cmds.c:1259:4: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration] execl(shell,shellnam,"-c",altarg,(char *)0); ^~~~~ cmds.c:1259:4: warning: incompatible implicit declaration of built-in function 'execl' cmds.c:1262:4: warning: incompatible implicit declaration of built-in function 'execl' execl(shell,shellnam,(char *)0); ^~~~~ cmds.c:1266:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ cmds.c:1266:3: warning: incompatible implicit declaration of built-in function 'exit' cmds.c:1266:3: note: include '' or provide a declaration of 'exit' cmds.c: In function 'user': cmds.c:1307:10: warning: incompatible implicit declaration of built-in function 'strlen' acct[strlen(acct) - 1] = '\0'; ^~~~~~ cmds.c:1307:10: note: include '' or provide a declaration of 'strlen' cmds.c:1319:9: warning: incompatible implicit declaration of built-in function 'strlen' acct[strlen(acct) - 1] = '\0'; ^~~~~~ cmds.c:1319:9: note: include '' or provide a declaration of 'strlen' cmds.c: In function 'quote': cmds.c:1401:2: warning: implicit declaration of function 'quote1'; did you mean 'quote'? [-Wimplicit-function-declaration] quote1("", argc, argv); ^~~~~~ quote cmds.c: At top level: cmds.c:1424:1: warning: return type defaults to 'int' [-Wimplicit-int] quote1(initial, argc, argv) ^~~~~~ cmds.c: In function 'quote1': cmds.c:1434:9: warning: incompatible implicit declaration of built-in function 'strlen' len = strlen(buf); ^~~~~~ cmds.c:1434:9: note: include '' or provide a declaration of 'strlen' cmds.c:1442:10: warning: implicit declaration of function 'getreply'; did you mean 'setbell'? [-Wimplicit-function-declaration] while (getreply(0) == PRELIM); ^~~~~~~~ setbell cmds.c: At top level: cmds.c:1469:1: warning: return type defaults to 'int' [-Wimplicit-int] idle(argc, argv) ^~~~ cmds.c:1483:1: warning: return type defaults to 'int' [-Wimplicit-int] rmthelp(argc, argv) ^~~~~~~ cmds.c:1498:1: warning: return type defaults to 'int' [-Wimplicit-int] quit() ^~~~ cmds.c: In function 'quit': cmds.c:1507:2: warning: incompatible implicit declaration of built-in function 'exit' exit(0); ^~~~ cmds.c:1507:2: note: include '' or provide a declaration of 'exit' cmds.c: At top level: cmds.c:1532:1: warning: return type defaults to 'int' [-Wimplicit-int] confirm(cmd, file) ^~~~~~~ cmds.c:1546:1: warning: return type defaults to 'int' [-Wimplicit-int] fatal(msg) ^~~~~ cmds.c: In function 'fatal': cmds.c:1551:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ cmds.c:1551:2: note: include '' or provide a declaration of 'exit' cmds.c: At top level: cmds.c:1560:1: warning: return type defaults to 'int' [-Wimplicit-int] globulize(cpp) ^~~~~~~~~ cmds.c: In function 'globulize': cmds.c:1572:4: warning: incompatible implicit declaration of built-in function 'free' free((char *)globbed); ^~~~ cmds.c:1572:4: note: include '' or provide a declaration of 'free' cmds.c:1581:4: warning: incompatible implicit declaration of built-in function 'free' free((char *)globbed); ^~~~ cmds.c:1581:4: note: include '' or provide a declaration of 'free' cmds.c: At top level: cmds.c:1587:1: warning: return type defaults to 'int' [-Wimplicit-int] account(argc,argv) ^~~~~~~ cmds.c: In function 'account': cmds.c:1601:34: warning: incompatible implicit declaration of built-in function 'strlen' (void) strncat(acct,*argv, 49-strlen(acct)); ^~~~~~ cmds.c:1601:34: note: include '' or provide a declaration of 'strlen' cmds.c: At top level: cmds.c:1689:1: warning: return type defaults to 'int' [-Wimplicit-int] setcase() ^~~~~~~ cmds.c:1696:1: warning: return type defaults to 'int' [-Wimplicit-int] setcr() ^~~~~ cmds.c:1950:1: warning: return type defaults to 'int' [-Wimplicit-int] setsunique() ^~~~~~~~~~ cmds.c:1957:1: warning: return type defaults to 'int' [-Wimplicit-int] setrunique() ^~~~~~~~~~ cmds.c:1965:1: warning: return type defaults to 'int' [-Wimplicit-int] cdup() ^~~~ cmds.c:2103:1: warning: return type defaults to 'int' [-Wimplicit-int] newer(argc, argv) ^~~~~ --- RFINGER --- --- finger.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c finger.c --- RTELNET --- --- misc.o --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DLINEMODE -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I.. -I../../include -c misc.c --- RFINGER --- finger.c: In function 'main': finger.c:56:2: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration] SOCKSinit(Progname); ^~~~~~~~~ finger.c:74:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(cp, " "); ^~~~~~ finger.c:74:3: warning: incompatible implicit declaration of built-in function 'strcat' finger.c:74:3: note: include '' or provide a declaration of 'strcat' finger.c:76:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(argv[i], "-l")) { ^~~~~~ finger.c:78:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] cp += strlen(argv[i]); ^~~~~~ finger.c:78:9: warning: incompatible implicit declaration of built-in function 'strlen' finger.c:78:9: note: include '' or provide a declaration of 'strlen' finger.c:91:3: warning: implicit declaration of function 'execvp' [-Wimplicit-function-declaration] execvp(cp, argv); ^~~~~~ finger.c:93:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ finger.c:93:3: warning: incompatible implicit declaration of built-in function 'exit' finger.c:93:3: note: include '' or provide a declaration of 'exit' finger.c:101:12: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] if ((v = atoi(service)) == 0) { ^~~~ finger.c:104:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:104:4: note: include '' or provide a declaration of 'exit' finger.c:112:12: warning: implicit declaration of function 'inet_addr'; did you mean 'h_addr'? [-Wimplicit-function-declaration] if ((l = inet_addr(host)) == -1) { ^~~~~~~~~ h_addr finger.c:115:4: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:115:4: note: include '' or provide a declaration of 'exit' finger.c:123:4: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(*hp->h_addr_list, &(dstaddr[i].s_addr), hp->h_length); ^~~~~ finger.c:123:4: warning: incompatible implicit declaration of built-in function 'bcopy' finger.c:132:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:132:3: note: include '' or provide a declaration of 'exit' finger.c:135:20: warning: passing argument 2 of 'Rconnect' from incompatible pointer type [-Wincompatible-pointer-types] while (connect(s, &sin, sizeof(sin)) < 0) { ^ :0:9: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_in *' --- RTELNET --- misc.c: In function 'auth_encrypt_init': misc.c:63:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(UserNameRequested); ^~~~ misc.c:63:3: warning: incompatible implicit declaration of built-in function 'free' misc.c:63:3: note: include '' or provide a declaration of 'free' --- RFINGER --- finger.c:142:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ finger.c:142:3: note: include '' or provide a declaration of 'exit' finger.c:147:2: warning: incompatible implicit declaration of built-in function 'strcat' strcat(cp, "\r\n"); ^~~~~~ finger.c:147:2: note: include '' or provide a declaration of 'strcat' --- RTELNET --- misc.c: In function 'auth_encrypt_user': misc.c:75:3: warning: incompatible implicit declaration of built-in function 'free' free(UserNameRequested); ^~~~ misc.c:75:3: note: include '' or provide a declaration of 'free' misc.c: In function 'printd': misc.c:93:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] printf(" %02x", *data); ^~~~~~ misc.c:93:3: warning: incompatible implicit declaration of built-in function 'printf' misc.c:93:3: note: include '' or provide a declaration of 'printf' --- RFINGER --- finger.c:149:6: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if (write(s,cp,strlen(cp)) < 0) { ^~~~~ fwrite finger.c:149:17: warning: incompatible implicit declaration of built-in function 'strlen' if (write(s,cp,strlen(cp)) < 0) { ^~~~~~ finger.c:149:17: note: include '' or provide a declaration of 'strlen' finger.c:154:14: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while ((n = read(s, buf, sizeof(buf) - 1)) > 0) { ^~~~ fread finger.c:158:2: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close(s); ^~~~~ pclose --- RTELNET --- --- enc_des.o --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DLINEMODE -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I.. -I../../include -c enc_des.c --- RFINGER --- --- rfinger --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -o rfinger finger.o /tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a --- RTELNET --- --- getent.o --- cc -O2 -fPIC -D_FORTIFY_SOURCE=2 -DLINEMODE -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -I.. -I../../include -c getent.c getent.c:44:1: warning: return type defaults to 'int' [-Wimplicit-int] getent(cp, name) ^~~~~~ --- libtelnet.a --- rm -f libtelnet.a ar cq libtelnet.a auth.o encrypt.o genget.o misc.o enc_des.o getent.o ranlib libtelnet.a cd telnet; /usr/bin/make netbsd0.9 CC="cc" OTHER_CFLAGS="-DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 " SOCKS="-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1" SOCKS_LIB=/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB="" OPTIMIZE="-O2 -fPIC -D_FORTIFY_SOURCE=2" cd: can't cd to telnet --- netbsd0.9 --- /usr/bin/make -f ../Config.local WHAT= CC=cc OPTIMIZE=-O2 -fPIC -D_FORTIFY_SOURCE=2 SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 SOCKS_LIB=/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a RESOLV_LIB= netbsd0.9 --- netbsd0.9 --- make -f Makefile.generic LIBS="/tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a -lutil -ltermcap ../libtelnet/libtelnet.a " LIBPATH="/usr/lib/libc.a /usr/lib/libtermcap.a ../libtelnet/libtelnet.a" DEST=/usr/bin DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DDIAGNOSTICS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 " INCLUDES="-I.. -I../../include" LIB_OBJ="getent.o" LIB_SRC="getent.c" AR=ar ARFLAGS=cq RANLIB=ranlib LIBEXEC=/usr/pkg/libexec CC="cc" LCCFLAGS="-O2 -fPIC -D_FORTIFY_SOURCE=2" `libtelnet.a' is up to date. --- RFTP --- --- cmdtab.o --- --- ftp.o --- --- glob.o --- --- main.o --- --- cmdtab.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c cmdtab.c --- ftp.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c ftp.c --- glob.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c glob.c --- main.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c main.c main.c:68:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^~~~ main.c: In function 'main': main.c:68:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] main.c:77:2: warning: implicit declaration of function 'SOCKSinit' [-Wimplicit-function-declaration] SOCKSinit(argv[0]); ^~~~~~~~~ main.c:85:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ main.c:85:3: warning: incompatible implicit declaration of built-in function 'exit' main.c:85:3: note: include '' or provide a declaration of 'exit' main.c:126:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^~~~ main.c:126:5: note: include '' or provide a declaration of 'exit' main.c:130:13: warning: implicit declaration of function 'isatty'; did you mean 'isset'? [-Wimplicit-function-declaration] fromatty = isatty(fileno(stdin)); ^~~~~~ isset main.c:152:4: warning: incompatible implicit declaration of built-in function 'exit' exit(0); ^~~~ main.c:152:4: note: include '' or provide a declaration of 'exit' --- ruserpass.o --- --- glob.o --- glob.c: In function 'ftpglob': glob.c:121:3: warning: implicit declaration of function 'blkfree'; did you mean 'cfree'? [-Wimplicit-function-declaration] blkfree(gargv), gargv = 0; ^~~~~~~ cfree --- ruserpass.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c ruserpass.c --- glob.o --- glob.c: In function 'expand': glob.c:188:14: warning: implicit declaration of function 'letter'; did you mean 'setkey'? [-Wimplicit-function-declaration] for (cs++; letter(*cs) || digit(*cs) || *cs == '-';) ^~~~~~ setkey glob.c:188:29: warning: implicit declaration of function 'digit'; did you mean 'ginit'? [-Wimplicit-function-declaration] for (cs++; letter(*cs) || digit(*cs) || *cs == '-';) ^~~~~ ginit glob.c:193:9: warning: implicit declaration of function 'gethdir'; did you mean 'matchdir'? [-Wimplicit-function-declaration] if (gethdir(gpath + 1)) ^~~~~~~ matchdir --- main.o --- main.c:155:3: warning: implicit declaration of function 'setpeer'; did you mean 'lostpeer'? [-Wimplicit-function-declaration] setpeer(argc + 1, argv - 1); ^~~~~~~ lostpeer --- ftp.o --- ftp.c: In function 'hookup': ftp.c:175:2: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] bzero((char *)&hisctladdr, sizeof (hisctladdr)); ^~~~~ ftp.c:175:2: warning: incompatible implicit declaration of built-in function 'bzero' --- main.o --- main.c:163:3: warning: implicit declaration of function 'cmdscanner' [-Wimplicit-function-declaration] cmdscanner(top); ^~~~~~~~~~ --- ftp.o --- ftp.c:176:31: warning: implicit declaration of function 'inet_addr'; did you mean 'h_addr'? [-Wimplicit-function-declaration] hisctladdr.sin_addr.s_addr = inet_addr(host); ^~~~~~~~~ h_addr --- main.o --- main.c: In function 'lostpeer': main.c:189:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(data); ^~~~~ pclose --- ftp.o --- ftp.c:189:3: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(hp->h_addr_list[0], ^~~~~ ftp.c:189:3: warning: incompatible implicit declaration of built-in function 'bcopy' ftp.c:211:4: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(hp->h_addr_list[0], ^~~~~ --- main.o --- main.c:194:2: warning: implicit declaration of function 'pswitch' [-Wimplicit-function-declaration] pswitch(1); ^~~~~~~ main.c: At top level: main.c:227:1: warning: return type defaults to 'int' [-Wimplicit-int] cmdscanner(top) ^~~~~~~~~~ --- ftp.o --- ftp.c:215:11: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] (void) close(s); ^~~~~ pclose --- main.o --- main.c: In function 'cmdscanner': main.c:242:4: warning: implicit declaration of function 'quit' [-Wimplicit-function-declaration] quit(); ^~~~ main.c:243:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] l = strlen(line); ^~~~~~ main.c:243:7: warning: incompatible implicit declaration of built-in function 'strlen' main.c:243:7: note: include '' or provide a declaration of 'strlen' --- glob.o --- glob.c:201:10: warning: implicit declaration of function 'any'; did you mean 'rand'? [-Wimplicit-function-declaration] while (!any(*cs, globchars)) { ^~~ rand --- main.o --- main.c:256:3: warning: implicit declaration of function 'makeargv'; did you mean 'makedev'? [-Wimplicit-function-declaration] makeargv(); ^~~~~~~~ makedev --- ftp.o --- ftp.c:257:6: warning: implicit declaration of function 'getreply'; did you mean 'strcpy'? [-Wimplicit-function-declaration] if (getreply(0) > 2) { /* read startup message from server */ ^~~~~~~~ strcpy --- main.o --- main.c:276:20: warning: comparison of distinct pointer types lacks a cast if (c->c_handler != help) ^~ --- ftp.o --- ftp.c: At top level: --- glob.o --- glob.c: At top level: --- ftp.o --- ftp.c:282:1: warning: return type defaults to 'int' [-Wimplicit-int] login(host) ^~~~~ --- main.o --- main.c: At top level: --- glob.o --- glob.c:465:1: warning: return type defaults to 'int' [-Wimplicit-int] Gmatch(s, p) ^~~~~~ --- main.o --- main.c:319:1: warning: return type defaults to 'int' [-Wimplicit-int] makeargv() ^~~~~~~~ main.c: In function 'help': main.c:474:14: warning: incompatible implicit declaration of built-in function 'strlen' int len = strlen(c->c_name); ^~~~~~ main.c:474:14: note: include '' or provide a declaration of 'strlen' --- glob.o --- glob.c:584:1: warning: return type defaults to 'int' [-Wimplicit-int] tglob(c) ^~~~~ glob.c:602:1: warning: return type defaults to 'int' [-Wimplicit-int] letter(c) ^~~~~~ glob.c:609:1: warning: return type defaults to 'int' [-Wimplicit-int] digit(c) ^~~~~ glob.c:616:1: warning: return type defaults to 'int' [-Wimplicit-int] any(c, s) ^~~ --- main.o --- main.c:491:20: warning: incompatible implicit declaration of built-in function 'strlen' for (k=0; k < strlen(c->c_name); k++) { ^~~~~~ main.c:491:20: note: include '' or provide a declaration of 'strlen' --- glob.o --- glob.c:626:1: warning: return type defaults to 'int' [-Wimplicit-int] blklen(av) ^~~~~~ --- main.o --- main.c:499:9: warning: incompatible implicit declaration of built-in function 'strlen' w = strlen(c->c_name); ^~~~~~ --- glob.o --- glob.c:648:1: warning: return type defaults to 'int' [-Wimplicit-int] blkfree(av0) ^~~~~~~ --- main.o --- main.c:499:9: note: include '' or provide a declaration of 'strlen' --- ftp.o --- ftp.c: In function 'login': ftp.c:290:6: warning: implicit declaration of function 'ruserpass'; did you mean 'getpass'? [-Wimplicit-function-declaration] if (ruserpass(host, &user, &pass, &acct) < 0) { ^~~~~~~~~ getpass --- glob.o --- glob.c: In function 'strspl': glob.c:673:3: warning: implicit declaration of function 'fatal'; did you mean 'atol'? [-Wimplicit-function-declaration] fatal("Out of memory"); ^~~~~ atol --- ftp.o --- ftp.c:308:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] tmp[strlen(tmp) - 1] = '\0'; ^~~~~~ ftp.c:308:7: warning: incompatible implicit declaration of built-in function 'strlen' ftp.c:308:7: note: include '' or provide a declaration of 'strlen' --- glob.o --- glob.c: At top level: glob.c:707:1: warning: return type defaults to 'int' [-Wimplicit-int] gethdir(home) ^~~~~~~ --- ftp.o --- ftp.c:317:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(user, "anonymous") == 0) { ^~~~~~ ftp.c:320:9: warning: incompatible implicit declaration of built-in function 'strlen' tmp[strlen(tmp) - 1] = '\0'; ^~~~~~ ftp.c:320:9: note: include '' or provide a declaration of 'strlen' ftp.c:343:4: warning: implicit declaration of function 'makeargv'; did you mean 'makedev'? [-Wimplicit-function-declaration] makeargv(); ^~~~~~~~ makedev ftp.c:344:4: warning: implicit declaration of function 'domacro' [-Wimplicit-function-declaration] domacro(margc, margv); ^~~~~~~ ftp.c: In function 'command': ftp.c:376:7: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (strncmp("PASS ", fmt, 5) == 0) ^~~~~~~ ftp.c: At top level: ftp.c:407:1: warning: return type defaults to 'int' [-Wimplicit-int] getreply(expecteof) ^~~~~~~~ ftp.c:510:1: warning: return type defaults to 'int' [-Wimplicit-int] empty(mask, sec) ^~~~~ ftp.c: In function 'sendrequest': ftp.c:559:3: warning: implicit declaration of function 'changetype' [-Wimplicit-function-declaration] changetype(type, 0); ^~~~~~~~~~ ftp.c:612:6: warning: implicit declaration of function 'initconn'; did you mean 'dataconn'? [-Wimplicit-function-declaration] if (initconn()) { ^~~~~~~~ dataconn ftp.c:672:15: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] while ((c = read(fileno(fin), buf, sizeof (buf))) > 0) { ^~~~ fread ftp.c:675:14: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] if ((d = write(fileno(dout), bufp, c)) <= 0) ^~~~~ fwrite ftp.c:749:3: warning: implicit declaration of function 'ptransfer' [-Wimplicit-function-declaration] ptransfer("sent", bytes, &start, &stop); ^~~~~~~~~ ftp.c: In function 'recvrequest': ftp.c:808:8: warning: conflicting types for built-in function 'malloc' [-Wbuiltin-declaration-mismatch] char *malloc(); ^~~~~~ ftp.c:840:7: warning: implicit declaration of function 'access'; did you mean 'accept'? [-Wimplicit-function-declaration] if (access(local, 2) < 0) { ^~~~~~ accept ftp.c:940:11: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] (void) free(buf); ^~~~ ftp.c:940:11: warning: incompatible implicit declaration of built-in function 'free' ftp.c:940:11: note: include '' or provide a declaration of 'free' ftp.c:1113:2: warning: implicit declaration of function 'abort_remote'; did you mean 'abortrecv'? [-Wimplicit-function-declaration] abort_remote(din); ^~~~~~~~~~~~ abortrecv ftp.c: At top level: ftp.c:1138:1: warning: return type defaults to 'int' [-Wimplicit-int] initconn() ^~~~~~~~ ftp.c:1274:1: warning: return type defaults to 'int' [-Wimplicit-int] ptransfer(direction, bytes, t0, t1) ^~~~~~~~~ ftp.c: In function 'ptransfer': ftp.c:1283:3: warning: implicit declaration of function 'tvsub' [-Wimplicit-function-declaration] tvsub(&td, t1, t0); ^~~~~ ftp.c: At top level: ftp.c:1302:1: warning: return type defaults to 'int' [-Wimplicit-int] tvsub(tdiff, t1, t0) ^~~~~ ftp.c: In function 'pswitch': ftp.c:1365:12: warning: incompatible implicit declaration of built-in function 'strlen' ip->name[strlen(ip->name)] = '\0'; ^~~~~~ ftp.c:1365:12: note: include '' or provide a declaration of 'strlen' ftp.c:1392:12: warning: incompatible implicit declaration of built-in function 'strlen' (ip->nti)[strlen(ip->nti)] = '\0'; ^~~~~~ ftp.c:1392:12: note: include '' or provide a declaration of 'strlen' ftp.c: In function 'proxtrans': ftp.c:1472:2: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] sleep(2); ^~~~~ ftp.c: At top level: ftp.c:1545:1: warning: return type defaults to 'int' [-Wimplicit-int] reset() ^~~~~ ftp.c: In function 'gunique': ftp.c:1583:13: warning: incompatible implicit declaration of built-in function 'strlen' cp = new + strlen(new); ^~~~~~ ftp.c:1583:13: note: include '' or provide a declaration of 'strlen' ftp.c: At top level: ftp.c:1610:1: warning: return type defaults to 'int' [-Wimplicit-int] abort_remote(din) ^~~~~~~~~~~~ --- ruserpass.o --- ruserpass.c:54:20: warning: conflicting types for built-in function 'malloc' [-Wbuiltin-declaration-mismatch] char *renvlook(), *malloc(), *index(), *getenv(), *getpass(), *getlogin(); ^~~~~~ ruserpass.c:84:1: warning: return type defaults to 'int' [-Wimplicit-int] ruserpass(host, aname, apass, aacct) ^~~~~~~~~ ruserpass.c: In function 'ruserpass': ruserpass.c:102:6: warning: implicit declaration of function 'gethostname'; did you mean 'getsockname'? [-Wimplicit-function-declaration] if (gethostname(myname, sizeof(myname)) < 0) ^~~~~~~~~~~ getsockname ruserpass.c:122:8: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration] if (strcasecmp(host, tokval) == 0) ^~~~~~~~~~ ruserpass.c:128:8: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration] strncasecmp(hostname, tokval, tmp-hostname) == 0 && ^~~~~~~~~~~ ruserpass.c:144:33: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] *aname = malloc((unsigned) strlen(tokval) + 1); ^~~~~~ ruserpass.c:144:33: warning: incompatible implicit declaration of built-in function 'strlen' ruserpass.c:144:33: note: include '' or provide a declaration of 'strlen' ruserpass.c:147:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(*aname, tokval)) ^~~~~~ ruserpass.c:160:32: warning: incompatible implicit declaration of built-in function 'strlen' *apass = malloc((unsigned) strlen(tokval) + 1); ^~~~~~ ruserpass.c:160:32: note: include '' or provide a declaration of 'strlen' ruserpass.c:172:32: warning: incompatible implicit declaration of built-in function 'strlen' *aacct = malloc((unsigned) strlen(tokval) + 1); ^~~~~~ ruserpass.c:172:32: note: include '' or provide a declaration of 'strlen' ruserpass.c: At top level: ruserpass.c:250:1: warning: return type defaults to 'int' [-Wimplicit-int] token() ^~~~~ --- domacro.o --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -c domacro.c domacro.c: In function 'domacro': domacro.c:62:19: warning: implicit declaration of function 'another' [-Wimplicit-function-declaration] if (argc < 2 && !another(&argc, &argv, "macro name")) { ^~~~~~~ domacro.c:68:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (!strncmp(argv[1], macros[i].mac_name, 9)) { ^~~~~~~ domacro.c:99:13: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] cp2 += strlen(argv[j+1]); ^~~~~~ domacro.c:99:13: warning: incompatible implicit declaration of built-in function 'strlen' domacro.c:99:13: note: include '' or provide a declaration of 'strlen' domacro.c:108:16: warning: incompatible implicit declaration of built-in function 'strlen' cp2 += strlen(argv[count]); ^~~~~~ domacro.c:108:16: note: include '' or provide a declaration of 'strlen' domacro.c:122:3: warning: implicit declaration of function 'makeargv'; did you mean 'makedev'? [-Wimplicit-function-declaration] makeargv(); ^~~~~~~~ makedev --- rftp --- cc -I../include -O2 -fPIC -D_FORTIFY_SOURCE=2 -DGETCWD -DSHORTENED_RBIND -DTRY_PASV -Dunix=1 -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect -Dunix=1 -o rftp cmds.o cmdtab.o ftp.o glob.o main.o ruserpass.o domacro.o /tmp/net/socks4/work/socks.cstc.4.2/lib/libsocks.a ld: cmds.o: in function `remglob': cmds.c:(.text+0xa57): warning: warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()