+ 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/hdl-dump-20200727/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/hdl-dump-20200727/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for hdl-dump-20200727
	DEP hdl_dump.c
	DEP apa.c
	DEP common.c
	DEP progress.c
	DEP hdl.c
	DEP isofs.c
	DEP aligned.c
	DEP iin_img_base.c
	DEP iin_optical.c
	DEP iin_iso.c
	DEP iin_cdrwin.c
	DEP iin_nero.c
	DEP iin_gi.c
	DEP iin_iml.c
	DEP iin_probe.c
	DEP iin_hio.c
	DEP hio_probe.c
	DEP hio_win32.c
	DEP hio_dbg.c
	DEP hio_trace.c
	DEP net_common.c
	DEP byteseq.c
	DEP dict.c
	DEP hio_udpnet2.c
	DEP osal_unix.c
	DEP thd_iin.c
	CC  hdl_dump.c
In file included from hdl_dump.c:40:
byteseq.h:31:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   31 | u_int32_t get_u32 (const void *buffer);
      | ^~~~~~~~~
      | uint32_t
byteseq.h:32:39: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   32 | void set_u32 (/*@out@*/ void *buffer, u_int32_t val);
      |                                       ^~~~~~~~~
      |                                       uint32_t
byteseq.h:34:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'?
   34 | u_int16_t get_u16 (const void *buffer);
      | ^~~~~~~~~
      | uint16_t
byteseq.h:35:39: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'?
   35 | void set_u16 (/*@out@*/ void *buffer, u_int16_t val);
      |                                       ^~~~~~~~~
      |                                       uint16_t
byteseq.h:37:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
   37 | u_int8_t get_u8 (const void *buffer);
      | ^~~~~~~~
      | uint8_t
byteseq.h:38:38: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
   38 | void set_u8 (/*@out@*/ void *buffer, u_int8_t val);
      |                                      ^~~~~~~~
      |                                      uint8_t
In file included from hdl_dump.c:42:
osal.h:88:23: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   88 |                       u_int64_t estimated_size) /*@allocates handle@*/ /*@defines *handle@*/;
      |                       ^~~~~~~~~
      |                       uint64_t
osal.h:91:47: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   91 |                                     /*@out@*/ u_int64_t *size_in_bytes);
      |                                               ^~~~~~~~~
      |                                               uint64_t
osal.h:94:37: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   94 |                           /*@out@*/ u_int64_t *size_in_bytes);
      |                                     ^~~~~~~~~
      |                                     uint64_t
osal.h:97:42: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   97 |                                /*@out@*/ u_int32_t *size_in_bytes);
      |                                          ^~~~~~~~~
      |                                          uint32_t
osal.h:100:42: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  100 |                                /*@out@*/ u_int32_t *size_in_bytes);
      |                                          ^~~~~~~~~
      |                                          uint32_t
osal.h:103:38: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  103 |                            /*@out@*/ u_int64_t *size_in_bytes);
      |                                      ^~~~~~~~~
      |                                      uint64_t
osal.h:106:35: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  106 |                         /*@out@*/ u_int64_t *size_in_bytes);
      |                                   ^~~~~~~~~
      |                                   uint64_t
osal.h:109:16: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  109 |                u_int64_t abs_pos);
      |                ^~~~~~~~~
      |                uint64_t
osal.h:113:16: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  113 |                u_int32_t bytes,
      |                ^~~~~~~~~
      |                uint32_t
osal.h:114:26: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  114 |                /*@out@*/ u_int32_t *stored);
      |                          ^~~~~~~~~
      |                          uint32_t
osal.h:118:17: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  118 |                 u_int32_t bytes,
      |                 ^~~~~~~~~
      |                 uint32_t
osal.h:119:27: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  119 |                 /*@out@*/ u_int32_t *stored);
      |                           ^~~~~~~~~
      |                           uint32_t
osal.h:124:55: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  124 | /*@special@*/ /*@only@*/ /*@null@*/ void* osal_alloc (u_int32_t bytes) /*@allocates result@*/;
      |                                                       ^~~~~~~~~
      |                                                       uint32_t
osal.h:134:16: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  134 |                u_int64_t offset,
      |                ^~~~~~~~~
      |                uint64_t
osal.h:135:16: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  135 |                u_int32_t length) /*@allocates *mm@*/ /*@defines *mm@*/;
      |                ^~~~~~~~~
      |                uint32_t
osal.h:145:3: error: unknown type name 'u_int64_t'
  145 |   u_int64_t capacity; /* -1 if not ready */
      |   ^~~~~~~~~
osal.h:152:3: error: unknown type name 'u_int32_t'
  152 |   u_int32_t allocated, used;
      |   ^~~~~~~~~
