+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pkg_filecheck-0.4nb12/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pkg_filecheck-0.4nb12/work.log
===> Building for pkg_filecheck-0.4nb12
cd /home/pbulk/build/pkgtools/pkg_filecheck/work  && gcc   -DHAVE_NBCOMPAT_H=1 -I/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat  -I/opt/local/include -I/usr/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include   -L/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat  -L/opt/local/gcc12/lib/gcc/x86_64-sun-solaris2.11/12.2.0 -Wl,-R/opt/local/gcc12/lib/gcc/x86_64-sun-solaris2.11/12.2.0 -L/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/local/lib   -o pkg_filecheck pkg_filecheck.c  -lnbcompat
In file included from pkg_filecheck.c:39:
/usr/include/fts.h:60:3: error: conflicting types for 'FTS'; have 'struct <anonymous>'
   60 | } FTS;
      |   ^~~
In file included from /home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat.h:83,
                 from pkg_filecheck.c:35:
/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat/fts.h:62:3: note: previous declaration of 'FTS' with type 'FTS'
   62 | } FTS;
      |   ^~~
/usr/include/fts.h:62:16: error: redefinition of 'struct _ftsent'
   62 | typedef struct _ftsent {
      |                ^~~~~~~
/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat/fts.h:64:16: note: originally defined here
   64 | typedef struct _ftsent {
      |                ^~~~~~~
/usr/include/fts.h:113:3: error: conflicting types for 'FTSENT'; have 'struct _ftsent'
  113 | } FTSENT;
      |   ^~~~~~
/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat/fts.h:118:3: note: previous declaration of 'FTSENT' with type 'FTSENT' {aka 'struct _ftsent'}
  118 | } FTSENT;
      |   ^~~~~~
/usr/include/fts.h:131:10: error: conflicting types for 'fts_children'; have 'FTSENT *(FTS *, int)' {aka 'struct _ftsent *(FTS *, int)'}
  131 | FTSENT  *fts_children(FTS *, int);
      |          ^~~~~~~~~~~~
/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat/fts.h:123:10: note: previous declaration of 'fts_children' with type 'FTSENT *(FTS *, int)' {aka 'struct _ftsent *(FTS *, int)'}
  123 | FTSENT  *fts_children (FTS *, int);
      |          ^~~~~~~~~~~~
/usr/include/fts.h:132:10: error: conflicting types for 'fts_close'; have 'int(FTS *)'
  132 | int      fts_close(FTS *);
      |          ^~~~~~~~~
/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat/fts.h:124:10: note: previous declaration of 'fts_close' with type 'int(FTS *)'
  124 | int      fts_close (FTS *);
      |          ^~~~~~~~~
/usr/include/fts.h:133:10: error: conflicting types for 'fts_open'; have 'FTS *(char * const*, int,  int (*)(const FTSENT **, const FTSENT **))' {aka 'FTS *(char * const*, int,  int (*)(const struct _ftsent **, const struct _ftsent **))'}
  133 | FTS     *fts_open(char * const *, int,
      |          ^~~~~~~~
/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat/fts.h:125:10: note: previous declaration of 'fts_open' with type 'FTS *(char * const*, int,  int (*)(const FTSENT **, const FTSENT **))' {aka 'FTS *(char * const*, int,  int (*)(const struct _ftsent **, const struct _ftsent **))'}
  125 | FTS     *fts_open (char * const *, int,
      |          ^~~~~~~~
/usr/include/fts.h:135:10: error: conflicting types for 'fts_read'; have 'FTSENT *(FTS *)' {aka 'struct _ftsent *(FTS *)'}
  135 | FTSENT  *fts_read(FTS *);
      |          ^~~~~~~~
/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat/fts.h:127:10: note: previous declaration of 'fts_read' with type 'FTSENT *(FTS *)' {aka 'struct _ftsent *(FTS *)'}
  127 | FTSENT  *fts_read (FTS *);
      |          ^~~~~~~~
/usr/include/fts.h:136:10: error: conflicting types for 'fts_set'; have 'int(FTS *, FTSENT *, int)' {aka 'int(FTS *, struct _ftsent *, int)'}
  136 | int      fts_set(FTS *, FTSENT *, int);
      |          ^~~~~~~
/home/pbulk/build/pkgtools/pkg_filecheck/work/libnbcompat/nbcompat/fts.h:128:10: note: previous declaration of 'fts_set' with type 'int(FTS *, FTSENT *, int)' {aka 'int(FTS *, struct _ftsent *, int)'}
  128 | int      fts_set (FTS *, FTSENT *, int);
      |          ^~~~~~~
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/pkgtools/pkg_filecheck
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/pkgtools/pkg_filecheck