+ 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/dpbox-6.00.00nb3/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/dpbox-6.00.00nb3/work.log
===> Building for dpbox-6.00.00nb3
gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce  -DNO_SHELL -c filesys.c
gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce  -DNO_SHELL -c box.c
gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce  -DNO_SHELL -c box_mem.c
In file included from pastrix.h:71,
                 from main.h:10,
                 from box.c:14:
filesys.h:148:46: error: unknown type name 'DTA'
  148 | extern short sffirst(char *pfad, short attr, DTA *dirr);
      |                                              ^~~
In file included from pastrix.h:71,
                 from boxlocal.h:6,
                 from box_mem.c:13:
filesys.h:148:46: error: unknown type name 'DTA'
  148 | extern short sffirst(char *pfad, short attr, DTA *dirr);
      |                                              ^~~
filesys.h:149:21: error: unknown type name 'DTA'
  149 | extern short sfnext(DTA *dirr);
      |                     ^~~
filesys.h:149:21: error: unknown type name 'DTA'
  149 | extern short sfnext(DTA *dirr);
      |                     ^~~
In file included from filesys.c:11:
filesys.h:148:46: error: unknown type name 'DTA'
  148 | extern short sffirst(char *pfad, short attr, DTA *dirr);
      |                                              ^~~
filesys.h:149:21: error: unknown type name 'DTA'
  149 | extern short sfnext(DTA *dirr);
      |                     ^~~
filesys.c: In function 'del_dir':
filesys.c:800:3: error: unknown type name 'DTA'
  800 |   DTA dirinfo;
      |   ^~~
box_mem.c: In function 'load_bidhash':
box_mem.c:296:36: error: 'FO_READ' undeclared (first use in this function)
  296 |     k           = sfopen(msgidlog, FO_READ);
      |                                    ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box_mem.c:296:36: note: each undeclared identifier is reported only once for each function it appears in
  296 |     k           = sfopen(msgidlog, FO_READ);
      |                                    ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
filesys.c:803:12: warning: implicit declaration of function 'sffirst' [-Wimplicit-function-declaration]
  803 |   result = sffirst(name, 0, &dirinfo);
      |            ^~~~~~~
filesys.c:806:40: error: request for member 'd_fname' in something not a structure or union
  806 |     sprintf(STR1, "%s%s", name, dirinfo.d_fname);
      |                                        ^
