=> Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for pcemu-1.01anb3 gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c main.c main.c:113:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] void main(int argc, char **argv) ^ main.c:113:1: note: change return type to 'int' void main(int argc, char **argv) ^~~~ int 1 warning generated. gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c cpu.c cpu.c:3608:15: warning: cast to 'void (*)(void)' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] routine = (void (*)(void))dest; ^~~~~~~~~~~~~~~~~~~~ 1 warning generated. gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c bios.c bios.c:169:20: warning: cast to smaller integer type 'unsigned int' from 'void (*)(void)' [-Wpointer-to-int-cast] unsigned loc = (unsigned)routine; ^~~~~~~~~~~~~~~~~ bios.c:531:17: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ bios.c:565:17: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ bios.c:1211:13: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ bios.c:1211:13: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' 4 warnings generated. gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c vga.c vga.c:157:29: warning: implicitly declaring library function 'abs' with type 'int (int)' [-Wimplicit-function-declaration] if (num == 0 || y2-y1 < abs(num)) ^ vga.c:157:29: note: include the header <stdlib.h> or explicitly provide a declaration for 'abs' vga.c:639:5: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memcpy(&memory[0xf0000+VIDEOFUNCTIONALITY], &functionality, sizeof functionality); ^ vga.c:639:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy' 2 warnings generated. gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c vgahard.c vgahard.c:45:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static height, width; /* screen size */ ~~~~~~ ^ vgahard.c:45:16: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static height, width; /* screen size */ ~~~~~~ ^ 2 warnings generated. gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c debugger.c gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c xstuff.c xstuff.c:163:13: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ xstuff.c:163:13: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit' xstuff.c:468:18: warning: result of comparison of constant 256 with expression of type 'unsigned char' is always false [-Wtautological-constant-out-of-range-compare] if(c < ' ' || c >= ' ' + sizeof scan_table1) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c hardware.c gcc -I/opt/pkg/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/pkg/lib/pcemu/DriveA\" -c mfs.c In file included from mfs.c:349: ./mfs.h:26:23: error: typedef redefinition with different types ('unsigned char' vs 'unsigned int') typedef unsigned char boolean_t; ^ /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/mach/i386/boolean.h:71:25: note: previous definition is here typedef unsigned int boolean_t; ^ mfs.c:398:40: warning: '/*' within block comment [-Wcomment] /*#define UNDOCUMENTED_FUNCTION_2 0x25 /* Used in DOS 4.0+ */ ^ mfs.c:429:19: warning: cast to smaller integer type 'u_short' (aka 'unsigned short') from 'void *' [-Wvoid-pointer-to-int-cast] u_short com_psp = (u_short) NULL; ^~~~~~~~~~~~~~ mfs.c:630:39: warning: cast to smaller integer type 'int' from 'cds_t' (aka 'unsigned char *') [-Wpointer-to-int-cast] if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^~~~~~~~~~~~~ ./mfs.h:367:33: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~ ./mfs.h:360:48: note: expanded from macro 'cds_flags_r' #define cds_flags_r(cds) (Read2Bytes(u_short,&cds[cds_flags_off])) ^~~ ./mfs.h:70:39: note: expanded from macro 'Read2Bytes' #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) ^ mfs.c:630:39: warning: cast to 'cds_t' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ~~~~~~~~~~~~^~~~~~~~~~~~~~ ./mfs.h:367:24: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ ./mfs.h:360:48: note: expanded from macro 'cds_flags_r' #define cds_flags_r(cds) (Read2Bytes(u_short,&cds[cds_flags_off])) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./mfs.h:70:39: note: expanded from macro 'Read2Bytes' #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) ^ mfs.c:630:39: warning: cast to smaller integer type 'int' from 'cds_t' (aka 'unsigned char *') [-Wpointer-to-int-cast] if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ^~~~~~~~~~~~~ ./mfs.h:367:33: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~ ./mfs.h:360:48: note: expanded from macro 'cds_flags_r' #define cds_flags_r(cds) (Read2Bytes(u_short,&cds[cds_flags_off])) ^~~ ./mfs.h:70:56: note: expanded from macro 'Read2Bytes' #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) ^ mfs.c:630:39: warning: cast to 'cds_t' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & ~~~~~~~~~~~~^~~~~~~~~~~~~~ ./mfs.h:367:24: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^ ./mfs.h:360:48: note: expanded from macro 'cds_flags_r' #define cds_flags_r(cds) (Read2Bytes(u_short,&cds[cds_flags_off])) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ./mfs.h:70:56: note: expanded from macro 'Read2Bytes' #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) ^ mfs.c:633:7: warning: implicit declaration of function 'calculate_drive_pointers' is invalid in C99 [-Wimplicit-function-declaration] calculate_drive_pointers(dd); ^ mfs.c:643:11: warning: cast to smaller integer type 'int' from 'cds_t' (aka 'unsigned char *') [-Wpointer-to-int-cast] if (drive_cds(dd) == sda_cds) ^~~~~~~~~~~~~ ./mfs.h:367:33: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~ mfs.c:643:11: warning: cast to 'cds_t' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] if (drive_cds(dd) == sda_cds) ^~~~~~~~~~~~~ ./mfs.h:367:24: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mfs.c:651:11: warning: cast to smaller integer type 'int' from 'cds_t' (aka 'unsigned char *') [-Wpointer-to-int-cast] if (drive_cds(dd) == esdi_cds) ^~~~~~~~~~~~~ ./mfs.h:367:33: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~ mfs.c:651:11: warning: cast to 'cds_t' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] if (drive_cds(dd) == esdi_cds) ^~~~~~~~~~~~~ ./mfs.h:367:24: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mfs.c:732:9: warning: cast to smaller integer type 'int' from 'cds_t' (aka 'unsigned char *') [-Wpointer-to-int-cast] cds = drive_cds(current_drive); ^~~~~~~~~~~~~~~~~~~~~~~~ ./mfs.h:367:33: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~ mfs.c:732:9: warning: cast to 'cds_t' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] cds = drive_cds(current_drive); ^~~~~~~~~~~~~~~~~~~~~~~~ ./mfs.h:367:24: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mfs.c:917:13: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] return ((int) NULL); ^~~~~~~~~~ mfs.c:1219:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (cur_ent = dos_readdir(cur_dir)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ mfs.c:1219:20: note: place parentheses around the assignment to silence this warning while (cur_ent = dos_readdir(cur_dir)) { ^ ( ) mfs.c:1219:20: note: use '==' to turn this assignment into an equality comparison while (cur_ent = dos_readdir(cur_dir)) { ^ == mfs.c:1653:9: warning: cast to smaller integer type 'int' from 'cds_t' (aka 'unsigned char *') [-Wpointer-to-int-cast] cds = drive_cds(dd); ^~~~~~~~~~~~~ ./mfs.h:367:33: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~ mfs.c:1653:9: warning: cast to 'cds_t' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] cds = drive_cds(dd); ^~~~~~~~~~~~~ ./mfs.h:367:24: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mfs.c:1951:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (cur_ent = dos_readdir(cur_dir)) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ mfs.c:1951:18: note: place parentheses around the assignment to silence this warning while (cur_ent = dos_readdir(cur_dir)) { ^ ( ) mfs.c:1951:18: note: use '==' to turn this assignment into an equality comparison while (cur_ent = dos_readdir(cur_dir)) { ^ == mfs.c:2441:7: warning: result of comparison of constant 61440 with expression of type 'unsigned char' is always true [-Wtautological-constant-out-of-range-compare] if (IS_REDIRECTED(0x2f)) { ^~~~~~~~~~~~~~~~~~~ ./mfs_link.h:52:46: note: expanded from macro 'IS_REDIRECTED' #define IS_REDIRECTED(i) (memory[(i << 2)+2] != 0xf000) ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~ mfs.c:2489:9: warning: cast to smaller integer type 'int' from 'cds_t' (aka 'unsigned char *') [-Wpointer-to-int-cast] cds = drive_cds(current_drive); ^~~~~~~~~~~~~~~~~~~~~~~~ ./mfs.h:367:33: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~ mfs.c:2489:9: warning: cast to 'cds_t' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] cds = drive_cds(current_drive); ^~~~~~~~~~~~~~~~~~~~~~~~ ./mfs.h:367:24: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mfs.c:2544:9: warning: cast to smaller integer type 'int' from 'cds_t' (aka 'unsigned char *') [-Wpointer-to-int-cast] cds = drive_cds(current_drive); ^~~~~~~~~~~~~~~~~~~~~~~~ ./mfs.h:367:33: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~ mfs.c:2544:9: warning: cast to 'cds_t' (aka 'unsigned char *') from smaller integer type 'int' [-Wint-to-pointer-cast] cds = drive_cds(current_drive); ^~~~~~~~~~~~~~~~~~~~~~~~ ./mfs.h:367:24: note: expanded from macro 'drive_cds' #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mfs.c:3558:46: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] while ((int) hlist_stack_indx != (int) NULL) { ^~~~~~~~~~ 24 warnings and 1 error generated. *** [mfs.o] Error code 1 bmake: stopped in /Users/pbulk/build/emulators/pcemu/work/pcemu1.01alpha 1 error bmake: stopped in /Users/pbulk/build/emulators/pcemu/work/pcemu1.01alpha *** Error code 2 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/emulators/pcemu *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-x86_64/emulators/pcemu