10369 sysent: cast between incompatible function types

Review Request #1444 — Created Feb. 10, 2019 and submitted

tsoome
illumos-gate
10369
1443
22726f7...
general
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'void (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:442:11: note: in expansion of macro 'SYSENT_CI'
  /*  1 */ SYSENT_CI("exit",  rexit,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(procset_t *, psecflagwhich_t,  secflagdelta_t *)' {aka 'int (*)(struct procset *, enum <anonymous>,  struct secflagdelta *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:443:11: note: in expansion of macro 'SYSENT_CI'
  /*  2 */ SYSENT_CI("psecflags",  psecflags, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:446:11: note: in expansion of macro 'SYSENT_CI'
  /*  5 */ SYSENT_CI("open",  open,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:447:11: note: in expansion of macro 'SYSENT_CI'
  /*  6 */ SYSENT_CI("close",  close,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:448:11: note: in expansion of macro 'SYSENT_CI'
  /*  7 */ SYSENT_CI("linkat",  linkat,  5),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:449:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /*  8 */ SYSENT_LOADABLE(),   /* (was creat) */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:450:11: note: in expansion of macro 'SYSENT_CI'
  /*  9 */ SYSENT_CI("link",  link,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:451:11: note: in expansion of macro 'SYSENT_CI'
  /* 10 */ SYSENT_CI("unlink",  unlink,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int,  char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:452:11: note: in expansion of macro 'SYSENT_CI'
  /* 11 */ SYSENT_CI("symlinkat",  symlinkat, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:453:11: note: in expansion of macro 'SYSENT_CI'
  /* 12 */ SYSENT_CI("chdir",  chdir,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, mode_t,  dev_t)' {aka 'int (*)(char *, unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:455:11: note: in expansion of macro 'SYSENT_CI'
  /* 14 */ SYSENT_CI("mknod",  mknod,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:456:11: note: in expansion of macro 'SYSENT_CI'
  /* 15 */ SYSENT_CI("chmod",  chmod,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, uid_t,  gid_t)' {aka 'int (*)(char *, unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:457:11: note: in expansion of macro 'SYSENT_CI'
  /* 16 */ SYSENT_CI("chown",  chown,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct stat *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:459:11: note: in expansion of macro 'SYSENT_CI'
  /* 18 */ SYSENT_CI("stat",  stat,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uid_t)' {aka 'int (*)(unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:466:11: note: in expansion of macro 'SYSENT_CI'
  /* 23 */ SYSENT_CI("setuid",  setuid,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(time_t)' {aka 'int (*)(long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:468:11: note: in expansion of macro 'SYSENT_CI'
  /* 25 */ SYSENT_CI("stime",  stime,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:470:11: note: in expansion of macro 'SYSENT_CI'
  /* 27 */ SYSENT_CI("alarm",  alarm,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct stat *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:471:11: note: in expansion of macro 'SYSENT_CI'
  /* 28 */ SYSENT_CI("fstat",  fstat,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:472:11: note: in expansion of macro 'SYSENT_CI'
  /* 29 */ SYSENT_CI("pause",  pause,  0),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:473:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 30 */ SYSENT_LOADABLE(),   /* (was utime) */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  intptr_t)' {aka 'int (*)(int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:474:11: note: in expansion of macro 'SYSENT_CI'
  /* 31 */ SYSENT_CI("stty",  stty,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  intptr_t)' {aka 'int (*)(int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:475:11: note: in expansion of macro 'SYSENT_CI'
  /* 32 */ SYSENT_CI("gtty",  gtty,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:476:11: note: in expansion of macro 'SYSENT_CI'
  /* 33 */ SYSENT_CI("access",  access,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:477:11: note: in expansion of macro 'SYSENT_CI'
  /* 34 */ SYSENT_CI("nice",  nice,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:481:11: note: in expansion of macro 'SYSENT_CI'
  /* 36 */ SYSENT_CI("sync",  syssync, 0),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(pid_t,  int)' {aka 'int (*)(int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:482:11: note: in expansion of macro 'SYSENT_CI'
  /* 37 */ SYSENT_CI("kill",  kill,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:486:11: note: in expansion of macro 'SYSENT_CI'
  /* 39 */ SYSENT_CI("setpgrp",  setpgrp, 3),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:488:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 41 */ SYSENT_LOADABLE(),   /* (was dup) */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:489:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 42 */ SYSENT_LOADABLE(),   /* pipe */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(short unsigned int *, size_t,  ulong_t,  uint_t)' {aka 'int (*)(short unsigned int *, long unsigned int,  long unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:491:11: note: in expansion of macro 'SYSENT_CI'
  /* 44 */ SYSENT_CI("prof",  profil,  4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:492:11: note: in expansion of macro 'SYSENT_CI'
  /* 45 */ SYSENT_CI("faccessat",  faccessat, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(gid_t)' {aka 'int (*)(unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:493:11: note: in expansion of macro 'SYSENT_CI'
  /* 46 */ SYSENT_CI("setgid",  setgid,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, mode_t,  dev_t)' {aka 'int (*)(int,  char *, unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:495:11: note: in expansion of macro 'SYSENT_CI'
  /* 48 */ SYSENT_CI("mknodat",  mknodat, 4),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:496:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 49 */ SYSENT_LOADABLE(),   /* msgsys */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(short int,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'int (*)(short int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:400:29: note: in definition of macro 'IF_x86'
 #define IF_x86(true, false) true
                             ^~~~
../../common/os/sysent.c:498:4: note: in expansion of macro 'SYSENT_CI'
    SYSENT_CI("sysi86", sysi86,  4),
    ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:500:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 51 */ SYSENT_LOADABLE(),   /* sysacct */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:501:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 52 */ SYSENT_LOADABLE(),   /* shmsys */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:502:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 53 */ SYSENT_LOADABLE(),   /* semsys */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  intptr_t)' {aka 'int (*)(int,  int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:503:11: note: in expansion of macro 'SYSENT_CI'
  /* 54 */ SYSENT_CI("ioctl",  ioctl,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  uintptr_t)' {aka 'int (*)(int,  int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:504:11: note: in expansion of macro 'SYSENT_CI'
  /* 55 */ SYSENT_CI("uadmin",  uadmin,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, uid_t,  gid_t,  int)' {aka 'int (*)(int,  char *, unsigned int,  unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:505:11: note: in expansion of macro 'SYSENT_CI'
  /* 56 */ SYSENT_CI("fchownat",  fchownat, 5),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:509:11: note: in expansion of macro 'SYSENT_CI'
  /* 58 */ SYSENT_CI("fdsync",  fdsync,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(const char *, const char **, const char **)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:510:11: note: in expansion of macro 'SYSENT_CI'
  /* 59 */ SYSENT_CI("exece",  exece,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:511:11: note: in expansion of macro 'SYSENT_CI'
  /* 60 */ SYSENT_CI("umask",  umask,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:512:11: note: in expansion of macro 'SYSENT_CI'
  /* 61 */ SYSENT_CI("chroot",  chroot,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  intptr_t)' {aka 'int (*)(int,  int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:513:11: note: in expansion of macro 'SYSENT_CI'
  /* 62 */ SYSENT_CI("fcntl",  fcntl,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:515:11: note: in expansion of macro 'SYSENT_CI'
  /* 64 */ SYSENT_CI("renameat",  renameat, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:516:11: note: in expansion of macro 'SYSENT_CI'
  /* 65 */ SYSENT_CI("unlinkat",  unlinkat, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, struct stat *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:517:11: note: in expansion of macro 'SYSENT_CI'
  /* 66 */ SYSENT_CI("fstatat",  fstatat, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:521:11: note: in expansion of macro 'SYSENT_CI'
  /* 68 */ SYSENT_CI("openat",  openat,  4),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:526:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 71 */ SYSENT_LOADABLE(),  /* acctctl */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:527:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 72 */ SYSENT_LOADABLE(),  /* exacct */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  size_t *, int)' {aka 'int (*)(int,  long unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:528:11: note: in expansion of macro 'SYSENT_CI'
  /* 73 */ SYSENT_CI("getpagesizes", getpagesizes, 3),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:531:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 76 */ SYSENT_LOADABLE(),   /* (was fsat) */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uintptr_t,  uintptr_t)' {aka 'int (*)(int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:532:11: note: in expansion of macro 'SYSENT_CI'
  /* 77 */ SYSENT_CI("lwp_park",  syslwp_park, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:534:11: note: in expansion of macro 'SYSENT_CI'
  /* 79 */ SYSENT_CI("rmdir",  rmdir,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:535:11: note: in expansion of macro 'SYSENT_CI'
  /* 80 */ SYSENT_CI("mkdir",  mkdir,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, size_t)' {aka 'int (*)(int,  void *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:382:30: note: in definition of macro 'IF_LP64'
 #define IF_LP64(true, false) true
                              ^~~~
../../common/os/sysent.c:537:4: note: in expansion of macro 'SYSENT_CI'
    SYSENT_CI("getdents", getdents64, 3),
    ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  priv_op_t,  priv_ptype_t,  void *, size_t,  int)' {aka 'int (*)(int,  enum priv_op,  int,  void *, long unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:539:11: note: in expansion of macro 'SYSENT_CI'
  /* 82 */ SYSENT_CI("privsys",  privsys, 6),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:540:11: note: in expansion of macro 'SYSENT_CI'
  /* 83 */ SYSENT_CI("ucredsys",  ucredsys, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  long int,  long int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:541:11: note: in expansion of macro 'SYSENT_CI'
  /* 84 */ SYSENT_CI("sysfs",  sysfs,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct strbuf *, struct strbuf *, int *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:542:11: note: in expansion of macro 'SYSENT_CI'
  /* 85 */ SYSENT_CI("getmsg",  getmsg,  4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct strbuf *, struct strbuf *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:543:11: note: in expansion of macro 'SYSENT_CI'
  /* 86 */ SYSENT_CI("putmsg",  putmsg,  4),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:544:11: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 87 */ SYSENT_LOADABLE(),   /* (was poll) */
           ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct stat *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:545:11: note: in expansion of macro 'SYSENT_CI'
  /* 88 */ SYSENT_CI("lstat",  lstat,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:546:11: note: in expansion of macro 'SYSENT_CI'
  /* 89 */ SYSENT_CI("symlink",  symlink, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  gid_t *)' {aka 'int (*)(int,  unsigned int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:548:11: note: in expansion of macro 'SYSENT_CI'
  /* 91 */ SYSENT_CI("setgroups",  setgroups, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  gid_t *)' {aka 'int (*)(int,  unsigned int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:549:11: note: in expansion of macro 'SYSENT_CI'
  /* 92 */ SYSENT_CI("getgroups",  getgroups, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:550:11: note: in expansion of macro 'SYSENT_CI'
  /* 93 */ SYSENT_CI("fchmod",  fchmod,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uid_t,  uid_t)' {aka 'int (*)(int,  unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:551:11: note: in expansion of macro 'SYSENT_CI'
  /* 94 */ SYSENT_CI("fchown",  fchown,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  sigset_t *, sigset_t *)' {aka 'int (*)(int,  struct <anonymous> *, struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:552:11: note: in expansion of macro 'SYSENT_CI'
  /* 95 */ SYSENT_CI("sigprocmask", sigprocmask, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(sigset_t)' {aka 'int (*)(struct <anonymous>)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:553:11: note: in expansion of macro 'SYSENT_CI'
  /* 96 */ SYSENT_CI("sigsuspend", sigsuspend, 1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct sigaltstack *, struct sigaltstack *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:554:11: note: in expansion of macro 'SYSENT_CI'
  /* 97 */ SYSENT_CI("sigaltstack", sigaltstack, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sigaction *, struct sigaction *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:555:11: note: in expansion of macro 'SYSENT_CI'
  /* 98 */ SYSENT_CI("sigaction",  sigaction, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  sigset_t *)' {aka 'int (*)(int,  struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:556:11: note: in expansion of macro 'SYSENT_CI'
  /* 99 */ SYSENT_CI("sigpending", sigpending, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:557:12: note: in expansion of macro 'SYSENT_CI'
  /* 100 */ SYSENT_CI("getsetcontext", getsetcontext, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:558:12: note: in expansion of macro 'SYSENT_CI'
  /* 101 */ SYSENT_CI("fchmodat",  fchmodat, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:559:12: note: in expansion of macro 'SYSENT_CI'
  /* 102 */ SYSENT_CI("mkdirat",  mkdirat, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct statvfs *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:560:12: note: in expansion of macro 'SYSENT_CI'
  /* 103 */ SYSENT_CI("statvfs",  statvfs, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct statvfs *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:561:12: note: in expansion of macro 'SYSENT_CI'
  /* 104 */ SYSENT_CI("fstatvfs",  fstatvfs, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:562:12: note: in expansion of macro 'SYSENT_CI'
  /* 105 */ SYSENT_CI("getloadavg", getloadavg, 2),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:563:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 106 */ SYSENT_LOADABLE(),  /* nfssys */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(idtype_t,  id_t,  siginfo_t *, int)' {aka 'int (*)(enum idtype,  int,  struct siginfo *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:564:12: note: in expansion of macro 'SYSENT_CI'
  /* 107 */ SYSENT_CI("waitsys",  waitsys, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(procset_t *, int)' {aka 'int (*)(struct procset *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:565:12: note: in expansion of macro 'SYSENT_CI'
  /* 108 */ SYSENT_CI("sigsendset", sigsendsys, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:569:12: note: in expansion of macro 'SYSENT_CI'
  /* 110 */ SYSENT_CI("utimesys",  utimesys, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  siginfo_t *, sigset_t *)' {aka 'int (*)(int,  struct siginfo *, struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:570:12: note: in expansion of macro 'SYSENT_CI'
  /* 111 */ SYSENT_CI("sigresend", sigresend, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t,  char *)' {aka 'int (*)(char *, long unsigned int,  char *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:573:12: note: in expansion of macro 'SYSENT_CI'
  /* 114 */ SYSENT_CI("mincore",  mincore, 3),
            ^~~~~~~~~
../../common/os/sysent.c:358:35: error: cast between incompatible function types from 'char * (*)(char *, size_t,  int,  int,  int,  off_t)' {aka 'char * (*)(char *, long unsigned int,  int,  int,  int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_64RVAL, NULL, NULL, (llfcn_t)(call) }
                                   ^
../../common/os/sysent.c:382:30: note: in definition of macro 'IF_LP64'
 #define IF_LP64(true, false) true
                              ^~~~
../../common/os/sysent.c:417:2: note: in expansion of macro 'IF_LP64'
  IF_LP64(SYSENT_C(name, call, narg), SYSENT_CI(name, call, narg))
  ^~~~~~~
../../common/os/sysent.c:417:10: note: in expansion of macro 'SYSENT_C'
  IF_LP64(SYSENT_C(name, call, narg), SYSENT_CI(name, call, narg))
          ^~~~~~~~
../../common/os/sysent.c:575:4: note: in expansion of macro 'SYSENT_CL'
    SYSENT_CL("mmap", smmap64, 6),
    ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t,  int)' {aka 'int (*)(char *, long unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:577:12: note: in expansion of macro 'SYSENT_CI'
  /* 116 */ SYSENT_CI("mprotect",  mprotect, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t)' {aka 'int (*)(char *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:578:12: note: in expansion of macro 'SYSENT_CI'
  /* 117 */ SYSENT_CI("munmap",  munmap,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:581:12: note: in expansion of macro 'SYSENT_CI'
  /* 120 */ SYSENT_CI("fchdir",  fchdir,  1),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:586:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 125 */ SYSENT_LOADABLE(),   /* (was fxstat) */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(void *, size_t,  int)' {aka 'int (*)(void *, long unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:587:12: note: in expansion of macro 'SYSENT_CI'
  /* 126 */ SYSENT_CI("getrandom", getrandom, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uint_t,  mmapobj_result_t *, uint_t *, void *)' {aka 'int (*)(int,  unsigned int,  struct mmapobj_result *, unsigned int *, void *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:588:12: note: in expansion of macro 'SYSENT_CI'
  /* 127 */ SYSENT_CI("mmapobj",  mmapobjsys, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct rlimit64 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:382:30: note: in definition of macro 'IF_LP64'
 #define IF_LP64(true, false) true
                              ^~~~
../../common/os/sysent.c:590:4: note: in expansion of macro 'SYSENT_CI'
    SYSENT_CI("setrlimit", setrlimit64, 2),
    ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct rlimit64 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:382:30: note: in definition of macro 'IF_LP64'
 #define IF_LP64(true, false) true
                              ^~~~
../../common/os/sysent.c:593:4: note: in expansion of macro 'SYSENT_CI'
    SYSENT_CI("getrlimit", getrlimit64, 2),
    ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, uid_t,  gid_t)' {aka 'int (*)(char *, unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:595:12: note: in expansion of macro 'SYSENT_CI'
  /* 130 */ SYSENT_CI("lchown",  lchown,  3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t,  int,  char *, int,  int)' {aka 'int (*)(char *, long unsigned int,  int,  char *, int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:596:12: note: in expansion of macro 'SYSENT_CI'
  /* 131 */ SYSENT_CI("memcntl",  memcntl, 6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct strbuf *, struct strbuf *, int *, int *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:597:12: note: in expansion of macro 'SYSENT_CI'
  /* 132 */ SYSENT_CI("getpmsg",  getpmsg, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct strbuf *, struct strbuf *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:598:12: note: in expansion of macro 'SYSENT_CI'
  /* 133 */ SYSENT_CI("putpmsg",  putpmsg, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:599:12: note: in expansion of macro 'SYSENT_CI'
  /* 134 */ SYSENT_CI("rename",  rename,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct utsname *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:600:12: note: in expansion of macro 'SYSENT_CI'
  /* 135 */ SYSENT_CI("uname",  uname,  1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(gid_t)' {aka 'int (*)(unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:601:12: note: in expansion of macro 'SYSENT_CI'
  /* 136 */ SYSENT_CI("setegid",  setegid, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct timeval *, struct timeval *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:603:12: note: in expansion of macro 'SYSENT_CI'
  /* 138 */ SYSENT_CI("adjtime",  adjtime, 2),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:605:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 140 */ SYSENT_LOADABLE(),  /* sharefs */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uid_t)' {aka 'int (*)(unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:606:12: note: in expansion of macro 'SYSENT_CI'
  /* 141 */ SYSENT_CI("seteuid",  seteuid, 1),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:608:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 143 */ SYSENT_LOADABLE(),   /* (was fork1) */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(sigset_t *, siginfo_t *, timespec_t *)' {aka 'int (*)(struct <anonymous> *, struct siginfo *, struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:609:12: note: in expansion of macro 'SYSENT_CI'
  /* 144 */ SYSENT_CI("sigtimedwait", sigtimedwait, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timestruc_t *)' {aka 'int (*)(struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:610:12: note: in expansion of macro 'SYSENT_CI'
  /* 145 */ SYSENT_CI("lwp_info",  lwp_info, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:611:12: note: in expansion of macro 'SYSENT_CI'
  /* 146 */ SYSENT_CI("yield",  yield,  0),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:612:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 147 */ SYSENT_LOADABLE(),      /* (was lwp_sema_wait) */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_sema_t *)' {aka 'int (*)(struct _lwp_sema *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:613:12: note: in expansion of macro 'SYSENT_CI'
  /* 148 */ SYSENT_CI("lwp_sema_post", lwp_sema_post, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_sema_t *)' {aka 'int (*)(struct _lwp_sema *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:614:12: note: in expansion of macro 'SYSENT_CI'
  /* 149 */ SYSENT_CI("lwp_sema_trywait", lwp_sema_trywait, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:615:12: note: in expansion of macro 'SYSENT_CI'
  /* 150 */ SYSENT_CI("lwp_detach", lwp_detach, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:616:12: note: in expansion of macro 'SYSENT_CI'
  /* 151 */ SYSENT_CI("corectl",  corectl, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:617:12: note: in expansion of macro 'SYSENT_CI'
  /* 152 */ SYSENT_CI("modctl",  modctl,  6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:618:12: note: in expansion of macro 'SYSENT_CI'
  /* 153 */ SYSENT_CI("fchroot",  fchroot, 1),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:619:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 154 */ SYSENT_LOADABLE(),   /* (was utimes) */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:620:12: note: in expansion of macro 'SYSENT_CI'
  /* 155 */ SYSENT_CI("vhangup",  vhangup, 0),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct timeval *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:621:12: note: in expansion of macro 'SYSENT_CI'
  /* 156 */ SYSENT_CI("gettimeofday", gettimeofday, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uint_t,  struct itimerval *)' {aka 'int (*)(unsigned int,  struct itimerval *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:622:12: note: in expansion of macro 'SYSENT_CI'
  /* 157 */ SYSENT_CI("getitimer", getitimer, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uint_t,  struct itimerval *, struct itimerval *)' {aka 'int (*)(unsigned int,  struct itimerval *, struct itimerval *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:623:12: note: in expansion of macro 'SYSENT_CI'
  /* 158 */ SYSENT_CI("setitimer", setitimer, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(ucontext_t *, int,  id_t *)' {aka 'int (*)(struct ucontext *, int,  int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:624:12: note: in expansion of macro 'SYSENT_CI'
  /* 159 */ SYSENT_CI("lwp_create", syslwp_create, 3),
            ^~~~~~~~~
../../common/os/sysent.c:625:34: error: cast between incompatible function types from 'void (*)()' to 'int (*)()' [-Werror=cast-function-type]
  /* 160 */ SYSENT_CI("lwp_exit", (int (*)())syslwp_exit, 0),
                                  ^
../../common/os/sysent.c:362:46: note: in definition of macro 'SYSENT_CI'
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                              ^~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:625:12: note: in expansion of macro 'SYSENT_CI'
  /* 160 */ SYSENT_CI("lwp_exit", (int (*)())syslwp_exit, 0),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:626:12: note: in expansion of macro 'SYSENT_CI'
  /* 161 */ SYSENT_CI("lwp_suspend", syslwp_suspend, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:627:12: note: in expansion of macro 'SYSENT_CI'
  /* 162 */ SYSENT_CI("lwp_continue", syslwp_continue, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t,  int)' {aka 'int (*)(int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:628:12: note: in expansion of macro 'SYSENT_CI'
  /* 163 */ SYSENT_CI("lwp_kill",  lwp_kill, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:629:12: note: in expansion of macro 'SYSENT_CI'
  /* 164 */ SYSENT_CI("lwp_self",  lwp_self, 0),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  uintptr_t)' {aka 'int (*)(int,  int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:400:29: note: in definition of macro 'IF_x86'
 #define IF_x86(true, false) true
                             ^~~~
../../common/os/sysent.c:632:4: note: in expansion of macro 'SYSENT_CI'
    SYSENT_CI("lwp_private", syslwp_private, 3),
    ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t,  id_t *)' {aka 'int (*)(int,  int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:634:12: note: in expansion of macro 'SYSENT_CI'
  /* 167 */ SYSENT_CI("lwp_wait",  lwp_wait, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *, int)' {aka 'int (*)(struct _lwp_mutex *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:635:12: note: in expansion of macro 'SYSENT_CI'
  /* 168 */ SYSENT_CI("lwp_mutex_wakeup", lwp_mutex_wakeup, 2),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:636:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 169 */ SYSENT_LOADABLE(),      /* (was lwp_mutex_lock) */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_cond_t *, lwp_mutex_t *, timespec_t *, int)' {aka 'int (*)(struct _lwp_cond *, struct _lwp_mutex *, struct timespec *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:637:12: note: in expansion of macro 'SYSENT_CI'
  /* 170 */ SYSENT_CI("lwp_cond_wait", lwp_cond_wait,  4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_cond_t *)' {aka 'int (*)(struct _lwp_cond *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:638:12: note: in expansion of macro 'SYSENT_CI'
  /* 171 */ SYSENT_CI("lwp_cond_signal", lwp_cond_signal, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_cond_t *)' {aka 'int (*)(struct _lwp_cond *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:639:12: note: in expansion of macro 'SYSENT_CI'
  /* 172 */ SYSENT_CI("lwp_cond_broadcast", lwp_cond_broadcast, 1),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:649:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 176 */ SYSENT_LOADABLE(),  /* inst_sync */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:651:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 178 */ SYSENT_LOADABLE(),  /* kaio */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:652:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 179 */ SYSENT_LOADABLE(),  /* cpc */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  long int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:653:12: note: in expansion of macro 'SYSENT_CI'
  /* 180 */ SYSENT_CI("lgrpsys",  lgrpsys, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, void *, void *, void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:654:12: note: in expansion of macro 'SYSENT_CI'
  /* 181 */ SYSENT_CI("rusagesys", rusagesys,  5),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:655:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 182 */ SYSENT_LOADABLE(),  /* portfs */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(pollfd_t *, nfds_t,  timespec_t *, sigset_t *)' {aka 'int (*)(struct pollfd *, long unsigned int,  struct timespec *, struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:656:12: note: in expansion of macro 'SYSENT_CI'
  /* 183 */ SYSENT_CI("pollsys",  pollsys, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, void *, void *, void *, void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:657:12: note: in expansion of macro 'SYSENT_CI'
  /* 184 */ SYSENT_CI("labelsys",  labelsys, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(const char *, int,  int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:658:12: note: in expansion of macro 'SYSENT_CI'
  /* 185 */ SYSENT_CI("acl",  acl,  4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(idtype_t,  id_t,  processorid_t,  processorid_t *)' {aka 'int (*)(enum idtype,  int,  int,  int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:660:12: note: in expansion of macro 'SYSENT_CI'
  /* 187 */ SYSENT_CI("processor_bind", processor_bind, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(processorid_t,  processor_info_t *)' {aka 'int (*)(int,  struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:661:12: note: in expansion of macro 'SYSENT_CI'
  /* 188 */ SYSENT_CI("processor_info", processor_info, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(processorid_t,  int)' {aka 'int (*)(int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:662:12: note: in expansion of macro 'SYSENT_CI'
  /* 189 */ SYSENT_CI("p_online",  p_online, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(pid_t,  int,  void *, int,  int)' {aka 'int (*)(int,  int,  void *, int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:663:12: note: in expansion of macro 'SYSENT_CI'
  /* 190 */ SYSENT_CI("sigqueue",  sigqueue, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(clockid_t,  timespec_t *)' {aka 'int (*)(int,  struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:664:12: note: in expansion of macro 'SYSENT_CI'
  /* 191 */ SYSENT_CI("clock_gettime", clock_gettime, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(clockid_t,  timespec_t *)' {aka 'int (*)(int,  struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:665:12: note: in expansion of macro 'SYSENT_CI'
  /* 192 */ SYSENT_CI("clock_settime", clock_settime, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(clockid_t,  timespec_t *)' {aka 'int (*)(int,  struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:666:12: note: in expansion of macro 'SYSENT_CI'
  /* 193 */ SYSENT_CI("clock_getres", clock_getres, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(clockid_t,  struct sigevent *, timer_t *)' {aka 'int (*)(int,  struct sigevent *, int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:667:12: note: in expansion of macro 'SYSENT_CI'
  /* 194 */ SYSENT_CI("timer_create", timer_create, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timer_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:668:12: note: in expansion of macro 'SYSENT_CI'
  /* 195 */ SYSENT_CI("timer_delete", timer_delete, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timer_t,  int,  itimerspec_t *, itimerspec_t *)' {aka 'int (*)(int,  int,  struct itimerspec *, struct itimerspec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:669:12: note: in expansion of macro 'SYSENT_CI'
  /* 196 */ SYSENT_CI("timer_settime", timer_settime, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timer_t,  itimerspec_t *)' {aka 'int (*)(int,  struct itimerspec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:670:12: note: in expansion of macro 'SYSENT_CI'
  /* 197 */ SYSENT_CI("timer_gettime", timer_gettime, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timer_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:671:12: note: in expansion of macro 'SYSENT_CI'
  /* 198 */ SYSENT_CI("timer_getoverrun", timer_getoverrun, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timespec_t *, timespec_t *)' {aka 'int (*)(struct timespec *, struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:672:12: note: in expansion of macro 'SYSENT_CI'
  /* 199 */ SYSENT_CI("nanosleep", nanosleep, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:673:12: note: in expansion of macro 'SYSENT_CI'
  /* 200 */ SYSENT_CI("facl",  facl,  4),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:674:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 201 */ SYSENT_LOADABLE(),  /* door */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uid_t,  uid_t)' {aka 'int (*)(unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:675:12: note: in expansion of macro 'SYSENT_CI'
  /* 202 */ SYSENT_CI("setreuid",  setreuid, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(gid_t,  gid_t)' {aka 'int (*)(unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:676:12: note: in expansion of macro 'SYSENT_CI'
  /* 203 */ SYSENT_CI("setregid",  setregid, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(utrap_entry_t,  void *, void **)' {aka 'int (*)(int,  void *, void **)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:677:12: note: in expansion of macro 'SYSENT_CI'
  /* 204 */ SYSENT_CI("install_utrap", install_utrap, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  siginfo_t *, signotify_id_t *)' {aka 'int (*)(int,  struct siginfo *, struct signotify_id *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:678:12: note: in expansion of macro 'SYSENT_CI'
  /* 205 */ SYSENT_CI("signotify", signotify, 3),
            ^~~~~~~~~
../../common/os/sysent.c:358:35: error: cast between incompatible function types from 'char * (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_64RVAL, NULL, NULL, (llfcn_t)(call) }
                                   ^
../../common/os/sysent.c:382:30: note: in definition of macro 'IF_LP64'
 #define IF_LP64(true, false) true
                              ^~~~
../../common/os/sysent.c:417:10: note: in expansion of macro 'SYSENT_C'
  IF_LP64(SYSENT_C(name, call, narg), SYSENT_CI(name, call, narg))
          ^~~~~~~~
../../common/os/sysent.c:679:12: note: in expansion of macro 'SYSENT_CL'
  /* 206 */ SYSENT_CL("schedctl",  schedctl, 0),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:680:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 207 */ SYSENT_LOADABLE(),  /* pset */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, char *, size_t)' {aka 'int (*)(char *, char *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:684:12: note: in expansion of macro 'SYSENT_CI'
  /* 209 */ SYSENT_CI("resolvepath", resolvepath, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *, timespec_t *, uintptr_t)' {aka 'int (*)(struct _lwp_mutex *, struct timespec *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:685:12: note: in expansion of macro 'SYSENT_CI'
  /* 210 */ SYSENT_CI("lwp_mutex_timedlock", lwp_mutex_timedlock, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_sema_t *, timespec_t *, int)' {aka 'int (*)(struct _lwp_sema *, struct timespec *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:686:12: note: in expansion of macro 'SYSENT_CI'
  /* 211 */ SYSENT_CI("lwp_sema_timedwait", lwp_sema_timedwait, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  lwp_rwlock_t *, timespec_t *)' {aka 'int (*)(int,  struct _lwp_rwlock *, struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:687:12: note: in expansion of macro 'SYSENT_CI'
  /* 212 */ SYSENT_CI("lwp_rwlock_sys", lwp_rwlock_sys, 3),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:728:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 224 */ SYSENT_LOADABLE(),   /* (was creat64) */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:732:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 226 */ SYSENT_LOADABLE(),  /* rpcsys */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:734:12: note: in expansion of macro 'SYSENT_LOADABLE'
  /* 228 */ SYSENT_LOADABLE(),  /* autofssys */
            ^~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t)' {aka 'int (*)(char *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:735:12: note: in expansion of macro 'SYSENT_CI'
  /* 229 */ SYSENT_CI("getcwd",  getcwd,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int,  char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:736:12: note: in expansion of macro 'SYSENT_CI'
  /* 230 */ SYSENT_CI("so_socket", so_socket, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:737:12: note: in expansion of macro 'SYSENT_CI'
  /* 231 */ SYSENT_CI("so_socketpair", so_socketpair, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t,  int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:738:12: note: in expansion of macro 'SYSENT_CI'
  /* 232 */ SYSENT_CI("bind",  bind,  4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:739:12: note: in expansion of macro 'SYSENT_CI'
  /* 233 */ SYSENT_CI("listen",  listen,  3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t *, int,  int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int *, int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:740:12: note: in expansion of macro 'SYSENT_CI'
  /* 234 */ SYSENT_CI("accept",  accept,  5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t,  int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:741:12: note: in expansion of macro 'SYSENT_CI'
  /* 235 */ SYSENT_CI("connect",  connect, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:742:12: note: in expansion of macro 'SYSENT_CI'
  /* 236 */ SYSENT_CI("shutdown",  shutdown, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t *, int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:749:12: note: in expansion of macro 'SYSENT_CI'
  /* 243 */ SYSENT_CI("getpeername", getpeername, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t *, int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:750:12: note: in expansion of macro 'SYSENT_CI'
  /* 244 */ SYSENT_CI("getsockname", getsockname, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int,  void *, socklen_t *, int)' {aka 'int (*)(int,  int,  int,  void *, unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:751:12: note: in expansion of macro 'SYSENT_CI'
  /* 245 */ SYSENT_CI("getsockopt", getsockopt, 6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int,  void *, socklen_t *, int)' {aka 'int (*)(int,  int,  int,  void *, unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:752:12: note: in expansion of macro 'SYSENT_CI'
  /* 246 */ SYSENT_CI("setsockopt", setsockopt, 6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, void *, void *, void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:753:12: note: in expansion of macro 'SYSENT_CI'
  /* 247 */ SYSENT_CI("sockconfig", sockconfig, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct ntptimeval *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:754:12: note: in expansion of macro 'SYSENT_CI'
  /* 248 */ SYSENT_CI("ntp_gettime", ntp_gettime, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct timex *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:755:12: note: in expansion of macro 'SYSENT_CI'
  /* 249 */ SYSENT_CI("ntp_adjtime", ntp_adjtime, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *)' {aka 'int (*)(struct _lwp_mutex *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:756:12: note: in expansion of macro 'SYSENT_CI'
  /* 250 */ SYSENT_CI("lwp_mutex_unlock", lwp_mutex_unlock, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *, uintptr_t)' {aka 'int (*)(struct _lwp_mutex *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:757:12: note: in expansion of macro 'SYSENT_CI'
  /* 251 */ SYSENT_CI("lwp_mutex_trylock", lwp_mutex_trylock, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *, char *)' {aka 'int (*)(struct _lwp_mutex *, char *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:758:12: note: in expansion of macro 'SYSENT_CI'
  /* 252 */ SYSENT_CI("lwp_mutex_register", lwp_mutex_register, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:759:12: note: in expansion of macro 'SYSENT_CI'
  /* 253 */ SYSENT_CI("cladm",  cladm,  3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(const void *, void *, size_t)' {aka 'int (*)(const void *, void *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:760:12: note: in expansion of macro 'SYSENT_CI'
  /* 254 */ SYSENT_CI("uucopy",  uucopy,  3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:761:12: note: in expansion of macro 'SYSENT_CI'
  /* 255 */ SYSENT_CI("umount2",  umount2, 2)
            ^~~~~~~~~
../../common/os/sysent.c:823:29: error: cast between incompatible function types from 'void (*)(int)' to 'int (*)()' [-Werror=cast-function-type]
  /*  1 */ SYSENT_CI("exit", (int (*)())rexit, 1),
                             ^
../../common/os/sysent.c:362:46: note: in definition of macro 'SYSENT_CI'
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                              ^~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:823:11: note: in expansion of macro 'SYSENT_CI'
  /*  1 */ SYSENT_CI("exit", (int (*)())rexit, 1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(procset_t *, psecflagwhich_t,  secflagdelta_t *)' {aka 'int (*)(struct procset *, enum <anonymous>,  struct secflagdelta *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:824:11: note: in expansion of macro 'SYSENT_CI'
  /*  2 */ SYSENT_CI("psecflags",  psecflags, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:827:11: note: in expansion of macro 'SYSENT_CI'
  /*  5 */ SYSENT_CI("open",  open32,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:828:11: note: in expansion of macro 'SYSENT_CI'
  /*  6 */ SYSENT_CI("close",  close,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:829:11: note: in expansion of macro 'SYSENT_CI'
  /*  7 */ SYSENT_CI("linkat",  linkat,  5),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:830:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /*  8 */ SYSENT_LOADABLE32(),   /* (was creat32) */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:831:11: note: in expansion of macro 'SYSENT_CI'
  /*  9 */ SYSENT_CI("link",  link,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:832:11: note: in expansion of macro 'SYSENT_CI'
  /* 10 */ SYSENT_CI("unlink",  unlink,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int,  char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:833:11: note: in expansion of macro 'SYSENT_CI'
  /* 11 */ SYSENT_CI("symlinkat",  symlinkat, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:834:11: note: in expansion of macro 'SYSENT_CI'
  /* 12 */ SYSENT_CI("chdir",  chdir,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, mode_t,  dev_t)' {aka 'int (*)(char *, unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:836:11: note: in expansion of macro 'SYSENT_CI'
  /* 14 */ SYSENT_CI("mknod",  mknod,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:837:11: note: in expansion of macro 'SYSENT_CI'
  /* 15 */ SYSENT_CI("chmod",  chmod,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, uid_t,  gid_t)' {aka 'int (*)(char *, unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:838:11: note: in expansion of macro 'SYSENT_CI'
  /* 16 */ SYSENT_CI("chown",  chown,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct stat32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:840:11: note: in expansion of macro 'SYSENT_CI'
  /* 18 */ SYSENT_CI("stat",  stat32,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'off32_t (*)(int32_t,  off32_t,  int32_t)' {aka 'int (*)(int,  int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:841:11: note: in expansion of macro 'SYSENT_CI'
  /* 19 */ SYSENT_CI("lseek",  lseek32, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uid_t)' {aka 'int (*)(unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:845:11: note: in expansion of macro 'SYSENT_CI'
  /* 23 */ SYSENT_CI("setuid",  setuid,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(time32_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:847:11: note: in expansion of macro 'SYSENT_CI'
  /* 25 */ SYSENT_CI("stime",  stime32, 1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:849:11: note: in expansion of macro 'SYSENT_CI'
  /* 27 */ SYSENT_CI("alarm",  alarm,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct stat32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:850:11: note: in expansion of macro 'SYSENT_CI'
  /* 28 */ SYSENT_CI("fstat",  fstat32, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:851:11: note: in expansion of macro 'SYSENT_CI'
  /* 29 */ SYSENT_CI("pause",  pause,  0),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:852:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 30 */ SYSENT_LOADABLE32(),   /* (was utime) */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  intptr_t)' {aka 'int (*)(int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:853:11: note: in expansion of macro 'SYSENT_CI'
  /* 31 */ SYSENT_CI("stty",  stty,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  intptr_t)' {aka 'int (*)(int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:854:11: note: in expansion of macro 'SYSENT_CI'
  /* 32 */ SYSENT_CI("gtty",  gtty,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:855:11: note: in expansion of macro 'SYSENT_CI'
  /* 33 */ SYSENT_CI("access",  access,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:856:11: note: in expansion of macro 'SYSENT_CI'
  /* 34 */ SYSENT_CI("nice",  nice,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct statfs32 *, int32_t,  int32_t)' {aka 'int (*)(char *, struct statfs32 *, int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:857:11: note: in expansion of macro 'SYSENT_CI'
  /* 35 */ SYSENT_CI("statfs",  statfs32, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:858:11: note: in expansion of macro 'SYSENT_CI'
  /* 36 */ SYSENT_CI("sync",  syssync, 0),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(pid_t,  int)' {aka 'int (*)(int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:859:11: note: in expansion of macro 'SYSENT_CI'
  /* 37 */ SYSENT_CI("kill",  kill,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int32_t,  struct statfs32 *, int32_t,  int32_t)' {aka 'int (*)(int,  struct statfs32 *, int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:860:11: note: in expansion of macro 'SYSENT_CI'
  /* 38 */ SYSENT_CI("fstatfs",  fstatfs32, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:861:11: note: in expansion of macro 'SYSENT_CI'
  /* 39 */ SYSENT_CI("setpgrp",  setpgrp, 3),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:863:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 41 */ SYSENT_LOADABLE32(),   /* (was dup) */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:864:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 42 */ SYSENT_LOADABLE32(),   /* pipe */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'clock32_t (*)(struct tms32 *)' {aka 'int (*)(struct tms32 *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:865:11: note: in expansion of macro 'SYSENT_CI'
  /* 43 */ SYSENT_CI("times",  times32, 1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(short unsigned int *, size_t,  ulong_t,  uint_t)' {aka 'int (*)(short unsigned int *, long unsigned int,  long unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:866:11: note: in expansion of macro 'SYSENT_CI'
  /* 44 */ SYSENT_CI("prof",  profil,  4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:867:11: note: in expansion of macro 'SYSENT_CI'
  /* 45 */ SYSENT_CI("faccessat",  faccessat, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(gid_t)' {aka 'int (*)(unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:868:11: note: in expansion of macro 'SYSENT_CI'
  /* 46 */ SYSENT_CI("setgid",  setgid,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, mode_t,  dev_t)' {aka 'int (*)(int,  char *, unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:870:11: note: in expansion of macro 'SYSENT_CI'
  /* 48 */ SYSENT_CI("mknodat",  mknodat, 4),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:871:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 49 */ SYSENT_LOADABLE32(),   /* msgsys */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(short int,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'int (*)(short int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:406:33: note: in definition of macro 'IF_386_ABI'
 #define IF_386_ABI(true, false) true
                                 ^~~~
../../common/os/sysent.c:873:4: note: in expansion of macro 'SYSENT_CI'
    SYSENT_CI("sysi86", sysi86,  4),
    ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:875:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 51 */ SYSENT_LOADABLE32(),   /* sysacct */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:876:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 52 */ SYSENT_LOADABLE32(),   /* shmsys */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:877:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 53 */ SYSENT_LOADABLE32(),   /* semsys */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  intptr_t)' {aka 'int (*)(int,  int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:878:11: note: in expansion of macro 'SYSENT_CI'
  /* 54 */ SYSENT_CI("ioctl",  ioctl,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  uintptr_t)' {aka 'int (*)(int,  int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:879:11: note: in expansion of macro 'SYSENT_CI'
  /* 55 */ SYSENT_CI("uadmin",  uadmin,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, uid_t,  gid_t,  int)' {aka 'int (*)(int,  char *, unsigned int,  unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:880:11: note: in expansion of macro 'SYSENT_CI'
  /* 56 */ SYSENT_CI("fchownat",  fchownat, 5),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:882:11: note: in expansion of macro 'SYSENT_CI'
  /* 58 */ SYSENT_CI("fdsync",  fdsync,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(const char *, const char **, const char **)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:883:11: note: in expansion of macro 'SYSENT_CI'
  /* 59 */ SYSENT_CI("exece",  exece,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:884:11: note: in expansion of macro 'SYSENT_CI'
  /* 60 */ SYSENT_CI("umask",  umask,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:885:11: note: in expansion of macro 'SYSENT_CI'
  /* 61 */ SYSENT_CI("chroot",  chroot,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  intptr_t)' {aka 'int (*)(int,  int,  long int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:886:11: note: in expansion of macro 'SYSENT_CI'
  /* 62 */ SYSENT_CI("fcntl",  fcntl,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:887:11: note: in expansion of macro 'SYSENT_CI'
  /* 63 */ SYSENT_CI("ulimit",  ulimit32, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:888:11: note: in expansion of macro 'SYSENT_CI'
  /* 64 */ SYSENT_CI("renameat",  renameat, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:889:11: note: in expansion of macro 'SYSENT_CI'
  /* 65 */ SYSENT_CI("unlinkat",  unlinkat, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, struct stat32 *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:890:11: note: in expansion of macro 'SYSENT_CI'
  /* 66 */ SYSENT_CI("fstatat",  fstatat32, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, struct stat64_32 *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:891:11: note: in expansion of macro 'SYSENT_CI'
  /* 67 */ SYSENT_CI("fstatat64",  fstatat64_32,  4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:892:11: note: in expansion of macro 'SYSENT_CI'
  /* 68 */ SYSENT_CI("openat",  openat32, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:893:11: note: in expansion of macro 'SYSENT_CI'
  /* 69 */ SYSENT_CI("openat64",  openat64, 4),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:895:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 71 */ SYSENT_LOADABLE32(),  /* acctctl */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:896:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 72 */ SYSENT_LOADABLE32(),  /* exacct */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  size32_t *, int)' {aka 'int (*)(int,  unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:897:11: note: in expansion of macro 'SYSENT_CI'
  /* 73 */ SYSENT_CI("getpagesizes", getpagesizes32, 3),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:900:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 76 */ SYSENT_LOADABLE32(),   /* (was fsat) */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uintptr_t,  uintptr_t)' {aka 'int (*)(int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:901:11: note: in expansion of macro 'SYSENT_CI'
  /* 77 */ SYSENT_CI("lwp_park",  syslwp_park, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:903:11: note: in expansion of macro 'SYSENT_CI'
  /* 79 */ SYSENT_CI("rmdir",  rmdir,  1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:904:11: note: in expansion of macro 'SYSENT_CI'
  /* 80 */ SYSENT_CI("mkdir",  mkdir,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, size_t)' {aka 'int (*)(int,  void *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:905:11: note: in expansion of macro 'SYSENT_CI'
  /* 81 */ SYSENT_CI("getdents",  getdents32, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  priv_op_t,  priv_ptype_t,  caddr32_t,  size32_t,  int)' {aka 'int (*)(int,  enum priv_op,  int,  unsigned int,  unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:906:11: note: in expansion of macro 'SYSENT_CI'
  /* 82 */ SYSENT_CI("privsys",  privsys32, 6),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  caddr32_t)' {aka 'int (*)(int,  int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:907:11: note: in expansion of macro 'SYSENT_CI'
  /* 83 */ SYSENT_CI("ucredsys",  ucredsys32, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  long int,  long int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:908:11: note: in expansion of macro 'SYSENT_CI'
  /* 84 */ SYSENT_CI("sysfs",  sysfs,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct strbuf32 *, struct strbuf32 *, int32_t *)' {aka 'int (*)(int,  struct strbuf32 *, struct strbuf32 *, int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:909:11: note: in expansion of macro 'SYSENT_CI'
  /* 85 */ SYSENT_CI("getmsg",  getmsg32, 4),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct strbuf32 *, struct strbuf32 *, int32_t *)' {aka 'int (*)(int,  struct strbuf32 *, struct strbuf32 *, int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:910:11: note: in expansion of macro 'SYSENT_CI'
  /* 86 */ SYSENT_CI("putmsg",  putmsg32, 4),
           ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:911:11: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 87 */ SYSENT_LOADABLE32(),   /* (was poll) */
           ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct stat32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:912:11: note: in expansion of macro 'SYSENT_CI'
  /* 88 */ SYSENT_CI("lstat",  lstat32, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:913:11: note: in expansion of macro 'SYSENT_CI'
  /* 89 */ SYSENT_CI("symlink",  symlink, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  gid_t *)' {aka 'int (*)(int,  unsigned int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:915:11: note: in expansion of macro 'SYSENT_CI'
  /* 91 */ SYSENT_CI("setgroups",  setgroups, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  gid_t *)' {aka 'int (*)(int,  unsigned int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:916:11: note: in expansion of macro 'SYSENT_CI'
  /* 92 */ SYSENT_CI("getgroups",  getgroups, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:917:11: note: in expansion of macro 'SYSENT_CI'
  /* 93 */ SYSENT_CI("fchmod",  fchmod,  2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uid_t,  uid_t)' {aka 'int (*)(int,  unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:918:11: note: in expansion of macro 'SYSENT_CI'
  /* 94 */ SYSENT_CI("fchown",  fchown,  3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  sigset_t *, sigset_t *)' {aka 'int (*)(int,  struct <anonymous> *, struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:919:11: note: in expansion of macro 'SYSENT_CI'
  /* 95 */ SYSENT_CI("sigprocmask", sigprocmask, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(sigset_t)' {aka 'int (*)(struct <anonymous>)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:920:11: note: in expansion of macro 'SYSENT_CI'
  /* 96 */ SYSENT_CI("sigsuspend", sigsuspend, 1),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct sigaltstack32 *, struct sigaltstack32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:921:11: note: in expansion of macro 'SYSENT_CI'
  /* 97 */ SYSENT_CI("sigaltstack", sigaltstack32, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sigaction32 *, struct sigaction32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:922:11: note: in expansion of macro 'SYSENT_CI'
  /* 98 */ SYSENT_CI("sigaction",  sigaction32, 3),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  sigset_t *)' {aka 'int (*)(int,  struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:923:11: note: in expansion of macro 'SYSENT_CI'
  /* 99 */ SYSENT_CI("sigpending", sigpending, 2),
           ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:924:12: note: in expansion of macro 'SYSENT_CI'
  /* 100 */ SYSENT_CI("getsetcontext", getsetcontext32, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:925:12: note: in expansion of macro 'SYSENT_CI'
  /* 101 */ SYSENT_CI("fchmodat",  fchmodat, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:926:12: note: in expansion of macro 'SYSENT_CI'
  /* 102 */ SYSENT_CI("mkdirat",  mkdirat, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct statvfs32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:927:12: note: in expansion of macro 'SYSENT_CI'
  /* 103 */ SYSENT_CI("statvfs",  statvfs32, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct statvfs32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:928:12: note: in expansion of macro 'SYSENT_CI'
  /* 104 */ SYSENT_CI("fstatvfs",  fstatvfs32, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:929:12: note: in expansion of macro 'SYSENT_CI'
  /* 105 */ SYSENT_CI("getloadavg", getloadavg, 2),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:930:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 106 */ SYSENT_LOADABLE32(),  /* nfssys */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(idtype_t,  id_t,  siginfo_t *, int)' {aka 'int (*)(enum idtype,  int,  struct siginfo *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:931:12: note: in expansion of macro 'SYSENT_CI'
  /* 107 */ SYSENT_CI("waitsys",  waitsys32, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(procset_t *, int)' {aka 'int (*)(struct procset *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:932:12: note: in expansion of macro 'SYSENT_CI'
  /* 108 */ SYSENT_CI("sigsendset", sigsendsys, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:936:12: note: in expansion of macro 'SYSENT_CI'
  /* 110 */ SYSENT_CI("utimesys",  utimesys, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  siginfo_t *, sigset_t *)' {aka 'int (*)(int,  struct siginfo *, struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:937:12: note: in expansion of macro 'SYSENT_CI'
  /* 111 */ SYSENT_CI("sigresend", sigresend, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t,  char *)' {aka 'int (*)(char *, long unsigned int,  char *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:940:12: note: in expansion of macro 'SYSENT_CI'
  /* 114 */ SYSENT_CI("mincore",  mincore, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'char * (*)(caddr32_t,  size32_t,  int,  int,  int,  off32_t)' {aka 'char * (*)(unsigned int,  unsigned int,  int,  int,  int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:941:12: note: in expansion of macro 'SYSENT_CI'
  /* 115 */ SYSENT_CI("mmap",  smmap32, 6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t,  int)' {aka 'int (*)(char *, long unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:942:12: note: in expansion of macro 'SYSENT_CI'
  /* 116 */ SYSENT_CI("mprotect",  mprotect, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t)' {aka 'int (*)(char *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:943:12: note: in expansion of macro 'SYSENT_CI'
  /* 117 */ SYSENT_CI("munmap",  munmap,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:946:12: note: in expansion of macro 'SYSENT_CI'
  /* 120 */ SYSENT_CI("fchdir",  fchdir,  1),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:951:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 125 */ SYSENT_LOADABLE32(),  /* was fxstat32 */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(void *, size_t,  int)' {aka 'int (*)(void *, long unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:952:12: note: in expansion of macro 'SYSENT_CI'
  /* 126 */ SYSENT_CI("getrandom", getrandom, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uint_t,  mmapobj_result_t *, uint_t *, void *)' {aka 'int (*)(int,  unsigned int,  struct mmapobj_result *, unsigned int *, void *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:953:12: note: in expansion of macro 'SYSENT_CI'
  /* 127 */ SYSENT_CI("mmapobj",  mmapobjsys, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct rlimit32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:954:12: note: in expansion of macro 'SYSENT_CI'
  /* 128 */ SYSENT_CI("setrlimit", setrlimit32, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct rlimit32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:955:12: note: in expansion of macro 'SYSENT_CI'
  /* 129 */ SYSENT_CI("getrlimit", getrlimit32, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, uid_t,  gid_t)' {aka 'int (*)(char *, unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:956:12: note: in expansion of macro 'SYSENT_CI'
  /* 130 */ SYSENT_CI("lchown",  lchown,  3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t,  int,  char *, int,  int)' {aka 'int (*)(char *, long unsigned int,  int,  char *, int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:957:12: note: in expansion of macro 'SYSENT_CI'
  /* 131 */ SYSENT_CI("memcntl",  memcntl, 6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct strbuf32 *, struct strbuf32 *, int32_t *, int32_t *)' {aka 'int (*)(int,  struct strbuf32 *, struct strbuf32 *, int *, int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:958:12: note: in expansion of macro 'SYSENT_CI'
  /* 132 */ SYSENT_CI("getpmsg",  getpmsg32, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct strbuf32 *, struct strbuf32 *, int32_t,  int32_t)' {aka 'int (*)(int,  struct strbuf32 *, struct strbuf32 *, int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:959:12: note: in expansion of macro 'SYSENT_CI'
  /* 133 */ SYSENT_CI("putpmsg",  putpmsg32, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, char *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:960:12: note: in expansion of macro 'SYSENT_CI'
  /* 134 */ SYSENT_CI("rename",  rename,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct utsname *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:961:12: note: in expansion of macro 'SYSENT_CI'
  /* 135 */ SYSENT_CI("uname",  uname,  1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(gid_t)' {aka 'int (*)(unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:962:12: note: in expansion of macro 'SYSENT_CI'
  /* 136 */ SYSENT_CI("setegid",  setegid, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct timeval *, struct timeval *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:964:12: note: in expansion of macro 'SYSENT_CI'
  /* 138 */ SYSENT_CI("adjtime",  adjtime, 2),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:966:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 140 */ SYSENT_LOADABLE32(),  /* sharefs */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uid_t)' {aka 'int (*)(unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:967:12: note: in expansion of macro 'SYSENT_CI'
  /* 141 */ SYSENT_CI("seteuid",  seteuid, 1),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:969:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 143 */ SYSENT_LOADABLE32(),   /* (was fork1) */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(sigset_t *, siginfo_t *, timespec_t *)' {aka 'int (*)(struct <anonymous> *, struct siginfo *, struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:970:12: note: in expansion of macro 'SYSENT_CI'
  /* 144 */ SYSENT_CI("sigtimedwait", sigtimedwait, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timestruc_t *)' {aka 'int (*)(struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:971:12: note: in expansion of macro 'SYSENT_CI'
  /* 145 */ SYSENT_CI("lwp_info",  lwp_info, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:972:12: note: in expansion of macro 'SYSENT_CI'
  /* 146 */ SYSENT_CI("yield",  yield,  0),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:973:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 147 */ SYSENT_LOADABLE32(),      /* (was lwp_sema_wait) */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_sema_t *)' {aka 'int (*)(struct _lwp_sema *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:974:12: note: in expansion of macro 'SYSENT_CI'
  /* 148 */ SYSENT_CI("lwp_sema_post", lwp_sema_post, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_sema_t *)' {aka 'int (*)(struct _lwp_sema *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:975:12: note: in expansion of macro 'SYSENT_CI'
  /* 149 */ SYSENT_CI("lwp_sema_trywait", lwp_sema_trywait, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:976:12: note: in expansion of macro 'SYSENT_CI'
  /* 150 */ SYSENT_CI("lwp_detach", lwp_detach, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:977:12: note: in expansion of macro 'SYSENT_CI'
  /* 151 */ SYSENT_CI("corectl",  corectl, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t,  uintptr_t)' {aka 'int (*)(int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:978:12: note: in expansion of macro 'SYSENT_CI'
  /* 152 */ SYSENT_CI("modctl",  modctl,  6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:979:12: note: in expansion of macro 'SYSENT_CI'
  /* 153 */ SYSENT_CI("fchroot",  fchroot, 1),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:980:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 154 */ SYSENT_LOADABLE32(),   /* (was utimes) */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:981:12: note: in expansion of macro 'SYSENT_CI'
  /* 155 */ SYSENT_CI("vhangup",  vhangup, 0),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct timeval *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:982:12: note: in expansion of macro 'SYSENT_CI'
  /* 156 */ SYSENT_CI("gettimeofday", gettimeofday, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uint_t,  struct itimerval *)' {aka 'int (*)(unsigned int,  struct itimerval *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:983:12: note: in expansion of macro 'SYSENT_CI'
  /* 157 */ SYSENT_CI("getitimer", getitimer, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uint_t,  struct itimerval *, struct itimerval *)' {aka 'int (*)(unsigned int,  struct itimerval *, struct itimerval *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:984:12: note: in expansion of macro 'SYSENT_CI'
  /* 158 */ SYSENT_CI("setitimer", setitimer, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(ucontext_t *, int,  id_t *)' {aka 'int (*)(struct ucontext *, int,  int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:985:12: note: in expansion of macro 'SYSENT_CI'
  /* 159 */ SYSENT_CI("lwp_create", syslwp_create, 3),
            ^~~~~~~~~
../../common/os/sysent.c:986:34: error: cast between incompatible function types from 'void (*)()' to 'int (*)()' [-Werror=cast-function-type]
  /* 160 */ SYSENT_CI("lwp_exit", (int (*)())syslwp_exit, 0),
                                  ^
../../common/os/sysent.c:362:46: note: in definition of macro 'SYSENT_CI'
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                              ^~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:986:12: note: in expansion of macro 'SYSENT_CI'
  /* 160 */ SYSENT_CI("lwp_exit", (int (*)())syslwp_exit, 0),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:987:12: note: in expansion of macro 'SYSENT_CI'
  /* 161 */ SYSENT_CI("lwp_suspend", syslwp_suspend, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:988:12: note: in expansion of macro 'SYSENT_CI'
  /* 162 */ SYSENT_CI("lwp_continue", syslwp_continue, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t,  int)' {aka 'int (*)(int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:989:12: note: in expansion of macro 'SYSENT_CI'
  /* 163 */ SYSENT_CI("lwp_kill",  lwp_kill, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:990:12: note: in expansion of macro 'SYSENT_CI'
  /* 164 */ SYSENT_CI("lwp_self",  lwp_self, 0),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  uintptr_t)' {aka 'int (*)(int,  int,  long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:400:29: note: in definition of macro 'IF_x86'
 #define IF_x86(true, false) true
                             ^~~~
../../common/os/sysent.c:993:4: note: in expansion of macro 'SYSENT_CI'
    SYSENT_CI("lwp_private", syslwp_private, 3),
    ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(id_t,  id_t *)' {aka 'int (*)(int,  int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:995:12: note: in expansion of macro 'SYSENT_CI'
  /* 167 */ SYSENT_CI("lwp_wait",  lwp_wait, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *, int)' {aka 'int (*)(struct _lwp_mutex *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:996:12: note: in expansion of macro 'SYSENT_CI'
  /* 168 */ SYSENT_CI("lwp_mutex_wakeup", lwp_mutex_wakeup, 2),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:997:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 169 */ SYSENT_LOADABLE32(),      /* (was lwp_mutex_lock) */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_cond_t *, lwp_mutex_t *, timespec_t *, int)' {aka 'int (*)(struct _lwp_cond *, struct _lwp_mutex *, struct timespec *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:998:12: note: in expansion of macro 'SYSENT_CI'
  /* 170 */ SYSENT_CI("lwp_cond_wait", lwp_cond_wait,  4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_cond_t *)' {aka 'int (*)(struct _lwp_cond *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:999:12: note: in expansion of macro 'SYSENT_CI'
  /* 171 */ SYSENT_CI("lwp_cond_signal", lwp_cond_signal, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_cond_t *)' {aka 'int (*)(struct _lwp_cond *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1000:12: note: in expansion of macro 'SYSENT_CI'
  /* 172 */ SYSENT_CI("lwp_cond_broadcast", lwp_cond_broadcast, 1),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1004:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 176 */ SYSENT_LOADABLE32(),  /* inst_sync */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1006:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 178 */ SYSENT_LOADABLE32(),  /* kaio */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1007:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 179 */ SYSENT_LOADABLE32(),  /* cpc */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  long int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1008:12: note: in expansion of macro 'SYSENT_CI'
  /* 180 */ SYSENT_CI("lgrpsys",  lgrpsys, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, void *, void *, void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1009:12: note: in expansion of macro 'SYSENT_CI'
  /* 181 */ SYSENT_CI("rusagesys", rusagesys, 5),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1010:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 182 */ SYSENT_LOADABLE32(),  /* portfs */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(pollfd_t *, nfds_t,  timespec_t *, sigset_t *)' {aka 'int (*)(struct pollfd *, long unsigned int,  struct timespec *, struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1011:12: note: in expansion of macro 'SYSENT_CI'
  /* 183 */ SYSENT_CI("pollsys",  pollsys, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, void *, void *, void *, void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1012:12: note: in expansion of macro 'SYSENT_CI'
  /* 184 */ SYSENT_CI("labelsys",  labelsys, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(const char *, int,  int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1013:12: note: in expansion of macro 'SYSENT_CI'
  /* 185 */ SYSENT_CI("acl",  acl,  4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(idtype_t,  id_t,  processorid_t,  processorid_t *)' {aka 'int (*)(enum idtype,  int,  int,  int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1015:12: note: in expansion of macro 'SYSENT_CI'
  /* 187 */ SYSENT_CI("processor_bind", processor_bind, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(processorid_t,  processor_info_t *)' {aka 'int (*)(int,  struct <anonymous> *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1016:12: note: in expansion of macro 'SYSENT_CI'
  /* 188 */ SYSENT_CI("processor_info", processor_info, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(processorid_t,  int)' {aka 'int (*)(int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1017:12: note: in expansion of macro 'SYSENT_CI'
  /* 189 */ SYSENT_CI("p_online",  p_online, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(pid_t,  int,  caddr32_t,  int,  int)' {aka 'int (*)(int,  int,  unsigned int,  int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1018:12: note: in expansion of macro 'SYSENT_CI'
  /* 190 */ SYSENT_CI("sigqueue",  sigqueue32, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(clockid_t,  timespec_t *)' {aka 'int (*)(int,  struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1019:12: note: in expansion of macro 'SYSENT_CI'
  /* 191 */ SYSENT_CI("clock_gettime", clock_gettime, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(clockid_t,  timespec_t *)' {aka 'int (*)(int,  struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1020:12: note: in expansion of macro 'SYSENT_CI'
  /* 192 */ SYSENT_CI("clock_settime", clock_settime, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(clockid_t,  timespec_t *)' {aka 'int (*)(int,  struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1021:12: note: in expansion of macro 'SYSENT_CI'
  /* 193 */ SYSENT_CI("clock_getres", clock_getres, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(clockid_t,  struct sigevent *, timer_t *)' {aka 'int (*)(int,  struct sigevent *, int *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1022:12: note: in expansion of macro 'SYSENT_CI'
  /* 194 */ SYSENT_CI("timer_create", timer_create, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timer_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1023:12: note: in expansion of macro 'SYSENT_CI'
  /* 195 */ SYSENT_CI("timer_delete", timer_delete, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timer_t,  int,  itimerspec_t *, itimerspec_t *)' {aka 'int (*)(int,  int,  struct itimerspec *, struct itimerspec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1024:12: note: in expansion of macro 'SYSENT_CI'
  /* 196 */ SYSENT_CI("timer_settime", timer_settime, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timer_t,  itimerspec_t *)' {aka 'int (*)(int,  struct itimerspec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1025:12: note: in expansion of macro 'SYSENT_CI'
  /* 197 */ SYSENT_CI("timer_gettime", timer_gettime, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timer_t)' {aka 'int (*)(int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1026:12: note: in expansion of macro 'SYSENT_CI'
  /* 198 */ SYSENT_CI("timer_getoverrun", timer_getoverrun, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(timespec_t *, timespec_t *)' {aka 'int (*)(struct timespec *, struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1027:12: note: in expansion of macro 'SYSENT_CI'
  /* 199 */ SYSENT_CI("nanosleep", nanosleep, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1028:12: note: in expansion of macro 'SYSENT_CI'
  /* 200 */ SYSENT_CI("facl",  facl,  4),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1029:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 201 */ SYSENT_LOADABLE32(),  /* door */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(uid_t,  uid_t)' {aka 'int (*)(unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1030:12: note: in expansion of macro 'SYSENT_CI'
  /* 202 */ SYSENT_CI("setreuid",  setreuid, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(gid_t,  gid_t)' {aka 'int (*)(unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1031:12: note: in expansion of macro 'SYSENT_CI'
  /* 203 */ SYSENT_CI("setregid",  setregid, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(utrap_entry_t,  void *, void **)' {aka 'int (*)(int,  void *, void **)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1032:12: note: in expansion of macro 'SYSENT_CI'
  /* 204 */ SYSENT_CI("install_utrap", install_utrap, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  siginfo_t *, signotify_id_t *)' {aka 'int (*)(int,  struct siginfo *, struct signotify_id *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1033:12: note: in expansion of macro 'SYSENT_CI'
  /* 205 */ SYSENT_CI("signotify", signotify, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'char * (*)()' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1034:12: note: in expansion of macro 'SYSENT_CI'
  /* 206 */ SYSENT_CI("schedctl",  schedctl, 0),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1035:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 207 */ SYSENT_LOADABLE32(),  /* pset */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1036:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 208 */ SYSENT_LOADABLE32(),
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, char *, size_t)' {aka 'int (*)(char *, char *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1037:12: note: in expansion of macro 'SYSENT_CI'
  /* 209 */ SYSENT_CI("resolvepath", resolvepath, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *, timespec_t *, uintptr_t)' {aka 'int (*)(struct _lwp_mutex *, struct timespec *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1038:12: note: in expansion of macro 'SYSENT_CI'
  /* 210 */ SYSENT_CI("lwp_mutex_timedlock", lwp_mutex_timedlock, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_sema_t *, timespec_t *, int)' {aka 'int (*)(struct _lwp_sema *, struct timespec *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1039:12: note: in expansion of macro 'SYSENT_CI'
  /* 211 */ SYSENT_CI("lwp_sema_timedwait", lwp_sema_timedwait, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  lwp_rwlock_t *, timespec_t *)' {aka 'int (*)(int,  struct _lwp_rwlock *, struct timespec *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1040:12: note: in expansion of macro 'SYSENT_CI'
  /* 212 */ SYSENT_CI("lwp_rwlock_sys", lwp_rwlock_sys, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, size_t)' {aka 'int (*)(int,  void *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1044:12: note: in expansion of macro 'SYSENT_CI'
  /* 213 */ SYSENT_CI("getdents64", getdents64, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct stat64_32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1046:12: note: in expansion of macro 'SYSENT_CI'
  /* 215 */ SYSENT_CI("stat64",   stat64_32,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct stat64_32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1047:12: note: in expansion of macro 'SYSENT_CI'
  /* 216 */ SYSENT_CI("lstat64",   lstat64_32, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct stat64_32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1048:12: note: in expansion of macro 'SYSENT_CI'
  /* 217 */ SYSENT_CI("fstat64",   fstat64_32,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, struct statvfs64_32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1049:12: note: in expansion of macro 'SYSENT_CI'
  /* 218 */ SYSENT_CI("statvfs64",  statvfs64_32,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct statvfs64_32 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1050:12: note: in expansion of macro 'SYSENT_CI'
  /* 219 */ SYSENT_CI("fstatvfs64",  fstatvfs64_32,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct rlimit64 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1051:12: note: in expansion of macro 'SYSENT_CI'
  /* 220 */ SYSENT_CI("setrlimit64",  setrlimit64,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct rlimit64 *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1052:12: note: in expansion of macro 'SYSENT_CI'
  /* 221 */ SYSENT_CI("getrlimit64",  getrlimit64,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, size32_t,  uint32_t,  uint32_t)' {aka 'int (*)(int,  void *, unsigned int,  unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1053:12: note: in expansion of macro 'SYSENT_CI'
  /* 222 */ SYSENT_CI("pread64",   pread64,  5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, size32_t,  uint32_t,  uint32_t)' {aka 'int (*)(int,  void *, unsigned int,  unsigned int,  unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1054:12: note: in expansion of macro 'SYSENT_CI'
  /* 223 */ SYSENT_CI("pwrite64",  pwrite64,  5),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1055:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 224 */ SYSENT_LOADABLE32(),   /* (was creat64) */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1056:12: note: in expansion of macro 'SYSENT_CI'
  /* 225 */ SYSENT_CI("open64",  open64,  3),
            ^~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1057:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 226 */ SYSENT_LOADABLE32(),  /* rpcsys */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:423:20: error: cast between incompatible function types from 'int64_t (*)(void)' {aka 'long int (*)(void)'} to 'int (*)()' [-Werror=cast-function-type]
  { 0, SE_LOADABLE, (int (*)())nosys, NULL, loadable_syscall }
                    ^
../../common/os/sysent.c:428:29: note: in expansion of macro 'SYSENT_LOADABLE'
 #define SYSENT_LOADABLE32() SYSENT_LOADABLE()
                             ^~~~~~~~~~~~~~~
../../common/os/sysent.c:1059:12: note: in expansion of macro 'SYSENT_LOADABLE32'
  /* 228 */ SYSENT_LOADABLE32(),  /* autofssys */
            ^~~~~~~~~~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, size_t)' {aka 'int (*)(char *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1060:12: note: in expansion of macro 'SYSENT_CI'
  /* 229 */ SYSENT_CI("getcwd",  getcwd,  2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int,  char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1061:12: note: in expansion of macro 'SYSENT_CI'
  /* 230 */ SYSENT_CI("so_socket", so_socket, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1062:12: note: in expansion of macro 'SYSENT_CI'
  /* 231 */ SYSENT_CI("so_socketpair", so_socketpair, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t,  int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1063:12: note: in expansion of macro 'SYSENT_CI'
  /* 232 */ SYSENT_CI("bind",  bind,  4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1064:12: note: in expansion of macro 'SYSENT_CI'
  /* 233 */ SYSENT_CI("listen",  listen,  3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t *, int,  int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int *, int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1065:12: note: in expansion of macro 'SYSENT_CI'
  /* 234 */ SYSENT_CI("accept",  accept,  5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t,  int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int,  int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1066:12: note: in expansion of macro 'SYSENT_CI'
  /* 235 */ SYSENT_CI("connect",  connect, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1067:12: note: in expansion of macro 'SYSENT_CI'
  /* 236 */ SYSENT_CI("shutdown",  shutdown, 3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t *, int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1074:12: note: in expansion of macro 'SYSENT_CI'
  /* 243 */ SYSENT_CI("getpeername", getpeername, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  struct sockaddr *, socklen_t *, int)' {aka 'int (*)(int,  struct sockaddr *, unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1075:12: note: in expansion of macro 'SYSENT_CI'
  /* 244 */ SYSENT_CI("getsockname", getsockname, 4),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int,  void *, socklen_t *, int)' {aka 'int (*)(int,  int,  int,  void *, unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1076:12: note: in expansion of macro 'SYSENT_CI'
  /* 245 */ SYSENT_CI("getsockopt", getsockopt, 6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  int,  void *, socklen_t *, int)' {aka 'int (*)(int,  int,  int,  void *, unsigned int *, int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1077:12: note: in expansion of macro 'SYSENT_CI'
  /* 246 */ SYSENT_CI("setsockopt", setsockopt, 6),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  void *, void *, void *, void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1078:12: note: in expansion of macro 'SYSENT_CI'
  /* 247 */ SYSENT_CI("sockconfig", sockconfig, 5),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct ntptimeval *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1079:12: note: in expansion of macro 'SYSENT_CI'
  /* 248 */ SYSENT_CI("ntp_gettime", ntp_gettime, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(struct timex *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1080:12: note: in expansion of macro 'SYSENT_CI'
  /* 249 */ SYSENT_CI("ntp_adjtime", ntp_adjtime, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *)' {aka 'int (*)(struct _lwp_mutex *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1081:12: note: in expansion of macro 'SYSENT_CI'
  /* 250 */ SYSENT_CI("lwp_mutex_unlock", lwp_mutex_unlock, 1),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *, uintptr_t)' {aka 'int (*)(struct _lwp_mutex *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1082:12: note: in expansion of macro 'SYSENT_CI'
  /* 251 */ SYSENT_CI("lwp_mutex_trylock", lwp_mutex_trylock, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(lwp_mutex_t *, char *)' {aka 'int (*)(struct _lwp_mutex *, char *)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1083:12: note: in expansion of macro 'SYSENT_CI'
  /* 252 */ SYSENT_CI("lwp_mutex_register", lwp_mutex_register, 2),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(int,  int,  void *)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1084:12: note: in expansion of macro 'SYSENT_CI'
  /* 253 */ SYSENT_CI("cladm",  cladm,  3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(const void *, void *, size_t)' {aka 'int (*)(const void *, void *, long unsigned int)'} to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1085:12: note: in expansion of macro 'SYSENT_CI'
  /* 254 */ SYSENT_CI("uucopy",  uucopy,  3),
            ^~~~~~~~~
../../common/os/sysent.c:362:36: error: cast between incompatible function types from 'int (*)(char *, int)' to 'int64_t (*)()' {aka 'long int (*)()'} [-Werror=cast-function-type]
  { (narg), SE_32RVAL1, NULL, NULL, (llfcn_t)(call) }
                                    ^
../../common/os/sysent.c:1086:12: note: in expansion of macro 'SYSENT_CI'
  /* 255 */ SYSENT_CI("umount2",  umount2, 2)
            ^~~~~~~~~
cc1: all warnings being treated as errors
*** Error code 1


  • 0
  • 0
  • 1
  • 1
  • 2
Description From Last Updated
rm
  1. 
      
  2. usr/src/uts/common/os/sysent.c (Diff revision 1)
     
     
    Why do we go through a uintptr_t for the function pointer? Wouldn't a void * be more appropriate? I'm probably forgetting some nuance of the C casting rules here.
    1. In general, it is considered undefined behavior to cast between data and function pointers (because function pointers can be with different size). Also gcc (8) does not complain about it in our current build environment, but I think it is just safer to use uintptr_t here as we already are in casting business anyhow (and we do have the number of warning suppressors).

  3. usr/src/uts/common/os/sysent.c (Diff revision 1)
     
     
    For anyone else trying to find a definition of nosys32, it's in https://www.illumos.org/rb/r/1443/.
    1. The depends on updated too.

  4. 
      
tsoome
domag02
  1. 
      
  2. usr/src/uts/common/os/sysent.c (Diff revision 1)
     
     
    Space followed by tab.
  3. 
      
tsoome
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...