+ 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/xfsprogs-2.7.3nb3/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xfsprogs-2.7.3nb3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for xfsprogs-2.7.3nb3
=== include ===
rm -f xfs disk
ln -s . xfs
ln -s . disk
=== libxfs ===
/home/pbulk/build/sysutils/xfsprogs/work/.cwrapper/bin/libtool  --mode=compile gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses  -O1 -g -DDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.7.3\" -DLOCALEDIR=\"/opt/pkg/share/locale\" -DPACKAGE=\"xfsprogs\" -I./include   -I. -O1 -g -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.7.3\" -DLOCALEDIR=\"/opt/pkg/share/locale\" -DPACKAGE=\"xfsprogs\" -I../include   -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -c bit.c
libtool: compile:  gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/home/pbulk/build/sysutils/xfsprogs/work/.buildlink/include -I/home/pbulk/build/sysutils/xfsprogs/work/.buildlink/include/ncurses -O1 -g -DDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.7.3\" -DLOCALEDIR=\"/opt/pkg/share/locale\" -DPACKAGE=\"xfsprogs\" -I./include -I. -O1 -g -DNDEBUG -funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.7.3\" -DLOCALEDIR=\"/opt/pkg/share/locale\" -DPACKAGE=\"xfsprogs\" -I../include -c bit.c  -fPIC -DPIC -o .libs/bit.o
In file included from ../include/xfs/libxfs.h:38,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/platform_defs.h:61:3: error: #error unknown platform... have fun porting!
   61 | # error unknown platform... have fun porting!
      |   ^~~~~
../include/xfs/platform_defs.h:122:33: error: expected identifier or '(' before 'do'
  122 | # define textdomain(d)          do { } while (0)
      |                                 ^~
../include/xfs/platform_defs.h:122:40: error: expected identifier or '(' before 'while'
  122 | # define textdomain(d)          do { } while (0)
      |                                        ^~~~~
../include/xfs/platform_defs.h:123:33: error: expected identifier or '(' before 'do'
  123 | # define bindtextdomain(d,dir)  do { } while (0)
      |                                 ^~
../include/xfs/platform_defs.h:123:40: error: expected identifier or '(' before 'while'
  123 | # define bindtextdomain(d,dir)  do { } while (0)
      |                                        ^~~~~
In file included from ../include/xfs/libxfs.h:40,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_fs.h:49:2: error: unknown type name '__u32'
   49 |  __u32  d_mem;  /* data buffer memory alignment */
      |  ^~~~~
../include/xfs/xfs_fs.h:50:2: error: unknown type name '__u32'
   50 |  __u32  d_miniosz; /* min xfer size  */
      |  ^~~~~
../include/xfs/xfs_fs.h:51:2: error: unknown type name '__u32'
   51 |  __u32  d_maxiosz; /* max xfer size  */
      |  ^~~~~
../include/xfs/xfs_fs.h:60:2: error: unknown type name '__u32'
   60 |  __u32  fsx_xflags; /* xflags field value (get/set) */
      |  ^~~~~
../include/xfs/xfs_fs.h:61:2: error: unknown type name '__u32'
   61 |  __u32  fsx_extsize; /* extsize field value (get/set)*/
      |  ^~~~~
../include/xfs/xfs_fs.h:62:2: error: unknown type name '__u32'
   62 |  __u32  fsx_nextents; /* nextents field value (get) */
      |  ^~~~~
../include/xfs/xfs_fs.h:63:2: error: unknown type name '__u32'
   63 |  __u32  fsx_projid; /* project identifier (get/set) */
      |  ^~~~~
../include/xfs/xfs_fs.h:94:2: error: unknown type name '__s64'
   94 |  __s64  bmv_offset; /* file offset of segment in blocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:95:2: error: unknown type name '__s64'
   95 |  __s64  bmv_block; /* starting block (64-bit daddr_t)  */
      |  ^~~~~
../include/xfs/xfs_fs.h:96:2: error: unknown type name '__s64'
   96 |  __s64  bmv_length; /* length of segment, blocks     */
      |  ^~~~~
../include/xfs/xfs_fs.h:97:2: error: unknown type name '__s32'
   97 |  __s32  bmv_count; /* # of entries in array incl. 1st  */
      |  ^~~~~
../include/xfs/xfs_fs.h:98:2: error: unknown type name '__s32'
   98 |  __s32  bmv_entries; /* # of entries filled in (output)  */
      |  ^~~~~
../include/xfs/xfs_fs.h:113:2: error: unknown type name '__s64'
  113 |  __s64  bmv_offset; /* file offset of segment in blocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:114:2: error: unknown type name '__s64'
  114 |  __s64  bmv_block; /* starting block (64-bit daddr_t)  */
      |  ^~~~~
../include/xfs/xfs_fs.h:115:2: error: unknown type name '__s64'
  115 |  __s64  bmv_length; /* length of segment, blocks     */
      |  ^~~~~
../include/xfs/xfs_fs.h:116:2: error: unknown type name '__s32'
  116 |  __s32  bmv_count; /* # of entries in array incl. 1st  */
      |  ^~~~~
../include/xfs/xfs_fs.h:117:2: error: unknown type name '__s32'
  117 |  __s32  bmv_entries; /* # of entries filled in (output). */
      |  ^~~~~
../include/xfs/xfs_fs.h:118:2: error: unknown type name '__s32'
  118 |  __s32  bmv_iflags; /* input flags (1st structure)     */
      |  ^~~~~
../include/xfs/xfs_fs.h:119:2: error: unknown type name '__s32'
  119 |  __s32  bmv_oflags; /* output flags (after 1st structure)*/
      |  ^~~~~
../include/xfs/xfs_fs.h:120:2: error: unknown type name '__s32'
  120 |  __s32  bmv_unused1; /* future use       */
      |  ^~~~~
../include/xfs/xfs_fs.h:121:2: error: unknown type name '__s32'
  121 |  __s32  bmv_unused2; /* future use       */
      |  ^~~~~
../include/xfs/xfs_fs.h:155:2: error: unknown type name '__u32'
  155 |  __u32  fsd_dmevmask; /* corresponds to di_dmevmask */
      |  ^~~~~
../include/xfs/xfs_fs.h:156:2: error: unknown type name '__u16'
  156 |  __u16  fsd_padding;
      |  ^~~~~
../include/xfs/xfs_fs.h:157:2: error: unknown type name '__u16'
  157 |  __u16  fsd_dmstate; /* corresponds to di_dmstate  */
      |  ^~~~~
../include/xfs/xfs_fs.h:166:2: error: unknown type name '__s16'
  166 |  __s16  l_type;
      |  ^~~~~
../include/xfs/xfs_fs.h:167:2: error: unknown type name '__s16'
  167 |  __s16  l_whence;
      |  ^~~~~
../include/xfs/xfs_fs.h:168:2: error: unknown type name '__s64'
  168 |  __s64  l_start;
      |  ^~~~~
../include/xfs/xfs_fs.h:169:2: error: unknown type name '__s64'
  169 |  __s64  l_len;  /* len == 0 means until end of file */
      |  ^~~~~
../include/xfs/xfs_fs.h:170:2: error: unknown type name '__s32'
  170 |  __s32  l_sysid;
      |  ^~~~~
../include/xfs/xfs_fs.h:171:2: error: unknown type name '__u32'
  171 |  __u32  l_pid;
      |  ^~~~~
../include/xfs/xfs_fs.h:172:2: error: unknown type name '__s32'
  172 |  __s32  l_pad[4]; /* reserve area       */
      |  ^~~~~
../include/xfs/xfs_fs.h:179:2: error: unknown type name '__u32'
  179 |  __u32  blocksize; /* filesystem (data) block size */
      |  ^~~~~
../include/xfs/xfs_fs.h:180:2: error: unknown type name '__u32'
  180 |  __u32  rtextsize; /* realtime extent size  */
      |  ^~~~~
../include/xfs/xfs_fs.h:181:2: error: unknown type name '__u32'
  181 |  __u32  agblocks; /* fsblocks in an AG  */
      |  ^~~~~
../include/xfs/xfs_fs.h:182:2: error: unknown type name '__u32'
  182 |  __u32  agcount; /* number of allocation groups */
      |  ^~~~~
../include/xfs/xfs_fs.h:183:2: error: unknown type name '__u32'
  183 |  __u32  logblocks; /* fsblocks in the log  */
      |  ^~~~~
../include/xfs/xfs_fs.h:184:2: error: unknown type name '__u32'
  184 |  __u32  sectsize; /* (data) sector size, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:185:2: error: unknown type name '__u32'
  185 |  __u32  inodesize; /* inode size in bytes  */
      |  ^~~~~
../include/xfs/xfs_fs.h:186:2: error: unknown type name '__u32'
  186 |  __u32  imaxpct; /* max allowed inode space(%) */
      |  ^~~~~
../include/xfs/xfs_fs.h:187:2: error: unknown type name '__u64'
  187 |  __u64  datablocks; /* fsblocks in data subvolume */
      |  ^~~~~
../include/xfs/xfs_fs.h:188:2: error: unknown type name '__u64'
  188 |  __u64  rtblocks; /* fsblocks in realtime subvol */
      |  ^~~~~
../include/xfs/xfs_fs.h:189:2: error: unknown type name '__u64'
  189 |  __u64  rtextents; /* rt extents in realtime subvol*/
      |  ^~~~~
../include/xfs/xfs_fs.h:190:2: error: unknown type name '__u64'
  190 |  __u64  logstart; /* starting fsblock of the log */
      |  ^~~~~
../include/xfs/xfs_fs.h:192:2: error: unknown type name '__u32'
  192 |  __u32  sunit;  /* stripe unit, fsblocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:193:2: error: unknown type name '__u32'
  193 |  __u32  swidth;  /* stripe width, fsblocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:194:2: error: unknown type name '__s32'
  194 |  __s32  version; /* structure version  */
      |  ^~~~~
