+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/acpica-utils-20160930nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/acpica-utils-20160930nb2/work.log
===> Building for acpica-utils-20160930nb2
gmake[1]: Entering directory '/home/pbulk/build/sysutils/acpica-utils/work/acpica-unix2-20160930/generate/unix/acpidump'
gmake[1]: Entering directory '/home/pbulk/build/sysutils/acpica-utils/work/acpica-unix2-20160930/generate/unix/acpibin'
gmake[1]: Entering directory '/home/pbulk/build/sysutils/acpica-utils/work/acpica-unix2-20160930/generate/unix/acpiexec'
gmake[1]: Entering directory '/home/pbulk/build/sysutils/acpica-utils/work/acpica-unix2-20160930/generate/unix/acpiexamples'
gcc -c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -DACPI_DUMP_APP -I../../../source/tools/acpidump -std=c99 -Wall -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wmissing-declarations -Wmissing-prototypes -Wstrict-aliasing=0 -Wstrict-prototypes -Wswitch-default -Wpointer-arith -Wundef -Waddress -Waggregate-return -Winit-self -Winline -Wmissing-declarations -Wmissing-field-initializers -Wnested-externs -Wno-format-nonliteral -Wredundant-decls -Wempty-body -Wtype-limits -O2 -D_FORTIFY_SOURCE=2 -o obj/apdump.o ../../../source/tools/acpidump/apdump.c
gcc -c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -DACPI_BIN_APP -I../../../source/tools/acpibin -std=c99 -Wall -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wmissing-declarations -Wmissing-prototypes -Wstrict-aliasing=0 -Wstrict-prototypes -Wswitch-default -Wpointer-arith -Wundef -Waddress -Waggregate-return -Winit-self -Winline -Wmissing-declarations -Wmissing-field-initializers -Wnested-externs -Wno-format-nonliteral -Wredundant-decls -Wempty-body -Wtype-limits -O2 -D_FORTIFY_SOURCE=2 -o obj/abcompare.o ../../../source/tools/acpibin/abcompare.c
gcc -c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -DACPI_EXAMPLE_APP -I../../../source/tools/examples -std=c99 -Wall -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wmissing-declarations -Wmissing-prototypes -Wstrict-aliasing=0 -Wstrict-prototypes -Wswitch-default -Wpointer-arith -Wundef -Waddress -Waggregate-return -Winit-self -Winline -Wmissing-declarations -Wmissing-field-initializers -Wnested-externs -Wno-format-nonliteral -Wredundant-decls -Wempty-body -Wtype-limits -O2 -D_FORTIFY_SOURCE=2 -o obj/examples.o ../../../source/tools/examples/examples.c
gcc -c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -DACPI_EXEC_APP -I../../../source/tools/acpiexec -std=c99 -Wall -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wmissing-declarations -Wmissing-prototypes -Wstrict-aliasing=0 -Wstrict-prototypes -Wswitch-default -Wpointer-arith -Wundef -Waddress -Waggregate-return -Winit-self -Winline -Wmissing-declarations -Wmissing-field-initializers -Wnested-externs -Wno-format-nonliteral -Wredundant-decls -Wempty-body -Wtype-limits -O2 -D_FORTIFY_SOURCE=2 -o obj/acgetline.o ../../../source/common/acgetline.c
In file included from /usr/include/sys/klwp.h:41,
                 from /usr/include/sys/thread.h:37,
                 from /usr/include/sys/copyops.h:31,
                 from /usr/include/sys/watchpoint.h:32,
                 from /usr/include/vm/as.h:46,
                 from /usr/include/sys/devops.h:37,
                 from /usr/include/sys/sunddi.h:40,
                 from ../../../source/include/platform/acsolaris.h:36,
                 from ../../../source/include/platform/acenv.h:200,
                 from ../../../source/include/acpi.h:56,
                 from ../../../source/tools/examples/examples.h:47,
                 from ../../../source/tools/examples/examples.c:44:
/usr/include/sys/ucontext.h:87:9: error: unknown type name 'stack_t'
   87 |         stack_t         uc_stack;
      |         ^~~~~~~
In file included from /usr/include/sys/klwp.h:41,
                 from /usr/include/sys/thread.h:37,
                 from /usr/include/sys/copyops.h:31,
                 from /usr/include/sys/watchpoint.h:32,
                 from /usr/include/vm/as.h:46,
                 from /usr/include/sys/devops.h:37,
                 from /usr/include/sys/sunddi.h:40,
                 from ../../../source/include/platform/acsolaris.h:36,
                 from ../../../source/include/platform/acenv.h:200,
                 from ../../../source/include/acpi.h:56,
                 from ../../../source/tools/acpidump/acpidump.h:55,
                 from ../../../source/tools/acpidump/apdump.c:44:
/usr/include/sys/ucontext.h:87:9: error: unknown type name 'stack_t'
   87 |         stack_t         uc_stack;
      |         ^~~~~~~
In file included from /usr/include/sys/klwp.h:41,
                 from /usr/include/sys/thread.h:37,
                 from /usr/include/sys/copyops.h:31,
                 from /usr/include/sys/watchpoint.h:32,
                 from /usr/include/vm/as.h:46,
                 from /usr/include/sys/devops.h:37,
                 from /usr/include/sys/sunddi.h:40,
                 from ../../../source/include/platform/acsolaris.h:36,
                 from ../../../source/include/platform/acenv.h:200,
                 from ../../../source/include/acpi.h:56,
                 from ../../../source/tools/acpibin/acpibin.h:44,
                 from ../../../source/tools/acpibin/abcompare.c:44:
/usr/include/sys/ucontext.h:87:9: error: unknown type name 'stack_t'
   87 |         stack_t         uc_stack;
      |         ^~~~~~~
In file included from /usr/include/sys/klwp.h:41,
                 from /usr/include/sys/thread.h:37,
                 from /usr/include/sys/copyops.h:31,
                 from /usr/include/sys/watchpoint.h:32,
                 from /usr/include/vm/as.h:46,
                 from /usr/include/sys/devops.h:37,
                 from /usr/include/sys/sunddi.h:40,
                 from ../../../source/include/platform/acsolaris.h:36,
                 from ../../../source/include/platform/acenv.h:200,
                 from ../../../source/include/acpi.h:56,
                 from ../../../source/common/acgetline.c:44:
/usr/include/sys/ucontext.h:87:9: error: unknown type name 'stack_t'
   87 |         stack_t         uc_stack;
      |         ^~~~~~~
/usr/include/sys/klwp.h:116:9: error: unknown type name 'stack_t'
  116 |         stack_t lwp_sigaltstack;        /* alternate signal stack */
      |         ^~~~~~~
/usr/include/sys/klwp.h:119:9: error: unknown type name 'k_sigset_t'
  119 |         k_sigset_t      lwp_sigoldmask; /* for sigsuspend */
      |         ^~~~~~~~~~
/usr/include/sys/klwp.h:116:9: error: unknown type name 'stack_t'
  116 |         stack_t lwp_sigaltstack;        /* alternate signal stack */
      |         ^~~~~~~
/usr/include/sys/klwp.h:116:9: error: unknown type name 'stack_t'
  116 |         stack_t lwp_sigaltstack;        /* alternate signal stack */
      |         ^~~~~~~
/usr/include/sys/klwp.h:119:9: error: unknown type name 'k_sigset_t'
  119 |         k_sigset_t      lwp_sigoldmask; /* for sigsuspend */
      |         ^~~~~~~~~~
/usr/include/sys/klwp.h:119:9: error: unknown type name 'k_sigset_t'
  119 |         k_sigset_t      lwp_sigoldmask; /* for sigsuspend */
      |         ^~~~~~~~~~
/usr/include/sys/klwp.h:116:9: error: unknown type name 'stack_t'
  116 |         stack_t lwp_sigaltstack;        /* alternate signal stack */
      |         ^~~~~~~
/usr/include/sys/klwp.h:119:9: error: unknown type name 'k_sigset_t'
  119 |         k_sigset_t      lwp_sigoldmask; /* for sigsuspend */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:170:9: error: unknown type name 'k_sigset_t'
  170 |         k_sigset_t      t_sig;          /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:171:9: error: unknown type name 'k_sigset_t'
  171 |         k_sigset_t      t_extsig;       /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:172:9: error: unknown type name 'k_sigset_t'
  172 |         k_sigset_t      t_hold;         /* hold signal bit mask */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:170:9: error: unknown type name 'k_sigset_t'
  170 |         k_sigset_t      t_sig;          /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:173:9: error: unknown type name 'k_sigset_t'
  173 |         k_sigset_t      t_sigwait;      /* sigtimedwait/sigfd accepting these */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:171:9: error: unknown type name 'k_sigset_t'
  171 |         k_sigset_t      t_extsig;       /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:172:9: error: unknown type name 'k_sigset_t'
  172 |         k_sigset_t      t_hold;         /* hold signal bit mask */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:173:9: error: unknown type name 'k_sigset_t'
  173 |         k_sigset_t      t_sigwait;      /* sigtimedwait/sigfd accepting these */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:170:9: error: unknown type name 'k_sigset_t'
  170 |         k_sigset_t      t_sig;          /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:171:9: error: unknown type name 'k_sigset_t'
  171 |         k_sigset_t      t_extsig;       /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:172:9: error: unknown type name 'k_sigset_t'
  172 |         k_sigset_t      t_hold;         /* hold signal bit mask */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:173:9: error: unknown type name 'k_sigset_t'
  173 |         k_sigset_t      t_sigwait;      /* sigtimedwait/sigfd accepting these */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:170:9: error: unknown type name 'k_sigset_t'
  170 |         k_sigset_t      t_sig;          /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:171:9: error: unknown type name 'k_sigset_t'
  171 |         k_sigset_t      t_extsig;       /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:172:9: error: unknown type name 'k_sigset_t'
  172 |         k_sigset_t      t_hold;         /* hold signal bit mask */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:173:9: error: unknown type name 'k_sigset_t'
  173 |         k_sigset_t      t_sigwait;      /* sigtimedwait/sigfd accepting these */
      |         ^~~~~~~~~~
