+ 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/goofey-3.15/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/goofey-3.15/work.log WARNING: [license.mk] Every package should define a LICENSE. ===> Building for goofey-3.15 cd /home/pbulk/build/chat/goofey/work/goofey-3.15; gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -lnsl -lsocket -Wl,-R/opt/pkg/lib -o goofey goofey.c goofey.c: In function 'main': goofey.c:244:9: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 244 | exit(0); | ^~~~ goofey.c:187:1: note: include '' or provide a declaration of 'exit' 186 | #include +++ |+#include 187 | /* memory.h and strings.h conflict on some systems. */ goofey.c:244:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 244 | exit(0); | ^~~~ goofey.c:244:9: note: include '' or provide a declaration of 'exit' goofey.c:250:12: error: implicit declaration of function 'getppid' [-Wimplicit-function-declaration] 250 | ppid = getppid(); | ^~~~~~~ goofey.c:252:9: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 252 | if (fork()) { | ^~~~ goofey.c:253:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 253 | exit(0); /* In parent */ | ^~~~ goofey.c:253:9: note: include '' or provide a declaration of 'exit' goofey.c:272:21: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 272 | exit(1); | ^~~~ goofey.c:272:21: note: include '' or provide a declaration of 'exit' goofey.c: In function 'check_size': goofey.c:287:9: error: implicit declaration of function 'isatty' [-Wimplicit-function-declaration] 287 | if (isatty(1)) { | ^~~~~~ goofey.c:296:21: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 296 | width = atoi(s); | ^~~~ goofey.c: In function 'say_hi_to_server': goofey.c:326:17: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 326 | while ((i = read(sock,buf,(sizeof buf)-1)) > 0) { | ^~~~ | fread goofey.c:334:5: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 334 | close(sock); | ^~~~~ | pclose goofey.c: In function 'generate_password': goofey.c:343:14: error: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] 343 | seed ^= (getpid() << 16) | (getppid()); | ^~~~~~ goofey.c: In function 'die': goofey.c:358:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 358 | exit(0); | ^~~~ goofey.c:358:5: note: include '' or provide a declaration of 'exit' goofey.c: In function 'send_and_get_message': goofey.c:381:9: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 381 | b = malloc(i=(strlen(build_arrived_string(0)) + | ^~~~~~ goofey.c:381:9: note: include '' or provide a declaration of 'malloc' goofey.c:381:9: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] goofey.c:381:9: note: include '' or provide a declaration of 'malloc' goofey.c:401:5: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 401 | free(b); | ^~~~ goofey.c:401:5: note: include '' or provide a declaration of 'free' goofey.c:401:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] goofey.c:401:5: note: include '' or provide a declaration of 'free' goofey.c:425:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 425 | exit(0); /* The normal exit point for non-resident goofeys */ | ^~~~ goofey.c:425:5: note: include '' or provide a declaration of 'exit' goofey.c: In function 'lonely': goofey.c:440:5: error: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] 440 | alarm(LONELY_INTERVAL); | ^~~~~ goofey.c: In function 'build_arrived_string': goofey.c:486:12: error: type defaults to 'int' in declaration of 'done' [-Wimplicit-int] 486 | static done,port,wid; | ^~~~ goofey.c:486:17: error: type defaults to 'int' in declaration of 'port' [-Wimplicit-int] 486 | static done,port,wid; | ^~~~ goofey.c:486:22: error: type defaults to 'int' in declaration of 'wid' [-Wimplicit-int] 486 | static done,port,wid; | ^~~ goofey.c: In function 'go_find_a_port': goofey.c:540:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 540 | exit(1); | ^~~~ goofey.c:540:9: note: include '' or provide a declaration of 'exit' goofey.c:556:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 556 | exit(1); | ^~~~ goofey.c:556:9: note: include '' or provide a declaration of 'exit' goofey.c:562:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 562 | exit(1); | ^~~~ goofey.c:562:9: note: include '' or provide a declaration of 'exit' goofey.c: In function 'get_my_tty': goofey.c:589:12: error: type defaults to 'int' in declaration of 'set' [-Wimplicit-int] 589 | static set; | ^~~ goofey.c: In function 'request_handler': goofey.c:636:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 636 | exit(0); | ^~~~ goofey.c:636:9: note: include '' or provide a declaration of 'exit' goofey.c:641:13: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 641 | free(msg); | ^~~~ goofey.c:641:13: note: include '' or provide a declaration of 'free' goofey.c:668:21: error: implicit declaration of function 'utime'; did you mean 'time'? [-Wimplicit-function-declaration] 668 | utime(get_my_tty(),timeout); | ^~~~~ | time goofey.c:677:17: error: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 677 | sleep(1); | ^~~~~ goofey.c:680:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 680 | exit(0); | ^~~~ goofey.c:680:17: note: include '' or provide a declaration of 'exit' goofey.c:685:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 685 | free(msg); | ^~~~ goofey.c:685:9: note: include '' or provide a declaration of 'free' goofey.c: In function 'find_inet_addr': goofey.c:717:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 717 | exit(2); | ^~~~ goofey.c:717:13: note: include '' or provide a declaration of 'exit' goofey.c: In function 'connect_to_server': goofey.c:736:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 736 | exit(1); | ^~~~ goofey.c:736:9: note: include '' or provide a declaration of 'exit' goofey.c:809:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 809 | exit(1); | ^~~~ goofey.c:809:13: note: include '' or provide a declaration of 'exit' goofey.c:820:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 820 | exit(1); | ^~~~ goofey.c:820:13: note: include '' or provide a declaration of 'exit' goofey.c: In function 'write_str': goofey.c:836:9: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 836 | if (write(sock,mesg,strlen(mesg)) <0) | ^~~~~ | fwrite goofey.c: In function 'process_flags': goofey.c:956:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 956 | exit(1); | ^~~~ goofey.c:956:17: note: include '' or provide a declaration of 'exit' goofey.c:969:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 969 | exit(1); | ^~~~ goofey.c:969:17: note: include '' or provide a declaration of 'exit' goofey.c:1027:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1027 | exit(1); | ^~~~ goofey.c:1027:25: note: include '' or provide a declaration of 'exit' goofey.c:1056:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1056 | exit(0); | ^~~~ goofey.c:1056:17: note: include '' or provide a declaration of 'exit' goofey.c:1088:21: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1088 | exit(0); | ^~~~ goofey.c:1088:21: note: include '' or provide a declaration of 'exit' goofey.c:1096:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1096 | free(n); | ^~~~ goofey.c:1096:17: note: include '' or provide a declaration of 'free' goofey.c:1100:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1100 | free(m); | ^~~~ goofey.c:1100:9: note: include '' or provide a declaration of 'free' goofey.c: In function 'editor': goofey.c:1120:7: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1120 | e=malloc(++l); | ^~~~~~ goofey.c:1120:7: note: include '' or provide a declaration of 'malloc' goofey.c: In function 'write_goof': goofey.c:1138:13: error: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 1138 | unlink(name); | ^~~~~~ goofey.c: In function 'editmsg': goofey.c:1168:5: error: implicit declaration of function 'system' [-Wimplicit-function-declaration] 1168 | system(buf); | ^~~~~~ goofey.c:1175:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1175 | free(msg); /* We can discard existing msg now */ | ^~~~ goofey.c:1175:5: note: include '' or provide a declaration of 'free' goofey.c: In function 'get_recip': goofey.c:1309:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1309 | free(*recip); | ^~~~ goofey.c:1309:5: note: include '' or provide a declaration of 'free' goofey.c: In function 'get_message': goofey.c:1372:21: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1372 | exit(0); | ^~~~ goofey.c:1372:21: note: include '' or provide a declaration of 'exit' goofey.c: In function 'check_alloc': goofey.c:1454:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1454 | exit(1); | ^~~~ goofey.c:1454:9: note: include '' or provide a declaration of 'exit' goofey.c: In function 'do_resize': goofey.c:1462:14: error: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] 1462 | *m = realloc(*m,(*l)+x+2); | ^~~~~~~ goofey.c:1462:14: note: include '' or provide a declaration of 'realloc' goofey.c:1462:14: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] goofey.c:1462:14: note: include '' or provide a declaration of 'realloc' goofey.c:1464:14: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1464 | *m = malloc(x+2); | ^~~~~~ goofey.c:1464:14: note: include '' or provide a declaration of 'malloc' *** Error code 1 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/chat/goofey *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/chat/goofey