../include/xfs/xfs_fs.h:195:2: error: unknown type name '__u32'
  195 |  __u32  flags;  /* superblock version flags */
      |  ^~~~~
../include/xfs/xfs_fs.h:196:2: error: unknown type name '__u32'
  196 |  __u32  logsectsize; /* log sector size, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:197:2: error: unknown type name '__u32'
  197 |  __u32  rtsectsize; /* realtime sector size, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:198:2: error: unknown type name '__u32'
  198 |  __u32  dirblocksize; /* directory block size, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:205:2: error: unknown type name '__u32'
  205 |  __u32  blocksize; /* filesystem (data) block size */
      |  ^~~~~
../include/xfs/xfs_fs.h:206:2: error: unknown type name '__u32'
  206 |  __u32  rtextsize; /* realtime extent size  */
      |  ^~~~~
../include/xfs/xfs_fs.h:207:2: error: unknown type name '__u32'
  207 |  __u32  agblocks; /* fsblocks in an AG  */
      |  ^~~~~
../include/xfs/xfs_fs.h:208:2: error: unknown type name '__u32'
  208 |  __u32  agcount; /* number of allocation groups */
      |  ^~~~~
../include/xfs/xfs_fs.h:209:2: error: unknown type name '__u32'
  209 |  __u32  logblocks; /* fsblocks in the log  */
      |  ^~~~~
../include/xfs/xfs_fs.h:210:2: error: unknown type name '__u32'
  210 |  __u32  sectsize; /* (data) sector size, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:211:2: error: unknown type name '__u32'
  211 |  __u32  inodesize; /* inode size in bytes  */
      |  ^~~~~
../include/xfs/xfs_fs.h:212:2: error: unknown type name '__u32'
  212 |  __u32  imaxpct; /* max allowed inode space(%) */
      |  ^~~~~
../include/xfs/xfs_fs.h:213:2: error: unknown type name '__u64'
  213 |  __u64  datablocks; /* fsblocks in data subvolume */
      |  ^~~~~
../include/xfs/xfs_fs.h:214:2: error: unknown type name '__u64'
  214 |  __u64  rtblocks; /* fsblocks in realtime subvol */
      |  ^~~~~
../include/xfs/xfs_fs.h:215:2: error: unknown type name '__u64'
  215 |  __u64  rtextents; /* rt extents in realtime subvol*/
      |  ^~~~~
../include/xfs/xfs_fs.h:216:2: error: unknown type name '__u64'
  216 |  __u64  logstart; /* starting fsblock of the log */
      |  ^~~~~
../include/xfs/xfs_fs.h:218:2: error: unknown type name '__u32'
  218 |  __u32  sunit;  /* stripe unit, fsblocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:219:2: error: unknown type name '__u32'
  219 |  __u32  swidth;  /* stripe width, fsblocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:220:2: error: unknown type name '__s32'
  220 |  __s32  version; /* structure version  */
      |  ^~~~~
../include/xfs/xfs_fs.h:221:2: error: unknown type name '__u32'
  221 |  __u32  flags;  /* superblock version flags */
      |  ^~~~~
../include/xfs/xfs_fs.h:222:2: error: unknown type name '__u32'
  222 |  __u32  logsectsize; /* log sector size, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:223:2: error: unknown type name '__u32'
  223 |  __u32  rtsectsize; /* realtime sector size, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:224:2: error: unknown type name '__u32'
  224 |  __u32  dirblocksize; /* directory block size, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:225:2: error: unknown type name '__u32'
  225 |  __u32  logsunit; /* log stripe unit, bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:230:2: error: unknown type name '__u64'
  230 |  __u64 freedata; /* free data section blocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:231:2: error: unknown type name '__u64'
  231 |  __u64 freertx; /* free rt extents */
      |  ^~~~~
../include/xfs/xfs_fs.h:232:2: error: unknown type name '__u64'
  232 |  __u64 freeino; /* free inodes */
      |  ^~~~~
../include/xfs/xfs_fs.h:233:2: error: unknown type name '__u64'
  233 |  __u64 allocino; /* total allocated inodes */
      |  ^~~~~
../include/xfs/xfs_fs.h:238:2: error: unknown type name '__u64'
  238 |  __u64  resblks;
      |  ^~~~~
../include/xfs/xfs_fs.h:239:2: error: unknown type name '__u64'
  239 |  __u64  resblks_avail;
      |  ^~~~~
../include/xfs/xfs_fs.h:270:2: error: unknown type name '__u64'
  270 |  __u64  newblocks; /* new data subvol size, fsblocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:271:2: error: unknown type name '__u32'
  271 |  __u32  imaxpct; /* new inode space percentage limit */
      |  ^~~~~
../include/xfs/xfs_fs.h:275:2: error: unknown type name '__u32'
  275 |  __u32  newblocks; /* new log size, fsblocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:276:2: error: unknown type name '__u32'
  276 |  __u32  isint;  /* 1 if new log is internal */
      |  ^~~~~
../include/xfs/xfs_fs.h:280:2: error: unknown type name '__u64'
  280 |  __u64  newblocks; /* new realtime size, fsblocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:281:2: error: unknown type name '__u32'
  281 |  __u32  extsize; /* new realtime extent size, fsblocks */
      |  ^~~~~
../include/xfs/xfs_fs.h:290:2: error: unknown type name '__s32'
  290 |  __s32  tv_nsec; /* and nanoseconds */
      |  ^~~~~
../include/xfs/xfs_fs.h:294:2: error: unknown type name '__u64'
  294 |  __u64  bs_ino;  /* inode number   */
      |  ^~~~~
../include/xfs/xfs_fs.h:295:2: error: unknown type name '__u16'
  295 |  __u16  bs_mode; /* type and mode  */
      |  ^~~~~
../include/xfs/xfs_fs.h:296:2: error: unknown type name '__u16'
  296 |  __u16  bs_nlink; /* number of links  */
      |  ^~~~~
../include/xfs/xfs_fs.h:297:2: error: unknown type name '__u32'
  297 |  __u32  bs_uid;  /* user id   */
      |  ^~~~~
../include/xfs/xfs_fs.h:298:2: error: unknown type name '__u32'
  298 |  __u32  bs_gid;  /* group id   */
      |  ^~~~~
../include/xfs/xfs_fs.h:299:2: error: unknown type name '__u32'
  299 |  __u32  bs_rdev; /* device value   */
      |  ^~~~~
../include/xfs/xfs_fs.h:300:2: error: unknown type name '__s32'
  300 |  __s32  bs_blksize; /* block size   */
      |  ^~~~~
../include/xfs/xfs_fs.h:301:2: error: unknown type name '__s64'
  301 |  __s64  bs_size; /* file size   */
      |  ^~~~~
../include/xfs/xfs_fs.h:306:2: error: unknown type name '__u32'
  306 |  __u32  bs_xflags; /* extended flags  */
      |  ^~~~~
../include/xfs/xfs_fs.h:307:2: error: unknown type name '__s32'
  307 |  __s32  bs_extsize; /* extent size   */
      |  ^~~~~
../include/xfs/xfs_fs.h:308:2: error: unknown type name '__s32'
  308 |  __s32  bs_extents; /* number of extents  */
      |  ^~~~~
../include/xfs/xfs_fs.h:309:2: error: unknown type name '__u32'
  309 |  __u32  bs_gen;  /* generation count  */
      |  ^~~~~
../include/xfs/xfs_fs.h:310:2: error: unknown type name '__u16'
  310 |  __u16  bs_projid; /* project id   */
      |  ^~~~~
../include/xfs/xfs_fs.h:312:2: error: unknown type name '__u32'
  312 |  __u32  bs_dmevmask; /* DMIG event mask  */
      |  ^~~~~
../include/xfs/xfs_fs.h:313:2: error: unknown type name '__u16'
  313 |  __u16  bs_dmstate; /* DMIG state info  */
      |  ^~~~~
../include/xfs/xfs_fs.h:314:2: error: unknown type name '__u16'
  314 |  __u16  bs_aextents; /* attribute number of extents */
      |  ^~~~~
../include/xfs/xfs_fs.h:321:2: error: unknown type name '__u64'
  321 |  __u64  __user *lastip; /* last inode # pointer  */
      |  ^~~~~
../include/xfs/xfs_fs.h:322:2: error: unknown type name '__s32'
  322 |  __s32  icount;  /* count of entries in buffer */
      |  ^~~~~
../include/xfs/xfs_fs.h:324:2: error: unknown type name '__s32'
  324 |  __s32  __user *ocount; /* output count pointer  */
      |  ^~~~~
../include/xfs/xfs_fs.h:332:2: error: unknown type name '__u64'
  332 |  __u64  xi_startino; /* starting inode number */
      |  ^~~~~
../include/xfs/xfs_fs.h:333:2: error: unknown type name '__s32'
  333 |  __s32  xi_alloccount; /* # bits set in allocmask */
      |  ^~~~~
../include/xfs/xfs_fs.h:334:2: error: unknown type name '__u64'
  334 |  __u64  xi_allocmask; /* mask of allocated inodes */
      |  ^~~~~
../include/xfs/xfs_fs.h:342:2: error: unknown type name '__s32'
  342 |  __s32  fd;
      |  ^~~~~
../include/xfs/xfs_fs.h:343:2: error: unknown type name '__s32'
  343 |  __s32  errtag;
      |  ^~~~~
../include/xfs/xfs_fs.h:351:2: error: unknown type name '__u32'
  351 |  __u32  fd;  /* fd for FD_TO_HANDLE  */
      |  ^~~~~
../include/xfs/xfs_fs.h:353:2: error: unknown type name '__u32'
  353 |  __u32  oflags;  /* open flags   */
      |  ^~~~~
../include/xfs/xfs_fs.h:355:2: error: unknown type name '__u32'
  355 |  __u32  ihandlen; /* user supplied length  */
      |  ^~~~~
../include/xfs/xfs_fs.h:357:2: error: unknown type name '__u32'
  357 |  __u32  __user *ohandlen;/* user buffer length  */
      |  ^~~~~