In file included from apa.h:28,
                 from hdl_dump.c:43:
ps2_hdd.h:32:3: error: unknown type name 'u_int8_t'
   32 |   u_int8_t unused;
      |   ^~~~~~~~
ps2_hdd.h:33:3: error: unknown type name 'u_int8_t'
   33 |   u_int8_t sec;
      |   ^~~~~~~~
ps2_hdd.h:34:3: error: unknown type name 'u_int8_t'
   34 |   u_int8_t min;
      |   ^~~~~~~~
ps2_hdd.h:35:3: error: unknown type name 'u_int8_t'
   35 |   u_int8_t hour;
      |   ^~~~~~~~
ps2_hdd.h:36:3: error: unknown type name 'u_int8_t'
   36 |   u_int8_t day;
      |   ^~~~~~~~
ps2_hdd.h:37:3: error: unknown type name 'u_int8_t'
   37 |   u_int8_t month;
      |   ^~~~~~~~
ps2_hdd.h:38:3: error: unknown type name 'u_int16_t'
   38 |   u_int16_t year;
      |   ^~~~~~~~~
ps2_hdd.h:44:3: error: unknown type name 'u_int32_t'
   44 |   u_int32_t checksum;   /* Sum of all 256 words, assuming checksum==0 */
      |   ^~~~~~~~~
ps2_hdd.h:45:3: error: unknown type name 'u_int8_t'
   45 |   u_int8_t magic [4];   /* PS2_PARTITION_MAGIC */
      |   ^~~~~~~~
ps2_hdd.h:46:3: error: unknown type name 'u_int32_t'
   46 |   u_int32_t next;       /* Sector address of next partition */
      |   ^~~~~~~~~
ps2_hdd.h:47:3: error: unknown type name 'u_int32_t'
   47 |   u_int32_t prev;       /* Sector address of previous partition */
      |   ^~~~~~~~~
ps2_hdd.h:50:3: error: unknown type name 'u_int32_t'
   50 |   u_int32_t start;      /* Sector address of this partition */
      |   ^~~~~~~~~
ps2_hdd.h:51:3: error: unknown type name 'u_int32_t'
   51 |   u_int32_t length;     /* Sector count */
      |   ^~~~~~~~~
ps2_hdd.h:52:3: error: unknown type name 'u_int16_t'
   52 |   u_int16_t type;
      |   ^~~~~~~~~
ps2_hdd.h:53:3: error: unknown type name 'u_int16_t'
   53 |   u_int16_t flags;      /* PS2_PART_FLAG_* */
      |   ^~~~~~~~~
ps2_hdd.h:54:3: error: unknown type name 'u_int32_t'
   54 |   u_int32_t nsub;       /* No. of sub-partitions (stored in main partition) */
      |   ^~~~~~~~~
ps2_hdd.h:56:3: error: unknown type name 'u_int32_t'
   56 |   u_int32_t main;       /* For sub-partitions, main partition sector address */
      |   ^~~~~~~~~
ps2_hdd.h:57:3: error: unknown type name 'u_int32_t'
   57 |   u_int32_t number;     /* For sub-partitions, sub-partition number */
      |   ^~~~~~~~~
ps2_hdd.h:58:3: error: unknown type name 'u_int16_t'
   58 |   u_int16_t unknown2;
      |   ^~~~~~~~~
ps2_hdd.h:67:5: error: unknown type name 'u_int32_t'
   67 |     u_int32_t data_start;       /* Some sort of MBR data; position in sectors*/
      |     ^~~~~~~~~
ps2_hdd.h:68:5: error: unknown type name 'u_int32_t'
   68 |     u_int32_t data_len; /* Length also in sectors */
      |     ^~~~~~~~~
ps2_hdd.h:74:5: error: unknown type name 'u_int32_t'
   74 |     u_int32_t boot_elf_installed;
      |     ^~~~~~~~~
ps2_hdd.h:75:5: error: unknown type name 'u_int32_t'
   75 |     u_int32_t boot_elf_lba;
      |     ^~~~~~~~~
ps2_hdd.h:76:5: error: unknown type name 'u_int32_t'
   76 |     u_int32_t boot_elf_byte_size;
      |     ^~~~~~~~~
ps2_hdd.h:77:5: error: unknown type name 'u_int32_t'
   77 |     u_int32_t boot_elf_checksum;
      |     ^~~~~~~~~
ps2_hdd.h:78:5: error: unknown type name 'u_int32_t'
   78 |     u_int32_t boot_elf_virtual_addr;
      |     ^~~~~~~~~
