+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pcemu-1.01anb3/work.log + su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pcemu-1.01anb3/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for pcemu-1.01anb3 gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c main.c gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c cpu.c cpu.c: In function 'i_gobios': cpu.c:3608:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3608 | routine = (void (*)(void))dest; | ^ gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c bios.c bios.c: In function 'set_int': bios.c:169:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 169 | unsigned loc = (unsigned)routine; | ^ bios.c: In function 'init_bios': bios.c:1211:13: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 1211 | exit(1); | ^~~~ bios.c:133:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 132 | #include "keytabs.h" +++ |+#include <stdlib.h> 133 | bios.c:1211:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1211 | exit(1); | ^~~~ bios.c:1211:13: note: include '<stdlib.h>' or provide a declaration of 'exit' bios.c:1228:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1228 | exit(1); | ^~~~ bios.c:1228:9: note: include '<stdlib.h>' or provide a declaration of 'exit' bios.c: In function 'set_boot_file': bios.c:1252:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 1252 | exit(1); | ^~~~ bios.c:1252:9: note: include '<stdlib.h>' or provide a declaration of 'exit' gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c vga.c vga.c: In function 'scroll': vga.c:157:29: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration] 157 | if (num == 0 || y2-y1 < abs(num)) | ^~~ vga.c:27:1: note: include '<stdlib.h>' or provide a declaration of 'abs' 26 | #include "hardware.h" +++ |+#include <stdlib.h> 27 | vga.c: In function 'init_vga': vga.c:639:5: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 639 | memcpy(&memory[0xf0000+VIDEOFUNCTIONALITY], &functionality, sizeof functionality); | ^~~~~~ vga.c:27:1: note: include '<string.h>' or provide a declaration of 'memcpy' 26 | #include "hardware.h" +++ |+#include <string.h> 27 | vga.c:639:5: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 639 | memcpy(&memory[0xf0000+VIDEOFUNCTIONALITY], &functionality, sizeof functionality); | ^~~~~~ vga.c:639:5: note: include '<string.h>' or provide a declaration of 'memcpy' gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c vgahard.c vgahard.c:45:8: warning: type defaults to 'int' in declaration of 'height' [-Wimplicit-int] 45 | static height, width; /* screen size */ | ^~~~~~ vgahard.c:45:16: warning: type defaults to 'int' in declaration of 'width' [-Wimplicit-int] 45 | static height, width; /* screen size */ | ^~~~~ gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c debugger.c gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c xstuff.c xstuff.c: In function 'load_font': xstuff.c:163:13: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 163 | exit(1); | ^~~~ xstuff.c:28:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 27 | #include "hardware.h" +++ |+#include <stdlib.h> 28 | xstuff.c:163:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 163 | exit(1); | ^~~~ xstuff.c:163:13: note: include '<stdlib.h>' or provide a declaration of 'exit' xstuff.c: In function 'start_X': xstuff.c:245:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 245 | exit(1); | ^~~~ xstuff.c:245:9: note: include '<stdlib.h>' or provide a declaration of 'exit' xstuff.c:271:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 271 | exit(1); | ^~~~ xstuff.c:271:9: note: include '<stdlib.h>' or provide a declaration of 'exit' xstuff.c:278:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 278 | exit(1); | ^~~~ xstuff.c:278:9: note: include '<stdlib.h>' or provide a declaration of 'exit' gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c hardware.c gcc -I/opt/local/include -O2 -pipe -DBOOT720 -DBIGCASE -DINLINE_FUNCTIONS -DBOOTFILE=\"/opt/local/lib/pcemu/DriveA\" -c mfs.c In file included from mfs.c:349: mfs.h:26:23: error: conflicting types for 'boolean_t'; have 'unsigned char' 26 | typedef unsigned char boolean_t; | ^~~~~~~~~ In file included from /usr/include/sys/machlock.h:31, from /usr/include/sys/t_lock.h:37, from /usr/include/sys/file.h:36, from mfs.c:313: /usr/include/sys/types.h:194:34: note: previous declaration of 'boolean_t' with type 'boolean_t' 194 | typedef enum { B_FALSE, B_TRUE } boolean_t; | ^~~~~~~~~ /usr/include/iso/string_iso.h:78:14: error: expected expression before 'int' 78 | extern char *strerror(int); | ^~~~~~~~ mfs.c:363:11: warning: type defaults to 'int' in declaration of 'mach_fs_enabled' [-Wimplicit-int] 363 | boolean_t mach_fs_enabled = FALSE; | ^~~~~~~~~~~~~~~ mfs.c:412:11: warning: type defaults to 'int' in declaration of 'drives_initialized' [-Wimplicit-int] 412 | boolean_t drives_initialized = FALSE; | ^~~~~~~~~~~~~~~~~~ mfs.c:415:11: warning: type defaults to 'int' in declaration of 'read_onlys' [-Wimplicit-int] 415 | boolean_t read_onlys[MAX_DRIVE]; | ^~~~~~~~~~ mfs.c:416:11: warning: type defaults to 'int' in declaration of 'finds_in_progress' [-Wimplicit-int] 416 | boolean_t finds_in_progress[MAX_DRIVE]; | ^~~~~~~~~~~~~~~~~ mfs.c:417:11: warning: type defaults to 'int' in declaration of 'find_in_progress' [-Wimplicit-int] 417 | boolean_t find_in_progress = FALSE; | ^~~~~~~~~~~~~~~~ mfs.c:422:11: warning: type defaults to 'int' in declaration of 'read_only' [-Wimplicit-int] 422 | boolean_t read_only = FALSE; | ^~~~~~~~~ mfs.c:429:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 429 | u_short com_psp = (u_short) NULL; | ^ mfs.c: In function 'select_drive': mfs.c:547:13: warning: type defaults to 'int' in declaration of 'found' [-Wimplicit-int] 547 | boolean_t found = 0; | ^~~~~ mfs.c:548:13: warning: type defaults to 'int' in declaration of 'check_cds' [-Wimplicit-int] 548 | boolean_t check_cds = FALSE; | ^~~~~~~~~ mfs.c:549:13: warning: type defaults to 'int' in declaration of 'check_dpb' [-Wimplicit-int] 549 | boolean_t check_dpb = FALSE; | ^~~~~~~~~ mfs.c:550:13: warning: type defaults to 'int' in declaration of 'check_esdi_cds' [-Wimplicit-int] 550 | boolean_t check_esdi_cds = FALSE; | ^~~~~~~~~~~~~~ mfs.c:551:13: warning: type defaults to 'int' in declaration of 'check_sda_ffn' [-Wimplicit-int] 551 | boolean_t check_sda_ffn = FALSE; | ^~~~~~~~~~~~~ mfs.c:552:13: warning: type defaults to 'int' in declaration of 'check_always' [-Wimplicit-int] 552 | boolean_t check_always = FALSE; | ^~~~~~~~~~~~ mfs.c:553:13: warning: type defaults to 'int' in declaration of 'check_dssi_fn' [-Wimplicit-int] 553 | boolean_t check_dssi_fn = FALSE; | ^~~~~~~~~~~~~ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.h:70:39: note: in definition of macro 'Read2Bytes' 70 | #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) | ^ mfs.c:630:27: note: in expansion of macro 'cds_flags_r' 630 | if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & | ^~~~~~~~~~~ mfs.c:630:39: note: in expansion of macro 'drive_cds' 630 | if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & | ^~~~~~~~~ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.h:70:39: note: in definition of macro 'Read2Bytes' 70 | #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) | ^ mfs.c:630:27: note: in expansion of macro 'cds_flags_r' 630 | if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & | ^~~~~~~~~~~ mfs.c:630:39: note: in expansion of macro 'drive_cds' 630 | if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & | ^~~~~~~~~ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.h:70:56: note: in definition of macro 'Read2Bytes' 70 | #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) | ^ mfs.c:630:27: note: in expansion of macro 'cds_flags_r' 630 | if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & | ^~~~~~~~~~~ mfs.c:630:39: note: in expansion of macro 'drive_cds' 630 | if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & | ^~~~~~~~~ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.h:70:56: note: in definition of macro 'Read2Bytes' 70 | #define Read2Bytes(t,x) (t)(*(BYTE *)(x) + (*((BYTE *)(x) + 1) << 8)) | ^ mfs.c:630:27: note: in expansion of macro 'cds_flags_r' 630 | if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & | ^~~~~~~~~~~ mfs.c:630:39: note: in expansion of macro 'drive_cds' 630 | if (dos_roots[dd] && (cds_flags_r(drive_cds(dd)) & | ^~~~~~~~~ mfs.c:633:7: warning: implicit declaration of function 'calculate_drive_pointers' [-Wimplicit-function-declaration] 633 | calculate_drive_pointers(dd); | ^~~~~~~~~~~~~~~~~~~~~~~~ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:643:11: note: in expansion of macro 'drive_cds' 643 | if (drive_cds(dd) == sda_cds) | ^~~~~~~~~ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:643:11: note: in expansion of macro 'drive_cds' 643 | if (drive_cds(dd) == sda_cds) | ^~~~~~~~~ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:651:11: note: in expansion of macro 'drive_cds' 651 | if (drive_cds(dd) == esdi_cds) | ^~~~~~~~~ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:651:11: note: in expansion of macro 'drive_cds' 651 | if (drive_cds(dd) == esdi_cds) | ^~~~~~~~~ mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:732:9: note: in expansion of macro 'drive_cds' 732 | cds = drive_cds(current_drive); | ^~~~~~~~~ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:732:9: note: in expansion of macro 'drive_cds' 732 | cds = drive_cds(current_drive); | ^~~~~~~~~ mfs.c: In function 'get_disk_space': mfs.c:782:19: error: storage size of 'fsbuf' isn't known 782 | struct statfs fsbuf; | ^~~~~ mfs.c:786:9: warning: implicit declaration of function 'statfs'; did you mean 'statvfs'? [-Wimplicit-function-declaration] 786 | if (statfs(cwd, &fsbuf) >= 0) | ^~~~~~ | statvfs mfs.c: In function 'init_drive': mfs.c:917:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 917 | return ((int) NULL); | ^ mfs.c:928:15: warning: type defaults to 'int' in declaration of 'find_file' [-Wimplicit-int] 928 | boolean_t find_file(); | ^~~~~~~~~ mfs.c: In function 'mfs_inte6': mfs.c:1005:13: warning: type defaults to 'int' in declaration of 'dos_fs_dev' [-Wimplicit-int] 1005 | boolean_t dos_fs_dev(); | ^~~~~~~~~~ mfs.c:1006:13: warning: type defaults to 'int' in declaration of 'result' [-Wimplicit-int] 1006 | boolean_t result; | ^~~~~~ mfs.c: At top level: mfs.c:1023:1: warning: return type defaults to 'int' [-Wimplicit-int] 1023 | extract_filename(filename, name, ext) | ^~~~~~~~~~~~~~~~ mfs.c: In function 'extract_filename': mfs.c:1030:13: warning: type defaults to 'int' in declaration of 'invalid' [-Wimplicit-int] 1030 | boolean_t invalid; | ^~~~~~~ mfs.c: In function '_get_dir': mfs.c:1178:13: warning: type defaults to 'int' in declaration of 'invalid' [-Wimplicit-int] 1178 | boolean_t invalid; | ^~~~~~~ mfs.c:1186:13: warning: type defaults to 'int' in declaration of 'find_file' [-Wimplicit-int] 1186 | boolean_t find_file(); | ^~~~~~~~~ mfs.c:1187:13: warning: type defaults to 'int' in declaration of 'compare' [-Wimplicit-int] 1187 | boolean_t compare(); | ^~~~~~~ mfs.c: In function 'calculate_drive_pointers': mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:1653:9: note: in expansion of macro 'drive_cds' 1653 | cds = drive_cds(dd); | ^~~~~~~~~ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:1653:9: note: in expansion of macro 'drive_cds' 1653 | cds = drive_cds(dd); | ^~~~~~~~~ mfs.c: At top level: mfs.c:1695:1: warning: return type defaults to 'int' [-Wimplicit-int] 1695 | dos_fs_dev(state) | ^~~~~~~~~~ mfs.c:1935:1: warning: return type defaults to 'int' [-Wimplicit-int] 1935 | scan_dir(char *path, char *name) | ^~~~~~~~ mfs.c:1976:1: warning: return type defaults to 'int' [-Wimplicit-int] 1976 | _find_file(char *fpath, struct stat * st) | ^~~~~~~~~~ mfs.c:2116:1: warning: return type defaults to 'int' [-Wimplicit-int] 2116 | find_file(fpath, st) | ^~~~~~~~~ mfs.c: In function 'find_file': mfs.c:2120:13: warning: type defaults to 'int' in declaration of 'r' [-Wimplicit-int] 2120 | boolean_t r; | ^ mfs.c: At top level: mfs.c:2129:1: warning: return type defaults to 'int' [-Wimplicit-int] 2129 | compare(fname, fext, mname, mext) | ^~~~~~~ mfs.c:2274:1: warning: return type defaults to 'int' [-Wimplicit-int] 2274 | hlist_push(hlist) | ^~~~~~~~~~ mfs.c: In function 'RedirectDevice': mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:2489:9: note: in expansion of macro 'drive_cds' 2489 | cds = drive_cds(current_drive); | ^~~~~~~~~ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:2489:9: note: in expansion of macro 'drive_cds' 2489 | cds = drive_cds(current_drive); | ^~~~~~~~~ mfs.c: In function 'CancelRedirection': mfs.h:367:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:2544:9: note: in expansion of macro 'drive_cds' 2544 | cds = drive_cds(current_drive); | ^~~~~~~~~ mfs.h:367:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 367 | #define drive_cds(dd) ((cds_t)(((int)cds_base)+(cds_record_size*(dd)))) | ^ mfs.c:2544:9: note: in expansion of macro 'drive_cds' 2544 | cds = drive_cds(current_drive); | ^~~~~~~~~ mfs.c: In function 'dos_fs_redirect': mfs.c:3053:34: error: 'O_RDONLY' undeclared (first use in this function); did you mean 'ST_RDONLY'? 3053 | if (read_only && mode != O_RDONLY) { | ^~~~~~~~ | ST_RDONLY mfs.c:3053:34: note: each undeclared identifier is reported only once for each function it appears in mfs.c:3073:20: error: 'O_WRONLY' undeclared (first use in this function) 3073 | mode = O_WRONLY; | ^~~~~~~~ mfs.c:3076:20: error: 'O_RDWR' undeclared (first use in this function); did you mean 'V_RDORWR'? 3076 | mode = O_RDWR; | ^~~~~~ | V_RDORWR mfs.c:3089:23: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 3089 | if ((fd = open("/dev/null", mode)) < 0) { | ^~~~ | popen mfs.c:3212:41: error: 'O_CREAT' undeclared (first use in this function); did you mean 'CRCREAT'? 3212 | if ((fd = open(fpath, (O_RDWR | O_CREAT | O_TRUNC), | ^~~~~~~ | CRCREAT mfs.c:3212:51: error: 'O_TRUNC' undeclared (first use in this function); did you mean 'FTRUNC'? 3212 | if ((fd = open(fpath, (O_RDWR | O_CREAT | O_TRUNC), | ^~~~~~~ | FTRUNC mfs.c:3558:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3558 | while ((int) hlist_stack_indx != (int) NULL) { | ^ mfs.c:3594:19: warning: type defaults to 'int' in declaration of 'file_exists' [-Wimplicit-int] 3594 | boolean_t file_exists; | ^~~~~~~~~~~ *** [mfs.o] Error code 1 bmake: stopped in /home/pbulk/build/emulators/pcemu/work/pcemu1.01alpha 1 error bmake: stopped in /home/pbulk/build/emulators/pcemu/work/pcemu1.01alpha *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/emulators/pcemu *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/emulators/pcemu