../include/xfs/xfs_fs.h:373:2: error: unknown type name '__u32'
  373 |  __u32  opaque[4];
      |  ^~~~~
../include/xfs/xfs_fs.h:379:2: error: unknown type name '__u32'
  379 |  __u32    flags; /* which namespace to use */
      |  ^~~~~
../include/xfs/xfs_fs.h:380:2: error: unknown type name '__u32'
  380 |  __u32    buflen; /* length of buffer supplied */
      |  ^~~~~
../include/xfs/xfs_fs.h:385:2: error: unknown type name '__u32'
  385 |  __u32  am_opcode;
      |  ^~~~~
../include/xfs/xfs_fs.h:386:2: error: unknown type name '__s32'
  386 |  __s32  am_error;
      |  ^~~~~
../include/xfs/xfs_fs.h:389:2: error: unknown type name '__u32'
  389 |  __u32  am_length;
      |  ^~~~~
../include/xfs/xfs_fs.h:390:2: error: unknown type name '__u32'
  390 |  __u32  am_flags;
      |  ^~~~~
../include/xfs/xfs_fs.h:395:2: error: unknown type name '__u32'
  395 |  __u32    opcount;/* count of following multiop */
      |  ^~~~~
../include/xfs/xfs_fs.h:402:18: error: unknown type name '__u32'
  402 | typedef struct { __u32 val[2]; } xfs_fsid_t; /* file system id type */
      |                  ^~~~~
../include/xfs/xfs_fs.h:409:2: error: unknown type name '__u16'
  409 |  __u16  fid_len;  /* length of data in bytes */
      |  ^~~~~
../include/xfs/xfs_fs.h:415:2: error: unknown type name '__u16'
  415 |  __u16 xfs_fid_len;  /* length of remainder */
      |  ^~~~~
../include/xfs/xfs_fs.h:416:2: error: unknown type name '__u16'
  416 |  __u16 xfs_fid_pad;
      |  ^~~~~
../include/xfs/xfs_fs.h:417:2: error: unknown type name '__u32'
  417 |  __u32 xfs_fid_gen;  /* generation number */
      |  ^~~~~
../include/xfs/xfs_fs.h:418:2: error: unknown type name '__u64'
  418 |  __u64 xfs_fid_ino;  /* 64 bits inode number */
      |  ^~~~~
../include/xfs/xfs_fs.h:422:2: error: unknown type name '__u16'
  422 |  __u16 fid_len; /* length of remainder */
      |  ^~~~~
../include/xfs/xfs_fs.h:423:2: error: unknown type name '__u16'
  423 |  __u16 fid_pad; /* padding, must be zero */
      |  ^~~~~
../include/xfs/xfs_fs.h:424:2: error: unknown type name '__u32'
  424 |  __u32 fid_gen; /* generation number */
      |  ^~~~~
../include/xfs/xfs_fs.h:425:2: error: unknown type name '__u64'
  425 |  __u64 fid_ino; /* inode number */
      |  ^~~~~
../include/xfs/xfs_fs.h:430:3: error: unknown type name '__s64'
  430 |   __s64     align; /* force alignment of ha_fid  */
      |   ^~~~~
In file included from ../include/xfs/libxfs.h:41,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_types.h:81:9: error: unknown type name '__uint32_t'
   81 | typedef __uint32_t xfs_agblock_t; /* blockno in alloc. group */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:82:9: error: unknown type name '__uint32_t'
   82 | typedef __uint32_t xfs_extlen_t; /* extent length in blocks */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:83:9: error: unknown type name '__uint32_t'
   83 | typedef __uint32_t xfs_agnumber_t; /* allocation group number */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:84:9: error: unknown type name '__int32_t'
   84 | typedef __int32_t xfs_extnum_t; /* # of extents in a file */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:85:9: error: unknown type name '__int16_t'
   85 | typedef __int16_t xfs_aextnum_t; /* # extents in an attribute fork */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:86:9: error: unknown type name '__int64_t'
   86 | typedef __int64_t xfs_fsize_t; /* bytes in a file */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:87:9: error: unknown type name '__uint64_t'
   87 | typedef __uint64_t xfs_ufsize_t; /* unsigned bytes in a file */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:89:9: error: unknown type name '__int32_t'
   89 | typedef __int32_t xfs_suminfo_t; /* type of bitmap summary info */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:90:9: error: unknown type name '__int32_t'
   90 | typedef __int32_t xfs_rtword_t; /* word type for bitmap manipulations */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:92:9: error: unknown type name '__int64_t'
   92 | typedef __int64_t xfs_lsn_t; /* log sequence number */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:93:9: error: unknown type name '__int32_t'
   93 | typedef __int32_t xfs_tid_t; /* transaction identifier */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:95:9: error: unknown type name '__uint32_t'
   95 | typedef __uint32_t xfs_dablk_t; /* dir/attr block number (in file) */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:96:9: error: unknown type name '__uint32_t'
   96 | typedef __uint32_t xfs_dahash_t; /* dir/attr hash value */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:98:9: error: unknown type name '__uint16_t'
   98 | typedef __uint16_t xfs_prid_t; /* prid_t truncated to 16bits in XFS */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:104:9: error: unknown type name '__uint64_t'
  104 | typedef __uint64_t xfs_dfsbno_t; /* blockno in filesystem (agno|agbno) */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:105:9: error: unknown type name '__uint64_t'
  105 | typedef __uint64_t xfs_drfsbno_t; /* blockno in filesystem (raw) */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:106:9: error: unknown type name '__uint64_t'
  106 | typedef __uint64_t xfs_drtbno_t; /* extent (block) in realtime area */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:107:9: error: unknown type name '__uint64_t'
  107 | typedef __uint64_t xfs_dfiloff_t; /* block number in a file */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:108:9: error: unknown type name '__uint64_t'
  108 | typedef __uint64_t xfs_dfilblks_t; /* number of blocks in a file */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:114:9: error: unknown type name '__uint64_t'
  114 | typedef __uint64_t xfs_fsblock_t; /* blockno in filesystem (agno|agbno) */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:115:9: error: unknown type name '__uint64_t'
  115 | typedef __uint64_t xfs_rfsblock_t; /* blockno in filesystem (raw) */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:116:9: error: unknown type name '__uint64_t'
  116 | typedef __uint64_t xfs_rtblock_t; /* extent (block) in realtime area */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:117:9: error: unknown type name '__int64_t'
  117 | typedef __int64_t xfs_srtblock_t; /* signed version of xfs_rtblock_t */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:124:9: error: unknown type name '__uint64_t'
  124 | typedef __uint64_t xfs_fileoff_t; /* block number in a file */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:125:9: error: unknown type name '__int64_t'
  125 | typedef __int64_t xfs_sfiloff_t; /* signed block number in a file */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:126:9: error: unknown type name '__uint64_t'
  126 | typedef __uint64_t xfs_filblks_t; /* number of blocks in a file */
      |         ^~~~~~~~~~
../include/xfs/xfs_types.h:128:9: error: unknown type name '__uint8_t'
  128 | typedef __uint8_t xfs_arch_t; /* architecture of an xfs fs */
      |         ^~~~~~~~~
../include/xfs/xfs_types.h:169:2: error: unknown type name 'xfs_ino_t'
  169 |  xfs_ino_t d_ino;  /* inode number of entry */
      |  ^~~~~~~~~
../include/xfs/xfs_types.h:170:2: error: unknown type name 'xfs_off_t'
  170 |  xfs_off_t d_off;  /* offset of disk directory entry */
      |  ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:43,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_sb.h:129:2: error: unknown type name '__uint32_t'
  129 |  __uint32_t sb_magicnum; /* magic number == XFS_SB_MAGIC */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:130:2: error: unknown type name '__uint32_t'
  130 |  __uint32_t sb_blocksize; /* logical block size, bytes */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:134:2: error: unknown type name 'uuid_t'
  134 |  uuid_t  sb_uuid; /* file system unique id */
      |  ^~~~~~
../include/xfs/xfs_sb.h:136:2: error: unknown type name 'xfs_ino_t'
  136 |  xfs_ino_t sb_rootino; /* root inode number */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:137:2: error: unknown type name 'xfs_ino_t'
  137 |  xfs_ino_t sb_rbmino; /* bitmap inode for realtime extents */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:138:2: error: unknown type name 'xfs_ino_t'
  138 |  xfs_ino_t sb_rsumino; /* summary inode for rt bitmap */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:144:2: error: unknown type name '__uint16_t'
  144 |  __uint16_t sb_versionnum; /* header version == XFS_SB_VERSION */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:145:2: error: unknown type name '__uint16_t'
  145 |  __uint16_t sb_sectsize; /* volume sector size, bytes */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:146:2: error: unknown type name '__uint16_t'
  146 |  __uint16_t sb_inodesize; /* inode size, bytes */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:147:2: error: unknown type name '__uint16_t'
  147 |  __uint16_t sb_inopblock; /* inodes per block */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:149:2: error: unknown type name '__uint8_t'
  149 |  __uint8_t sb_blocklog; /* log2 of sb_blocksize */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:150:2: error: unknown type name '__uint8_t'
  150 |  __uint8_t sb_sectlog; /* log2 of sb_sectsize */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:151:2: error: unknown type name '__uint8_t'
  151 |  __uint8_t sb_inodelog; /* log2 of sb_inodesize */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:152:2: error: unknown type name '__uint8_t'
  152 |  __uint8_t sb_inopblog; /* log2 of sb_inopblock */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:153:2: error: unknown type name '__uint8_t'
  153 |  __uint8_t sb_agblklog; /* log2 of sb_agblocks (rounded up) */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:154:2: error: unknown type name '__uint8_t'
  154 |  __uint8_t sb_rextslog; /* log2 of sb_rextents */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:155:2: error: unknown type name '__uint8_t'
  155 |  __uint8_t sb_inprogress; /* mkfs is in progress, don't mount */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:156:2: error: unknown type name '__uint8_t'
  156 |  __uint8_t sb_imax_pct; /* max % of fs for inode space */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:163:2: error: unknown type name '__uint64_t'
  163 |  __uint64_t sb_icount; /* allocated inodes */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:164:2: error: unknown type name '__uint64_t'
  164 |  __uint64_t sb_ifree; /* free inodes */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:165:2: error: unknown type name '__uint64_t'
  165 |  __uint64_t sb_fdblocks; /* free data blocks */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:166:2: error: unknown type name '__uint64_t'
  166 |  __uint64_t sb_frextents; /* free realtime extents */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:170:2: error: unknown type name 'xfs_ino_t'
  170 |  xfs_ino_t sb_uquotino; /* user quota inode */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:171:2: error: unknown type name 'xfs_ino_t'
  171 |  xfs_ino_t sb_gquotino; /* group quota inode */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:172:2: error: unknown type name '__uint16_t'
  172 |  __uint16_t sb_qflags; /* quota flags */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:173:2: error: unknown type name '__uint8_t'
  173 |  __uint8_t sb_flags; /* misc. flags */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:174:2: error: unknown type name '__uint8_t'
  174 |  __uint8_t sb_shared_vn; /* shared version number */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:176:2: error: unknown type name '__uint32_t'
  176 |  __uint32_t sb_unit; /* stripe or raid unit */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:177:2: error: unknown type name '__uint32_t'
  177 |  __uint32_t sb_width; /* stripe or raid width */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:178:2: error: unknown type name '__uint8_t'
  178 |  __uint8_t sb_dirblklog; /* log2 of dir block size (fsbs) */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:179:2: error: unknown type name '__uint8_t'
  179 |  __uint8_t sb_logsectlog; /* log2 of the log sector size */
      |  ^~~~~~~~~