ps2_hdd.h:79:5: error: unknown type name 'u_int32_t'
   79 |     u_int32_t boot_elf_start_addr;
      |     ^~~~~~~~~
ps2_hdd.h:82:5: error: unknown type name 'u_int32_t'
   82 |     u_int32_t toxic_flags;
      |     ^~~~~~~~~
ps2_hdd.h:86:5: error: unknown type name 'u_int32_t'
   86 |     u_int32_t start;/* Sector address */
      |     ^~~~~~~~~
ps2_hdd.h:87:5: error: unknown type name 'u_int32_t'
   87 |     u_int32_t length;/* Sector count */
      |     ^~~~~~~~~
In file included from apa.h:30:
hio.h:42:38: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   42 |                            /*@out@*/ u_int32_t *size_in_kb);
      |                                      ^~~~~~~~~
      |                                      uint32_t
hio.h:45:28: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   45 |                            u_int32_t start_sector,
      |                            ^~~~~~~~~
      |                            uint32_t
hio.h:46:28: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   46 |                            u_int32_t num_sectors,
      |                            ^~~~~~~~~
      |                            uint32_t
hio.h:48:38: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   48 |                            /*@out@*/ u_int32_t *bytes);
      |                                      ^~~~~~~~~
      |                                      uint32_t
hio.h:51:29: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   51 |                             u_int32_t start_sector,
      |                             ^~~~~~~~~
      |                             uint32_t
hio.h:52:29: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   52 |                             u_int32_t num_sectors,
      |                             ^~~~~~~~~
      |                             uint32_t
hio.h:54:39: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   54 |                             /*@out@*/ u_int32_t *bytes);
      |                                       ^~~~~~~~~
      |                                       uint32_t
hio.h:70:3: error: unknown type name 'hio_stat_t'
   70 |   hio_stat_t stat;
      |   ^~~~~~~~~~
hio.h:71:3: error: unknown type name 'hio_read_t'
   71 |   hio_read_t read;
      |   ^~~~~~~~~~
hio.h:72:3: error: unknown type name 'hio_write_t'
   72 |   hio_write_t write;
      |   ^~~~~~~~~~~
apa.h:55:3: error: unknown type name 'u_int32_t'
   55 |   u_int32_t size_in_mb;
      |   ^~~~~~~~~
apa.h:57:3: error: unknown type name 'u_int32_t'
   57 |   u_int32_t total_chunks;
      |   ^~~~~~~~~
apa.h:58:3: error: unknown type name 'u_int32_t'
   58 |   u_int32_t allocated_chunks;
      |   ^~~~~~~~~
apa.h:59:3: error: unknown type name 'u_int32_t'
   59 |   u_int32_t free_chunks;
      |   ^~~~~~~~~
apa.h:63:3: error: unknown type name 'u_int32_t'
   63 |   u_int32_t part_alloc_;
      |   ^~~~~~~~~
apa.h:64:3: error: unknown type name 'u_int32_t'
   64 |   u_int32_t part_count;
      |   ^~~~~~~~~
apa.h:70:3: error: unknown type name 'u_int32_t'
   70 |   u_int32_t size_in_kb;
      |   ^~~~~~~~~
apa.h:79:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   79 | u_int32_t apa_partition_checksum (const ps2_partition_header_t *part);
      | ^~~~~~~~~
      | uint32_t
apa.h:95:35: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   95 |                         /*@out@*/ u_int32_t *partition_index);
      |                                   ^~~~~~~~~
      |                                   uint32_t
apa.h:100:25: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  100 |                         u_int32_t size_in_mb,
      |                         ^~~~~~~~~
      |                         uint32_t
apa.h:102:35: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  102 |                         /*@out@*/ u_int32_t *new_partition_start,
      |                                   ^~~~~~~~~
      |                                   uint32_t
In file included from common.h:30,
                 from hdl_dump.c:44:
progress.h:55:1: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   55 | u_int64_t highres_time_val (const highres_time_t *cl);
      | ^~~~~~~~~
      | uint64_t
progress.h:66:3: error: unknown type name 'u_int64_t'
   66 |   u_int64_t start_, elapsed_;  /* highres_time_val */
      |   ^~~~~~~~~
progress.h:67:3: error: unknown type name 'u_int64_t'
   67 |   u_int64_t offset_; /* of the current block, absolute */
      |   ^~~~~~~~~
progress.h:75:5: error: unknown type name 'u_int32_t'
   75 |     u_int32_t how_much;
      |     ^~~~~~~~~
progress.h:76:5: error: unknown type name 'u_int64_t'
   76 |     u_int64_t when; /* highres_time_val */
      |     ^~~~~~~~~
progress.h:78:3: error: unknown type name 'u_int32_t'
   78 |   u_int32_t hist_pos_;
      |   ^~~~~~~~~