In file included from /usr/include/sys/proc.h:37,
                 from /usr/include/vm/as.h:51:
/usr/include/sys/user.h:309:28: error: 'MAXSIG' undeclared here (not in a function); did you mean 'MAXUID'?
  309 |         void    (*u_signal[MAXSIG])();  /* Disposition of signals */
      |                            ^~~~~~
      |                            MAXUID
In file included from /usr/include/sys/proc.h:37,
                 from /usr/include/vm/as.h:51:
/usr/include/sys/user.h:309:28: error: 'MAXSIG' undeclared here (not in a function); did you mean 'MAXUID'?
  309 |         void    (*u_signal[MAXSIG])();  /* Disposition of signals */
      |                            ^~~~~~
      |                            MAXUID
In file included from /usr/include/sys/proc.h:37,
                 from /usr/include/vm/as.h:51:
/usr/include/sys/user.h:309:28: error: 'MAXSIG' undeclared here (not in a function); did you mean 'MAXUID'?
  309 |         void    (*u_signal[MAXSIG])();  /* Disposition of signals */
      |                            ^~~~~~
      |                            MAXUID
In file included from /usr/include/sys/proc.h:37,
                 from /usr/include/vm/as.h:51:
/usr/include/sys/user.h:309:28: error: 'MAXSIG' undeclared here (not in a function); did you mean 'MAXUID'?
  309 |         void    (*u_signal[MAXSIG])();  /* Disposition of signals */
      |                            ^~~~~~
      |                            MAXUID
/usr/include/sys/proc.h:200:9: error: unknown type name 'k_sigset_t'
  200 |         k_sigset_t p_sig;               /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:201:9: error: unknown type name 'k_sigset_t'
  201 |         k_sigset_t p_extsig;            /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:202:9: error: unknown type name 'k_sigset_t'
  202 |         k_sigset_t p_ignore;            /* ignore when generated */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:203:9: error: unknown type name 'k_sigset_t'
  203 |         k_sigset_t p_siginfo;           /* gets signal info with signal */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:243:9: error: unknown type name 'k_sigset_t'
  243 |         k_sigset_t p_sigmask;           /* mask of traced signals (/proc) */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:330:9: error: unknown type name 'rlim64_t'
  330 |         rlim64_t        p_stk_ctl;      /* currently enforced stack size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:200:9: error: unknown type name 'k_sigset_t'
  200 |         k_sigset_t p_sig;               /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:200:9: error: unknown type name 'k_sigset_t'
  200 |         k_sigset_t p_sig;               /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:201:9: error: unknown type name 'k_sigset_t'
  201 |         k_sigset_t p_extsig;            /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:331:9: error: unknown type name 'rlim64_t'
  331 |         rlim64_t        p_fsz_ctl;      /* currently enforced file size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:201:9: error: unknown type name 'k_sigset_t'
  201 |         k_sigset_t p_extsig;            /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:202:9: error: unknown type name 'k_sigset_t'
  202 |         k_sigset_t p_ignore;            /* ignore when generated */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:203:9: error: unknown type name 'k_sigset_t'
  203 |         k_sigset_t p_siginfo;           /* gets signal info with signal */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:202:9: error: unknown type name 'k_sigset_t'
  202 |         k_sigset_t p_ignore;            /* ignore when generated */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:332:9: error: unknown type name 'rlim64_t'
  332 |         rlim64_t        p_vmem_ctl;     /* currently enforced addr-space size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:203:9: error: unknown type name 'k_sigset_t'
  203 |         k_sigset_t p_siginfo;           /* gets signal info with signal */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:243:9: error: unknown type name 'k_sigset_t'
  243 |         k_sigset_t p_sigmask;           /* mask of traced signals (/proc) */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:333:9: error: unknown type name 'rlim64_t'
  333 |         rlim64_t        p_fno_ctl;      /* currently enforced file-desc limit */
      |         ^~~~~~~~
/usr/include/sys/proc.h:243:9: error: unknown type name 'k_sigset_t'
  243 |         k_sigset_t p_sigmask;           /* mask of traced signals (/proc) */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:330:9: error: unknown type name 'rlim64_t'
  330 |         rlim64_t        p_stk_ctl;      /* currently enforced stack size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:330:9: error: unknown type name 'rlim64_t'
  330 |         rlim64_t        p_stk_ctl;      /* currently enforced stack size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:331:9: error: unknown type name 'rlim64_t'
  331 |         rlim64_t        p_fsz_ctl;      /* currently enforced file size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:331:9: error: unknown type name 'rlim64_t'
  331 |         rlim64_t        p_fsz_ctl;      /* currently enforced file size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:332:9: error: unknown type name 'rlim64_t'
  332 |         rlim64_t        p_vmem_ctl;     /* currently enforced addr-space size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:332:9: error: unknown type name 'rlim64_t'
  332 |         rlim64_t        p_vmem_ctl;     /* currently enforced addr-space size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:200:9: error: unknown type name 'k_sigset_t'
  200 |         k_sigset_t p_sig;               /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:201:9: error: unknown type name 'k_sigset_t'
  201 |         k_sigset_t p_extsig;            /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:202:9: error: unknown type name 'k_sigset_t'
  202 |         k_sigset_t p_ignore;            /* ignore when generated */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:333:9: error: unknown type name 'rlim64_t'
  333 |         rlim64_t        p_fno_ctl;      /* currently enforced file-desc limit */
      |         ^~~~~~~~
/usr/include/sys/proc.h:203:9: error: unknown type name 'k_sigset_t'
  203 |         k_sigset_t p_siginfo;           /* gets signal info with signal */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:333:9: error: unknown type name 'rlim64_t'
  333 |         rlim64_t        p_fno_ctl;      /* currently enforced file-desc limit */
      |         ^~~~~~~~
/usr/include/sys/proc.h:243:9: error: unknown type name 'k_sigset_t'
  243 |         k_sigset_t p_sigmask;           /* mask of traced signals (/proc) */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:330:9: error: unknown type name 'rlim64_t'
  330 |         rlim64_t        p_stk_ctl;      /* currently enforced stack size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:331:9: error: unknown type name 'rlim64_t'
  331 |         rlim64_t        p_fsz_ctl;      /* currently enforced file size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:332:9: error: unknown type name 'rlim64_t'
  332 |         rlim64_t        p_vmem_ctl;     /* currently enforced addr-space size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:333:9: error: unknown type name 'rlim64_t'
  333 |         rlim64_t        p_fno_ctl;      /* currently enforced file-desc limit */
      |         ^~~~~~~~
../../../source/include/platform/acsolaris.h:69: warning: "ACPI_UNUSED_VAR" redefined
   69 | #define ACPI_UNUSED_VAR
      | 
../../../source/include/platform/acsolaris.h:69: warning: "ACPI_UNUSED_VAR" redefined
   69 | #define ACPI_UNUSED_VAR
      | 
../../../source/include/platform/acsolaris.h:69: warning: "ACPI_UNUSED_VAR" redefined
   69 | #define ACPI_UNUSED_VAR
      | 
In file included from ../../../source/include/platform/acenv.h:174:
../../../source/include/platform/acgcc.h:71: note: this is the location of the previous definition
   71 | #define ACPI_UNUSED_VAR __attribute__ ((unused))
      | 
In file included from ../../../source/include/platform/acenv.h:174:
../../../source/include/platform/acgcc.h:71: note: this is the location of the previous definition
   71 | #define ACPI_UNUSED_VAR __attribute__ ((unused))
      | 
In file included from ../../../source/include/platform/acenv.h:174:
../../../source/include/platform/acgcc.h:71: note: this is the location of the previous definition
   71 | #define ACPI_UNUSED_VAR __attribute__ ((unused))
      | 
../../../source/include/platform/acsolaris.h:73: warning: "ACPI_DISASSEMBLER" redefined
   73 | #define ACPI_DISASSEMBLER
      | 
../../../source/include/platform/acenv.h:161: note: this is the location of the previous definition
  161 | #define ACPI_DISASSEMBLER 1
      | 
../../../source/include/platform/acsolaris.h:69: warning: "ACPI_UNUSED_VAR" redefined
   69 | #define ACPI_UNUSED_VAR
      | 
In file included from ../../../source/include/platform/acenv.h:174:
../../../source/include/platform/acgcc.h:71: note: this is the location of the previous definition
   71 | #define ACPI_UNUSED_VAR __attribute__ ((unused))
      | 
In file included from ../../../source/include/acpi.h:64:
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:390:19: note: in expansion of macro 'ACPI_FILE'
  390 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_DebugFile, NULL);
      |                   ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:391:19: note: in expansion of macro 'ACPI_FILE'
  391 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_OutputFile, NULL);
      |                   ^~~~~~~~~
In file included from ../../../source/include/acpi.h:64:
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:390:19: note: in expansion of macro 'ACPI_FILE'
  390 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_DebugFile, NULL);
      |                   ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:391:19: note: in expansion of macro 'ACPI_FILE'
  391 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_OutputFile, NULL);
      |                   ^~~~~~~~~
In file included from ../../../source/include/acpi.h:64:
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:390:19: note: in expansion of macro 'ACPI_FILE'
  390 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_DebugFile, NULL);
      |                   ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:391:19: note: in expansion of macro 'ACPI_FILE'
  391 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_OutputFile, NULL);
      |                   ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acutils.h:462:5: note: in expansion of macro 'ACPI_FILE'
  462 |     ACPI_FILE               File,
      |     ^~~~~~~~~