../include/xfs/xfs_sb.h:180:2: error: unknown type name '__uint16_t'
  180 |  __uint16_t sb_logsectsize; /* sector size for the log, bytes */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:181:2: error: unknown type name '__uint32_t'
  181 |  __uint32_t sb_logsunit; /* stripe unit size for the log */
      |  ^~~~~~~~~~
../include/xfs/xfs_sb.h:182:2: error: unknown type name '__uint32_t'
  182 |  __uint32_t sb_features2; /* additional feature bits */
      |  ^~~~~~~~~~
In file included from ../include/xfs/libxfs.h:44,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_bit.h:68:26: error: unknown type name '__uint32_t'; did you mean 'uint32_t'?
   68 | extern int xfs_highbit32(__uint32_t v);
      |                          ^~~~~~~~~~
      |                          uint32_t
../include/xfs/xfs_bit.h:71:25: error: unknown type name '__uint64_t'; did you mean 'uint64_t'?
   71 | extern int xfs_lowbit64(__uint64_t v);
      |                         ^~~~~~~~~~
      |                         uint64_t
../include/xfs/xfs_bit.h:74:1: warning: parameter names (without types) in function declaration
   74 | extern int xfs_highbit64(__uint64_t);
      | ^~~~~~
In file included from ../include/xfs/libxfs.h:45,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_inum.h:43:9: error: unknown type name '__uint32_t'
   43 | typedef __uint32_t xfs_agino_t; /* within allocation grp inode number */
      |         ^~~~~~~~~~
../include/xfs/xfs_inum.h:51:9: error: unknown type name 'xfs_ino_t'
   51 | typedef xfs_ino_t xfs_intino_t;
      |         ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:46,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_ag.h:79:2: error: unknown type name '__uint32_t'
   79 |  __uint32_t agf_magicnum; /* magic number == XFS_AGF_MAGIC */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:80:2: error: unknown type name '__uint32_t'
   80 |  __uint32_t agf_versionnum; /* header version == XFS_AGF_VERSION */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:87:2: error: unknown type name '__uint32_t'
   87 |  __uint32_t agf_spare0; /* spare field */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:88:2: error: unknown type name '__uint32_t'
   88 |  __uint32_t agf_levels[XFS_BTNUM_AGF]; /* btree levels */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:89:2: error: unknown type name '__uint32_t'
   89 |  __uint32_t agf_spare1; /* spare field */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:90:2: error: unknown type name '__uint32_t'
   90 |  __uint32_t agf_flfirst; /* first freelist block's index */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:91:2: error: unknown type name '__uint32_t'
   91 |  __uint32_t agf_fllast; /* last freelist block's index */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:92:2: error: unknown type name '__uint32_t'
   92 |  __uint32_t agf_flcount; /* count of blocks in freelist */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:95:2: error: unknown type name '__uint32_t'
   95 |  __uint32_t agf_btreeblks; /* # of blocks held in AGF btrees */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:132:2: error: unknown type name '__uint32_t'
  132 |  __uint32_t agi_magicnum; /* magic number == XFS_AGI_MAGIC */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:133:2: error: unknown type name '__uint32_t'
  133 |  __uint32_t agi_versionnum; /* header version == XFS_AGI_VERSION */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:143:2: error: unknown type name '__uint32_t'
  143 |  __uint32_t agi_level; /* levels in inode btree */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:222:2: error: unknown type name '__uint8_t'
  222 |  __uint8_t pagf_levels[XFS_BTNUM_AGF];
      |  ^~~~~~~~~
../include/xfs/xfs_ag.h:224:2: error: unknown type name '__uint32_t'
  224 |  __uint32_t pagf_flcount; /* count of blocks in freelist */
      |  ^~~~~~~~~~
../include/xfs/xfs_ag.h:227:2: error: unknown type name '__uint32_t'
  227 |  __uint32_t pagf_btreeblks; /* # of blocks held in AGF btrees */
      |  ^~~~~~~~~~
In file included from ../include/xfs/libxfs.h:47,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_da_btree.h:64:2: error: unknown type name '__uint16_t'
   64 |  __uint16_t magic;   /* validity check on block */
      |  ^~~~~~~~~~
../include/xfs/xfs_da_btree.h:65:2: error: unknown type name '__uint16_t'
   65 |  __uint16_t pad;    /* unused */
      |  ^~~~~~~~~~
../include/xfs/xfs_da_btree.h:82:3: error: unknown type name '__uint16_t'
   82 |   __uint16_t count; /* count of active entries */
      |   ^~~~~~~~~~
../include/xfs/xfs_da_btree.h:83:3: error: unknown type name '__uint16_t'
   83 |   __uint16_t level; /* level above leaves (leaf == 0) */
      |   ^~~~~~~~~~
../include/xfs/xfs_da_btree.h:177:2: error: unknown type name 'xfs_ino_t'
  177 |  xfs_ino_t inumber; /* input/output inode number */
      |  ^~~~~~~~~
../include/xfs/xfs_da_btree.h:237:2: error: unknown type name 'xfs_daddr_t'
  237 |  xfs_daddr_t disk_blkno; /* on-disk blkno (in BBs) of buffer */
      |  ^~~~~~~~~~~
In file included from ../include/xfs/libxfs.h:48,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_bmap_btree.h:47:2: error: unknown type name '__uint16_t'
   47 |  __uint16_t bb_level; /* 0 is a leaf */
      |  ^~~~~~~~~~
../include/xfs/xfs_bmap_btree.h:48:2: error: unknown type name '__uint16_t'
   48 |  __uint16_t bb_numrecs; /* current # of data records */
      |  ^~~~~~~~~~
../include/xfs/xfs_bmap_btree.h:97:2: error: unknown type name '__uint32_t'
   97 |  __uint32_t  l0, l1, l2, l3;
      |  ^~~~~~~~~~
../include/xfs/xfs_bmap_btree.h:101:2: error: unknown type name '__uint64_t'
  101 |  __uint64_t  l0, l1;
      |  ^~~~~~~~~~
../include/xfs/xfs_bmap_btree.h:104:9: error: unknown type name '__uint64_t'
  104 | typedef __uint64_t xfs_bmbt_rec_base_t; /* use this for casts */
      |         ^~~~~~~~~~
In file included from ../include/xfs/libxfs.h:50,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_ialloc_btree.h:49:9: error: unknown type name '__uint64_t'
   49 | typedef __uint64_t xfs_inofree_t;
      |         ^~~~~~~~~~
../include/xfs/xfs_ialloc_btree.h:69:2: error: unknown type name '__int32_t'
   69 |  __int32_t ir_freecount; /* count of free inodes (set bits) */
      |  ^~~~~~~~~
../include/xfs/xfs_ialloc_btree.h:248:2: error: unknown type name '__int32_t'; did you mean 'uint32_t'?
  248 |  __int32_t  *fcnt, /* output: number of free inodes */
      |  ^~~~~~~~~
      |  uint32_t
../include/xfs/xfs_ialloc_btree.h:278:2: error: unknown type name '__int32_t'; did you mean 'uint32_t'?
  278 |  __int32_t  fcnt, /* free inode count */
      |  ^~~~~~~~~
      |  uint32_t
../include/xfs/xfs_ialloc_btree.h:290:2: error: unknown type name '__int32_t'; did you mean 'uint32_t'?
  290 |  __int32_t  fcnt, /* free inode count */
      |  ^~~~~~~~~
      |  uint32_t
../include/xfs/xfs_ialloc_btree.h:302:2: error: unknown type name '__int32_t'; did you mean 'uint32_t'?
  302 |  __int32_t  fcnt, /* free inode count */
      |  ^~~~~~~~~
      |  uint32_t
../include/xfs/xfs_ialloc_btree.h:315:2: error: unknown type name '__int32_t'; did you mean 'uint32_t'?
  315 |  __int32_t  fcnt, /* free inode count */
      |  ^~~~~~~~~
      |  uint32_t