progress.h:79:3: error: unknown type name 'u_int64_t'
   79 |   u_int64_t hist_sum_; /* = select sum (how_much) from history_ */
      |   ^~~~~~~~~
progress.h:85:3: error: unknown type name 'u_int64_t'
   85 |   u_int64_t total, curr; /* in bytes */
      |   ^~~~~~~~~
progress.h:99:19: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   99 |                   u_int64_t total);
      |                   ^~~~~~~~~
      |                   uint64_t
progress.h:104:17: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  104 |                 u_int64_t curr);
      |                 ^~~~~~~~~
      |                 uint64_t
In file included from common.h:31:
iin.h:46:38: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   46 |                            /*@out@*/ u_int32_t *sector_size,
      |                                      ^~~~~~~~~
      |                                      uint32_t
iin.h:47:38: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   47 |                            /*@out@*/ u_int32_t *num_sectors);
      |                                      ^~~~~~~~~
      |                                      uint32_t
iin.h:52:28: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   52 |                            u_int32_t start_sector,
      |                            ^~~~~~~~~
      |                            uint32_t
iin.h:53:28: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   53 |                            u_int32_t num_sectors,
      |                            ^~~~~~~~~
      |                            uint32_t
iin.h:55:38: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   55 |                            /*@out@*/ u_int32_t *length);
      |                                      ^~~~~~~~~
      |                                      uint32_t
iin.h:67:3: error: unknown type name 'iin_stat_t'
   67 |   iin_stat_t stat;
      |   ^~~~~~~~~~
iin.h:68:3: error: unknown type name 'iin_read_t'
   68 |   iin_read_t read;
      |   ^~~~~~~~~~
In file included from common.h:33:
hdl.h:46:3: error: unknown type name 'u_int32_t'
   46 |   u_int32_t layer_break;
      |   ^~~~~~~~~
hdl.h:58:3: error: unknown type name 'u_int32_t'
   58 |   u_int32_t start_sector;
      |   ^~~~~~~~~
hdl.h:59:3: error: unknown type name 'u_int32_t'
   59 |   u_int32_t raw_size_in_kb;
      |   ^~~~~~~~~
hdl.h:60:3: error: unknown type name 'u_int32_t'
   60 |   u_int32_t alloc_size_in_kb;
      |   ^~~~~~~~~
hdl.h:65:3: error: unknown type name 'u_int32_t'
   65 |   u_int32_t count;
      |   ^~~~~~~~~
hdl.h:67:3: error: unknown type name 'u_int32_t'
   67 |   u_int32_t total_chunks;
      |   ^~~~~~~~~
hdl.h:68:3: error: unknown type name 'u_int32_t'
   68 |   u_int32_t free_chunks;
      |   ^~~~~~~~~
hdl.h:110:3: error: unknown type name 'u_int32_t'
  110 |   u_int32_t count;
      |   ^~~~~~~~~
hdl.h:111:3: error: unknown type name 'u_int32_t'
  111 |   u_int32_t size_in_kb;
      |   ^~~~~~~~~
hdl.h:114:5: error: unknown type name 'u_int32_t'
  114 |     u_int32_t start, len;
      |     ^~~~~~~~~
hdl.h:121:32: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  121 |                                u_int32_t partition_index,
      |                                ^~~~~~~~~
      |                                uint32_t
hdl.h:127:22: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  127 |                      u_int32_t starting_partition_sector,
      |                      ^~~~~~~~~
      |                      uint32_t
hdl.h:135:22: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  135 |                      u_int32_t starting_partition_sector);
      |                      ^~~~~~~~~
      |                      uint32_t
common.h:54:16: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   54 |                u_int64_t bytes,
      |                ^~~~~~~~~
      |                uint64_t
common.h:55:16: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   55 |                u_int32_t buff_size,
      |                ^~~~~~~~~
      |                uint32_t
common.h:61:26: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   61 |                /*@out@*/ u_int32_t *len);
      |                          ^~~~~~~~~
      |                          uint32_t
common.h:65:17: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   65 |                 u_int32_t len);
      |                 ^~~~~~~~~
      |                 uint32_t
common.h:70:18: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   70 |                  u_int64_t max_size,
      |                  ^~~~~~~~~
      |                  uint64_t
common.h:84:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   84 |               u_int32_t start_sector,
      |               ^~~~~~~~~
      |               uint32_t
common.h:85:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   85 |               u_int32_t num_sectors,
      |               ^~~~~~~~~
      |               uint32_t
common.h:90:18: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   90 |                  u_int32_t input_start_sector,
      |                  ^~~~~~~~~
      |                  uint32_t