In file included from ../../../source/include/accommon.h:61,
                 from ../../../source/tools/acpidump/acpidump.h:56:
../../../source/include/acutils.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acutils.h:462:5: note: in expansion of macro 'ACPI_FILE'
  462 |     ACPI_FILE               File,
      |     ^~~~~~~~~
In file included from ../../../source/include/accommon.h:61,
                 from ../../../source/tools/acpibin/acpibin.h:45:
../../../source/include/acutils.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acutils.h:462:5: note: in expansion of macro 'ACPI_FILE'
  462 |     ACPI_FILE               File,
      |     ^~~~~~~~~
In file included from ../../../source/include/accommon.h:61,
                 from ../../../source/common/acgetline.c:45:
../../../source/include/acutils.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
In file included from ../../../source/include/acpi.h:64:
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:390:19: note: in expansion of macro 'ACPI_FILE'
  390 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_DebugFile, NULL);
      |                   ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:391:19: note: in expansion of macro 'ACPI_FILE'
  391 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_OutputFile, NULL);
      |                   ^~~~~~~~~
In file included from ../../../source/include/accommon.h:63:
../../../source/include/acclib.h:97:1: warning: redundant redeclaration of 'strcat' [-Wredundant-decls]
   97 | strcat (
      | ^~~~~~
In file included from ../../../source/include/accommon.h:63:
../../../source/include/acclib.h:97:1: warning: redundant redeclaration of 'strcat' [-Wredundant-decls]
   97 | strcat (
      | ^~~~~~
In file included from /usr/include/string.h:34,
                 from /usr/include/strings.h:36,
                 from ../../../source/include/platform/acsolaris.h:45:
/usr/include/iso/string_iso.h:73:14: note: previous declaration of 'strcat' with type 'char *(char *, const char *)'
   73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:102:1: warning: redundant redeclaration of 'strchr' [-Wredundant-decls]
  102 | strchr (
      | ^~~~~~
/usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)'
  140 | extern char *strchr(const char *, int);
      |              ^~~~~~
In file included from /usr/include/string.h:34,
                 from /usr/include/strings.h:36,
                 from ../../../source/include/platform/acsolaris.h:45:
/usr/include/iso/string_iso.h:73:14: note: previous declaration of 'strcat' with type 'char *(char *, const char *)'
   73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:107:1: warning: redundant redeclaration of 'strcpy' [-Wredundant-decls]
  107 | strcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:75:14: note: previous declaration of 'strcpy' with type 'char *(char *, const char *)'
   75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:102:1: warning: redundant redeclaration of 'strchr' [-Wredundant-decls]
  102 | strchr (
      | ^~~~~~
/usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)'
  140 | extern char *strchr(const char *, int);
      |              ^~~~~~
../../../source/include/acclib.h:112:1: warning: redundant redeclaration of 'strcmp' [-Wredundant-decls]
  112 | strcmp (
      | ^~~~~~
/usr/include/iso/string_iso.h:74:12: note: previous declaration of 'strcmp' with type 'int(const char *, const char *)'
   74 | extern int strcmp(const char *, const char *);
      |            ^~~~~~
../../../source/include/acclib.h:107:1: warning: redundant redeclaration of 'strcpy' [-Wredundant-decls]
  107 | strcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:75:14: note: previous declaration of 'strcpy' with type 'char *(char *, const char *)'
   75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:117:1: warning: redundant redeclaration of 'strlen' [-Wredundant-decls]
  117 | strlen (
      | ^~~~~~
../../../source/include/acclib.h:112:1: warning: redundant redeclaration of 'strcmp' [-Wredundant-decls]
  112 | strcmp (
      | ^~~~~~
/usr/include/iso/string_iso.h:79:15: note: previous declaration of 'strlen' with type 'size_t(const char *)' {aka 'long unsigned int(const char *)'}
   79 | extern size_t strlen(const char *);
      |               ^~~~~~
/usr/include/iso/string_iso.h:74:12: note: previous declaration of 'strcmp' with type 'int(const char *, const char *)'
   74 | extern int strcmp(const char *, const char *);
      |            ^~~~~~
../../../source/include/acclib.h:121:1: warning: redundant redeclaration of 'strncat' [-Wredundant-decls]
  121 | strncat (
      | ^~~~~~~
../../../source/include/acclib.h:117:1: warning: redundant redeclaration of 'strlen' [-Wredundant-decls]
  117 | strlen (
      | ^~~~~~
/usr/include/iso/string_iso.h:80:14: note: previous declaration of 'strncat' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   80 | extern char *strncat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
/usr/include/iso/string_iso.h:79:15: note: previous declaration of 'strlen' with type 'size_t(const char *)' {aka 'long unsigned int(const char *)'}
   79 | extern size_t strlen(const char *);
      |               ^~~~~~
../../../source/include/acclib.h:127:1: warning: redundant redeclaration of 'strncmp' [-Wredundant-decls]
  127 | strncmp (
      | ^~~~~~~
../../../source/include/acclib.h:121:1: warning: redundant redeclaration of 'strncat' [-Wredundant-decls]
  121 | strncat (
      | ^~~~~~~
/usr/include/iso/string_iso.h:81:12: note: previous declaration of 'strncmp' with type 'int(const char *, const char *, size_t)' {aka 'int(const char *, const char *, long unsigned int)'}
   81 | extern int strncmp(const char *, const char *, size_t);
      |            ^~~~~~~
/usr/include/iso/string_iso.h:80:14: note: previous declaration of 'strncat' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   80 | extern char *strncat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
../../../source/include/acclib.h:133:1: warning: redundant redeclaration of 'strncpy' [-Wredundant-decls]
  133 | strncpy (
      | ^~~~~~~
../../../source/include/acclib.h:127:1: warning: redundant redeclaration of 'strncmp' [-Wredundant-decls]
  127 | strncmp (
      | ^~~~~~~
/usr/include/iso/string_iso.h:82:14: note: previous declaration of 'strncpy' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
/usr/include/iso/string_iso.h:81:12: note: previous declaration of 'strncmp' with type 'int(const char *, const char *, size_t)' {aka 'int(const char *, const char *, long unsigned int)'}
   81 | extern int strncmp(const char *, const char *, size_t);
      |            ^~~~~~~
../../../source/include/acclib.h:133:1: warning: redundant redeclaration of 'strncpy' [-Wredundant-decls]
  133 | strncpy (
      | ^~~~~~~
../../../source/include/acclib.h:139:1: error: conflicting types for 'strstr'; have 'char *(char *, char *)'
  139 | strstr (
      | ^~~~~~
/usr/include/iso/string_iso.h:82:14: note: previous declaration of 'strncpy' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
/usr/include/iso/string_iso.h:143:14: note: previous declaration of 'strstr' with type 'char *(const char *, const char *)'
  143 | extern char *strstr(const char *, const char *);
      |              ^~~~~~
../../../source/include/acclib.h:139:1: error: conflicting types for 'strstr'; have 'char *(char *, char *)'
  139 | strstr (
      | ^~~~~~
../../../source/include/acclib.h:147:1: error: conflicting types for 'strtoul'; have 'UINT32(const char *, char **, UINT32)' {aka 'unsigned int(const char *, char **, unsigned int)'}
  147 | strtoul (
      | ^~~~~~~
/usr/include/iso/string_iso.h:143:14: note: previous declaration of 'strstr' with type 'char *(const char *, const char *)'
  143 | extern char *strstr(const char *, const char *);
      |              ^~~~~~
../../../source/include/acclib.h:147:1: error: conflicting types for 'strtoul'; have 'UINT32(const char *, char **, UINT32)' {aka 'unsigned int(const char *, char **, unsigned int)'}
  147 | strtoul (
      | ^~~~~~~
In file included from /usr/include/stdlib.h:41,
                 from ../../../source/include/platform/acsolaris.h:46:
/usr/include/iso/stdlib_iso.h:158:26: note: previous declaration of 'strtoul' with type 'long unsigned int(const char * restrict,  char ** restrict,  int)'
  158 | extern unsigned long int strtoul(const char *_RESTRICT_KYWD,
      |                          ^~~~~~~
../../../source/include/acclib.h:156:1: error: conflicting types for 'memcmp'; have 'int(void *, void *, ACPI_SIZE)' {aka 'int(void *, void *, long unsigned int)'}
  156 | memcmp (
      | ^~~~~~
/usr/include/iso/string_iso.h:69:12: note: previous declaration of 'memcmp' with type 'int(const void *, const void *, size_t)' {aka 'int(const void *, const void *, long unsigned int)'}
   69 | extern int memcmp(const void *, const void *, size_t);
      |            ^~~~~~
In file included from /usr/include/stdlib.h:41,
                 from ../../../source/include/platform/acsolaris.h:46:
/usr/include/iso/stdlib_iso.h:158:26: note: previous declaration of 'strtoul' with type 'long unsigned int(const char * restrict,  char ** restrict,  int)'
  158 | extern unsigned long int strtoul(const char *_RESTRICT_KYWD,
      |                          ^~~~~~~
../../../source/include/acclib.h:162:1: warning: redundant redeclaration of 'memcpy' [-Wredundant-decls]
  162 | memcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:70:14: note: previous declaration of 'memcpy' with type 'void *(void *, const void *, size_t)' {aka 'void *(void *, const void *, long unsigned int)'}
   70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t);
      |              ^~~~~~
../../../source/include/acclib.h:156:1: error: conflicting types for 'memcmp'; have 'int(void *, void *, ACPI_SIZE)' {aka 'int(void *, void *, long unsigned int)'}
  156 | memcmp (
      | ^~~~~~
In file included from ../../../source/include/accommon.h:63:
../../../source/include/acclib.h:97:1: warning: redundant redeclaration of 'strcat' [-Wredundant-decls]
   97 | strcat (
      | ^~~~~~
/usr/include/iso/string_iso.h:69:12: note: previous declaration of 'memcmp' with type 'int(const void *, const void *, size_t)' {aka 'int(const void *, const void *, long unsigned int)'}
   69 | extern int memcmp(const void *, const void *, size_t);
      |            ^~~~~~
../../../source/include/acclib.h:168:1: warning: redundant redeclaration of 'memset' [-Wredundant-decls]
  168 | memset (
      | ^~~~~~
/usr/include/iso/string_iso.h:72:14: note: previous declaration of 'memset' with type 'void *(void *, int,  size_t)' {aka 'void *(void *, int,  long unsigned int)'}
   72 | extern void *memset(void *, int, size_t);
      |              ^~~~~~
../../../source/include/acclib.h:162:1: warning: redundant redeclaration of 'memcpy' [-Wredundant-decls]
  162 | memcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:70:14: note: previous declaration of 'memcpy' with type 'void *(void *, const void *, size_t)' {aka 'void *(void *, const void *, long unsigned int)'}
   70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t);
      |              ^~~~~~
../../../source/include/acclib.h:177:1: warning: redundant redeclaration of 'tolower' [-Wredundant-decls]
  177 | tolower (
      | ^~~~~~~
../../../source/include/acclib.h:168:1: warning: redundant redeclaration of 'memset' [-Wredundant-decls]
  168 | memset (
      | ^~~~~~
/usr/include/iso/string_iso.h:72:14: note: previous declaration of 'memset' with type 'void *(void *, int,  size_t)' {aka 'void *(void *, int,  long unsigned int)'}
   72 | extern void *memset(void *, int, size_t);
      |              ^~~~~~
In file included from /usr/include/string.h:34,
                 from /usr/include/strings.h:36,
                 from ../../../source/include/platform/acsolaris.h:45:
/usr/include/iso/string_iso.h:73:14: note: previous declaration of 'strcat' with type 'char *(char *, const char *)'
   73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:177:1: warning: redundant redeclaration of 'tolower' [-Wredundant-decls]
  177 | tolower (
      | ^~~~~~~
In file included from /usr/include/ctype.h:36,
                 from ../../../source/include/platform/acsolaris.h:44:
/usr/include/iso/ctype_iso.h:106:12: note: previous declaration of 'tolower' with type 'int(int)'
  106 | extern int tolower(int);
      |            ^~~~~~~
../../../source/include/acclib.h:102:1: warning: redundant redeclaration of 'strchr' [-Wredundant-decls]
  102 | strchr (
      | ^~~~~~
/usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)'
  140 | extern char *strchr(const char *, int);
      |              ^~~~~~
../../../source/include/acclib.h:181:1: warning: redundant redeclaration of 'toupper' [-Wredundant-decls]
  181 | toupper (
      | ^~~~~~~
In file included from /usr/include/ctype.h:36,
                 from ../../../source/include/platform/acsolaris.h:44:
/usr/include/iso/ctype_iso.h:106:12: note: previous declaration of 'tolower' with type 'int(int)'
  106 | extern int tolower(int);
      |            ^~~~~~~
/usr/include/iso/ctype_iso.h:107:12: note: previous declaration of 'toupper' with type 'int(int)'
  107 | extern int toupper(int);
      |            ^~~~~~~
../../../source/include/acclib.h:107:1: warning: redundant redeclaration of 'strcpy' [-Wredundant-decls]
  107 | strcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:75:14: note: previous declaration of 'strcpy' with type 'char *(char *, const char *)'
   75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:181:1: warning: redundant redeclaration of 'toupper' [-Wredundant-decls]
  181 | toupper (
      | ^~~~~~~
/usr/include/iso/ctype_iso.h:107:12: note: previous declaration of 'toupper' with type 'int(int)'
  107 | extern int toupper(int);
      |            ^~~~~~~
../../../source/include/acclib.h:112:1: warning: redundant redeclaration of 'strcmp' [-Wredundant-decls]
  112 | strcmp (
      | ^~~~~~
/usr/include/iso/string_iso.h:74:12: note: previous declaration of 'strcmp' with type 'int(const char *, const char *)'
   74 | extern int strcmp(const char *, const char *);
      |            ^~~~~~
../../../source/include/acclib.h:117:1: warning: redundant redeclaration of 'strlen' [-Wredundant-decls]
  117 | strlen (
      | ^~~~~~
/usr/include/iso/string_iso.h:79:15: note: previous declaration of 'strlen' with type 'size_t(const char *)' {aka 'long unsigned int(const char *)'}
   79 | extern size_t strlen(const char *);
      |               ^~~~~~
../../../source/include/acclib.h:121:1: warning: redundant redeclaration of 'strncat' [-Wredundant-decls]
  121 | strncat (
      | ^~~~~~~
../../../source/include/acclib.h:241:5: error: unknown type name 'FILE'
  241 |     FILE                    *File,
      |     ^~~~
/usr/include/iso/string_iso.h:80:14: note: previous declaration of 'strncat' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   80 | extern char *strncat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
../../../source/include/acclib.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acclib.h:241:5: error: unknown type name 'FILE'
  241 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:127:1: warning: redundant redeclaration of 'strncmp' [-Wredundant-decls]
  127 | strncmp (
      | ^~~~~~~
/usr/include/iso/string_iso.h:81:12: note: previous declaration of 'strncmp' with type 'int(const char *, const char *, size_t)' {aka 'int(const char *, const char *, long unsigned int)'}
   81 | extern int strncmp(const char *, const char *, size_t);
      |            ^~~~~~~
../../../source/include/acclib.h:247:5: error: unknown type name 'FILE'
  247 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:247:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:133:1: warning: redundant redeclaration of 'strncpy' [-Wredundant-decls]
  133 | strncpy (
      | ^~~~~~~
/usr/include/iso/string_iso.h:82:14: note: previous declaration of 'strncpy' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
../../../source/include/acclib.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acclib.h:251:1: error: unknown type name 'FILE'
  251 | FILE *
      | ^~~~
../../../source/include/acclib.h:251:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:139:1: error: conflicting types for 'strstr'; have 'char *(char *, char *)'
  139 | strstr (
      | ^~~~~~
/usr/include/iso/string_iso.h:143:14: note: previous declaration of 'strstr' with type 'char *(const char *, const char *)'
  143 | extern char *strstr(const char *, const char *);
      |              ^~~~~~
../../../source/include/acclib.h:147:1: error: conflicting types for 'strtoul'; have 'UINT32(const char *, char **, UINT32)' {aka 'unsigned int(const char *, char **, unsigned int)'}
  147 | strtoul (
      | ^~~~~~~
../../../source/include/acclib.h:258:5: error: unknown type name 'FILE'
  258 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:247:5: error: unknown type name 'FILE'
  247 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:258:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:247:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acutils.h:462:5: note: in expansion of macro 'ACPI_FILE'
  462 |     ACPI_FILE               File,
      |     ^~~~~~~~~
../../../source/include/acclib.h:265:5: error: unknown type name 'FILE'
  265 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:251:1: error: unknown type name 'FILE'
  251 | FILE *
      | ^~~~
../../../source/include/acclib.h:265:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
In file included from /usr/include/stdlib.h:41,
                 from ../../../source/include/platform/acsolaris.h:46:
/usr/include/iso/stdlib_iso.h:158:26: note: previous declaration of 'strtoul' with type 'long unsigned int(const char * restrict,  char ** restrict,  int)'
  158 | extern unsigned long int strtoul(const char *_RESTRICT_KYWD,
      |                          ^~~~~~~
../../../source/include/acclib.h:251:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
In file included from ../../../source/include/accommon.h:61,
                 from ../../../source/tools/examples/examples.h:48:
../../../source/include/acutils.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acclib.h:156:1: error: conflicting types for 'memcmp'; have 'int(void *, void *, ACPI_SIZE)' {aka 'int(void *, void *, long unsigned int)'}
  156 | memcmp (
      | ^~~~~~
../../../source/include/acclib.h:272:5: error: unknown type name 'FILE'
  272 |     FILE                    *File);
      |     ^~~~
/usr/include/iso/string_iso.h:69:12: note: previous declaration of 'memcmp' with type 'int(const void *, const void *, size_t)' {aka 'int(const void *, const void *, long unsigned int)'}
   69 | extern int memcmp(const void *, const void *, size_t);
      |            ^~~~~~
../../../source/include/acclib.h:272:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:258:5: error: unknown type name 'FILE'
  258 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:162:1: warning: redundant redeclaration of 'memcpy' [-Wredundant-decls]
  162 | memcpy (
      | ^~~~~~
../../../source/include/acclib.h:258:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
/usr/include/iso/string_iso.h:70:14: note: previous declaration of 'memcpy' with type 'void *(void *, const void *, size_t)' {aka 'void *(void *, const void *, long unsigned int)'}
   70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t);
      |              ^~~~~~
../../../source/include/acclib.h:276:5: error: unknown type name 'FILE'
  276 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:276:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:168:1: warning: redundant redeclaration of 'memset' [-Wredundant-decls]
  168 | memset (
      | ^~~~~~
../../../source/include/acclib.h:265:5: error: unknown type name 'FILE'
  265 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:265:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:282:5: error: unknown type name 'FILE'
  282 |     FILE                    *File);
      |     ^~~~
/usr/include/iso/string_iso.h:72:14: note: previous declaration of 'memset' with type 'void *(void *, int,  size_t)' {aka 'void *(void *, int,  long unsigned int)'}
   72 | extern void *memset(void *, int, size_t);
      |              ^~~~~~
../../../source/include/acclib.h:282:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:177:1: warning: redundant redeclaration of 'tolower' [-Wredundant-decls]
  177 | tolower (
      | ^~~~~~~
../../../source/include/acclib.h:272:5: error: unknown type name 'FILE'
  272 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:272:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
In file included from /usr/include/ctype.h:36,
                 from ../../../source/include/platform/acsolaris.h:44:
/usr/include/iso/ctype_iso.h:106:12: note: previous declaration of 'tolower' with type 'int(int)'
  106 | extern int tolower(int);
      |            ^~~~~~~
../../../source/include/acclib.h:276:5: error: unknown type name 'FILE'
  276 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:181:1: warning: redundant redeclaration of 'toupper' [-Wredundant-decls]
  181 | toupper (
      | ^~~~~~~
../../../source/include/acclib.h:276:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
/usr/include/iso/ctype_iso.h:107:12: note: previous declaration of 'toupper' with type 'int(int)'
  107 | extern int toupper(int);
      |            ^~~~~~~
../../../source/include/acclib.h:282:5: error: unknown type name 'FILE'
  282 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:282:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:241:5: error: unknown type name 'FILE'
  241 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acclib.h:247:5: error: unknown type name 'FILE'
  247 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:247:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:251:1: error: unknown type name 'FILE'
  251 | FILE *
      | ^~~~
../../../source/include/acclib.h:251:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:258:5: error: unknown type name 'FILE'
  258 |     FILE                    *File);
      |     ^~~~
In file included from ../../../source/tools/acpibin/acpibin.h:46:
../../../source/include/acapps.h:123:5: error: unknown type name 'FILE'
  123 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:258:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acapps.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acapps.h:127:5: error: unknown type name 'FILE'
  127 |     FILE                    *File,
      |     ^~~~
../../../source/include/acapps.h:127:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:265:5: error: unknown type name 'FILE'
  265 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:265:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acapps.h:162:5: note: in expansion of macro 'ACPI_FILE'
  162 |     ACPI_FILE               File);
      |     ^~~~~~~~~
In file included from ../../../source/tools/acpidump/acpidump.h:58:
../../../source/include/acapps.h:123:5: error: unknown type name 'FILE'
  123 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:272:5: error: unknown type name 'FILE'
  272 |     FILE                    *File);
      |     ^~~~
../../../source/include/platform/acenv.h:375:32: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acapps.h:162:5: note: in expansion of macro 'ACPI_FILE'
  162 |     ACPI_FILE               File);
      |     ^~~~~~~~~
../../../source/include/acclib.h:272:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acapps.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acapps.h:127:5: error: unknown type name 'FILE'
  127 |     FILE                    *File,
      |     ^~~~
../../../source/include/acapps.h:127:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:276:5: error: unknown type name 'FILE'
  276 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:276:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acapps.h:162:5: note: in expansion of macro 'ACPI_FILE'
  162 |     ACPI_FILE               File);
      |     ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acapps.h:162:5: note: in expansion of macro 'ACPI_FILE'
  162 |     ACPI_FILE               File);
      |     ^~~~~~~~~
../../../source/include/acclib.h:282:5: error: unknown type name 'FILE'
  282 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:282:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
In file included from ../../../source/include/accommon.h:63:
../../../source/include/acclib.h:97:1: warning: redundant redeclaration of 'strcat' [-Wredundant-decls]
   97 | strcat (
      | ^~~~~~
In file included from /usr/include/string.h:34,
                 from /usr/include/strings.h:36,
                 from ../../../source/include/platform/acsolaris.h:45:
/usr/include/iso/string_iso.h:73:14: note: previous declaration of 'strcat' with type 'char *(char *, const char *)'
   73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:102:1: warning: redundant redeclaration of 'strchr' [-Wredundant-decls]
  102 | strchr (
      | ^~~~~~
/usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)'
  140 | extern char *strchr(const char *, int);
      |              ^~~~~~
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/tools/acpidump/acpidump.h:67:8: note: in expansion of macro 'ACPI_FILE'
   67 | EXTERN ACPI_FILE            INIT_GLOBAL (Gbl_OutputFile, NULL);
      |        ^~~~~~~~~
../../../source/include/acclib.h:107:1: warning: redundant redeclaration of 'strcpy' [-Wredundant-decls]
  107 | strcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:75:14: note: previous declaration of 'strcpy' with type 'char *(char *, const char *)'
   75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:112:1: warning: redundant redeclaration of 'strcmp' [-Wredundant-decls]
  112 | strcmp (
      | ^~~~~~
/usr/include/iso/string_iso.h:74:12: note: previous declaration of 'strcmp' with type 'int(const char *, const char *)'
   74 | extern int strcmp(const char *, const char *);
      |            ^~~~~~
../../../source/include/acclib.h:117:1: warning: redundant redeclaration of 'strlen' [-Wredundant-decls]
  117 | strlen (
      | ^~~~~~
/usr/include/iso/string_iso.h:79:15: note: previous declaration of 'strlen' with type 'size_t(const char *)' {aka 'long unsigned int(const char *)'}
   79 | extern size_t strlen(const char *);
      |               ^~~~~~
../../../source/include/acclib.h:121:1: warning: redundant redeclaration of 'strncat' [-Wredundant-decls]
  121 | strncat (
      | ^~~~~~~
/usr/include/iso/string_iso.h:80:14: note: previous declaration of 'strncat' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   80 | extern char *strncat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
../../../source/include/acclib.h:127:1: warning: redundant redeclaration of 'strncmp' [-Wredundant-decls]
  127 | strncmp (
      | ^~~~~~~
/usr/include/iso/string_iso.h:81:12: note: previous declaration of 'strncmp' with type 'int(const char *, const char *, size_t)' {aka 'int(const char *, const char *, long unsigned int)'}
   81 | extern int strncmp(const char *, const char *, size_t);
      |            ^~~~~~~
../../../source/include/acclib.h:133:1: warning: redundant redeclaration of 'strncpy' [-Wredundant-decls]
  133 | strncpy (
      | ^~~~~~~
/usr/include/iso/string_iso.h:82:14: note: previous declaration of 'strncpy' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
../../../source/include/acclib.h:139:1: error: conflicting types for 'strstr'; have 'char *(char *, char *)'
  139 | strstr (
      | ^~~~~~
/usr/include/iso/string_iso.h:143:14: note: previous declaration of 'strstr' with type 'char *(const char *, const char *)'
  143 | extern char *strstr(const char *, const char *);
      |              ^~~~~~
../../../source/include/acclib.h:147:1: error: conflicting types for 'strtoul'; have 'UINT32(const char *, char **, UINT32)' {aka 'unsigned int(const char *, char **, unsigned int)'}
  147 | strtoul (
      | ^~~~~~~
In file included from /usr/include/stdlib.h:41,
                 from ../../../source/include/platform/acsolaris.h:46:
/usr/include/iso/stdlib_iso.h:158:26: note: previous declaration of 'strtoul' with type 'long unsigned int(const char * restrict,  char ** restrict,  int)'
  158 | extern unsigned long int strtoul(const char *_RESTRICT_KYWD,
      |                          ^~~~~~~
../../../source/include/acclib.h:156:1: error: conflicting types for 'memcmp'; have 'int(void *, void *, ACPI_SIZE)' {aka 'int(void *, void *, long unsigned int)'}
  156 | memcmp (
      | ^~~~~~
../../../source/tools/acpidump/apdump.c: In function 'ApIsValidHeader':
/usr/include/iso/string_iso.h:69:12: note: previous declaration of 'memcmp' with type 'int(const void *, const void *, size_t)' {aka 'int(const void *, const void *, long unsigned int)'}
   69 | extern int memcmp(const void *, const void *, size_t);
      |            ^~~~~~
../../../source/include/acclib.h:162:1: warning: redundant redeclaration of 'memcpy' [-Wredundant-decls]
  162 | memcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:70:14: note: previous declaration of 'memcpy' with type 'void *(void *, const void *, size_t)' {aka 'void *(void *, const void *, long unsigned int)'}
   70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t);
      |              ^~~~~~
../../../source/tools/acpidump/apdump.c:79:13: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
   79 |             fprintf (stderr, "Table signature (0x%8.8X) is invalid\n",
      |             ^~~~~~~
../../../source/include/acclib.h:168:1: warning: redundant redeclaration of 'memset' [-Wredundant-decls]
  168 | memset (
      | ^~~~~~
/usr/include/iso/string_iso.h:72:14: note: previous declaration of 'memset' with type 'void *(void *, int,  size_t)' {aka 'void *(void *, int,  long unsigned int)'}
   72 | extern void *memset(void *, int, size_t);
      |              ^~~~~~
../../../source/tools/acpidump/apdump.c:45:1: note: include '<stdio.h>' or provide a declaration of 'fprintf'
   44 | #include "acpidump.h"
  +++ |+#include <stdio.h>
   45 | 
../../../source/tools/acpidump/apdump.c:79:13: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
   79 |             fprintf (stderr, "Table signature (0x%8.8X) is invalid\n",
      |             ^~~~~~~
../../../source/tools/acpidump/apdump.c:79:13: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/include/acclib.h:177:1: warning: redundant redeclaration of 'tolower' [-Wredundant-decls]
  177 | tolower (
      | ^~~~~~~
../../../source/tools/acpidump/apdump.c:79:22: error: 'stderr' undeclared (first use in this function)
   79 |             fprintf (stderr, "Table signature (0x%8.8X) is invalid\n",
      |                      ^~~~~~
../../../source/tools/acpidump/apdump.c:79:22: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c:79:22: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/include/ctype.h:36,
                 from ../../../source/include/platform/acsolaris.h:44:
/usr/include/iso/ctype_iso.h:106:12: note: previous declaration of 'tolower' with type 'int(int)'
  106 | extern int tolower(int);
      |            ^~~~~~~
../../../source/include/acclib.h:181:1: warning: redundant redeclaration of 'toupper' [-Wredundant-decls]
  181 | toupper (
      | ^~~~~~~
/usr/include/iso/ctype_iso.h:107:12: note: previous declaration of 'toupper' with type 'int(int)'
  107 | extern int toupper(int);
      |            ^~~~~~~
../../../source/tools/acpibin/abcompare.c: In function 'AbDisplayHeader':
../../../source/tools/acpidump/apdump.c:88:13: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
   88 |             fprintf (stderr, "Table length (0x%8.8X) is invalid\n",
      |             ^~~~~~~
../../../source/tools/acpidump/apdump.c:88:13: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/include/acclib.h:241:5: error: unknown type name 'FILE'
  241 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/tools/acpibin/abcompare.c:207:5: error: unknown type name 'FILE'
  207 |     FILE                    *File;
      |     ^~~~
../../../source/include/acclib.h:247:5: error: unknown type name 'FILE'
  247 |     FILE                    *File,
      |     ^~~~
../../../source/tools/acpidump/apdump.c: In function 'ApIsValidChecksum':
../../../source/include/acclib.h:247:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpibin/abcompare.c:45:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
   44 | #include "acpibin.h"
  +++ |+#include <stdio.h>
   45 | 
../../../source/tools/acpidump/apdump.c:134:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  134 |         fprintf (stderr, "%4.4s: Warning: wrong checksum in table\n",
      |         ^~~~~~~
../../../source/include/acclib.h:251:1: error: unknown type name 'FILE'
  251 | FILE *
      | ^~~~
../../../source/tools/acpidump/apdump.c:134:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/include/acclib.h:251:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c:134:18: error: 'stderr' undeclared (first use in this function)
  134 |         fprintf (stderr, "%4.4s: Warning: wrong checksum in table\n",
      |                  ^~~~~~
../../../source/tools/acpidump/apdump.c:134:18: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:258:5: error: unknown type name 'FILE'
  258 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:258:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:265:5: error: unknown type name 'FILE'
  265 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:265:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:272:5: error: unknown type name 'FILE'
  272 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:272:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:276:5: error: unknown type name 'FILE'
  276 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:276:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c: In function 'ApDumpTableBuffer':
../../../source/include/acclib.h:282:5: error: unknown type name 'FILE'
  282 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:282:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c:226:5: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  226 |     fprintf (Gbl_OutputFile, "%4.4s @ 0x%8.8X%8.8X\n",
      |     ^~~~~~~
../../../source/tools/acpidump/apdump.c:226:5: note: include '<stdio.h>' or provide a declaration of 'fprintf'
In file included from ../../../source/tools/examples/examples.h:49:
../../../source/include/acapps.h:123:5: error: unknown type name 'FILE'
  123 |     FILE                    *File);
      |     ^~~~
../../../source/include/acapps.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acapps.h:127:5: error: unknown type name 'FILE'
  127 |     FILE                    *File,
      |     ^~~~
../../../source/include/acapps.h:127:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acapps.h:162:5: note: in expansion of macro 'ACPI_FILE'
  162 |     ACPI_FILE               File);
      |     ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acapps.h:162:5: note: in expansion of macro 'ACPI_FILE'
  162 |     ACPI_FILE               File);
      |     ^~~~~~~~~
../../../source/tools/acpibin/abcompare.c:217:14: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
  217 |     Actual = fread (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File);
      |              ^~~~~
../../../source/tools/acpibin/abcompare.c:217:14: warning: nested extern declaration of 'fread' [-Wnested-externs]
../../../source/tools/acpibin/abcompare.c:218:5: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
  218 |     fclose (File);
      |     ^~~~~~
../../../source/tools/acpibin/abcompare.c:218:5: warning: nested extern declaration of 'fclose' [-Wnested-externs]
../../../source/tools/acpibin/abcompare.c: In function 'AbComputeChecksum':
../../../source/tools/acpibin/abcompare.c:250:5: error: unknown type name 'FILE'
  250 |     FILE                    *File;
      |     ^~~~
../../../source/tools/acpibin/abcompare.c:250:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/common/acgetline.c: In function 'AcpiAcClearLine':
../../../source/common/acgetline.c:128:13: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
  128 |             putchar (' ');
      |             ^~~~~~~
../../../source/common/acgetline.c:49:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
   48 | #include "acdebug.h"
  +++ |+#include <stdio.h>
   49 | 
../../../source/common/acgetline.c: In function 'AcpiOsGetLine':
../../../source/common/acgetline.c:192:21: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
  192 |         InputChar = getchar ();
      |                     ^~~~~~~
../../../source/common/acgetline.c:192:21: note: 'getchar' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/common/acgetline.c:192:21: warning: nested extern declaration of 'getchar' [-Wnested-externs]
../../../source/tools/acpibin/abcompare.c:288:5: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
  288 |     fseek (File, 0, SEEK_SET);
      |     ^~~~~
../../../source/tools/acpibin/abcompare.c:288:5: warning: nested extern declaration of 'fseek' [-Wnested-externs]
../../../source/common/acgetline.c:220:13: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
  220 |             fprintf (stdout, "%s", &Buffer[CursorPosition]);
      |             ^~~~~~~
../../../source/common/acgetline.c:220:13: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/common/acgetline.c:220:13: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
../../../source/common/acgetline.c:220:13: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/common/acgetline.c:220:22: error: 'stdout' undeclared (first use in this function)
  220 |             fprintf (stdout, "%s", &Buffer[CursorPosition]);
      |                      ^~~~~~
../../../source/common/acgetline.c:220:22: note: 'stdout' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/common/acgetline.c:220:22: note: each undeclared identifier is reported only once for each function it appears in
../../../source/tools/acpibin/abcompare.c:323:14: warning: implicit declaration of function 'fwrite' [-Wimplicit-function-declaration]
  323 |     Actual = fwrite (&Header1, 1, sizeof (ACPI_TABLE_HEADER), File);
      |              ^~~~~~
../../../source/tools/acpibin/abcompare.c:323:14: note: include '<stdio.h>' or provide a declaration of 'fwrite'
../../../source/tools/acpibin/abcompare.c:323:14: warning: incompatible implicit declaration of built-in function 'fwrite' [-Wbuiltin-declaration-mismatch]
../../../source/tools/acpibin/abcompare.c:323:14: note: include '<stdio.h>' or provide a declaration of 'fwrite'
../../../source/tools/acpibin/abcompare.c: In function 'AbCompareAmlFiles':
../../../source/tools/acpibin/abcompare.c:364:5: error: unknown type name 'FILE'
  364 |     FILE                    *File1;
      |     ^~~~
../../../source/tools/acpibin/abcompare.c:364:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpibin/abcompare.c:365:5: error: unknown type name 'FILE'
  365 |     FILE                    *File2;
      |     ^~~~
../../../source/tools/acpibin/abcompare.c:365:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/common/acgetline.c:292:14: error: 'EOF' undeclared (first use in this function)
  292 |         case EOF:
      |              ^~~
../../../source/common/acgetline.c:292:14: note: 'EOF' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpibin/abcompare.c: In function 'AbGetFile':
../../../source/tools/acpibin/abcompare.c:501:5: error: unknown type name 'FILE'
  501 |     FILE                    *File;
      |     ^~~~
../../../source/tools/acpibin/abcompare.c:501:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
In file included from ../../../source/include/acpi.h:61:
../../../source/common/acgetline.c: At top level:
../../../source/include/acoutput.h:212:75: warning: '_AcpiModuleName' defined but not used [-Wunused-const-variable=]
  212 | #define ACPI_MODULE_NAME(Name)          static const char ACPI_UNUSED_VAR _AcpiModuleName[] = Name;
      |                                                                           ^~~~~~~~~~~~~~~
../../../source/common/acgetline.c:59:9: note: in expansion of macro 'ACPI_MODULE_NAME'
   59 |         ACPI_MODULE_NAME    ("acgetline")
      |         ^~~~~~~~~~~~~~~~
In file included from ../../../source/tools/examples/examples.h:50:
../../../source/tools/examples/../acpiexec/aecommon.h:90:8: error: unknown type name 'FILE'
   90 | extern FILE                 *AcpiGbl_NamespaceInitFile;
      |        ^~~~
../../../source/tools/acpidump/apdump.c:229:5: warning: implicit declaration of function 'AcpiUtDumpBufferToFile'; did you mean 'AcpiUtDumpBuffer'? [-Wimplicit-function-declaration]
  229 |     AcpiUtDumpBufferToFile (Gbl_OutputFile,
      |     ^~~~~~~~~~~~~~~~~~~~~~
      |     AcpiUtDumpBuffer
../../../source/tools/acpidump/apdump.c:229:5: warning: nested extern declaration of 'AcpiUtDumpBufferToFile' [-Wnested-externs]
In file included from /usr/include/stdio.h:82,
                 from ../../../source/tools/examples/examples.h:52:
/usr/include/iso/stdio_iso.h:197:18: error: conflicting types for 'fopen'; have 'FILE *(const char * restrict,  const char * restrict)'
  197 | extern FILE     *fopen(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |                  ^~~~~
../../../source/include/acclib.h:252:1: note: previous declaration of 'fopen' with type 'int *(const char *, const char *)'
  252 | fopen (
      | ^~~~~
../../../source/tools/acpidump/apdump.c: In function 'ApDumpAllTables':
../../../source/tools/acpidump/apdump.c:277:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  277 |                 fprintf (stderr, "Could not get ACPI tables, %s\n",
      |                 ^~~~~~~
../../../source/tools/acpidump/apdump.c:277:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/tools/acpibin/abcompare.c:518:12: warning: implicit declaration of function 'CmGetFileSize' [-Wimplicit-function-declaration]
  518 |     Size = CmGetFileSize (File);
      |            ^~~~~~~~~~~~~
../../../source/tools/acpibin/abcompare.c:518:12: warning: nested extern declaration of 'CmGetFileSize' [-Wnested-externs]
../../../source/tools/acpidump/apdump.c:277:26: error: 'stderr' undeclared (first use in this function)
  277 |                 fprintf (stderr, "Could not get ACPI tables, %s\n",
      |                          ^~~~~~
../../../source/tools/acpidump/apdump.c:277:26: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c:283:17: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  283 |                 fprintf (stderr, "Could not get ACPI table at index %u, %s\n",
      |                 ^~~~~~~
../../../source/tools/acpidump/apdump.c:283:17: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/tools/acpibin/abcompare.c: In function 'AbDumpAmlFile':
../../../source/tools/acpidump/apdump.c: In function 'ApDumpTableByAddress':
../../../source/tools/acpibin/abcompare.c:567:5: error: unknown type name 'FILE'
  567 |     FILE                    *FileOutHandle;
      |     ^~~~
../../../source/tools/acpidump/apdump.c:333:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  333 |         fprintf (stderr, "%s: Could not convert to a physical address\n",
      |         ^~~~~~~
../../../source/tools/acpibin/abcompare.c:567:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c:333:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/tools/acpidump/apdump.c:333:18: error: 'stderr' undeclared (first use in this function)
  333 |         fprintf (stderr, "%s: Could not convert to a physical address\n",
      |                  ^~~~~~
../../../source/tools/acpidump/apdump.c:333:18: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c:342:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  342 |         fprintf (stderr, "Could not get table at 0x%8.8X%8.8X, %s\n",
      |         ^~~~~~~
../../../source/tools/acpidump/apdump.c:342:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/tools/acpidump/apdump.c: In function 'ApDumpTableByName':
../../../source/tools/acpidump/apdump.c:381:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  381 |         fprintf (stderr,
      |         ^~~~~~~
../../../source/tools/acpidump/apdump.c:381:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/tools/acpidump/apdump.c:381:18: error: 'stderr' undeclared (first use in this function)
  381 |         fprintf (stderr,
      |                  ^~~~~~
../../../source/tools/acpidump/apdump.c:381:18: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c:418:13: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  418 |             fprintf (stderr,
      |             ^~~~~~~
../../../source/tools/acpidump/apdump.c:418:13: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/tools/acpidump/apdump.c: In function 'ApDumpTableFromFile':
../../../source/tools/acpidump/apdump.c:470:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  470 |         fprintf (stderr,
      |         ^~~~~~~
../../../source/tools/acpidump/apdump.c:470:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/tools/acpidump/apdump.c:470:18: error: 'stderr' undeclared (first use in this function)
  470 |         fprintf (stderr,
      |                  ^~~~~~
../../../source/tools/acpidump/apdump.c:470:18: note: 'stderr' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/tools/acpidump/apdump.c:479:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  479 |         fprintf (stderr,
      |         ^~~~~~~
../../../source/tools/acpidump/apdump.c:479:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
../../../source/tools/acpidump/apdump.c:487:9: warning: incompatible implicit declaration of built-in function 'fprintf' [-Wbuiltin-declaration-mismatch]
  487 |         fprintf (stderr,
      |         ^~~~~~~
../../../source/tools/acpidump/apdump.c:487:9: note: include '<stdio.h>' or provide a declaration of 'fprintf'
gmake[1]: *** [../Makefile.rules:18: obj/acgetline.o] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/sysutils/acpica-utils/work/acpica-unix2-20160930/generate/unix/acpiexec'
gmake: *** [generate/unix/Makefile.common:25: acpiexec] Error 2
gmake: *** Waiting for unfinished jobs....
gcc -c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -DACPI_EXAMPLE_APP -I../../../source/tools/examples -std=c99 -Wall -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wmissing-declarations -Wmissing-prototypes -Wstrict-aliasing=0 -Wstrict-prototypes -Wswitch-default -Wpointer-arith -Wundef -Waddress -Waggregate-return -Winit-self -Winline -Wmissing-declarations -Wmissing-field-initializers -Wnested-externs -Wno-format-nonliteral -Wredundant-decls -Wempty-body -Wtype-limits -O2 -D_FORTIFY_SOURCE=2 -o obj/exstubs.o ../../../source/tools/examples/exstubs.c
gmake[1]: *** [../Makefile.rules:18: obj/abcompare.o] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/sysutils/acpica-utils/work/acpica-unix2-20160930/generate/unix/acpibin'
gmake[1]: *** [../Makefile.rules:18: obj/apdump.o] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/sysutils/acpica-utils/work/acpica-unix2-20160930/generate/unix/acpidump'
gmake[1]: *** [../Makefile.rules:18: obj/examples.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [generate/unix/Makefile.common:25: acpibin] Error 2
gmake: *** [generate/unix/Makefile.common:25: acpidump] Error 2
In file included from /usr/include/sys/klwp.h:41,
                 from /usr/include/sys/thread.h:37,
                 from /usr/include/sys/copyops.h:31,
                 from /usr/include/sys/watchpoint.h:32,
                 from /usr/include/vm/as.h:46,
                 from /usr/include/sys/devops.h:37,
                 from /usr/include/sys/sunddi.h:40,
                 from ../../../source/include/platform/acsolaris.h:36,
                 from ../../../source/include/platform/acenv.h:200,
                 from ../../../source/include/acpi.h:56,
                 from ../../../source/tools/examples/examples.h:47,
                 from ../../../source/tools/examples/exstubs.c:44:
/usr/include/sys/ucontext.h:87:9: error: unknown type name 'stack_t'
   87 |         stack_t         uc_stack;
      |         ^~~~~~~
/usr/include/sys/klwp.h:116:9: error: unknown type name 'stack_t'
  116 |         stack_t lwp_sigaltstack;        /* alternate signal stack */
      |         ^~~~~~~
/usr/include/sys/klwp.h:119:9: error: unknown type name 'k_sigset_t'
  119 |         k_sigset_t      lwp_sigoldmask; /* for sigsuspend */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:170:9: error: unknown type name 'k_sigset_t'
  170 |         k_sigset_t      t_sig;          /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:171:9: error: unknown type name 'k_sigset_t'
  171 |         k_sigset_t      t_extsig;       /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:172:9: error: unknown type name 'k_sigset_t'
  172 |         k_sigset_t      t_hold;         /* hold signal bit mask */
      |         ^~~~~~~~~~
/usr/include/sys/thread.h:173:9: error: unknown type name 'k_sigset_t'
  173 |         k_sigset_t      t_sigwait;      /* sigtimedwait/sigfd accepting these */
      |         ^~~~~~~~~~
In file included from /usr/include/sys/proc.h:37,
                 from /usr/include/vm/as.h:51:
/usr/include/sys/user.h:309:28: error: 'MAXSIG' undeclared here (not in a function); did you mean 'MAXUID'?
  309 |         void    (*u_signal[MAXSIG])();  /* Disposition of signals */
      |                            ^~~~~~
      |                            MAXUID
/usr/include/sys/proc.h:200:9: error: unknown type name 'k_sigset_t'
  200 |         k_sigset_t p_sig;               /* signals pending to this process */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:201:9: error: unknown type name 'k_sigset_t'
  201 |         k_sigset_t p_extsig;            /* signals sent from another contract */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:202:9: error: unknown type name 'k_sigset_t'
  202 |         k_sigset_t p_ignore;            /* ignore when generated */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:203:9: error: unknown type name 'k_sigset_t'
  203 |         k_sigset_t p_siginfo;           /* gets signal info with signal */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:243:9: error: unknown type name 'k_sigset_t'
  243 |         k_sigset_t p_sigmask;           /* mask of traced signals (/proc) */
      |         ^~~~~~~~~~
/usr/include/sys/proc.h:330:9: error: unknown type name 'rlim64_t'
  330 |         rlim64_t        p_stk_ctl;      /* currently enforced stack size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:331:9: error: unknown type name 'rlim64_t'
  331 |         rlim64_t        p_fsz_ctl;      /* currently enforced file size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:332:9: error: unknown type name 'rlim64_t'
  332 |         rlim64_t        p_vmem_ctl;     /* currently enforced addr-space size */
      |         ^~~~~~~~
/usr/include/sys/proc.h:333:9: error: unknown type name 'rlim64_t'
  333 |         rlim64_t        p_fno_ctl;      /* currently enforced file-desc limit */
      |         ^~~~~~~~
../../../source/include/platform/acsolaris.h:69: warning: "ACPI_UNUSED_VAR" redefined
   69 | #define ACPI_UNUSED_VAR
      | 
In file included from ../../../source/include/platform/acenv.h:174:
../../../source/include/platform/acgcc.h:71: note: this is the location of the previous definition
   71 | #define ACPI_UNUSED_VAR __attribute__ ((unused))
      | 
In file included from ../../../source/include/acpi.h:64:
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:390:19: note: in expansion of macro 'ACPI_FILE'
  390 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_DebugFile, NULL);
      |                   ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acpixf.h:85:12: note: in definition of macro 'ACPI_INIT_GLOBAL'
   85 |     extern type name
      |            ^~~~
../../../source/include/acglobal.h:391:19: note: in expansion of macro 'ACPI_FILE'
  391 | ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_OutputFile, NULL);
      |                   ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acutils.h:462:5: note: in expansion of macro 'ACPI_FILE'
  462 |     ACPI_FILE               File,
      |     ^~~~~~~~~
In file included from ../../../source/include/accommon.h:61,
                 from ../../../source/tools/examples/examples.h:48:
../../../source/include/acutils.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
In file included from ../../../source/include/accommon.h:63:
../../../source/include/acclib.h:97:1: warning: redundant redeclaration of 'strcat' [-Wredundant-decls]
   97 | strcat (
      | ^~~~~~
In file included from /usr/include/string.h:34,
                 from /usr/include/strings.h:36,
                 from ../../../source/include/platform/acsolaris.h:45:
/usr/include/iso/string_iso.h:73:14: note: previous declaration of 'strcat' with type 'char *(char *, const char *)'
   73 | extern char *strcat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:102:1: warning: redundant redeclaration of 'strchr' [-Wredundant-decls]
  102 | strchr (
      | ^~~~~~
/usr/include/iso/string_iso.h:140:14: note: previous declaration of 'strchr' with type 'char *(const char *, int)'
  140 | extern char *strchr(const char *, int);
      |              ^~~~~~
../../../source/include/acclib.h:107:1: warning: redundant redeclaration of 'strcpy' [-Wredundant-decls]
  107 | strcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:75:14: note: previous declaration of 'strcpy' with type 'char *(char *, const char *)'
   75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |              ^~~~~~
../../../source/include/acclib.h:112:1: warning: redundant redeclaration of 'strcmp' [-Wredundant-decls]
  112 | strcmp (
      | ^~~~~~
/usr/include/iso/string_iso.h:74:12: note: previous declaration of 'strcmp' with type 'int(const char *, const char *)'
   74 | extern int strcmp(const char *, const char *);
      |            ^~~~~~
../../../source/include/acclib.h:117:1: warning: redundant redeclaration of 'strlen' [-Wredundant-decls]
  117 | strlen (
      | ^~~~~~
/usr/include/iso/string_iso.h:79:15: note: previous declaration of 'strlen' with type 'size_t(const char *)' {aka 'long unsigned int(const char *)'}
   79 | extern size_t strlen(const char *);
      |               ^~~~~~
../../../source/include/acclib.h:121:1: warning: redundant redeclaration of 'strncat' [-Wredundant-decls]
  121 | strncat (
      | ^~~~~~~
/usr/include/iso/string_iso.h:80:14: note: previous declaration of 'strncat' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   80 | extern char *strncat(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
../../../source/include/acclib.h:127:1: warning: redundant redeclaration of 'strncmp' [-Wredundant-decls]
  127 | strncmp (
      | ^~~~~~~
/usr/include/iso/string_iso.h:81:12: note: previous declaration of 'strncmp' with type 'int(const char *, const char *, size_t)' {aka 'int(const char *, const char *, long unsigned int)'}
   81 | extern int strncmp(const char *, const char *, size_t);
      |            ^~~~~~~
../../../source/include/acclib.h:133:1: warning: redundant redeclaration of 'strncpy' [-Wredundant-decls]
  133 | strncpy (
      | ^~~~~~~
/usr/include/iso/string_iso.h:82:14: note: previous declaration of 'strncpy' with type 'char *(char *, const char *, size_t)' {aka 'char *(char *, const char *, long unsigned int)'}
   82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t);
      |              ^~~~~~~
../../../source/include/acclib.h:139:1: error: conflicting types for 'strstr'; have 'char *(char *, char *)'
  139 | strstr (
      | ^~~~~~
/usr/include/iso/string_iso.h:143:14: note: previous declaration of 'strstr' with type 'char *(const char *, const char *)'
  143 | extern char *strstr(const char *, const char *);
      |              ^~~~~~
../../../source/include/acclib.h:147:1: error: conflicting types for 'strtoul'; have 'UINT32(const char *, char **, UINT32)' {aka 'unsigned int(const char *, char **, unsigned int)'}
  147 | strtoul (
      | ^~~~~~~
In file included from /usr/include/stdlib.h:41,
                 from ../../../source/include/platform/acsolaris.h:46:
/usr/include/iso/stdlib_iso.h:158:26: note: previous declaration of 'strtoul' with type 'long unsigned int(const char * restrict,  char ** restrict,  int)'
  158 | extern unsigned long int strtoul(const char *_RESTRICT_KYWD,
      |                          ^~~~~~~
../../../source/include/acclib.h:156:1: error: conflicting types for 'memcmp'; have 'int(void *, void *, ACPI_SIZE)' {aka 'int(void *, void *, long unsigned int)'}
  156 | memcmp (
      | ^~~~~~
/usr/include/iso/string_iso.h:69:12: note: previous declaration of 'memcmp' with type 'int(const void *, const void *, size_t)' {aka 'int(const void *, const void *, long unsigned int)'}
   69 | extern int memcmp(const void *, const void *, size_t);
      |            ^~~~~~
../../../source/include/acclib.h:162:1: warning: redundant redeclaration of 'memcpy' [-Wredundant-decls]
  162 | memcpy (
      | ^~~~~~
/usr/include/iso/string_iso.h:70:14: note: previous declaration of 'memcpy' with type 'void *(void *, const void *, size_t)' {aka 'void *(void *, const void *, long unsigned int)'}
   70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t);
      |              ^~~~~~
../../../source/include/acclib.h:168:1: warning: redundant redeclaration of 'memset' [-Wredundant-decls]
  168 | memset (
      | ^~~~~~
/usr/include/iso/string_iso.h:72:14: note: previous declaration of 'memset' with type 'void *(void *, int,  size_t)' {aka 'void *(void *, int,  long unsigned int)'}
   72 | extern void *memset(void *, int, size_t);
      |              ^~~~~~
../../../source/include/acclib.h:177:1: warning: redundant redeclaration of 'tolower' [-Wredundant-decls]
  177 | tolower (
      | ^~~~~~~
In file included from /usr/include/ctype.h:36,
                 from ../../../source/include/platform/acsolaris.h:44:
/usr/include/iso/ctype_iso.h:106:12: note: previous declaration of 'tolower' with type 'int(int)'
  106 | extern int tolower(int);
      |            ^~~~~~~
../../../source/include/acclib.h:181:1: warning: redundant redeclaration of 'toupper' [-Wredundant-decls]
  181 | toupper (
      | ^~~~~~~
/usr/include/iso/ctype_iso.h:107:12: note: previous declaration of 'toupper' with type 'int(int)'
  107 | extern int toupper(int);
      |            ^~~~~~~
../../../source/include/acclib.h:241:5: error: unknown type name 'FILE'
  241 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acclib.h:247:5: error: unknown type name 'FILE'
  247 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:247:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:251:1: error: unknown type name 'FILE'
  251 | FILE *
      | ^~~~
../../../source/include/acclib.h:251:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:258:5: error: unknown type name 'FILE'
  258 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:258:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:265:5: error: unknown type name 'FILE'
  265 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:265:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:272:5: error: unknown type name 'FILE'
  272 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:272:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:276:5: error: unknown type name 'FILE'
  276 |     FILE                    *File,
      |     ^~~~
../../../source/include/acclib.h:276:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/acclib.h:282:5: error: unknown type name 'FILE'
  282 |     FILE                    *File);
      |     ^~~~
../../../source/include/acclib.h:282:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
In file included from ../../../source/tools/examples/examples.h:49:
../../../source/include/acapps.h:123:5: error: unknown type name 'FILE'
  123 |     FILE                    *File);
      |     ^~~~
../../../source/include/acapps.h:1:1: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  +++ |+#include <stdio.h>
    1 | /******************************************************************************
../../../source/include/acapps.h:127:5: error: unknown type name 'FILE'
  127 |     FILE                    *File,
      |     ^~~~
../../../source/include/acapps.h:127:5: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
../../../source/include/platform/acenv.h:375:32: error: unknown type name 'FILE'
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acapps.h:162:5: note: in expansion of macro 'ACPI_FILE'
  162 |     ACPI_FILE               File);
      |     ^~~~~~~~~
../../../source/include/platform/acenv.h:375:32: note: 'FILE' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
  375 | #define ACPI_FILE              FILE *
      |                                ^~~~
../../../source/include/acapps.h:162:5: note: in expansion of macro 'ACPI_FILE'
  162 |     ACPI_FILE               File);
      |     ^~~~~~~~~
In file included from ../../../source/tools/examples/examples.h:50:
../../../source/tools/examples/../acpiexec/aecommon.h:90:8: error: unknown type name 'FILE'
   90 | extern FILE                 *AcpiGbl_NamespaceInitFile;
      |        ^~~~
In file included from /usr/include/stdio.h:82,
                 from ../../../source/tools/examples/examples.h:52:
/usr/include/iso/stdio_iso.h:197:18: error: conflicting types for 'fopen'; have 'FILE *(const char * restrict,  const char * restrict)'
  197 | extern FILE     *fopen(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD);
      |                  ^~~~~
../../../source/include/acclib.h:252:1: note: previous declaration of 'fopen' with type 'int *(const char *, const char *)'
  252 | fopen (
      | ^~~~~
In file included from ../../../source/include/acpi.h:61:
../../../source/include/acoutput.h:212:75: warning: '_AcpiModuleName' defined but not used [-Wunused-const-variable=]
  212 | #define ACPI_MODULE_NAME(Name)          static const char ACPI_UNUSED_VAR _AcpiModuleName[] = Name;
      |                                                                           ^~~~~~~~~~~~~~~
../../../source/tools/examples/exstubs.c:51:9: note: in expansion of macro 'ACPI_MODULE_NAME'
   51 |         ACPI_MODULE_NAME    ("exstubs")
      |         ^~~~~~~~~~~~~~~~
gmake[1]: *** [../Makefile.rules:18: obj/exstubs.o] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/sysutils/acpica-utils/work/acpica-unix2-20160930/generate/unix/acpiexamples'
gmake: *** [generate/unix/Makefile.common:25: acpiexamples] Error 2
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/acpica-utils
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/acpica-utils