In file included from ../include/xfs/libxfs.h:54,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_btree.h:58:2: error: unknown type name '__uint32_t'
   58 |  __uint32_t bb_magic; /* magic number for block type */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:59:2: error: unknown type name '__uint16_t'
   59 |  __uint16_t bb_level; /* 0 is a leaf */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:60:2: error: unknown type name '__uint16_t'
   60 |  __uint16_t bb_numrecs; /* current # of data records */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:70:2: error: unknown type name '__uint32_t'
   70 |  __uint32_t bb_magic; /* magic number for block type */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:71:2: error: unknown type name '__uint16_t'
   71 |  __uint16_t bb_level; /* 0 is a leaf */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:72:2: error: unknown type name '__uint16_t'
   72 |  __uint16_t bb_numrecs; /* current # of data records */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:82:2: error: unknown type name '__uint32_t'
   82 |  __uint32_t bb_magic; /* magic number for block type */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:83:2: error: unknown type name '__uint16_t'
   83 |  __uint16_t bb_level; /* 0 is a leaf */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:84:2: error: unknown type name '__uint16_t'
   84 |  __uint16_t bb_numrecs; /* current # of data records */
      |  ^~~~~~~~~~
../include/xfs/xfs_btree.h:126:14: error: unknown type name '__uint32_t'
  126 | extern const __uint32_t xfs_magics[];
      |              ^~~~~~~~~~
../include/xfs/xfs_btree.h:174:2: error: unknown type name '__uint8_t'
  174 |  __uint8_t bc_ra[XFS_BTREE_MAXLEVELS]; /* readahead bits */
      |  ^~~~~~~~~
../include/xfs/xfs_btree.h:177:2: error: unknown type name '__uint8_t'
  177 |  __uint8_t bc_nlevels; /* number of levels in the tree */
      |  ^~~~~~~~~
../include/xfs/xfs_btree.h:178:2: error: unknown type name '__uint8_t'
  178 |  __uint8_t bc_blocklog; /* log2(blocksize) of btree blocks */
      |  ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:55,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dir_sf.h:42:18: error: unknown type name '__uint8_t'
   42 | typedef struct { __uint8_t i[sizeof(xfs_ino_t)]; } xfs_dir_ino_t;
      |                  ^~~~~~~~~
../include/xfs/xfs_dir_sf.h:42:37: error: 'xfs_ino_t' undeclared here (not in a function); did you mean 'xfs_inode'?
   42 | typedef struct { __uint8_t i[sizeof(xfs_ino_t)]; } xfs_dir_ino_t;
      |                                     ^~~~~~~~~
      |                                     xfs_inode
../include/xfs/xfs_dir_sf.h:55:3: error: unknown type name '__uint8_t'
   55 |   __uint8_t count; /* count of active entries */
      |   ^~~~~~~~~
../include/xfs/xfs_dir_sf.h:59:3: error: unknown type name '__uint8_t'
   59 |   __uint8_t namelen; /* actual length of name (no NULL) */
      |   ^~~~~~~~~
../include/xfs/xfs_dir_sf.h:60:3: error: unknown type name '__uint8_t'
   60 |   __uint8_t name[1]; /* name */
      |   ^~~~~~~~~
../include/xfs/xfs_dir_sf.h:71:2: error: unknown type name '__uint8_t'
   71 |  __uint8_t entno;  /* .=0, ..=1, else entry# + 2 */
      |  ^~~~~~~~~
../include/xfs/xfs_dir_sf.h:72:2: error: unknown type name '__uint8_t'
   72 |  __uint8_t seqno;  /* sequence # with same hash value */
      |  ^~~~~~~~~
../include/xfs/xfs_dir_sf.h:73:2: error: unknown type name '__uint8_t'
   73 |  __uint8_t namelen; /* length of name value (no null) */
      |  ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:56,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dir_leaf.h:87:3: error: unknown type name '__uint16_t'
   87 |   __uint16_t count; /* count of active leaf_entry's */
      |   ^~~~~~~~~~
../include/xfs/xfs_dir_leaf.h:88:3: error: unknown type name '__uint16_t'
   88 |   __uint16_t namebytes; /* num bytes of name strings stored */
      |   ^~~~~~~~~~
../include/xfs/xfs_dir_leaf.h:89:3: error: unknown type name '__uint16_t'
   89 |   __uint16_t firstused; /* first used byte in name area */
      |   ^~~~~~~~~~
../include/xfs/xfs_dir_leaf.h:90:3: error: unknown type name '__uint8_t'
   90 |   __uint8_t  holes; /* != 0 if blk needs compaction */
      |   ^~~~~~~~~
../include/xfs/xfs_dir_leaf.h:91:3: error: unknown type name '__uint8_t'
   91 |   __uint8_t  pad1;
      |   ^~~~~~~~~
../include/xfs/xfs_dir_leaf.h:93:4: error: unknown type name '__uint16_t'
   93 |    __uint16_t base; /* base of free region */
      |    ^~~~~~~~~~
../include/xfs/xfs_dir_leaf.h:94:4: error: unknown type name '__uint16_t'
   94 |    __uint16_t size; /* run length of free region */
      |    ^~~~~~~~~~
../include/xfs/xfs_dir_leaf.h:99:3: error: unknown type name '__uint16_t'
   99 |   __uint16_t nameidx; /* index into buffer of name */
      |   ^~~~~~~~~~
../include/xfs/xfs_dir_leaf.h:100:3: error: unknown type name '__uint8_t'
  100 |   __uint8_t namelen; /* length of name string */
      |   ^~~~~~~~~
../include/xfs/xfs_dir_leaf.h:101:3: error: unknown type name '__uint8_t'
  101 |   __uint8_t pad2;
      |   ^~~~~~~~~
../include/xfs/xfs_dir_leaf.h:105:3: error: unknown type name '__uint8_t'
  105 |   __uint8_t name[1]; /* name string itself */
      |   ^~~~~~~~~
../include/xfs/xfs_dir_leaf.h:125:2: error: unknown type name 'xfs_off_t'
  125 |  xfs_off_t  o;  /* offset (cookie) */
      |  ^~~~~~~~~
../include/xfs/xfs_dir_leaf.h:132:3: error: unknown type name '__uint32_t'
  132 |   __uint32_t be; /* block and entry */
      |   ^~~~~~~~~~
../include/xfs/xfs_dir_leaf.h:187:56: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  187 | int xfs_dir_shortform_create(struct xfs_da_args *args, xfs_ino_t parent);
      |                                                        ^~~~~~~~~
../include/xfs/xfs_dir_leaf.h:222:26: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dabuf_t'?
  222 |       xfs_dir_put_t put, xfs_daddr_t nextda);
      |                          ^~~~~~~~~~~
      |                          xfs_dabuf_t
../include/xfs/xfs_dir_leaf.h:240:48: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  240 | int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino);
      |                                                ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:57,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dir2.h:60:9: error: unknown type name '__uint16_t'
   60 | typedef __uint16_t xfs_dir2_data_off_t;
      |         ^~~~~~~~~~
../include/xfs/xfs_dir2.h:67:9: error: unknown type name '__uint32_t'
   67 | typedef __uint32_t xfs_dir2_db_t;
      |         ^~~~~~~~~~
../include/xfs/xfs_dir2.h:72:9: error: unknown type name 'xfs_off_t'
   72 | typedef xfs_off_t  xfs_dir2_off_t;
      |         ^~~~~~~~~
../include/xfs/xfs_dir2.h:79:2: error: unknown type name 'xfs_off_t'
   79 |  xfs_off_t  cook;  /* cookie of (next) entry */
      |  ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:58,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dir2_data.h:92:2: error: unknown type name '__uint32_t'
   92 |  __uint32_t  magic;  /* XFS_DIR2_DATA_MAGIC */
      |  ^~~~~~~~~~
../include/xfs/xfs_dir2_data.h:102:2: error: expected specifier-qualifier-list before 'xfs_ino_t'
  102 |  xfs_ino_t  inumber; /* inode number */
      |  ^~~~~~~~~
../include/xfs/xfs_dir2_data.h:114:2: error: unknown type name '__uint16_t'
  114 |  __uint16_t  freetag; /* XFS_DIR2_DATA_FREE_TAG */
      |  ^~~~~~~~~~
In file included from ../include/xfs/libxfs.h:59,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dir2_leaf.h:66:9: error: unknown type name '__uint32_t'
   66 | typedef __uint32_t xfs_dir2_dataptr_t;
      |         ^~~~~~~~~~
../include/xfs/xfs_dir2_leaf.h:79:2: error: unknown type name '__uint16_t'
   79 |  __uint16_t  count;  /* count of entries */
      |  ^~~~~~~~~~
../include/xfs/xfs_dir2_leaf.h:80:2: error: unknown type name '__uint16_t'
   80 |  __uint16_t  stale;  /* count of stale entries */
      |  ^~~~~~~~~~
../include/xfs/xfs_dir2_leaf.h:95:2: error: unknown type name '__uint32_t'
   95 |  __uint32_t  bestcount;
      |  ^~~~~~~~~~
In file included from ../include/xfs/libxfs.h:60,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dir2_block.h:60:2: error: unknown type name '__uint32_t'
   60 |  __uint32_t count;   /* count of leaf entries */
      |  ^~~~~~~~~~
../include/xfs/xfs_dir2_block.h:61:2: error: unknown type name '__uint32_t'
   61 |  __uint32_t stale;   /* count of stale lf entries */
      |  ^~~~~~~~~~
In file included from ../include/xfs/libxfs.h:61,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dir2_node.h:65:2: error: unknown type name '__uint32_t'
   65 |  __uint32_t  magic;  /* XFS_DIR2_FREE_MAGIC */
      |  ^~~~~~~~~~
../include/xfs/xfs_dir2_node.h:66:2: error: unknown type name '__int32_t'
   66 |  __int32_t  firstdb; /* db of first entry */
      |  ^~~~~~~~~
../include/xfs/xfs_dir2_node.h:67:2: error: unknown type name '__int32_t'
   67 |  __int32_t  nvalid;  /* count of valid entries */
      |  ^~~~~~~~~