common.h:91:18: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   91 |                  u_int32_t output_start_sector,
      |                  ^~~~~~~~~
      |                  uint32_t
common.h:92:18: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   92 |                  u_int32_t num_sectors,
      |                  ^~~~~~~~~
      |                  uint32_t
In file included from hdl_dump.c:47:
isofs.h:42:3: error: unknown type name 'u_int64_t'
   42 |   u_int64_t layer_pvd;
      |   ^~~~~~~~~
In file included from hdl_dump.c:53:
aligned.h:43:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   43 |           u_int32_t sector_size, /* device sector size - each file I/O should be aligned */
      |           ^~~~~~~~~
      |           uint32_t
aligned.h:44:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   44 |           u_int32_t buffer_size_in_sectors); /* 32 is good enough */
      |           ^~~~~~~~~
      |           uint32_t
aligned.h:48:10: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   48 |          u_int64_t offset,
      |          ^~~~~~~~~
      |          uint64_t
aligned.h:50:10: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   50 |          u_int32_t dest_size,
      |          ^~~~~~~~~
      |          uint32_t
aligned.h:51:10: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   51 |          u_int32_t *length);
      |          ^~~~~~~~~
      |          uint32_t
hdl_dump.c: In function 'show_apa_slice':
hdl_dump.c:115:3: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  115 |   u_int32_t i;
      |   ^~~~~~~~~
      |   uint32_t
hdl_dump.c: In function 'show_apa_slice2':
hdl_dump.c:149:3: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  149 |   u_int32_t i;
      |   ^~~~~~~~~
      |   uint32_t
hdl_dump.c:159:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  159 |           u_int32_t j, count = get_u32 (&part->nsub);
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:160:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  160 |           u_int32_t tot_len = get_u32 (&part->length);
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c: In function 'show_slice_map':
hdl_dump.c:210:9: error: unknown type name 'u_int32_t'
  210 |   const u_int32_t GIGS_PER_ROW = 8;
      |         ^~~~~~~~~
hdl_dump.c:211:3: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  211 |   u_int32_t i, count = 0;
      |   ^~~~~~~~~
      |   uint32_t
