+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/socks4-2.2nb1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/socks4-2.2nb1/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for socks4-2.2nb1 --- LIB --- --- LIBIDENT --- (cd libident; /opt/pkg/bin/bmake CC="gcc" OTHER_CFLAGS="-DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV" OPTIMIZE="-pipe -O2 -msave-args -fno-aggressive-loop-optimizations" RANLIB="/bin/true") --- LIB --- (cd lib; /opt/pkg/bin/bmake CC="gcc" GETPASS="getpass.o" OPTIMIZE="-pipe -O2 -msave-args -fno-aggressive-loop-optimizations" RCMD="Rrcmd.o" SUPPORT_RCMD="-DSUPPORT_RCMD" DNS_THROUGH_NIS="" OTHER_CFLAGS="-DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV " RANLIB="/bin/true") --- echocwd --- --- Rconnect.o --- --- echocwd --- /home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib --- LIBIDENT --- --- echocwd --- --- ident.o --- --- echocwd --- /home/pbulk/build/net/socks4/work/socks.cstc.4.2/libident --- id_open.o --- --- ident.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -c ident.c --- LIB --- --- SendGetDst.o --- --- Rconnect.o --- gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -c Rconnect.c --- SendGetDst.o --- gcc -I../include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -DSUPPORT_RCMD -c SendGetDst.c --- LIBIDENT --- --- id_open.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSOLARIS -Dindex=strchr -Drindex=strrchr -DSHORTENED_RBIND -DUSE_DIRENT -DGETCWD -DCOMPAT -DTRY_PASV -c id_open.c --- ident.o --- ident.c: In function 'ident_lookup': ident.c:76:21: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 76 | ident = (IDENT *) malloc(sizeof(IDENT)); | ^~~~~~ ident.c:18:1: note: include '' or provide a declaration of 'malloc' 17 | #include "ident.h" +++ |+#include 18 | ident.c:76:21: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 76 | ident = (IDENT *) malloc(sizeof(IDENT)); | ^~~~~~ ident.c:76:21: note: include '' or provide a declaration of 'malloc' ident.c:98:5: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 98 | free(ident); | ^~~~ ident.c:98:5: note: include '' or provide a declaration of 'free' ident.c:98:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 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' [-Wbuiltin-declaration-mismatch] 135 | 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' [-Wbuiltin-declaration-mismatch] 136 | 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' [-Wbuiltin-declaration-mismatch] 137 | 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' [-Wbuiltin-declaration-mismatch] 138 | free(id); | ^~~~ ident.c:138:3: note: include '' or provide a declaration of 'free' --- LIB --- --- Rconnect.o --- Rconnect.c: In function 'SOCKSinit': Rconnect.c:129:9: error: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] 129 | gethostname(socks_src_name, sizeof(socks_src_name)); | ^~~~~~~~~~~ | gethostbyname Rconnect.c:165:55: error: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration] 165 | _res.nsaddr_list[0].sin_addr.s_addr = inet_addr(ns); | ^~~~~~~~~ Rconnect.c:211:40: error: implicit declaration of function 'getuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] 211 | if ((pw = getpwuid(uid=getuid())) == NULL) { | ^~~~~~ | getpwuid Rconnect.c:219:32: error: implicit declaration of function 'geteuid'; did you mean 'getpwuid'? [-Wimplicit-function-declaration] 219 | if ((pw = getpwuid(uid=geteuid())) == NULL) { | ^~~~~~~ | getpwuid Rconnect.c: In function 'connect_sockd': Rconnect.c:289:29: error: implicit declaration of function 'dup2' [-Wimplicit-function-declaration] 289 | if (dup2(new_sock, sock) < 0) { | ^~~~ Rconnect.c:290:33: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 290 | close(new_sock); | ^~~~~ | pclose Rconnect.c: In function 'send_src_user': Rconnect.c:343:25: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 343 | if((n = write(s, p, i)) <= 0) { | ^~~~~ | fwrite Rconnect.c: In function 'socksC_proto': Rconnect.c:359:20: error: implicit declaration of function 'socks_SendDst' [-Wimplicit-function-declaration] --- SendGetDst.o --- SendGetDst.c:13:9: warning: "NULL" redefined 13 | #define NULL ((char *)0) | ^~~~ In file included from /usr/include/iso/time_iso.h:49, from /usr/include/time.h:40, from /usr/include/sys/time.h:490, from /usr/include/sys/select.h:53, from /usr/include/sys/types.h:687, from SendGetDst.c:1: /usr/include/sys/null.h:28:9: note: this is the location of the previous definition 28 | #define NULL ((void *)0) | ^~~~ SendGetDst.c: In function 'socks_SendDst': SendGetDst.c:13:14: error: passing argument 2 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ | | | char * SendGetDst.c:36:44: note: in expansion of macro 'NULL' 36 | if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) | ^~~~ --- Rconnect.o --- 359 | if ((sta = socks_SendDst(s, dst)) < 0) { | ^~~~~~~~~~~~~ --- SendGetDst.o --- /usr/include/sys/select.h:143:24: note: expected 'fd_set * restrict' but argument is of type 'char *' 143 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD, | ^ SendGetDst.c:13:14: error: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ | | | char * SendGetDst.c:36:56: note: in expansion of macro 'NULL' 36 | if ((ret = select(fdsbits, NULL, &fds, NULL, &timeout)) == 0) | ^~~~ /usr/include/sys/select.h:144:9: note: expected 'fd_set * restrict' but argument is of type 'char *' 144 | fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD); | ^ SendGetDst.c:46:25: error: implicit declaration of function 'write' [-Wimplicit-function-declaration] 46 | if((n = write(s, p, i)) > 0) { | ^~~~~ SendGetDst.c: In function 'socks_GetDst': SendGetDst.c:13:14: error: passing argument 3 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ | | | char * SendGetDst.c:75:50: note: in expansion of macro 'NULL' 75 | if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) | ^~~~ /usr/include/sys/select.h:143:48: note: expected 'fd_set * restrict' but argument is of type 'char *' 143 | extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD, | ^ SendGetDst.c:13:14: error: passing argument 4 of 'select' from incompatible pointer type [-Wincompatible-pointer-types] 13 | #define NULL ((char *)0) | ^~~~~~~~~~~ | | | char * SendGetDst.c:75:56: note: in expansion of macro 'NULL' 75 | if ((ret = select(fdsbits, &fds, NULL, NULL, &timeout)) == 0) | ^~~~ /usr/include/sys/select.h:144:9: note: expected 'fd_set * restrict' but argument is of type 'char *' 144 | fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD); | ^ SendGetDst.c:85:25: error: implicit declaration of function 'read' [-Wimplicit-function-declaration] 85 | if((n = read(s, p, i)) > 0) { | ^~~~ --- Rconnect.o --- Rconnect.c:373:20: error: implicit declaration of function 'socks_GetDst' [-Wimplicit-function-declaration] 373 | if ((sta = socks_GetDst(s, dst)) < 0) { | ^~~~~~~~~~~~ Rconnect.c: In function 'quit_C_proto': Rconnect.c:386:9: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 386 | exit(SOCKS_FAIL); | ^~~~ Rconnect.c:33:1: note: include '' or provide a declaration of 'exit' 32 | #include +++ |+#include 33 | Rconnect.c:386:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 386 | exit(SOCKS_FAIL); | ^~~~ Rconnect.c:386:9: note: include '' or provide a declaration of 'exit' Rconnect.c: In function 'do_C_proto': Rconnect.c:397:9: error: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] 397 | alarm(CLIENT_CONN_TIMEOUT); | ^~~~~ Rconnect.c:404:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 404 | exit(SOCKS_FAIL); | ^~~~ Rconnect.c:404:17: note: include '' or provide a declaration of 'exit' Rconnect.c:409:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 409 | exit(dst.cmd); | ^~~~ Rconnect.c:409:17: note: include '' or provide a declaration of 'exit' Rconnect.c:411:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 411 | exit(SOCKS_RESULT); | ^~~~ Rconnect.c:411:9: note: include '' or provide a declaration of 'exit' Rconnect.c: At top level: Rconnect.c:416:1: error: return type defaults to 'int' [-Wimplicit-int] 416 | Rconnect(sock, sin, size) | ^~~~~~~~ --- SendGetDst.o --- *** [SendGetDst.o] Error code 1 --- LIBIDENT --- *** [ident.o] Error code 1 bmake[1]: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2/libident --- id_open.o --- id_open.c:60:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 60 | extern void *malloc __P((int size)); | ^~~~~~ id_open.c:59:1: note: 'malloc' is declared in header '' 58 | #include "ident.h" +++ |+#include 59 | id_open.c: In function 'id_open': id_open.c:90:5: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 90 | free(id); | ^~~~ id_open.c:90:5: note: include '' or provide a declaration of 'free' id_open.c:90:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] id_open.c:90:5: note: include '' or provide a declaration of 'free' --- LIB --- bmake[1]: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib --- Rconnect.o --- Rconnect.c: In function 'Rconnect': Rconnect.c:528:18: error: implicit declaration of function 'socks_check_cconf' [-Wimplicit-function-declaration] 528 | direct = socks_check_cconf(&me, sin); | ^~~~~~~~~~~~~~~~~ Rconnect.c:600:29: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 600 | switch (child_pid = fork()) { | ^~~~ Rconnect.c: At top level: Rconnect.c:628:1: error: return type defaults to 'int' [-Wimplicit-int] 628 | Rbind(sock, sin, size) | ^~~~~ --- LIBIDENT --- id_open.c:172:3: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 172 | close(id->fd); | ^~~~~ | pclose id_open.c:173:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 173 | free(id); | ^~~~ id_open.c:173:3: note: include '' or provide a declaration of 'free' --- LIB --- Rconnect.c:780:1: error: return type defaults to 'int' [-Wimplicit-int] 780 | Rlisten(s, n) | ^~~~~~~ Rconnect.c:797:1: error: return type defaults to 'int' [-Wimplicit-int] 797 | Rgetsockname(sock, sin, size) | ^~~~~~~~~~~~ Rconnect.c:823:1: error: return type defaults to 'int' [-Wimplicit-int] 823 | Raccept(sock, sin, size) | ^~~~~~~ Rconnect.c: In function 'Raccept': Rconnect.c:851:32: error: implicit declaration of function 'dup' [-Wimplicit-function-declaration] 851 | return(dup(sock)); | ^~~ --- LIBIDENT --- *** [id_open.o] Error code 1 bmake[1]: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2/libident bmake[1]: 2 errors bmake[1]: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2/libident *** [LIBIDENT] Error code 2 bmake: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2 --- LIB --- *** [Rconnect.o] Error code 1 bmake[1]: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib bmake[1]: 2 errors bmake[1]: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2/lib *** [LIB] Error code 2 bmake: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2 bmake: 2 errors bmake: stopped making "all" in /home/pbulk/build/net/socks4/work/socks.cstc.4.2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/socks4 *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/socks4