../include/xfs/xfs_dir2_node.h:68:2: error: unknown type name '__int32_t'
   68 |  __int32_t  nused;  /* count of used entries */
      |  ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:62,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dir2_sf.h:60:18: error: unknown type name '__uint8_t'
   60 | typedef struct { __uint8_t i[8]; } xfs_dir2_ino8_t;
      |                  ^~~~~~~~~
../include/xfs/xfs_dir2_sf.h:67:18: error: unknown type name '__uint8_t'
   67 | typedef struct { __uint8_t i[4]; } xfs_dir2_ino4_t;
      |                  ^~~~~~~~~
../include/xfs/xfs_dir2_sf.h:79:18: error: unknown type name '__uint8_t'
   79 | typedef struct { __uint8_t i[2]; } xfs_dir2_sf_off_t;
      |                  ^~~~~~~~~
../include/xfs/xfs_dir2_sf.h:90:2: error: unknown type name '__uint8_t'
   90 |  __uint8_t  count;  /* count of entries */
      |  ^~~~~~~~~
../include/xfs/xfs_dir2_sf.h:91:2: error: unknown type name '__uint8_t'
   91 |  __uint8_t  i8count; /* count of 8-byte inode #s */
      |  ^~~~~~~~~
../include/xfs/xfs_dir2_sf.h:96:2: error: unknown type name '__uint8_t'
   96 |  __uint8_t  namelen; /* actual name length */
      |  ^~~~~~~~~
../include/xfs/xfs_dir2_sf.h:98:2: error: unknown type name '__uint8_t'
   98 |  __uint8_t  name[1]; /* name, variable size */
      |  ^~~~~~~~~
../include/xfs/xfs_dir2_sf.h:228:47: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  228 |  xfs_dir2_sf_create(struct xfs_da_args *args, xfs_ino_t pino);
      |                                               ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:63,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_attr_sf.h:49:3: error: unknown type name '__uint16_t'
   49 |   __uint16_t totsize; /* total bytes in shortform list */
      |   ^~~~~~~~~~
../include/xfs/xfs_attr_sf.h:50:3: error: unknown type name '__uint8_t'
   50 |   __uint8_t count; /* count of active entries */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_sf.h:53:3: error: unknown type name '__uint8_t'
   53 |   __uint8_t namelen; /* actual length of name (no NULL) */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_sf.h:54:3: error: unknown type name '__uint8_t'
   54 |   __uint8_t valuelen; /* actual length of value (no NULL) */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_sf.h:55:3: error: unknown type name '__uint8_t'
   55 |   __uint8_t flags; /* flags bits (see xfs_attr_leaf.h) */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_sf.h:56:3: error: unknown type name '__uint8_t'
   56 |   __uint8_t nameval[1]; /* name & value bytes concatenated */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_sf.h:66:2: error: unknown type name '__uint8_t'
   66 |  __uint8_t entno;  /* entry number in original list */
      |  ^~~~~~~~~
../include/xfs/xfs_attr_sf.h:67:2: error: unknown type name '__uint8_t'
   67 |  __uint8_t namelen; /* length of name value (no null) */
      |  ^~~~~~~~~
../include/xfs/xfs_attr_sf.h:68:2: error: unknown type name '__uint8_t'
   68 |  __uint8_t valuelen; /* length of value */
      |  ^~~~~~~~~
../include/xfs/xfs_attr_sf.h:69:2: error: unknown type name '__uint8_t'
   69 |  __uint8_t flags;  /* flags bits (see xfs_attr_leaf.h) */
      |  ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:64,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_dinode.h:56:2: error: unknown type name '__int32_t'
   56 |  __int32_t t_sec;  /* timestamp seconds */
      |  ^~~~~~~~~
../include/xfs/xfs_dinode.h:57:2: error: unknown type name '__int32_t'
   57 |  __int32_t t_nsec;  /* timestamp nanoseconds */
      |  ^~~~~~~~~
../include/xfs/xfs_dinode.h:66:2: error: unknown type name '__uint16_t'
   66 |  __uint16_t di_magic; /* inode magic # = XFS_DINODE_MAGIC */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:67:2: error: unknown type name '__uint16_t'
   67 |  __uint16_t di_mode; /* mode and type of file */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:68:2: error: unknown type name '__int8_t'
   68 |  __int8_t di_version; /* inode version */
      |  ^~~~~~~~
../include/xfs/xfs_dinode.h:69:2: error: unknown type name '__int8_t'
   69 |  __int8_t di_format; /* format of di_c data */
      |  ^~~~~~~~
../include/xfs/xfs_dinode.h:70:2: error: unknown type name '__uint16_t'
   70 |  __uint16_t di_onlink; /* old number of links to file */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:71:2: error: unknown type name '__uint32_t'
   71 |  __uint32_t di_uid;  /* owner's user id */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:72:2: error: unknown type name '__uint32_t'
   72 |  __uint32_t di_gid;  /* owner's group id */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:73:2: error: unknown type name '__uint32_t'
   73 |  __uint32_t di_nlink; /* number of links to file */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:74:2: error: unknown type name '__uint16_t'
   74 |  __uint16_t di_projid; /* owner's project id */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:75:2: error: unknown type name '__uint8_t'
   75 |  __uint8_t di_pad[8]; /* unused, zeroed space */
      |  ^~~~~~~~~
../include/xfs/xfs_dinode.h:76:2: error: unknown type name '__uint16_t'
   76 |  __uint16_t di_flushiter; /* incremented on flush */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:85:2: error: unknown type name '__uint8_t'
   85 |  __uint8_t di_forkoff; /* attr fork offs, <<3 for 64b align */
      |  ^~~~~~~~~
../include/xfs/xfs_dinode.h:86:2: error: unknown type name '__int8_t'
   86 |  __int8_t di_aformat; /* format of attr fork's data */
      |  ^~~~~~~~
../include/xfs/xfs_dinode.h:87:2: error: unknown type name '__uint32_t'
   87 |  __uint32_t di_dmevmask; /* DMIG event mask */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:88:2: error: unknown type name '__uint16_t'
   88 |  __uint16_t di_dmstate; /* DMIG state info */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:89:2: error: unknown type name '__uint16_t'
   89 |  __uint16_t di_flags; /* random flags, XFS_DIFLAG_... */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:90:2: error: unknown type name '__uint32_t'
   90 |  __uint32_t di_gen;  /* generation number */
      |  ^~~~~~~~~~
../include/xfs/xfs_dinode.h:110:3: error: unknown type name 'xfs_dev_t'
  110 |   xfs_dev_t di_dev;  /* device for S_IFCHR/S_IFBLK */
      |   ^~~~~~~~~
../include/xfs/xfs_dinode.h:111:3: error: unknown type name 'uuid_t'
  111 |   uuid_t  di_muuid; /* mount point value */
      |   ^~~~~~
In file included from ../include/xfs/libxfs.h:65,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_attr_leaf.h:92:3: error: unknown type name '__uint16_t'
   92 |   __uint16_t count; /* count of active leaf_entry's */
      |   ^~~~~~~~~~
../include/xfs/xfs_attr_leaf.h:93:3: error: unknown type name '__uint16_t'
   93 |   __uint16_t usedbytes; /* num bytes of names/values stored */
      |   ^~~~~~~~~~
../include/xfs/xfs_attr_leaf.h:94:3: error: unknown type name '__uint16_t'
   94 |   __uint16_t firstused; /* first used byte in name area */
      |   ^~~~~~~~~~
../include/xfs/xfs_attr_leaf.h:95:3: error: unknown type name '__uint8_t'
   95 |   __uint8_t  holes; /* != 0 if blk needs compaction */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_leaf.h:96:3: error: unknown type name '__uint8_t'
   96 |   __uint8_t  pad1;
      |   ^~~~~~~~~
../include/xfs/xfs_attr_leaf.h:98:4: error: unknown type name '__uint16_t'
   98 |    __uint16_t base;   /* base of free region */
      |    ^~~~~~~~~~
../include/xfs/xfs_attr_leaf.h:99:4: error: unknown type name '__uint16_t'
   99 |    __uint16_t size;   /* length of free region */
      |    ^~~~~~~~~~
../include/xfs/xfs_attr_leaf.h:104:3: error: unknown type name '__uint16_t'
  104 |   __uint16_t nameidx; /* index into buffer of name/value */
      |   ^~~~~~~~~~
../include/xfs/xfs_attr_leaf.h:105:3: error: unknown type name '__uint8_t'
  105 |   __uint8_t flags; /* LOCAL/ROOT/SECURE/INCOMPLETE flag */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_leaf.h:106:3: error: unknown type name '__uint8_t'
  106 |   __uint8_t pad2;  /* unused pad byte */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_leaf.h:109:3: error: unknown type name '__uint16_t'
  109 |   __uint16_t valuelen; /* number of bytes in value */
      |   ^~~~~~~~~~
../include/xfs/xfs_attr_leaf.h:110:3: error: unknown type name '__uint8_t'
  110 |   __uint8_t namelen; /* length of name bytes */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_leaf.h:111:3: error: unknown type name '__uint8_t'
  111 |   __uint8_t nameval[1]; /* name/value bytes */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_leaf.h:115:3: error: unknown type name '__uint32_t'
  115 |   __uint32_t valuelen; /* number of bytes in value */
      |   ^~~~~~~~~~
../include/xfs/xfs_attr_leaf.h:116:3: error: unknown type name '__uint8_t'
  116 |   __uint8_t namelen; /* length of name bytes */
      |   ^~~~~~~~~
../include/xfs/xfs_attr_leaf.h:117:3: error: unknown type name '__uint8_t'
  117 |   __uint8_t name[1]; /* name bytes */
      |   ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:66,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_quota.h:45:9: error: unknown type name '__uint32_t'
   45 | typedef __uint32_t xfs_dqid_t;
      |         ^~~~~~~~~~
../include/xfs/xfs_quota.h:52:9: error: unknown type name '__uint64_t'
   52 | typedef __uint64_t xfs_qcnt_t;
      |         ^~~~~~~~~~