hdl_dump.c: In function 'show_hdl_toc':
hdl_dump.c:281:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  281 |           u_int32_t i, j;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c: In function 'show_hdl_game_info':
hdl_dump.c:383:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  383 |           u_int32_t partition_index;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:384:20: warning: implicit declaration of function 'apa_find_partition'; did you mean 'apa_delete_partition'? [-Wimplicit-function-declaration]
  384 |           result = apa_find_partition (toc, game_name,
      |                    ^~~~~~~~~~~~~~~~~~
      |                    apa_delete_partition
hdl_dump.c:397:21: error: unknown type name 'u_int32_t'
  397 |               const u_int32_t SLICE_2_OFFS = 0x10000000; /* sectors */
      |                     ^~~~~~~~~
hdl_dump.c:398:15: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  398 |               u_int8_t buffer[1024];
      |               ^~~~~~~~
      |               uint8_t
hdl_dump.c:399:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  399 |               u_int32_t len;
      |               ^~~~~~~~~
      |               uint32_t
hdl_dump.c:400:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  400 |               u_int32_t sect =
      |               ^~~~~~~~~
      |               uint32_t
hdl_dump.c:402:24: error: called object is not a function or function pointer
  402 |               result = hio->read (hio, sect, 1024 / HDD_SECTOR_SIZE,
      |                        ^~~
hdl_dump.c:408:19: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  408 |                   u_int32_t type = (u_int32_t) buffer[0x00ec];
      |                   ^~~~~~~~~
      |                   uint32_t
hdl_dump.c:408:37: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'?
  408 |                   u_int32_t type = (u_int32_t) buffer[0x00ec];
      |                                     ^~~~~~~~~
      |                                     uint32_t
hdl_dump.c:408:37: note: each undeclared identifier is reported only once for each function it appears in
hdl_dump.c:408:48: error: expected ',' or ';' before 'buffer'
  408 |                   u_int32_t type = (u_int32_t) buffer[0x00ec];
      |                                                ^~~~~~
hdl_dump.c:409:28: error: expected ';' before 'num_parts'
  409 |                   u_int32_t num_parts = (u_int32_t) buffer[0x00f0];
      |                            ^~~~~~~~~~
      |                            ;
hdl_dump.c:410:19: warning: ISO C forbids nested functions [-Wpedantic]
  410 |                   const u_int32_t *data = (u_int32_t*) (buffer + 0x00f5);
      |                   ^~~~~
hdl_dump.c:410:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
  410 |                   const u_int32_t *data = (u_int32_t*) (buffer + 0x00f5);
      |                                   ^
hdl_dump.c:410:19: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  410 |                   const u_int32_t *data = (u_int32_t*) (buffer + 0x00f5);
      |                   ^~~~~
hdl_dump.c:410:36: error: 'data' undeclared (first use in this function)
  410 |                   const u_int32_t *data = (u_int32_t*) (buffer + 0x00f5);
      |                                    ^~~~
hdl_dump.c:410:54: error: expected expression before ')' token
  410 |                   const u_int32_t *data = (u_int32_t*) (buffer + 0x00f5);
      |                                                      ^
hdl_dump.c:411:28: error: expected ';' before 'i'
  411 |                   u_int32_t i;
      |                            ^~
      |                            ;
hdl_dump.c:415:23: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  415 |                       u_int64_t total_size = 0;
      |                       ^~~~~~~~~
      |                       uint64_t
hdl_dump.c:427:27: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  427 |                           u_int8_t flags = get_u8 (buffer + 0x00a9);
      |                           ^~~~~~~~
      |                           uint8_t
hdl_dump.c:430:32: error: 'i' undeclared (first use in this function)
  430 |                           for (i = 0; i < MAX_FLAGS; ++i)
      |                                ^
hdl_dump.c:442:27: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  442 |                           u_int8_t dma_type = get_u8 (buffer + 0x00aa);
      |                           ^~~~~~~~
      |                           uint8_t
hdl_dump.c:445:33: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  445 |                                 u_int8_t dma_mode = get_u8 (buffer + 0x00ab);
      |                                 ^~~~~~~~
      |                                 uint8_t
hdl_dump.c:460:33: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  460 |                                 u_int8_t dma_mode = get_u8 (buffer + 0x00ab);
      |                                 ^~~~~~~~
      |                                 uint8_t
hdl_dump.c:475:35: error: 'num_parts' undeclared (first use in this function)
  475 |                       for (i=0; i<num_parts; ++i)
      |                                   ^~~~~~~~~
hdl_dump.c:477:36: error: expected ';' before 'start'
  477 |                           u_int32_t start = get_u32 (data + (i * 3 + 1));
      |                                    ^~~~~~
      |                                    ;
hdl_dump.c:478:36: error: expected ';' before 'length'
  478 |                           u_int32_t length = get_u32 (data + (i * 3 + 2));
      |                                    ^~~~~~~
      |                                    ;
hdl_dump.c:479:43: error: 'u_int64_t' undeclared (first use in this function); did you mean 'uint64_t'?
  479 |                           total_size += ((u_int64_t) length) << 8;
      |                                           ^~~~~~~~~
      |                                           uint64_t
hdl_dump.c:479:53: error: expected ')' before 'length'
  479 |                           total_size += ((u_int64_t) length) << 8;
      |                                         ~           ^~~~~~~
      |                                                     )
hdl_dump.c:484:52: error: 'start' undeclared (first use in this function)
  484 |                                    (unsigned long) start,
      |                                                    ^~~~~
hdl_dump.c:485:52: error: 'length' undeclared (first use in this function); did you mean 'len_t'?
  485 |                                    (unsigned long) length / 4);
      |                                                    ^~~~~~
      |                                                    len_t
hdl_dump.c: At top level:
hdl_dump.c:513:30: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  513 |                              u_int32_t size_in_mb)
      |                              ^~~~~~~~~
      |                              uint32_t
hdl_dump.c: In function 'zero_device':
hdl_dump.c:580:22: warning: implicit declaration of function 'osal_alloc' [-Wimplicit-function-declaration]
  580 |       void *buffer = osal_alloc (1 _MB);
      |                      ^~~~~~~~~~
hdl_dump.c:580:22: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
hdl_dump.c:584:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  584 |           u_int32_t bytes, counter = 0;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:588:24: warning: implicit declaration of function 'osal_write'; did you mean 'osal_free'? [-Wimplicit-function-declaration]
  588 |               result = osal_write (device, buffer, 1 _MB, &bytes);
      |                        ^~~~~~~~~~
      |                        osal_free
hdl_dump.c: In function 'cdvd_info':
hdl_dump.c:620:7: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  620 |       u_int32_t num_sectors, sector_size;
      |       ^~~~~~~~~
      |       uint32_t
hdl_dump.c:621:16: error: called object is not a function or function pointer
  621 |       result = iin->stat (iin, &sector_size, &num_sectors);
      |                ^~~
hdl_dump.c:627:15: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  627 |               u_int64_t tot_size = (u_int64_t) num_sectors * sector_size;
      |               ^~~~~~~~~
      |               uint64_t
