+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/chipmunk-1.4nb2/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/chipmunk-1.4nb2/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for chipmunk-1.4nb2 --- control.o --- --- fileops.o --- --- control.o --- gcc -Wall -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include -I/usr/pkg/include/ncurses -c control.c --- fileops.o --- gcc -Wall -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include -I/usr/pkg/include/ncurses -c fileops.c --- control.o --- control.c:17:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 17 | #endif USE_SIGNALS | ^~~~~~~~~~~ In file included from control.c:19: commands.h:24:11: warning: type defaults to 'int' in declaration of 'builtinfn' [-Wimplicit-int] 24 | typedef (*builtinfn) (); | ^~~~~~~~~ commands.h:97:13: warning: conflicting types for built-in function 'log'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 97 | D("log", log, "log session to a file","fn") | ^~~ commands.h:17:25: note: in definition of macro 'D' 17 | # define D(a,b,c,d) int b (int argc,char **argv); | ^ commands.h:1:1: note: 'log' is declared in header '<math.h>' +++ |+#include <math.h> 1 | #if 0 --- fileops.o --- In file included from fileops.c:15: commands.h:24:11: warning: type defaults to 'int' in declaration of 'builtinfn' [-Wimplicit-int] 24 | typedef (*builtinfn) (); | ^~~~~~~~~ commands.h:97:13: warning: conflicting types for built-in function 'log'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 97 | D("log", log, "log session to a file","fn") | ^~~ commands.h:17:25: note: in definition of macro 'D' 17 | # define D(a,b,c,d) int b (int argc,char **argv); | ^ commands.h:1:1: note: 'log' is declared in header '<math.h>' +++ |+#include <math.h> 1 | #if 0 fileops.c: In function 'load': fileops.c:26:55: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration] 26 | printf ("Cannot open file `%s': %s.\n",argv[1], strerror(errno)); | ^~~~~~~~ | perror fileops.c:26:40: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 26 | printf ("Cannot open file `%s': %s.\n",argv[1], strerror(errno)); | ~^ ~~~~~~~~~~~~~~~ | | | | char * int | %d fileops.c:32:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 32 | s = fread ((void *)a,1,100000000,f); | ^ fileops.c: In function 'save': fileops.c:55:38: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 55 | printf ("Cannot open file `%s': %s.\n",argv[1], strerror(errno)); | ~^ ~~~~~~~~~~~~~~~ | | | | char * int | %d fileops.c:58:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 58 | n = fwrite ((void *)a,1,s,f); | ^ --- control.o --- control.c:25:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 25 | #endif USE_UNISTD | ^~~~~~~~~~ control.c:31:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 31 | #endif USE_READLINE | ^~~~~~~~~~~~ control.c:81:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 81 | #endif USE_CHECK | ^~~~~~~~~ control.c:93:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 93 | #endif USE_CBREAK | ^~~~~~~~~~ control.c:117:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 117 | #endif USE_BOGUS_USLEEP | ^~~~~~~~~~~~~~~~ control.c: In function 'pmt': control.c:314:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 314 | (void) *(volatile short *)(BASE + 0x10000); | ^ control.c:315:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 315 | p = (short *) a; | ^ control.c:320:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 320 | (void) *(volatile short *)(BASE + 0x10000); | ^ control.c: In function 'macdef': control.c:342:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 342 | #endif USE_READLINE | ^~~~~~~~~~~~ control.c:367:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 367 | #endif USE_READLINE | ^~~~~~~~~~~~ control.c: In function 'set': control.c:644:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 644 | #endif USE_CHECK | ^~~~~~~~~ control.c: In function 'echo': control.c:705:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 705 | if (VERBOSE >= 0) | ^ control.c: In function 'autoload': control.c:775:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 775 | #endif USE_ALLOCA | ^~~~~~~~~~ control.c:782:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 782 | #endif USE_ALLOCA | ^~~~~~~~~~ control.c: In function 'evalexp': control.c:824:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 824 | #endif USE_CHECK | ^~~~~~~~~ control.c:825:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 825 | else if (strcmp (op, "@" ) == 0) result =*(unsigned int *)(BASE+a); | ^ control.c:826:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 826 | else if (strcmp (op, "@s") == 0) result =*(unsigned short *)(BASE+a); | ^ control.c:827:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 827 | else if (strcmp (op, "@b") == 0) result =*(unsigned char *)(BASE+a); | ^ control.c: In function 'do_endwhile': control.c:1010:16: warning: variable 'line' set but not used [-Wunused-but-set-variable] 1010 | unsigned int line; | ^~~~ control.c: In function 'initialize_readline': control.c:1258:3: warning: 'Function' is deprecated [-Wdeprecated-declarations] 1258 | rl_completion_entry_function=(Function *)dummy_filename_completion_function; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:1258:31: warning: assignment to 'char * (*)(const char *, int)' from incompatible pointer type 'int (*)()' [-Wincompatible-pointer-types] 1258 | rl_completion_entry_function=(Function *)dummy_filename_completion_function; | ^ control.c:1259:3: warning: 'Function' is deprecated [-Wdeprecated-declarations] 1259 | rl_attempted_completion_function = (Function *)completion; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:1259:36: warning: assignment to 'char ** (*)(const char *, int, int)' from incompatible pointer type 'int (*)()' [-Wincompatible-pointer-types] 1259 | rl_attempted_completion_function = (Function *)completion; | ^ control.c: In function 'completion': control.c:1281:15: warning: implicit declaration of function 'completion_matches'; did you mean 'rl_completion_matches'? [-Wimplicit-function-declaration] 1281 | matches = completion_matches (text, command_name_generator); | ^~~~~~~~~~~~~~~~~~ | rl_completion_matches control.c:1281:13: warning: assignment to 'char **' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1281 | matches = completion_matches (text, command_name_generator); | ^ control.c:1284:13: warning: assignment to 'char **' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1284 | matches = completion_matches (text, variable_name_generator); | ^ control.c:1291:13: warning: assignment to 'char **' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1291 | matches = completion_matches (text, variable_name_generator); | ^ control.c:1295:13: warning: assignment to 'char **' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1295 | matches = completion_matches (text, command_name_generator); | ^ control.c:1300:13: warning: assignment to 'char **' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1300 | matches = completion_matches (text, macro_name_generator); | ^ control.c:1305:13: warning: assignment to 'char **' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1305 | matches = completion_matches (text, file_name_generator); | ^ control.c: At top level: control.c:1415:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1415 | #endif USE_READLINE | ^~~~~~~~~~~~ In file included from control.c:12: control.c: In function 'intsig': config.h:40:31: error: 'SignalHandler' undeclared (first use in this function); did you mean 'sa_handler'? 40 | #define SIGNAL_FUNCTION_CAST (SignalHandler) | ^~~~~~~~~~~~~ control.c:1424:20: note: in expansion of macro 'SIGNAL_FUNCTION_CAST' 1424 | signal (SIGINT, SIGNAL_FUNCTION_CAST intsig); | ^~~~~~~~~~~~~~~~~~~~ config.h:40:31: note: each undeclared identifier is reported only once for each function it appears in 40 | #define SIGNAL_FUNCTION_CAST (SignalHandler) | ^~~~~~~~~~~~~ control.c:1424:20: note: in expansion of macro 'SIGNAL_FUNCTION_CAST' 1424 | signal (SIGINT, SIGNAL_FUNCTION_CAST intsig); | ^~~~~~~~~~~~~~~~~~~~ control.c:1424:41: error: expected ')' before 'intsig' 1424 | signal (SIGINT, SIGNAL_FUNCTION_CAST intsig); | ~ ^~~~~~ control.c:1425:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1425 | #endif SYSV_SIGNALS | ^~~~~~~~~~~~ --- memops.o --- --- control.o --- In file included from control.c:12: control.c: In function 'bussig': config.h:40:31: error: 'SignalHandler' undeclared (first use in this function); did you mean 'sa_handler'? 40 | #define SIGNAL_FUNCTION_CAST (SignalHandler) | ^~~~~~~~~~~~~ control.c:1432:20: note: in expansion of macro 'SIGNAL_FUNCTION_CAST' 1432 | signal (SIGBUS, SIGNAL_FUNCTION_CAST bussig); | ^~~~~~~~~~~~~~~~~~~~ --- memops.o --- gcc -Wall -O2 -I/usr/pkg/include -I/usr/pkg/include/ncurses -I/usr/pkg/include -I/usr/pkg/include/ncurses -c memops.c --- control.o --- control.c:1432:41: error: expected ')' before 'bussig' 1432 | signal (SIGBUS, SIGNAL_FUNCTION_CAST bussig); | ~ ^~~~~~ control.c:1433:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1433 | #endif SYSV_SIGNALS | ^~~~~~~~~~~~ In file included from control.c:12: control.c: In function 'segvsig': config.h:40:31: error: 'SignalHandler' undeclared (first use in this function); did you mean 'sa_handler'? 40 | #define SIGNAL_FUNCTION_CAST (SignalHandler) | ^~~~~~~~~~~~~ control.c:1440:20: note: in expansion of macro 'SIGNAL_FUNCTION_CAST' 1440 | signal (SIGSEGV, SIGNAL_FUNCTION_CAST segvsig); | ^~~~~~~~~~~~~~~~~~~~ control.c:1440:41: error: expected ')' before 'segvsig' 1440 | signal (SIGSEGV, SIGNAL_FUNCTION_CAST segvsig); | ~ ^~~~~~~ control.c:1441:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1441 | #endif SYSV_SIGNALS | ^~~~~~~~~~~~ control.c: At top level: control.c:1445:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1445 | #endif USE_SIGNALS | ^~~~~~~~~~~ control.c: In function 'eval_expression': control.c:1478:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1478 | #endif USE_CHECK | ^~~~~~~~~ control.c: In function 'main': control.c:1525:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1525 | #endif USE_READLINE | ^~~~~~~~~~~~ In file included from control.c:12: config.h:40:31: error: 'SignalHandler' undeclared (first use in this function); did you mean 'sa_handler'? 40 | #define SIGNAL_FUNCTION_CAST (SignalHandler) | ^~~~~~~~~~~~~ control.c:1528:20: note: in expansion of macro 'SIGNAL_FUNCTION_CAST' 1528 | signal (SIGINT, SIGNAL_FUNCTION_CAST intsig); | ^~~~~~~~~~~~~~~~~~~~ control.c:1528:41: error: expected ')' before 'intsig' 1528 | signal (SIGINT, SIGNAL_FUNCTION_CAST intsig); | ~ ^~~~~~ control.c:1529:41: error: expected ')' before 'bussig' 1529 | signal (SIGBUS, SIGNAL_FUNCTION_CAST bussig); | ~ ^~~~~~ control.c:1530:41: error: expected ')' before 'segvsig' 1530 | signal (SIGSEGV, SIGNAL_FUNCTION_CAST segvsig); | ~ ^~~~~~~ control.c:1531:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1531 | #endif USE_SIGNALS | ^~~~~~~~~~~ control.c:1566:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1566 | #endif USE_SIGNALS | ^~~~~~~~~~~ control.c:1587:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 1587 | #endif USE_READLINE | ^~~~~~~~~~~~ control.c: In function 'getkey': control.c:88:3: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 88 | system ("stty cbreak"); | ^~~~~~~~~~~~~~~~~~~~~~ control.c:89:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 89 | read (0, &t, 1); | ^~~~~~~~~~~~~~~ control.c:90:3: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 90 | system ("stty -cbreak"); | ^~~~~~~~~~~~~~~~~~~~~~~ control.c: In function 'autoload': control.c:765:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 765 | fgets (line,80,f) ; | ^~~~~~~~~~~~~~~~~ *** [control.o] Error code 1 bmake: stopped making "chipmunk" in /home/pbulk/build/misc/chipmunk/work/chipmunk-1.4 --- memops.o --- In file included from memops.c:24: commands.h:24:11: warning: type defaults to 'int' in declaration of 'builtinfn' [-Wimplicit-int] 24 | typedef (*builtinfn) (); | ^~~~~~~~~ commands.h:97:13: warning: conflicting types for built-in function 'log'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 97 | D("log", log, "log session to a file","fn") | ^~~ commands.h:17:25: note: in definition of macro 'D' 17 | # define D(a,b,c,d) int b (int argc,char **argv); | ^ commands.h:1:1: note: 'log' is declared in header '<math.h>' +++ |+#include <math.h> 1 | #if 0 memops.c: In function 'poke': memops.c:98:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 98 | *(int *)a = myatoi (argv[2]); | ^ memops.c: In function 'and': memops.c:108:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 108 | *(int *)a &= myatoi (argv[2]); | ^ memops.c: In function 'or': memops.c:118:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 118 | *(int *)a |= myatoi (argv[2]); | ^ memops.c: In function 'xor': memops.c:128:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 128 | *(int *)a ^= myatoi (argv[2]); | ^ memops.c: In function 'pokes': memops.c:139:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 139 | *(unsigned short *)a = myatoi (argv[2]); | ^ memops.c: In function 'ands': memops.c:149:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 149 | *(unsigned short *)a &= myatoi (argv[2]); | ^ memops.c: In function 'ors': memops.c:159:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 159 | *(unsigned short *)a |= myatoi (argv[2]); | ^ memops.c: In function 'xors': memops.c:169:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 169 | *(unsigned short *)a ^= myatoi (argv[2]); | ^ memops.c: In function 'pokeb': memops.c:179:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 179 | *(unsigned char *)a = myatoi (argv[2]); | ^ memops.c: In function 'andb': memops.c:189:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 189 | *(unsigned char *)a &= myatoi (argv[2]); | ^ memops.c: In function 'orb': memops.c:199:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 199 | *(unsigned char *)a |= myatoi (argv[2]); | ^ memops.c: In function 'xorb': memops.c:209:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 209 | *(unsigned char *)a ^= myatoi (argv[2]); | ^ memops.c: In function 'fill': memops.c:220:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 220 | p = (int *) (BASE + myatoi (argv[1])); | ^ memops.c:235:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 235 | printf ("Filled upto %08x.\n", (int)p); | ^ memops.c: In function 'do_memcpy': memops.c:245:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 245 | p = (int *) (BASE + myatoi (argv[1])); | ^ memops.c:247:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 247 | q = (int *) (BASE + myatoi (argv[3])); | ^ memops.c:248:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 248 | memcpy (q, p, l); | ^~~~~~ memops.c:26:1: note: include '<string.h>' or provide a declaration of 'memcpy' 25 | #include "chipmunk.h" +++ |+#include <string.h> 26 | memops.c:248:3: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 248 | memcpy (q, p, l); | ^~~~~~ memops.c:248:3: note: include '<string.h>' or provide a declaration of 'memcpy' memops.c:250:56: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 250 | printf ("copied %d bytes from %08x to %08x.\n", l, (int)p, (int)q); | ^ memops.c:250:64: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 250 | printf ("copied %d bytes from %08x to %08x.\n", l, (int)p, (int)q); | ^ memops.c: In function 'domemmap': memops.c:271:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 271 | return (int)p; | ^ memops.c: In function 'domalloc': memops.c:282:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 282 | return (int)p; | ^ memops.c: In function 'dofree': memops.c:289:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 289 | p = (void *)myatoi (argv[1]); | ^ memops.c:290:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 290 | if ((unsigned int)p < 4096) { | ^ memops.c:292:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 292 | printf ("ERR: %08x cannot be a pointer\n", (unsigned int) p); | ^ memops.c: In function 'dump': memops.c:306:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 306 | a = (unsigned char *) (BASE + myatoi (argv[1])); | ^ memops.c:314:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 314 | printf ("%08x ", (unsigned int)a); | ^ bmake: 1 error bmake: stopped making "chipmunk" in /home/pbulk/build/misc/chipmunk/work/chipmunk-1.4 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/misc/chipmunk *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/misc/chipmunk