box_mem.c:297:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  297 |     if (k >= minhandle) {
      |              ^~~~~~~~~
      |              _exithandle
filesys.c:808:14: warning: implicit declaration of function 'sfnext' [-Wimplicit-function-declaration]
  808 |     result = sfnext(&dirinfo);
      |              ^~~~~~
box.c: In function 'search_by_bid':
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:510:3: note: in expansion of macro 'idxfname'
  510 |   idxfname(STR1, brett);
      |   ^~~~~~~~
filesys.h:199:76: note: each undeclared identifier is reported only once for each function it appears in
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:510:3: note: in expansion of macro 'idxfname'
  510 |   idxfname(STR1, brett);
      |   ^~~~~~~~
filesys.c: In function 'app_file2':
filesys.c:826:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  826 |   if (k2 < minhandle)
      |            ^~~~~~~~~
      |            _exithandle
filesys.c:826:12: note: each undeclared identifier is reported only once for each function it appears in
box.c:516:29: error: 'FO_READ' undeclared (first use in this function)
  516 |   k     = open_index(brett, FO_READ, true, true);
      |                             ^~~~~~~
box_mem.c: In function 'find_bidhash':
filesys.c:828:22: error: 'FO_READ' undeclared (first use in this function)
  828 |   k1 = sfopen(filea, FO_READ);
      |                      ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box_mem.c:355:36: error: 'FO_READ' undeclared (first use in this function)
  355 |         k       = sfopen(msgidlog, FO_READ);
      |                                    ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:517:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  517 |   if (k < minhandle)
      |           ^~~~~~~~~
      |           _exithandle
filesys.c:831:25: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'?
  831 |   fsize = sfseek(0, k1, SFSEEKEND);
      |                         ^~~~~~~~~
      |                         SEEK_END
box_mem.c:356:18: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  356 |         if (k >= minhandle) {
      |                  ^~~~~~~~~
      |                  _exithandle
box.c: In function 'erase_by_bid':
filesys.c:832:17: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  832 |   sfseek(0, k1, SFSEEKSET);
      |                 ^~~~~~~~~
      |                 SEEK_SET
box.c:582:34: error: 'FO_RW' undeclared (first use in this function)
  582 |   log           = sfopen(boxlog, FO_RW);
      |                                  ^~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
filesys.c: In function 'fmv_x':
filesys.c:891:24: warning: pointer targets in passing argument 2 of 'sfgetdatime' differ in signedness [-Wpointer-sign]
  891 |     sfgetdatime(filea, &ddate, &dtime);
      |                        ^~~~~~
      |                        |
      |                        short int *
filesys.h:144:54: note: expected 'short unsigned int *' but argument is of type 'short int *'
  144 | extern short sfgetdatime(char *name, unsigned short *date,
      |                                      ~~~~~~~~~~~~~~~~^~~~
filesys.c:891:32: warning: pointer targets in passing argument 3 of 'sfgetdatime' differ in signedness [-Wpointer-sign]
  891 |     sfgetdatime(filea, &ddate, &dtime);
      |                                ^~~~~~
      |                                |
      |                                short int *
filesys.h:145:42: note: expected 'short unsigned int *' but argument is of type 'short int *'
  145 |                          unsigned short *time);
      |                          ~~~~~~~~~~~~~~~~^~~~
box.c:586:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  586 |   if (log >= minhandle && lastlog > 0) {
      |              ^~~~~~~~~
      |              _exithandle
filesys.c:895:22: error: 'FO_READ' undeclared (first use in this function)
  895 |   k1 = sfopen(filea, FO_READ);
      |                      ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box_mem.c:358:35: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  358 |             sfseek(p1->offset, k, SFSEEKSET);
      |                                   ^~~~~~~~~
      |                                   SEEK_SET
filesys.c:896:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  896 |   if (k1 < minhandle)
      |            ^~~~~~~~~
      |            _exithandle
box.c:603:36: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  603 |           if (sfseek(seekpos, log, SFSEEKSET) != seekpos)
      |                                    ^~~~~~~~~
      |                                    SEEK_SET
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:615:11: note: in expansion of macro 'idxfname'
  615 |           idxfname(hs, logptr->brett);
      |           ^~~~~~~~
box_mem.c: In function 'write_msgid':
filesys.c:899:25: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'?
  899 |   fsize = sfseek(0, k1, SFSEEKEND);
      |                         ^~~~~~~~~
      |                         SEEK_END
box_mem.c:387:36: error: 'FO_RW' undeclared (first use in this function)
  387 |   k             = sfopen(msgidlog, FO_RW);
      |                                    ^~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
filesys.c:900:17: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  900 |   sfseek(0, k1, SFSEEKSET);
      |                 ^~~~~~~~~
      |                 SEEK_SET
box.c: In function 'check_remote_erase':
box.c:680:45: error: 'FO_READ' undeclared (first use in this function)
  680 |   k                     = sfopen(temperase, FO_READ);
      |                                             ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box_mem.c:388:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  388 |   if (k < minhandle)
      |           ^~~~~~~~~
      |           _exithandle
filesys.c:943:26: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
  943 |     k2 = sfcreate(fileb, FC_FILE);
      |                          ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
filesys.c:969:24: warning: pointer targets in passing argument 2 of 'sfsetdatime' differ in signedness [-Wpointer-sign]
  969 |     sfsetdatime(fileb, &ddate, &dtime);
      |                        ^~~~~~
      |                        |
      |                        short int *
filesys.h:146:54: note: expected 'short unsigned int *' but argument is of type 'short int *'
  146 | extern short sfsetdatime(char *name, unsigned short *date,
      |                                      ~~~~~~~~~~~~~~~~^~~~
filesys.c:969:32: warning: pointer targets in passing argument 3 of 'sfsetdatime' differ in signedness [-Wpointer-sign]
  969 |     sfsetdatime(fileb, &ddate, &dtime);
      |                                ^~~~~~
      |                                |
      |                                short int *
filesys.h:147:42: note: expected 'short unsigned int *' but argument is of type 'short int *'
  147 |                          unsigned short *time);
      |                          ~~~~~~~~~~~~~~~~^~~~
box.c:681:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  681 |   if (k >= minhandle) {
      |            ^~~~~~~~~
      |            _exithandle
filesys.c: In function 'validate':
filesys.c:991:48: error: 'extsep' undeclared (first use in this function)
  991 |   while (exist((sprintf(try, "%s%c%.3d", name, extsep, extnum++), try)));
      |                                                ^~~~~~
filesys.c:991:65: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  991 |   while (exist((sprintf(try, "%s%c%.3d", name, extsep, extnum++), try)));
      |                                                                 ^
box.c:682:27: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  682 |     if (sfseek(*seekp, k, SFSEEKSET) == *seekp) {
      |                           ^~~~~~~~~
      |                           SEEK_SET
box_mem.c:389:38: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
  389 |     k           = sfcreate(msgidlog, FC_FILE);
      |                                      ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
filesys.c: In function 'str2file':
filesys.c:1003:17: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'?
 1003 |   if (*handle < minhandle)
      |                 ^~~~~~~~~
      |                 handle
box.c: In function 'delete_brett_by_bid':
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:755:3: note: in expansion of macro 'idxfname'
  755 |   idxfname(fname, brett);
      |   ^~~~~~~~
filesys.c: In function 'file2lstr2':
filesys.c:1028:16: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'?
 1028 |   if (handle < minhandle)
      |                ^~~~~~~~~
      |                handle
box_mem.c:397:25: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  397 |     if (sfseek(seek, k, SFSEEKSET) != seek) {
      |                         ^~~~~~~~~
      |                         SEEK_SET
filesys.c:1048:28: error: 'SFSEEKCUR' undeclared (first use in this function); did you mean 'SEEK_CUR'?
 1048 |         sfseek(ct, handle, SFSEEKCUR);
      |                            ^~~~~~~~~
      |                            SEEK_CUR
box.c:761:19: error: 'nohandle' undeclared (first use in this function)
  761 |   list          = nohandle;
      |                   ^~~~~~~~
filesys.c: In function 'append':
filesys.c:1072:20: error: 'FO_RW' undeclared (first use in this function)
 1072 |   k = sfopen(name, FO_RW);
      |                    ^~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box_mem.c:399:40: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'?
  399 |       bullidseek        = sfseek(0, k, SFSEEKEND) / sizeof(bidtype);
      |                                        ^~~~~~~~~
      |                                        SEEK_END
box.c:763:37: error: 'FO_RW' undeclared (first use in this function)
  763 |   list          = open_index(brett, FO_RW, true, true);
      |                                     ^~~~~
filesys.c:1073:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 1073 |   if (k < minhandle)
      |           ^~~~~~~~~
      |           _exithandle
box_mem.c: In function 'kill_id':
box_mem.c:427:27: error: 'FO_RW' undeclared (first use in this function)
  427 |     *k = sfopen(msgidlog, FO_RW);
      |                           ^~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
filesys.c:1074:24: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 1074 |     k = sfcreate(name, FC_FILE);
      |                        ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:765:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  765 |   if (list < minhandle)
      |              ^~~~~~~~~
      |              _exithandle
filesys.c:1077:21: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'?
 1077 |   sz = sfseek(0, k, SFSEEKEND) + strlen(zeile);
      |                     ^~~~~~~~~
      |                     SEEK_END
box_mem.c:428:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  428 |   if (*k < minhandle)
      |            ^~~~~~~~~
      |            _exithandle
filesys.c: In function 'flockprotocole':
filesys.c:1183:46: error: 'extsep' undeclared (first use in this function)
 1183 |   sprintf(w, "%sfile_err%ctxt", boxprotodir, extsep);
      |                                              ^~~~~~
box.c: In function 'zeroize_content':
filesys.h:200:75: error: 'extsep' undeclared (first use in this function)
  200 | #define inffname(fname, board) sprintf(fname, "%s%s%c%s", infodir, board, extsep, EXT_INF)
      |                                                                           ^~~~~~
box.c:798:3: note: in expansion of macro 'inffname'
  798 |   inffname(hs, brett);
      |   ^~~~~~~~
filesys.c:1184:15: error: 'FO_RW' undeclared (first use in this function)
 1184 |   k = open(w, FO_RW);
      |               ^~~~~
box_mem.c:430:18: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  430 |   sfseek(at, *k, SFSEEKSET);
      |                  ^~~~~~~~~
      |                  SEEK_SET
box.c:799:28: error: 'FO_RW' undeclared (first use in this function)
  799 |   if ((handle = sfopen(hs, FO_RW)) < minhandle) return;
      |                            ^~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
filesys.c:1185:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 1185 |   if (k < minhandle)
      |           ^~~~~~~~~
      |           _exithandle
filesys.c:1186:24: error: 'FO_CREATE' undeclared (first use in this function); did you mean 'O_CREAT'?
 1186 |     k = dpsyscreate(w, FO_CREATE, FC_FILE);
      |                        ^~~~~~~~~
      |                        O_CREAT
box.c:799:38: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'?
  799 |   if ((handle = sfopen(hs, FO_RW)) < minhandle) return;
      |                                      ^~~~~~~~~
      |                                      handle
box_mem.c: In function 'bid_mem':
box_mem.c:555:30: error: 'FO_RW' undeclared (first use in this function)
  555 |         k = sfopen(msgidlog, FO_RW);
      |                              ^~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
filesys.c:1186:35: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 1186 |     k = dpsyscreate(w, FO_CREATE, FC_FILE);
      |                                   ^~~~~~~
      |                                   FILE
filesys.c: In function 'open_locked':
filesys.c:1212:12: error: 'nohandle' undeclared (first use in this function); did you mean 'handle'?
 1212 |   Result = nohandle;
      |            ^~~~~~~~
      |            handle
box_mem.c:557:30: error: 'FO_READ' undeclared (first use in this function)
  557 |         k = sfopen(msgidlog, FO_READ);
      |                              ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:800:37: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  800 |   if (sfseek(header->start, handle, SFSEEKSET) != header->start) {
      |                                     ^~~~~~~~~
      |                                     SEEK_SET
filesys.c:1215:34: error: 'FO_READ' undeclared (first use in this function)
 1215 |   wantwrite = (create || mode != FO_READ);
      |                                  ^~~~~~~
box_mem.c:558:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  558 |       if (k >= minhandle) {
      |                ^~~~~~~~~
      |                _exithandle
filesys.c:1235:34: error: 'FO_CREATE' undeclared (first use in this function); did you mean 'O_CREAT'?
 1235 |       handle = dpsyscreate(name, FO_CREATE, mode);
      |                                  ^~~~~~~~~
      |                                  O_CREAT
box.c: In function 'erase_brett':
box.c:885:44: error: 'FO_RW' undeclared (first use in this function)
  885 |   list                  = open_index(name, FO_RW, true, true);
      |                                            ^~~~~
box_mem.c: In function 'load_bptr':
filesys.c:1239:18: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'?
 1239 |     if (handle < minhandle)  /* File geoeffnet */
      |                  ^~~~~~~~~
      |                  handle
box_mem.c:703:37: error: 'FO_READ' undeclared (first use in this function)
  703 |     k           = sfopen(hpath_box, FO_READ);
      |                                     ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
filesys.c:1207:9: warning: variable 'Result' set but not used [-Wunused-but-set-variable]
 1207 |   short Result, handle;
      |         ^~~~~~
box.c:886:15: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  886 |   if (list >= minhandle && lv > 0) {
      |               ^~~~~~~~~
      |               _exithandle
box_mem.c:704:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  704 |     if (k >= minhandle) {
      |              ^~~~~~~~~
      |              _exithandle
filesys.c: In function 'sfclose_x':
filesys.c:1334:24: error: 'nohandle' undeclared (first use in this function); did you mean 'handle'?
 1334 |     lastactivehandle = nohandle;
      |                        ^~~~~~~~
      |                        handle
filesys.c: In function 'tas_lockfile':
box_mem.c: In function 'load_hbox':
filesys.c:1428:28: error: 'FO_CREATE' undeclared (first use in this function); did you mean 'O_CREAT'?
 1428 |   close( dpsyscreate(name, FO_CREATE, FC_FILE_RALL) );
      |                            ^~~~~~~~~
      |                            O_CREAT
box_mem.c:778:20: error: 'minhandle' undeclared (first use in this function)
  778 |   if (hboxhandle < minhandle)
      |                    ^~~~~~~~~
filesys.c:1428:39: error: 'FC_FILE_RALL' undeclared (first use in this function)
 1428 |   close( dpsyscreate(name, FO_CREATE, FC_FILE_RALL) );
      |                                       ^~~~~~~~~~~~
box.c: In function 'read_brett':
box.c:1240:66: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 1240 |   check_rcount  = (boxrange(unr) && !bcast && !export && outch < minhandle && (!sf || tpksf));
      |                                                                  ^~~~~~~~~
      |                                                                  _exithandle
box_mem.c:787:37: error: 'FO_READ' undeclared (first use in this function)
  787 |     k           = sfopen(hpath_box, FO_READ);
      |                                     ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:1271:3: note: in expansion of macro 'idxfname'
 1271 |   idxfname(indexname, board);
      |   ^~~~~~~~
filesys.c: In function '_filesys_init':
filesys.c:1531:22: error: 'nohandle' undeclared (first use in this function)
 1531 |   lastactivehandle = nohandle;
      |                      ^~~~~~~~
box.c:1294:37: error: 'FO_RW' undeclared (first use in this function)
 1294 |       kx        = open_index(board, FO_RW, loginsearch || *search != '\0', true);
      |                                     ^~~~~
box_mem.c:796:33: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  796 |       if (sfseek(p1->offset, k, SFSEEKSET) == p1->offset) {
      |                                 ^~~~~~~~~
      |                                 SEEK_SET
box.c:1296:37: error: 'FO_READ' undeclared (first use in this function)
 1296 |       kx        = open_index(board, FO_READ, loginsearch || *search != '\0', true);
      |                                     ^~~~~~~
box.c:1298:19: error: 'nohandle' undeclared (first use in this function)
 1298 |     kx          = nohandle;
      |                   ^~~~~~~~
box_mem.c: In function 'add_line_to_buff':
box_mem.c:973:46: error: 'extsep' undeclared (first use in this function)
  973 |   sprintf(tname, "%sTEMPR%cXXXXXX", tempdir, extsep);
      |                                              ^~~~~~
box.c:1499:53: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
 1499 |             err         = sfseek(header->start, ki, SFSEEKSET);
      |                                                     ^~~~~~~~~
      |                                                     SEEK_SET
box_mem.c:975:31: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
  975 |   k         = sfcreate(tname, FC_FILE);
      |                               ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:1512:38: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 1512 |                 ka = sfcreate(temp1, FC_FILE);
      |                                      ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:1530:67: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign]
 1530 |                     if (header->infochecksum != 0) checksum16_buf(copybuf, bct, &ics);
      |                                                                   ^~~~~~~
      |                                                                   |
      |                                                                   char *
In file included from box.c:25:
crc.h:29:43: note: expected 'unsigned char *' but argument is of type 'char *'
   29 | extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc);
      |                            ~~~~~~~~~~~~~~~^~~
box_mem.c:976:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
  976 |   if (k < minhandle)
      |           ^~~~~~~~~
      |           _exithandle
box.c:1616:55: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign]
 1616 |                             if (bcast) checksum16_buf(copybuf, bct, &bodychecksum);
      |                                                       ^~~~~~~
      |                                                       |
      |                                                       char *
crc.h:29:43: note: expected 'unsigned char *' but argument is of type 'char *'
   29 | extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc);
      |                            ~~~~~~~~~~~~~~~^~~
box.c:1689:63: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign]
 1689 |                 if (header->infochecksum != 0) checksum16_buf(rp, err, &ics);
      |                                                               ^~
      |                                                               |
      |                                                               char *
crc.h:29:43: note: expected 'unsigned char *' but argument is of type 'char *'
   29 | extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc);
      |                            ~~~~~~~~~~~~~~~^~~
box.c:1808:42: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign]
 1808 |                           checksum16_buf(rp, err, &bodychecksum);
      |                                          ^~
      |                                          |
      |                                          char *
crc.h:29:43: note: expected 'unsigned char *' but argument is of type 'char *'
   29 | extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc);
      |                            ~~~~~~~~~~~~~~~^~~
box_mem.c:982:18: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
  982 |     sfseek(0, k, SFSEEKSET);   /* back to start */
      |                  ^~~~~~~~~
      |                  SEEK_SET
box.c:1179:60: warning: variable 'crawler' set but not used [-Wunused-but-set-variable]
 1179 |   boolean               is_binary, bcast, is_call, export, crawler, hidflag;
      |                                                            ^~~~~~~
box_mem.c: In function 'pack_entry':
box_mem.c:1020:47: error: 'extsep' undeclared (first use in this function)
 1020 |   sprintf(archiv, "%sDPXXXXXX%cLZH", tempdir, extsep);
      |                                               ^~~~~~
box.c: In function 'list_brett':
box.c:1928:27: error: 'nohandle' undeclared (first use in this function)
 1928 |     pwh                 = nohandle;
      |                           ^~~~~~~~
box_mem.c:1032:34: error: 'FO_READ' undeclared (first use in this function)
 1032 |         h1      = sfopen(archiv, FO_READ);
      |                                  ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:1933:51: error: 'extsep' undeclared (first use in this function)
 1933 |       sprintf(pwn, "%sDPpwshow%cXXXXXX", tempdir, extsep);
      |                                                   ^~~~~~
gmake: *** [Makefile.netbsd:76: filesys.o] Error 1
gmake: *** Waiting for unfinished jobs....
box.c:1935:41: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 1935 |       pwh               = sfcreate(pwn, FC_FILE);
      |                                         ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box_mem.c:1033:19: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 1033 |         if (h1 >= minhandle) {
      |                   ^~~~~~~~~
      |                   _exithandle
box.c:1936:17: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 1936 |       if (pwh < minhandle) return;
      |                 ^~~~~~~~~
      |                 _exithandle
box.c:1967:45: error: 'FO_READ' undeclared (first use in this function)
 1967 |     list                = open_index(board, FO_READ, von != bis, true);
      |                                             ^~~~~~~
box.c:2118:34: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
 2118 |                 sprintf(hs, "%s-%d-%d", header.absender, strlen(header.betreff), pwm);
      |                                 ~^                       ~~~~~~~~~~~~~~~~~~~~~~
      |                                  |                       |
      |                                  int                     size_t {aka long unsigned int}
      |                                 %ld
box.c: In function 'change_mbx':
box.c:2404:37: error: 'FO_RW' undeclared (first use in this function)
 2404 |     list        = open_index(brett, FO_RW, false, true);
      |                                     ^~~~~
box.c:2405:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 2405 |     if (list < minhandle || lv <= 0) {
      |                ^~~~~~~~~
      |                _exithandle
gmake: *** [Makefile.netbsd:76: box_mem.o] Error 1
box.c: In function 'change_lifetime':
box.c:2530:37: error: 'FO_RW' undeclared (first use in this function)
 2530 |     list        = open_index(brett, FO_RW, bis - von > 5, true);
      |                                     ^~~~~
box.c:2531:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 2531 |     if (list < minhandle || lv <= 0) {
      |                ^~~~~~~~~
      |                _exithandle
box.c: In function 'show_logptr':
box.c:2678:24: error: 'minhandle' undeclared (first use in this function)
 2678 |     if (*sorthandle >= minhandle) {
      |                        ^~~~~~~~~
box.c: In function 'show_fullcheck':
box.c:2790:48: error: 'FO_READ' undeclared (first use in this function)
 2790 |   handle        = sfopen(user[unr]->wait_file, FO_READ);
      |                                                ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:2791:17: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'?
 2791 |   if (handle >= minhandle) {
      |                 ^~~~~~~~~
      |                 handle
box.c: In function 'show_sortcheck':
box.c:2854:48: error: 'FO_READ' undeclared (first use in this function)
 2854 |   sorthandle    = sfopen(user[unr]->wait_file, FO_READ);
      |                                                ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:2855:21: error: 'minhandle' undeclared (first use in this function)
 2855 |   if (sorthandle >= minhandle) {
      |                     ^~~~~~~~~
box.c: In function 'check':
box.c:2990:51: error: 'FO_READ' undeclared (first use in this function)
 2990 |   log                           = sfopen(logname, FO_READ);
      |                                                   ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:2993:14: error: 'minhandle' undeclared (first use in this function)
 2993 |   if (log >= minhandle && lognr > 0) {   /* wenn das log ganz leer ist ... */
      |              ^~~~~~~~~
box.c:2994:35: error: 'nohandle' undeclared (first use in this function); did you mean 'sorthandle'?
 2994 |     sorthandle                  = nohandle;
      |                                   ^~~~~~~~
      |                                   sorthandle
box.c:2996:44: error: 'extsep' undeclared (first use in this function)
 2996 |       sprintf(fn, "%sCS1823%c%d", tempdir, extsep, unr);
      |                                            ^~~~~~
box.c:2998:48: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 2998 |         sorthandle              = sfcreate(fn, FC_FILE);
      |                                                ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:3042:36: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
 3042 |           if (sfseek(seekpos, log, SFSEEKSET) != seekpos) {
      |                                    ^~~~~~~~~
      |                                    SEEK_SET
box.c: In function 'show_dir':
box.c:3200:3: error: unknown type name 'DTA'
 3200 |   DTA                   dirinfo;
      |   ^~~
box.c:3211:48: error: 'extsep' undeclared (first use in this function)
 3211 |     sprintf(ofiname, "%sSHOWDIR%c%d", tempdir, extsep, unr);
      |                                                ^~~~~~
box.c:3212:29: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 3212 |     ofi = sfcreate(ofiname, FC_FILE);
      |                             ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:3213:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 3213 |     if (ofi >= minhandle) {
      |                ^~~~~~~~~
      |                _exithandle
box.c:3217:43: error: 'allquant' undeclared (first use in this function)
 3217 |       sprintf(STR1, "%s%c%c%s", indexdir, allquant, extsep, EXT_IDX);
      |                                           ^~~~~~~~
box.c:3218:19: warning: implicit declaration of function 'sffirst' [-Wimplicit-function-declaration]
 3218 |       result    = sffirst(STR1, 0, &dirinfo);
      |                   ^~~~~~~
box.c:3220:27: error: request for member 'd_fname' in something not a structure or union
 3220 |         strcpy(hs, dirinfo.d_fname);
      |                           ^
box.c:3227:45: error: request for member 'd_length' in something not a structure or union
 3227 |           sprintf(hs2, "%s %ld", hs, dirinfo.d_length);
      |                                             ^
box.c:3230:19: warning: implicit declaration of function 'sfnext' [-Wimplicit-function-declaration]
 3230 |         result  = sfnext(&dirinfo);
      |                   ^~~~~~
box.c:3234:51: error: 'FO_READ' undeclared (first use in this function)
 3234 |       user[unr]->prochandle     = sfopen(ofiname, FO_READ);
      |                                                   ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c: In function 'show_statistik':
box.c:3323:3: error: unknown type name 'DTA'
 3323 |   DTA                   dirinfo;
      |   ^~~
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:3354:7: note: in expansion of macro 'idxfname'
 3354 |       idxfname(STR1, datei);
      |       ^~~~~~~~
box.c:3371:37: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 3371 |     ofi         = sfcreate(ofiname, FC_FILE);
      |                                     ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:3372:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 3372 |     if (ofi >= minhandle) {
      |                ^~~~~~~~~
      |                _exithandle
box.c:3376:26: error: 'allquant' undeclared (first use in this function)
 3376 |         sprintf(w, "%c", allquant);
      |                          ^~~~~~~~
box.c:3382:27: error: request for member 'd_fname' in something not a structure or union
 3382 |         strcpy(hs, dirinfo.d_fname);
      |                           ^
box.c:3384:43: error: request for member 'd_length' in something not a structure or union
 3384 |         sprintf(hs2, "%s %ld", hs, dirinfo.d_length);
      |                                           ^
box.c:3390:51: error: 'FO_READ' undeclared (first use in this function)
 3390 |       user[unr]->prochandle     = sfopen(ofiname, FO_READ);
      |                                                   ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c: In function 'set_forward':
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:3526:3: note: in expansion of macro 'idxfname'
 3526 |   idxfname(index, quelle);
      |   ^~~~~~~~
box.c:3534:30: error: 'FO_RW' undeclared (first use in this function)
 3534 |   list  = open_index(quelle, FO_RW, bis - nr > 5, true);
      |                              ^~~~~
box.c:3544:31: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 3544 |   while (nr <= bis && list >= minhandle) {
      |                               ^~~~~~~~~
      |                               _exithandle
box.c: In function 'transfer':
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:3690:3: note: in expansion of macro 'idxfname'
 3690 |   idxfname(in_index, quelle);
      |   ^~~~~~~~
box.c:3708:36: error: 'FO_RW' undeclared (first use in this function)
 3708 |     list        = sfopen(in_index, FO_RW);
      |                                    ^~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:3709:17: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 3709 |     if (list >= minhandle) {
      |                 ^~~~~~~~~
      |                 _exithandle
box.c:3776:43: error: 'FO_READ' undeclared (first use in this function)
 3776 |               list      = sfopen(in_info, FO_READ);
      |                                           ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:3778:44: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'?
 3778 |                 sfseek(header.start, list, SFSEEKSET);
      |                                            ^~~~~~~~~
      |                                            SEEK_SET
box.c:3783:46: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 3783 |                   nlist = sfcreate(out_info, FC_FILE);
      |                                              ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:3786:44: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'?
 3786 |                   start = sfseek(0, nlist, SFSEEKEND);
      |                                            ^~~~~~~~~
      |                                            SEEK_END
box.c:3795:38: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign]
 3795 |                       checksum16_buf(copybuf, rs, &ics);
      |                                      ^~~~~~~
      |                                      |
      |                                      char *
crc.h:29:43: note: expected 'unsigned char *' but argument is of type 'char *'
   29 | extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc);
      |                            ~~~~~~~~~~~~~~~^~~
box.c:3826:38: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign]
 3826 |                       checksum16_buf(hs, strlen(hs), &ics);
      |                                      ^~
      |                                      |
      |                                      char *
crc.h:29:43: note: expected 'unsigned char *' but argument is of type 'char *'
   29 | extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc);
      |                            ~~~~~~~~~~~~~~~^~~
box.c: In function 'export_brett':
box.c:3994:45: error: 'extsep' undeclared (first use in this function)
 3994 |     sprintf(name, "%sexport%c001", savedir, extsep);
      |                                             ^~~~~~
box.c:4002:27: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 4002 |   handle = sfcreate(name, FC_FILE);
      |                           ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:4004:16: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'?
 4004 |   if (handle < minhandle) {
      |                ^~~~~~~~~
      |                handle
box.c:4014:19: error: 'nohandle' undeclared (first use in this function); did you mean 'handle'?
 4014 |   read_brett(unr, nohandle, brett, s, e, threshold, option, search, 0, &lheader);
      |                   ^~~~~~~~
      |                   handle
box.c:3980:17: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
 3980 |   boolean       ok, sf;
      |                 ^~
box.c: In function 'read_for_view':
box.c:4056:63: error: 'extsep' undeclared (first use in this function)
 4056 |     snprintf(vname, 255, "%s%s%c%s%cXXXXXX", tempdir, rubrik, extsep, w1, extsep);
      |                                                               ^~~~~~
box.c:4062:35: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 4062 |   handle        = sfcreate(vname, FC_FILE);
      |                                   ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:4063:16: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'?
 4063 |   if (handle < minhandle) return false;
      |                ^~~~~~~~~
      |                handle
box.c: In function 'strip_headers':
box.c:4087:21: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 4087 |   l = sfcreate(tmp, FC_FILE);
      |                     ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:4088:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 4088 |   if (l < minhandle) return false;
      |           ^~~~~~~~~
      |           _exithandle
box.c:4089:21: error: 'FO_READ' undeclared (first use in this function)
 4089 |   k = sfopen(fname, FO_READ);
      |                     ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c: In function 'read_for_bcast':
box.c:4189:35: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'?
 4189 |   handle        = sfcreate(vname, FC_FILE);
      |                                   ^~~~~~~
filesys.h:195:54: note: in definition of macro 'sfcreate'
  195 | #define sfcreate(name, mode) open_locked(true, name, mode)
      |                                                      ^~~~
box.c:4190:16: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'?
 4190 |   if (handle < minhandle) return 0xffffL;
      |                ^~~~~~~~~
      |                handle
box.c: In function 'begruessung':
box.c:4229:41: error: 'extsep' undeclared (first use in this function)
 4229 |   sprintf(w, "%s%s%cpwd", boxsfdir, hs, extsep);
      |                                         ^~~~~~
box.c: In function 'set_reply_flag':
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:4481:3: note: in expansion of macro 'idxfname'
 4481 |   idxfname(STR1, brett);
      |   ^~~~~~~~
box.c:4482:20: error: 'FO_RW' undeclared (first use in this function)
 4482 |   k = sfopen(STR1, FO_RW);
      |                    ^~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:4483:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 4483 |   if (k >= minhandle) {
      |            ^~~~~~~~~
      |            _exithandle
box.c: In function 'get_reply_info':
filesys.h:199:76: error: 'extsep' undeclared (first use in this function)
  199 | #define idxfname(fname, board) sprintf(fname, "%s%s%c%s", indexdir, board, extsep, EXT_IDX)
      |                                                                            ^~~~~~
box.c:4533:3: note: in expansion of macro 'idxfname'
 4533 |   idxfname(STR1, WITH->reply_brett);
      |   ^~~~~~~~
box.c:4545:29: error: 'FO_READ' undeclared (first use in this function)
 4545 |   rep_handle = sfopen(STR1, FO_READ);
      |                             ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:4546:20: error: 'minhandle' undeclared (first use in this function)
 4546 |   if (rep_handle < minhandle)
      |                    ^~~~~~~~~
box.c: In function 'set_reply_address':
box.c:4573:18: warning: variable 'WITH' set but not used [-Wunused-but-set-variable]
 4573 |   userstruct    *WITH;
      |                  ^~~~
box.c: In function 'read_next':
box.c:4667:19: error: 'nohandle' undeclared (first use in this function)
 4667 |   read_brett(unr, nohandle, board, number, number, 100, WITH->lastroption, search, 0, &lheader);
      |                   ^~~~~~~~
In file included from box.c:22:
box.c: In function 'set_selection':
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4776:9: note: in expansion of macro 'compare'
 4776 |     if (compare(w, "SFWAIT"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4778:9: note: in expansion of macro 'compare'
 4778 |     if (compare(w, "PROPOSED"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4780:9: note: in expansion of macro 'compare'
 4780 |     if (compare(w, "SFRX"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4782:9: note: in expansion of macro 'compare'
 4782 |     if (compare(w, "SFTX"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4784:9: note: in expansion of macro 'compare'
 4784 |     if (compare(w, "SFERR"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4786:9: note: in expansion of macro 'compare'
 4786 |     if (compare(w, "SFNOFOUND"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4788:9: note: in expansion of macro 'compare'
 4788 |     if (compare(w, "CUT"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4790:9: note: in expansion of macro 'compare'
 4790 |     if (compare(w, "MINE"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4792:9: note: in expansion of macro 'compare'
 4792 |     if (compare(w, "BROADCAST"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4794:9: note: in expansion of macro 'compare'
 4794 |     if (compare(w, "BROADCAST_RX"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4796:9: note: in expansion of macro 'compare'
 4796 |     if (compare(w, "OWNHOLD"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4798:9: note: in expansion of macro 'compare'
 4798 |     if (compare(w, "LOCALHOLD"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4800:9: note: in expansion of macro 'compare'
 4800 |     if (compare(w, "SFHOLD"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4802:9: note: in expansion of macro 'compare'
 4802 |     if (compare(w, "REJECTED"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4804:9: note: in expansion of macro 'compare'
 4804 |     if (compare(w, "DOUBLE"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4806:9: note: in expansion of macro 'compare'
 4806 |     if (compare(w, "OUTDATED"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4808:9: note: in expansion of macro 'compare'
 4808 |     if (compare(w, "UNDEF"))
      |         ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:4810:9: note: in expansion of macro 'compare'
 4810 |     if (compare(w, "HIDDEN") && WITH->supervisor)
      |         ^~~~~~~
box.c: In function 'find_env':
box.c:4841:43: error: 'extsep' undeclared (first use in this function)
 4841 |   sprintf(res, "%s%s%cbox", boxsysdir, w, extsep);
      |                                           ^~~~~~
box.c: In function 'may_invoke_xeditor':
box.c:4910:16: warning: type of 'unr' defaults to 'int' [-Wimplicit-int]
 4910 | static boolean may_invoke_xeditor(unr)
      |                ^~~~~~~~~~~~~~~~~~
box.c: In function 'analyse_boxcommand':
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:5015:11: note: in expansion of macro 'compare'
 5015 |       if (compare(w, "NEWS") || compare(w, "MESSAGES")) {
      |           ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:5015:33: note: in expansion of macro 'compare'
 5015 |       if (compare(w, "NEWS") || compare(w, "MESSAGES")) {
      |                                 ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:5019:18: note: in expansion of macro 'compare'
 5019 |       } else if (compare(w, "SENT")) {
      |                  ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:5025:18: note: in expansion of macro 'compare'
 5025 |       } else if (compare(w, "USERS")) {
      |                  ^~~~~~~
box.c:5107:23: error: 'nohandle' undeclared (first use in this function)
 5107 |       read_brett(unr, nohandle, WITH->brett, s, e, threshold, option, search, 0, &lheader);
      |                       ^~~~~~~~
box.c:5213:67: error: 'extsep' undeclared (first use in this function)
 5213 |             sprintf(STR1, "%s%s%cTELXXXXXX", tempdir, WITH->call, extsep);
      |                                                                   ^~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:5310:11: note: in expansion of macro 'compare'
 5310 |       if (compare(w, "USERS"))
      |           ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:5312:16: note: in expansion of macro 'compare'
 5312 |       else if (compare(w, "INFO"))
      |                ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:5314:16: note: in expansion of macro 'compare'
 5314 |       else if (compare(w, "ALL")) {
      |                ^~~~~~~
tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress]
  113 | #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd))
      |                                                ^~
box.c:5325:18: note: in expansion of macro 'compare'
 5325 |       } else if (compare(w, "LOST") /* && WITH->supervisor */ )
      |                  ^~~~~~~
box.c: In function 'run_batch':
box.c:6416:44: error: 'allquant' undeclared (first use in this function)
 6416 |       sprintf(pfad, "%s%c%c%c", boxsysdir, allquant, extsep, allquant);
      |                                            ^~~~~~~~
box.c:6416:54: error: 'extsep' undeclared (first use in this function)
 6416 |       sprintf(pfad, "%s%c%c%c", boxsysdir, allquant, extsep, allquant);
      |                                                      ^~~~~~
box.c:6433:31: error: 'FO_READ' undeclared (first use in this function)
 6433 |   inf           = sfopen(cmd, FO_READ);
      |                               ^~~~~~~
filesys.h:196:53: note: in definition of macro 'sfopen'
  196 | #define sfopen(name, mode) open_locked(false, name, mode)
      |                                                     ^~~~
box.c:6434:13: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'?
 6434 |   if (inf < minhandle) return;
      |             ^~~~~~~~~
      |             _exithandle
gmake: *** [Makefile.netbsd:76: box.o] Error 1
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/ham/dpbox
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/ham/dpbox