hdl_dump.c:627:37: error: 'u_int64_t' undeclared (first use in this function); did you mean 'uint64_t'?
  627 |               u_int64_t tot_size = (u_int64_t) num_sectors * sector_size;
      |                                     ^~~~~~~~~
      |                                     uint64_t
hdl_dump.c:627:48: error: expected ',' or ';' before 'num_sectors'
  627 |               u_int64_t tot_size = (u_int64_t) num_sectors * sector_size;
      |                                                ^~~~~~~~~~~
hdl_dump.c: In function 'compare_iin':
hdl_dump.c:819:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  819 |           u_int32_t len1, len2;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:821:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  821 |           u_int32_t sector = 0;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:822:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  822 |           u_int32_t sector_size1, num_sectors1;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:823:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  823 |           u_int32_t sector_size2, num_sectors2;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:824:11: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  824 |           u_int64_t size1, size2;
      |           ^~~~~~~~~
      |           uint64_t
hdl_dump.c:826:20: error: called object is not a function or function pointer
  826 |           result = iin1->stat (iin1, &sector_size1, &num_sectors1);
      |                    ^~~~
hdl_dump.c:829:24: error: 'u_int64_t' undeclared (first use in this function); did you mean 'uint64_t'?
  829 |               size1 = (u_int64_t) num_sectors1 * sector_size1;
      |                        ^~~~~~~~~
      |                        uint64_t
hdl_dump.c:829:34: error: expected ';' before 'num_sectors1'
  829 |               size1 = (u_int64_t) num_sectors1 * sector_size1;
      |                                  ^~~~~~~~~~~~~
      |                                  ;
hdl_dump.c:830:24: error: called object is not a function or function pointer
  830 |               result = iin2->stat (iin2, &sector_size2, &num_sectors2);
      |                        ^~~~
hdl_dump.c:834:34: error: expected ';' before 'num_sectors2'
  834 |               size2 = (u_int64_t) num_sectors2 * sector_size2;
      |                                  ^~~~~~~~~~~~~
      |                                  ;
hdl_dump.c:838:17: warning: implicit declaration of function 'pgs_prepare'; did you mean 'pgs_free'? [-Wimplicit-function-declaration]
  838 |                 pgs_prepare (pgs, size1 < size2 ? size1 : size2);
      |                 ^~~~~~~~~~~
      |                 pgs_free