../include/xfs/xfs_quota.h:53:9: error: unknown type name '__uint16_t'
   53 | typedef __uint16_t xfs_qwarncnt_t;
      |         ^~~~~~~~~~
../include/xfs/xfs_quota.h:62:8: error: unknown type name 'u_int16_t'
   62 | /*16*/ u_int16_t d_magic; /* dquot magic = XFS_DQUOT_MAGIC */
      |        ^~~~~~~~~
../include/xfs/xfs_quota.h:63:8: error: unknown type name 'u_int8_t'
   63 | /*8 */ u_int8_t d_version; /* dquot version */
      |        ^~~~~~~~
../include/xfs/xfs_quota.h:64:8: error: unknown type name 'u_int8_t'
   64 | /*8 */ u_int8_t d_flags; /* XFS_DQ_USER/PROJ/GROUP */
      |        ^~~~~~~~
../include/xfs/xfs_quota.h:72:8: error: unknown type name '__int32_t'
   72 | /*32*/ __int32_t d_itimer; /* zero if within inode limits if not,
      |        ^~~~~~~~~
../include/xfs/xfs_quota.h:74:8: error: unknown type name '__int32_t'
   74 | /*32*/ __int32_t d_btimer; /* similar to above; for disk blocks */
      |        ^~~~~~~~~
../include/xfs/xfs_quota.h:77:8: error: unknown type name '__int32_t'
   77 | /*32*/ __int32_t d_pad0;  /* 64 bit align */
      |        ^~~~~~~~~
../include/xfs/xfs_quota.h:81:8: error: unknown type name '__int32_t'
   81 | /*32*/ __int32_t d_rtbtimer; /* similar to above; for RT disk blocks */
      |        ^~~~~~~~~
../include/xfs/xfs_quota.h:83:8: error: unknown type name '__uint16_t'
   83 | /*16*/ __uint16_t d_pad;
      |        ^~~~~~~~~~
../include/xfs/xfs_quota.h:127:2: error: unknown type name '__uint16_t'
  127 |  __uint16_t  qlf_type;      /* dquot log item type */
      |  ^~~~~~~~~~
../include/xfs/xfs_quota.h:128:2: error: unknown type name '__uint16_t'
  128 |  __uint16_t  qlf_size;      /* size of this item */
      |  ^~~~~~~~~~
../include/xfs/xfs_quota.h:130:2: error: unknown type name '__int64_t'
  130 |  __int64_t  qlf_blkno;     /* blkno of dquot buffer */
      |  ^~~~~~~~~
../include/xfs/xfs_quota.h:131:2: error: unknown type name '__int32_t'
  131 |  __int32_t  qlf_len;       /* len of dquot buffer */
      |  ^~~~~~~~~
../include/xfs/xfs_quota.h:132:2: error: unknown type name '__uint32_t'
  132 |  __uint32_t  qlf_boffset;   /* off of dquot in buffer */
      |  ^~~~~~~~~~
In file included from ../include/xfs/libxfs.h:69,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_inode.h:57:3: error: unknown type name 'xfs_dev_t'
   57 |   xfs_dev_t if_rdev; /* dev number if special */
      |   ^~~~~~~~~
../include/xfs/xfs_inode.h:58:3: error: unknown type name 'uuid_t'
   58 |   uuid_t  if_uuid; /* mount point value */
      |   ^~~~~~
In file included from ../include/xfs/libxfs.h:70,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_buf_item.h:45:2: error: unknown type name '__int32_t'
   45 |  __int32_t blf_blkno; /* starting blkno of this buf */
      |  ^~~~~~~~~
../include/xfs/xfs_buf_item.h:62:2: error: unknown type name '__int64_t'
   62 |  __int64_t blf_blkno; /* starting blkno of this buf */
      |  ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:71,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_inode_item.h:66:2: error: expected specifier-qualifier-list before 'xfs_ino_t'
   66 |  xfs_ino_t  ilf_ino; /* inode number */
      |  ^~~~~~~~~
../include/xfs/xfs_inode_item.h:82:2: error: expected specifier-qualifier-list before 'xfs_ino_t'
   82 |  xfs_ino_t  ilf_ino; /* inode number */
      |  ^~~~~~~~~
In file included from ../include/xfs/libxfs.h:73,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_imap.h:40:2: error: unknown type name 'xfs_daddr_t'
   40 |  xfs_daddr_t im_blkno; /* starting BB of inode chunk */
      |  ^~~~~~~~~~~
In file included from ../include/xfs/libxfs.h:74,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_log.h:118:2: error: unknown type name 'xfs_caddr_t'
  118 |  xfs_caddr_t  i_addr;  /* beginning address of region */
      |  ^~~~~~~~~~~
In file included from ../include/xfs/libxfs.h:75,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_log_priv.h:259:9: error: unknown type name '__uint32_t'
  259 | typedef __uint32_t xlog_tid_t;
      |         ^~~~~~~~~~
../include/xfs/xfs_log_priv.h:356:2: error: unknown type name '__uint8_t'
  356 |  __uint8_t  oh_clientid; /* who sent me this  :  1 b */
      |  ^~~~~~~~~
../include/xfs/xfs_log_priv.h:357:2: error: unknown type name '__uint8_t'
  357 |  __uint8_t  oh_flags; /*    :  1 b */
      |  ^~~~~~~~~
../include/xfs/xfs_log_priv.h:392:2: error: unknown type name 'uuid_t'
  392 |  uuid_t    h_fs_uuid;    /* uuid of FS                           : 16 */
      |  ^~~~~~
In file included from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/libxfs.h:128:40: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  128 | extern void libxfs_device_zero (dev_t, xfs_daddr_t, uint);
      |                                        ^~~~~~~~~~~
      |                                        xfs_dqid_t
../include/xfs/libxfs.h:132:54: error: expected ')' before 'int'
  132 | typedef xfs_caddr_t (libxfs_get_block_t)(xfs_caddr_t, int, void *);
      |                                                      ^~~~
      |                                                      )
../include/xfs/libxfs.h:134:37: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  134 | extern int libxfs_log_clear (dev_t, xfs_daddr_t, uint, uuid_t *,
      |                                     ^~~~~~~~~~~
      |                                     xfs_dqid_t
../include/xfs/libxfs.h:134:56: error: unknown type name 'uuid_t'; did you mean 'uid_t'?
  134 | extern int libxfs_log_clear (dev_t, xfs_daddr_t, uint, uuid_t *,
      |                                                        ^~~~~~
      |                                                        uid_t
../include/xfs/libxfs.h:136:50: error: expected ')' before '*' token
  136 | extern int libxfs_log_header (xfs_caddr_t, uuid_t *, int, int, int,
      |                                                  ^~
      |                                                  )
../include/xfs/libxfs.h:160:2: error: unknown type name '__uint8_t'
  160 |  __uint8_t  m_dircook_elog; /* log d-cookie entry bits */
      |  ^~~~~~~~~
../include/xfs/libxfs.h:161:2: error: unknown type name '__uint8_t'
  161 |  __uint8_t  m_blkbit_log; /* blocklog + NBBY */
      |  ^~~~~~~~~
../include/xfs/libxfs.h:162:2: error: unknown type name '__uint8_t'
  162 |  __uint8_t  m_blkbb_log; /* blocklog - BBSHIFT */
      |  ^~~~~~~~~
../include/xfs/libxfs.h:163:2: error: unknown type name '__uint8_t'
  163 |  __uint8_t  m_sectbb_log; /* sectorlog - BBSHIFT */
      |  ^~~~~~~~~
../include/xfs/libxfs.h:164:2: error: unknown type name '__uint8_t'
  164 |  __uint8_t  m_agno_log; /* log #ag's */
      |  ^~~~~~~~~
../include/xfs/libxfs.h:165:2: error: unknown type name '__uint8_t'
  165 |  __uint8_t  m_agino_log; /* #bits for agino in inum */
      |  ^~~~~~~~~
../include/xfs/libxfs.h:166:2: error: unknown type name '__uint16_t'
  166 |  __uint16_t  m_inode_cluster_size;/* min inode buf size */
      |  ^~~~~~~~~~
../include/xfs/libxfs.h:190:2: error: unknown type name '__uint64_t'
  190 |  __uint64_t  m_maxicount; /* maximum inode count */
      |  ^~~~~~~~~~
../include/xfs/libxfs.h:196:2: error: unknown type name '__uint8_t'
  196 |  __uint8_t  m_dirversion; /* 1 or 2 */
      |  ^~~~~~~~~
../include/xfs/libxfs.h:227:2: error: unknown type name 'xfs_daddr_t'
  227 |  xfs_daddr_t b_blkno;
      |  ^~~~~~~~~~~
../include/xfs/libxfs.h:254:41: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  254 | extern xfs_buf_t *libxfs_getbuf (dev_t, xfs_daddr_t, int);
      |                                         ^~~~~~~~~~~
      |                                         xfs_dqid_t
../include/xfs/libxfs.h:255:42: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  255 | extern xfs_buf_t *libxfs_readbuf (dev_t, xfs_daddr_t, int, int);
      |                                          ^~~~~~~~~~~
      |                                          xfs_dqid_t
../include/xfs/libxfs.h:257:36: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  257 | extern int libxfs_readbufr (dev_t, xfs_daddr_t, xfs_buf_t *, int, int);
      |                                    ^~~~~~~~~~~
      |                                    xfs_dqid_t
In file included from ../include/xfs/libxfs.h:295,
                 from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/xfs_trans.h:47:2: error: unknown type name '__int32_t'
   47 |  __int32_t th_tid;   /* transaction id (unused) */
      |  ^~~~~~~~~
In file included from ./xfs.h:59,
                 from bit.c:37:
../include/xfs/libxfs.h:316:43: error: unknown type name '__int64_t'; did you mean 'uint64_t'?
  316 | extern void libxfs_mod_sb (xfs_trans_t *, __int64_t);
      |                                           ^~~~~~~~~
      |                                           uint64_t
../include/xfs/libxfs.h:318:61: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  318 | extern int libxfs_trans_iget (xfs_mount_t *, xfs_trans_t *, xfs_ino_t,
      |                                                             ^~~~~~~~~
../include/xfs/libxfs.h:333:5: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  333 |     xfs_daddr_t, int, uint);
      |     ^~~~~~~~~~~
      |     xfs_dqid_t
../include/xfs/libxfs.h:335:5: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  335 |     xfs_daddr_t, int, uint, struct xfs_buf **);
      |     ^~~~~~~~~~~
      |     xfs_dqid_t
../include/xfs/libxfs.h:361:2: error: expected specifier-qualifier-list before 'xfs_ino_t'
  361 |  xfs_ino_t  i_ino;  /* inode number (agno/agino) */
      |  ^~~~~~~~~
../include/xfs/libxfs.h:385:13: error: unknown type name 'xfs_dev_t'; did you mean 'xfs_buf_t'?
  385 |     ushort, xfs_dev_t, cred_t *, xfs_inode_t **);
      |             ^~~~~~~~~
      |             xfs_buf_t
