WARNING: [license.mk] Every package should define a LICENSE. ===> Building for chipmunk-1.4nb2 gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c control.c control.c:17:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_SIGNALS ^ // In file included from control.c:19: ./commands.h:24:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] typedef (*builtinfn) (); ~~~~~~~ ^ control.c:25:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_UNISTD ^ // control.c:31:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_READLINE ^ // control.c:81:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_CHECK ^ // control.c:93:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_CBREAK ^ // control.c:117:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_BOGUS_USLEEP ^ // control.c:192:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((str[0] == '#') ) {fmt = "%d"; str += 1;} ~~~~~~~^~~~~~ control.c:192:15: note: remove extraneous parentheses around the comparison to silence this warning if ((str[0] == '#') ) {fmt = "%d"; str += 1;} ~ ^ ~~ control.c:192:15: note: use '=' to turn this equality comparison into an assignment if ((str[0] == '#') ) {fmt = "%d"; str += 1;} ^~ = control.c:314:13: warning: cast to 'volatile short *' from smaller integer type 'int' [-Wint-to-pointer-cast] (void) *(volatile short *)(BASE + 0x10000); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:315:9: warning: cast to 'short *' from smaller integer type 'int' [-Wint-to-pointer-cast] p = (short *) a; ^~~~~~~~~~~ control.c:320:17: warning: cast to 'volatile short *' from smaller integer type 'int' [-Wint-to-pointer-cast] (void) *(volatile short *)(BASE + 0x10000); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:342:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_READLINE ^ // control.c:367:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_READLINE ^ // control.c:461:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((Toexecute->next == NULL)) ~~~~~~~~~~~~~~~~^~~~~~~ control.c:461:26: note: remove extraneous parentheses around the comparison to silence this warning if ((Toexecute->next == NULL)) ~ ^ ~ control.c:461:26: note: use '=' to turn this equality comparison into an assignment if ((Toexecute->next == NULL)) ^~ = control.c:644:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_CHECK ^ // control.c:707:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else printf ("\n"); ^ control.c:775:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_ALLOCA ^ // control.c:782:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_ALLOCA ^ // control.c:824:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_CHECK ^ // control.c:825:47: warning: cast to 'unsigned int *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] else if (strcmp (op, "@" ) == 0) result =*(unsigned int *)(BASE+a); ^~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:826:47: warning: cast to 'unsigned short *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] else if (strcmp (op, "@s") == 0) result =*(unsigned short *)(BASE+a); ^~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:827:47: warning: cast to 'unsigned char *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] else if (strcmp (op, "@b") == 0) result =*(unsigned char *)(BASE+a); ^~~~~~~~~~~~~~~~~~~~~~~~~~ control.c:1010:16: warning: variable 'line' set but not used [-Wunused-but-set-variable] unsigned int line; ^ control.c:1148:3: warning: implicit declaration of function 'usleep' is invalid in C99 [-Wimplicit-function-declaration] usleep (n); ^ control.c:1200:22: warning: implicit declaration of function 'getkey' is invalid in C99 [-Wimplicit-function-declaration] keycode = tolower (getkey ());/* chnged to tolower. Rob */ ^ control.c:1415:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_READLINE ^ // control.c:1445:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_SIGNALS ^ // control.c:1478:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_CHECK ^ // control.c:1525:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_READLINE ^ // control.c:1531:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_SIGNALS ^ // control.c:1566:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_SIGNALS ^ // control.c:1587:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_READLINE ^ // 32 warnings generated. gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c fileops.c In file included from fileops.c:15: ./commands.h:24:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] typedef (*builtinfn) (); ~~~~~~~ ^ fileops.c:26:55: warning: implicitly declaring library function 'strerror' with type 'char *(int)' [-Wimplicit-function-declaration] printf ("Cannot open file `%s': %s.\n",argv[1], strerror(errno)); ^ fileops.c:26:55: note: include the header <string.h> or explicitly provide a declaration for 'strerror' fileops.c:32:16: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] s = fread ((void *)a,1,100000000,f); ^~~~~~~~~ fileops.c:58:15: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] n = fwrite ((void *)a,1,s,f); ^~~~~~~~~ 4 warnings generated. gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c memops.c In file included from memops.c:24: ./commands.h:24:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] typedef (*builtinfn) (); ~~~~~~~ ^ memops.c:98:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(int *)a = myatoi (argv[2]); ^~~~~~~~ memops.c:108:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(int *)a &= myatoi (argv[2]); ^~~~~~~~ memops.c:118:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(int *)a |= myatoi (argv[2]); ^~~~~~~~ memops.c:128:4: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(int *)a ^= myatoi (argv[2]); ^~~~~~~~ memops.c:139:4: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(unsigned short *)a = myatoi (argv[2]); ^~~~~~~~~~~~~~~~~~~ memops.c:149:4: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(unsigned short *)a &= myatoi (argv[2]); ^~~~~~~~~~~~~~~~~~~ memops.c:159:4: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(unsigned short *)a |= myatoi (argv[2]); ^~~~~~~~~~~~~~~~~~~ memops.c:169:4: warning: cast to 'unsigned short *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(unsigned short *)a ^= myatoi (argv[2]); ^~~~~~~~~~~~~~~~~~~ memops.c:179:4: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(unsigned char *)a = myatoi (argv[2]); ^~~~~~~~~~~~~~~~~~ memops.c:189:4: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(unsigned char *)a &= myatoi (argv[2]); ^~~~~~~~~~~~~~~~~~ memops.c:199:4: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(unsigned char *)a |= myatoi (argv[2]); ^~~~~~~~~~~~~~~~~~ memops.c:209:4: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] *(unsigned char *)a ^= myatoi (argv[2]); ^~~~~~~~~~~~~~~~~~ memops.c:220:7: warning: cast to 'int *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] p = (int *) (BASE + myatoi (argv[1])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memops.c:235:36: warning: cast to smaller integer type 'int' from 'int *' [-Wpointer-to-int-cast] printf ("Filled upto %08x.\n", (int)p); ^~~~~~ memops.c:245:7: warning: cast to 'int *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] p = (int *) (BASE + myatoi (argv[1])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memops.c:247:7: warning: cast to 'int *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] q = (int *) (BASE + myatoi (argv[3])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memops.c:248:3: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memcpy (q, p, l); ^ memops.c:248:3: note: include the header <string.h> or explicitly provide a declaration for 'memcpy' memops.c:250:56: warning: cast to smaller integer type 'int' from 'int *' [-Wpointer-to-int-cast] printf ("copied %d bytes from %08x to %08x.\n", l, (int)p, (int)q); ^~~~~~ memops.c:250:64: warning: cast to smaller integer type 'int' from 'int *' [-Wpointer-to-int-cast] printf ("copied %d bytes from %08x to %08x.\n", l, (int)p, (int)q); ^~~~~~ memops.c:282:10: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] return (int)p; ^~~~~~ memops.c:289:7: warning: cast to 'void *' from smaller integer type 'unsigned int' [-Wint-to-void-pointer-cast] p = (void *)myatoi (argv[1]); ^~~~~~~~~~~~~~~~~~~~~~~~ memops.c:290:7: warning: cast to smaller integer type 'unsigned int' from 'void *' [-Wvoid-pointer-to-int-cast] if ((unsigned int)p < 4096) { ^~~~~~~~~~~~~~~ memops.c:292:50: warning: cast to smaller integer type 'unsigned int' from 'void *' [-Wvoid-pointer-to-int-cast] printf ("ERR: %08x cannot be a pointer\n", (unsigned int) p); ^~~~~~~~~~~~~~~~ memops.c:306:9: warning: cast to 'unsigned char *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] a = (unsigned char *) (BASE + myatoi (argv[1])); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memops.c:314:23: warning: cast to smaller integer type 'unsigned int' from 'unsigned char *' [-Wpointer-to-int-cast] printf ("%08x ", (unsigned int)a); ^~~~~~~~~~~~~~~ 26 warnings generated. gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c io_ops.c In file included from io_ops.c:10: ./commands.h:24:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] typedef (*builtinfn) (); ~~~~~~~ ^ 1 warning generated. gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c strerror.c gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c memtest.c memtest.c:12:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif STANDALONE ^ // memtest.c:745:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif USE_MEMTEST ^ // 2 warnings generated. gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c tests.c gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c comm960.c In file included from comm960.c:14: ./commands.h:24:11: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] typedef (*builtinfn) (); ~~~~~~~ ^ 1 warning generated. gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c move.c gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c rmove.c gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c sbus.c gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c p555.c p555.c:92:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif INCLUDE_P555 ^ // 1 warning generated. gcc -Wall -O2 -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -c 2051.c gcc -Wall -O2 -I/opt/pkg/include/ncurses -c version.c -o version.o -DMAJOR=1 -DMINOR=4 gcc -L/opt/pkg/lib control.o fileops.o memops.o io_ops.o strerror.o memtest.o tests.o comm960.o move.o rmove.o sbus.o p555.o 2051.o version.o -lreadline -ltermcap -o chipmunk Undefined symbols for architecture arm64: "_getkey", referenced from: _ask in control.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [chipmunk] Error code 1 bmake: stopped making "chipmunk" in /Users/pbulk/build/misc/chipmunk/work/chipmunk-1.4 bmake: 1 error bmake: stopped making "chipmunk" in /Users/pbulk/build/misc/chipmunk/work/chipmunk-1.4 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/chipmunk *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/chipmunk