hdl_dump.c:849:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  849 |               u_int32_t sectors1 = (num_sectors1 > IIN_NUM_SECTORS ?
      |               ^~~~~~~~~
      |               uint32_t
hdl_dump.c:851:24: error: called object is not a function or function pointer
  851 |               result = iin1->read (iin1, sector, sectors1, &data1, &len1);
      |                        ^~~~
hdl_dump.c:854:19: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  854 |                   u_int32_t sectors2 = (num_sectors2 > IIN_NUM_SECTORS ?
      |                   ^~~~~~~~~
      |                   uint32_t
hdl_dump.c:856:28: error: called object is not a function or function pointer
  856 |                   result = iin2->read (iin2, sector, sectors2, &data2, &len2);
      |                            ^~~~
hdl_dump.c:859:23: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  859 |                       u_int32_t len = (len1 <= len2 ? len1 : len2); /* lesser from the two */
      |                       ^~~~~~~~~
      |                       uint32_t
hdl_dump.c:860:23: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  860 |                       u_int32_t len_s = len / IIN_SECTOR_SIZE;
      |                       ^~~~~~~~~
      |                       uint32_t
hdl_dump.c:880:32: warning: implicit declaration of function 'pgs_update'; did you mean 'ddb_update'? [-Wimplicit-function-declaration]
  880 |                       result = pgs_update (pgs, (u_int64_t) sector * IIN_SECTOR_SIZE);
      |                                ^~~~~~~~~~
      |                                ddb_update
hdl_dump.c:880:60: error: expected ')' before 'sector'
  880 |                       result = pgs_update (pgs, (u_int64_t) sector * IIN_SECTOR_SIZE);
      |                                           ~                ^~~~~~~
      |                                                            )
hdl_dump.c: In function 'backup_toc':
hdl_dump.c:923:7: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  923 |       u_int32_t size_in_kb;
      |       ^~~~~~~~~
      |       uint32_t
hdl_dump.c:924:16: error: called object is not a function or function pointer
  924 |       result = in->stat (in, &size_in_kb);
      |                ^~
hdl_dump.c:927:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  927 |           u_int32_t sectors = size_in_kb * 2;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:932:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  932 |               u_int32_t sector = 0, bytes;
      |               ^~~~~~~~~
      |               uint32_t
hdl_dump.c:935:28: error: called object is not a function or function pointer
  935 |                   result = in->read (in, sector, 2, buf, &bytes);
      |                            ^~
hdl_dump.c:941:32: error: called object is not a function or function pointer
  941 |                       result = in->read (in, sector + 2056, 2,
      |                                ^~
hdl_dump.c: In function 'restore_toc':
hdl_dump.c:977:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  977 |           u_int32_t sector = 0;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:981:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  981 |               u_int32_t len;
      |               ^~~~~~~~~
      |               uint32_t
hdl_dump.c:985:28: error: called object is not a function or function pointer
  985 |                   result = out->write (out, sector, 2, buf, &len);
      |                            ^~~
hdl_dump.c:996:32: error: called object is not a function or function pointer
  996 |                       result = out->write (out, sector + 2056, 2, buf, &len);
      |                                ^~~
hdl_dump.c: In function 'inject':
hdl_dump.c:1051:45: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'?
 1051 |                         game.layer_break = (u_int32_t) info.layer_pvd - 16;
      |                                             ^~~~~~~~~
      |                                             uint32_t
hdl_dump.c:1051:55: error: expected ';' before 'info'
 1051 |                         game.layer_break = (u_int32_t) info.layer_pvd - 16;
      |                                                       ^~~~~
      |                                                       ;
hdl_dump.c: In function 'install':
hdl_dump.c:1101:3: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1101 |   u_int32_t sector_size, num_sectors;
      |   ^~~~~~~~~
      |   uint32_t
hdl_dump.c:1106:16: error: called object is not a function or function pointer
 1106 |       result = iin->stat (iin, &sector_size, &num_sectors);
      |                ^~~
hdl_dump.c:1129:45: error: 'u_int32_t' undeclared (first use in this function); did you mean 'uint32_t'?
 1129 |                         game.layer_break = (u_int32_t) info.layer_pvd - 16;
      |                                             ^~~~~~~~~
      |                                             uint32_t
hdl_dump.c:1129:55: error: expected ';' before 'info'
 1129 |                         game.layer_break = (u_int32_t) info.layer_pvd - 16;
      |                                                       ^~~~~
      |                                                       ;
hdl_dump.c:1140:58: error: 'u_int64_t' undeclared (first use in this function); did you mean 'uint64_t'?
 1140 |                         case mt_unknown: game.is_dvd = ((u_int64_t) sector_size * num_sectors) > (750 _MB) ? 1 : 0; break;
      |                                                          ^~~~~~~~~
      |                                                          uint64_t
hdl_dump.c:1140:68: error: expected ')' before 'sector_size'
 1140 |                         case mt_unknown: game.is_dvd = ((u_int64_t) sector_size * num_sectors) > (750 _MB) ? 1 : 0; break;
      |                                                        ~           ^~~~~~~~~~~~
      |                                                                    )
hdl_dump.c: In function 'modify':
hdl_dump.c:1191:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1191 |           u_int32_t partition_index = 0;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:1205:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1205 |               u_int32_t start_sector = get_u32 (&toc->slice[slice_index].parts[partition_index].header.start);
      |               ^~~~~~~~~
      |               uint32_t
hdl_dump.c:1206:24: warning: implicit declaration of function 'hdl_modify_game' [-Wimplicit-function-declaration]
 1206 |               result = hdl_modify_game (hio, toc, slice_index, start_sector,
      |                        ^~~~~~~~~~~~~~~
hdl_dump.c: In function 'modify_header':
hdl_dump.c:1233:11: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1233 |           u_int32_t partition_index = 0;
      |           ^~~~~~~~~
      |           uint32_t
hdl_dump.c:1239:15: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1239 |               u_int32_t start_sector = get_u32 (&toc->slice[slice_index].parts[partition_index].header.start);
      |               ^~~~~~~~~
      |               uint32_t
hdl_dump.c:1240:24: warning: implicit declaration of function 'hdd_inject_header' [-Wimplicit-function-declaration]
 1240 |               result = hdd_inject_header (hio, toc, slice_index, start_sector);
      |                        ^~~~~~~~~~~~~~~~~
hdl_dump.c: In function 'main':
hdl_dump.c:1886:35: warning: implicit declaration of function 'dump_device' [-Wimplicit-function-declaration]
 1886 |           handle_result_and_exit (dump_device (config, argv[2], argv[3],
      |                                   ^~~~~~~~~~~
hdl_dump.c:2045:35: warning: implicit declaration of function 'show_apa_cut_out_for_inject' [-Wimplicit-function-declaration]
 2045 |           handle_result_and_exit (show_apa_cut_out_for_inject (config, argv[2],
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:191: hdl_dump.o] Error 1
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/hdl-dump
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/hdl-dump