../include/xfs/libxfs.h:390:56: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  390 | extern int libxfs_iread (xfs_mount_t *, xfs_trans_t *, xfs_ino_t,
      |                                                        ^~~~~~~~~
../include/xfs/libxfs.h:391:21: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  391 |     xfs_inode_t **, xfs_daddr_t);
      |                     ^~~~~~~~~~~
      |                     xfs_dqid_t
../include/xfs/libxfs.h:395:36: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  395 |     xfs_dinode_t **, xfs_buf_t **, xfs_daddr_t);
      |                                    ^~~~~~~~~~~
      |                                    xfs_dqid_t
../include/xfs/libxfs.h:396:55: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  396 | extern int libxfs_iget (xfs_mount_t *, xfs_trans_t *, xfs_ino_t,
      |                                                       ^~~~~~~~~
../include/xfs/libxfs.h:397:27: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  397 |     uint, xfs_inode_t **, xfs_daddr_t);
      |                           ^~~~~~~~~~~
      |                           xfs_dqid_t
../include/xfs/libxfs.h:409:10: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  409 |     int, xfs_ino_t, xfs_fsblock_t *,
      |          ^~~~~~~~~
../include/xfs/libxfs.h:412:10: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  412 |     int, xfs_ino_t, xfs_fsblock_t *,
      |          ^~~~~~~~~
../include/xfs/libxfs.h:415:18: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  415 |     char *, int, xfs_ino_t *);
      |                  ^~~~~~~~~
../include/xfs/libxfs.h:417:18: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  417 |     char *, int, xfs_ino_t *);
      |                  ^~~~~~~~~
../include/xfs/libxfs.h:419:18: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  419 |     char *, int, xfs_ino_t, xfs_fsblock_t *,
      |                  ^~~~~~~~~
../include/xfs/libxfs.h:422:18: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  422 |     char *, int, xfs_ino_t, xfs_fsblock_t *,
      |                  ^~~~~~~~~
../include/xfs/libxfs.h:425:18: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  425 |     char *, int, xfs_ino_t, xfs_fsblock_t *,
      |                  ^~~~~~~~~
../include/xfs/libxfs.h:428:18: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  428 |     char *, int, xfs_ino_t, xfs_fsblock_t *,
      |                  ^~~~~~~~~
../include/xfs/libxfs.h:460:1: warning: parameter names (without types) in function declaration
  460 | extern int libxfs_highbit32 (__uint32_t);
      | ^~~~~~
../include/xfs/libxfs.h:461:1: warning: parameter names (without types) in function declaration
  461 | extern int libxfs_highbit64 (__uint64_t);
      | ^~~~~~
../include/xfs/libxfs.h:464:55: error: unknown type name '__int64_t'; did you mean 'uint64_t'?
  464 | extern void libxfs_xlate_sb (void *, xfs_sb_t *, int, __int64_t);
      |                                                       ^~~~~~~~~
      |                                                       uint64_t
../include/xfs/libxfs.h:465:39: error: unknown type name 'xfs_caddr_t'
  465 | extern void libxfs_xlate_dinode_core (xfs_caddr_t buf,
      |                                       ^~~~~~~~~~~
../include/xfs/libxfs.h:469:52: error: unknown type name 'xfs_off_t'; did you mean 'xfs_buf_t'?
  469 | extern int libxfs_alloc_file_space (xfs_inode_t *, xfs_off_t,
      |                                                    ^~~~~~~~~
      |                                                    xfs_buf_t
../include/xfs/libxfs.h:470:5: error: unknown type name 'xfs_off_t'; did you mean 'xfs_buf_t'?
  470 |     xfs_off_t, int, int);
      |     ^~~~~~~~~
      |     xfs_buf_t
../include/xfs/libxfs.h:498:5: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  498 |     xfs_daddr_t, xfs_dabuf_t **, int);
      |     ^~~~~~~~~~~
      |     xfs_dqid_t
../include/xfs/libxfs.h:500:18: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  500 |     xfs_dablk_t, xfs_daddr_t, xfs_dabuf_t **, int);
      |                  ^~~~~~~~~~~
      |                  xfs_dqid_t
../include/xfs/libxfs.h:502:18: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  502 |     xfs_dablk_t, xfs_daddr_t, xfs_dabuf_t **, int);
      |                  ^~~~~~~~~~~
      |                  xfs_dqid_t
In file included from bit.c:37:
./xfs.h:261:9: error: unknown type name '__uint32_t'
  261 | typedef __uint32_t uint_t;
      |         ^~~~~~~~~~
./xfs.h:261:20: error: conflicting types for 'uint_t'
  261 | typedef __uint32_t uint_t;
      |                    ^~~~~~
In file included from /usr/include/fcntl.h:39,
                 from ../include/xfs/platform_defs.h:40,
                 from ../include/xfs/libxfs.h:38,
                 from ./xfs.h:59,
                 from bit.c:37:
/usr/include/sys/types.h:104:22: note: previous declaration of 'uint_t' was here
  104 | typedef unsigned int uint_t;
      |                      ^~~~~~
In file included from bit.c:37:
./xfs.h:262:9: error: unknown type name '__uint32_t'
  262 | typedef __uint32_t inst_t; /* an instruction */
      |         ^~~~~~~~~~
./xfs.h:378:34: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  378 | int  xfs_dialloc (xfs_trans_t *, xfs_ino_t, mode_t, int, xfs_buf_t **,
      |                                  ^~~~~~~~~
./xfs.h:379:17: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  379 |    boolean_t *, xfs_ino_t *);
      |                 ^~~~~~~~~
./xfs.h:383:50: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  383 | int  xfs_dilocate (xfs_mount_t *, xfs_trans_t *, xfs_ino_t, xfs_fsblock_t *,
      |                                                  ^~~~~~~~~
./xfs.h:416:35: error: expected ')' before 'const'
  416 | void xfs_btree_offsets (__int64_t, const short *, int, int *, int *);
      |                                   ^~~~~~
      |                                   )
./xfs.h:432:65: error: unknown type name 'xfs_dev_t'; did you mean 'xfs_buf_t'?
  432 | int  xfs_ialloc (xfs_trans_t *, xfs_inode_t *, mode_t, nlink_t, xfs_dev_t, cred_t *,
      |                                                                 ^~~~~~~~~
      |                                                                 xfs_buf_t
./xfs.h:435:46: error: expected declaration specifiers or '...' before 'xfs_ino_t'
  435 | int  xfs_imap (xfs_mount_t *, xfs_trans_t *, xfs_ino_t, xfs_imap_t *, uint);
      |                                              ^~~~~~~~~
./xfs.h:582:64: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  582 | int  xfs_da_do_buf (xfs_trans_t *, xfs_inode_t *, xfs_dablk_t, xfs_daddr_t *,
      |                                                                ^~~~~~~~~~~
      |                                                                xfs_dqid_t
./xfs.h:599:1: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  599 | xfs_daddr_t xfs_da_blkno(xfs_dabuf_t *);
      | ^~~~~~~~~~~
      | xfs_dqid_t
./xfs.h:666:4: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  666 |    xfs_daddr_t, int);
      |    ^~~~~~~~~~~
      |    xfs_dqid_t
./xfs.h:668:4: error: unknown type name 'xfs_daddr_t'; did you mean 'xfs_dqid_t'?
  668 |    xfs_daddr_t, int);
      |    ^~~~~~~~~~~
      |    xfs_dqid_t
bit.c:158:2: error: unknown type name '__uint32_t'; did you mean 'uint32_t'?
  158 |  __uint32_t v)
      |  ^~~~~~~~~~
      |  uint32_t
bit.c:182:2: error: unknown type name '__uint32_t'; did you mean 'uint32_t'?
  182 |  __uint32_t v)
      |  ^~~~~~~~~~
      |  uint32_t
bit.c:206:2: error: unknown type name '__uint64_t'; did you mean 'uint64_t'?
  206 |  __uint64_t v)
      |  ^~~~~~~~~~
      |  uint64_t
bit.c:272:2: error: unknown type name '__uint64_t'; did you mean 'uint64_t'?
  272 |  __uint64_t v)
      |  ^~~~~~~~~~
      |  uint64_t
bit.c:118:19: warning: 'xfs_countbit' defined but not used [-Wunused-const-variable=]
  118 | static const char xfs_countbit[256] = {
      |                   ^~~~~~~~~~~~
bit.c:80:19: warning: 'xfs_highbit' defined but not used [-Wunused-const-variable=]
   80 | static const char xfs_highbit[256] = {
      |                   ^~~~~~~~~~~
bit.c:42:19: warning: 'xfs_lowbit' defined but not used [-Wunused-const-variable=]
   42 | static const char xfs_lowbit[256] = {
      |                   ^~~~~~~~~~
make[1]: *** [../include/buildrules:55: bit.lo] Error 1
gmake: *** [Makefile:54: default] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xfsprogs
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/xfsprogs