+ 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/dpbox-6.00.00nb3/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/dpbox-6.00.00nb3/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> 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 gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_send.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_sf.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_sub.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_sys.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c boxdbox.c In file included from pastrix.h:71, from box_send.h:5, from box_send.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); | ^~~ In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: 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); | ^~~ In file included from pastrix.h:71, from main.h:10, from boxdbox.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); | ^~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: 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); | ^~~ 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); | ^~~ filesys.h:149:21: error: unknown type name 'DTA' 149 | extern short sfnext(DTA *dirr); | ^~~ box_send.c: In function 'box_s_chan': box_send.c:39:12: error: 'nohandle' undeclared (first use in this function) 39 | return nohandle; | ^~~~~~~~ box_send.c:39:12: note: each undeclared identifier is reported only once for each function it appears in box_send.c: In function 'send_file1': box_send.c:73:28: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 73 | size = sfseek(0, *kanal, SFSEEKEND); | ^~~~~~~~~ | SEEK_END box_send.c:74:21: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 74 | sfseek(0, *kanal, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET box_send.c:115:18: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] 115 | crcthp_buf(puffer, psize, &crc); | ^~~~~~ | | | char * In file included from box_send.c:15: crc.h:23:39: note: expected 'unsigned char *' but argument is of type 'char *' 23 | extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ box_send.c:124:13: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] 124 | crcthp_buf(puffer, ct, &crc); | ^~~~~~ | | | char * In file included from box_send.c:15: crc.h:23:39: note: expected 'unsigned char *' but argument is of type 'char *' 23 | extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ 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); | ^~~ box_sub.c: In function 'private_mail_exist': box_sub.c:457:22: error: 'FO_READ' undeclared (first use in this function) 457 | k = sfopen(boxlog, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sub.c:457:22: note: each undeclared identifier is reported only once for each function it appears in 457 | k = sfopen(boxlog, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ filesys.h:149:21: error: unknown type name 'DTA' 149 | extern short sfnext(DTA *dirr); | ^~~ boxdbox.c: In function 'iwuser': boxdbox.c:47:47: error: 'extsep' undeclared (first use in this function) 47 | sprintf(STR1, "%sdiebox%cimp", boxprotodir, extsep); | ^~~~~~ boxdbox.c:47:47: note: each undeclared identifier is reported only once for each function it appears in boxdbox.c: In function 'iwlnuser': boxdbox.c:58:47: error: 'extsep' undeclared (first use in this function) 58 | sprintf(STR1, "%sdiebox%cimp", boxprotodir, extsep); | ^~~~~~ box_send.c: In function 'send_text3': box_send.c:288:31: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 288 | invalid = (WITH->sendchan < minhandle); | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: 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); | ^~~ boxdbox.c: In function 'convert_diebox_mails': boxdbox.c:168:3: error: unknown type name 'DTA' 168 | DTA dirinfo; | ^~~ box_send.c:362:22: error: 'nohandle' undeclared (first use in this function) 362 | WITH->sendchan = nohandle; | ^~~~~~~~ In file included from pastrix.h:71, from main.h:10, from boxdbox.c:13: boxdbox.c:192:23: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 192 | flh = sfcreate(fmn, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ box_send.c: In function 'open_sendfile': box_send.c:472:27: error: 'extsep' undeclared (first use in this function) 472 | newmaildir, WITH->call, extsep, strcpy(STR7, sname)); | ^~~~~~ 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); | ^~~ In file included from pastrix.h:71, from box_send.h:5, from box_send.c:13: box_send.c:493:36: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 493 | WITH->sendchan = sfcreate(sname, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ boxdbox.c:193:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 193 | if (flh >= minhandle) { | ^~~~~~~~~ | _exithandle box_send.c:494:24: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'? 494 | if (WITH->sendchan < minhandle) { | ^~~~~~~~~ | handle box_send.c:495:22: error: 'nohandle' undeclared (first use in this function); did you mean 'handle'? 495 | WITH->sendchan = nohandle; | ^~~~~~~~ | handle boxdbox.c:195:34: error: 'allquant' undeclared (first use in this function) 195 | sprintf(STR1, "%s%c%c%c", p, allquant, extsep, allquant); | ^~~~~~~~ boxdbox.c:195:44: error: 'extsep' undeclared (first use in this function) 195 | sprintf(STR1, "%s%c%c%c", p, allquant, extsep, allquant); | ^~~~~~ box_sf.c: In function 'load_resume': box_sub.c:458:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 458 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box_sf.c:240:27: error: 'FO_READ' undeclared (first use in this function) 240 | k = sfopen(resume_inf, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sf.c:240:27: note: each undeclared identifier is reported only once for each function it appears in 240 | k = sfopen(resume_inf, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ boxdbox.c:196:14: warning: implicit declaration of function 'sffirst' [-Wimplicit-function-declaration] 196 | result = sffirst(STR1, 16, &dirinfo); | ^~~~~~~ boxdbox.c:198:29: error: request for member 'd_fname' in something not a structure or union 198 | str2file(&flh, dirinfo.d_fname, true); | ^ boxdbox.c:199:16: warning: implicit declaration of function 'sfnext' [-Wimplicit-function-declaration] 199 | result = sfnext(&dirinfo); | ^~~~~~ box_sf.c:241:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 241 | if (k < minhandle) | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: box_sub.c: In function 'send_requested_unproto': box_sub.c:524:22: error: 'FO_READ' undeclared (first use in this function) 524 | k = sfopen(boxlog, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ In file included from pastrix.h:71, from main.h:10, from boxdbox.c:13: boxdbox.c:205:23: error: 'FO_READ' undeclared (first use in this function) 205 | flh = sfopen(fmn, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'write_resume': box_sf.c:270:29: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 270 | k = sfcreate(resume_inf, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ boxdbox.c:215:48: error: 'dirsep' undeclared (first use in this function); did you mean 'strsep'? 215 | sprintf(prot, "%s%s%cprotfile.dat", p, board, dirsep); | ^~~~~~ | strsep box_mem.c: In function 'load_bidhash': box_mem.c:296:27: 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:27: 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) | ^~~~ box_send.c: In function 'box_txt2': box_send.c:792:32: error: 'nohandle' undeclared (first use in this function); did you mean 'handle'? 792 | WITH->binsfptr->wchan = nohandle; | ^~~~~~~~ | handle box_sub.c:525:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 525 | if (k < minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c:271:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 271 | if (k < minhandle) | ^~~~~~~~~ | _exithandle boxdbox.c:242:27: error: 'SFSEEKCUR' undeclared (first use in this function); did you mean 'SEEK_CUR'? 242 | fp1 = sfseek(0, mh, SFSEEKCUR); | ^~~~~~~~~ | SEEK_CUR box_mem.c:297:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 297 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from box_send.h:5, from box_send.c:13: box_send.c: In function 'send_text1': box_send.c:876:41: error: 'FO_READ' undeclared (first use in this function) 876 | handle = sfopen(user[unr]->input2, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sf.c: In function 'boxmemspool1': boxdbox.c:243:27: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 243 | fp2 = sfseek(0, mh, SFSEEKEND); | ^~~~~~~~~ | SEEK_END box_sf.c:431:17: warning: pointer targets in passing argument 1 of 'checksum8_buf' differ in signedness [-Wpointer-sign] 431 | checksum8_buf(puffer, blen, chksum); | ^~~~~~ | | | char * In file included from box_sf.c:18: crc.h:28:42: note: expected 'unsigned char *' but argument is of type 'char *' 28 | extern void checksum8_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c: In function 'find_bidhash': box_mem.c:355:23: 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_sf.c:438:14: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] 438 | crcfbb_buf(puffer, blen, bcrc); | ^~~~~~ | | | char * In file included from box_sf.c:18: crc.h:24:39: note: expected 'unsigned char *' but argument is of type 'char *' 24 | extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: box_sub.c: In function 'fill_msgnumarr': box_sub.c:726:22: error: 'FO_READ' undeclared (first use in this function) 726 | k = sfopen(boxlog, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sf.c: In function 'send_pfbbram': box_send.c:877:19: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'? 877 | if (handle >= minhandle) { | ^~~~~~~~~ | handle box_sf.c:497:16: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] 497 | crcfbb_buf(puffer, size, &sf_crc); | ^~~~~~ | | | char * In file included from box_sf.c:18: crc.h:24:39: note: expected 'unsigned char *' but argument is of type 'char *' 24 | extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ box_sf.c:511:16: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] 511 | crcthp_buf(puffer, size, &sf_crc); | ^~~~~~ | | | char * In file included from box_sf.c:18: crc.h:23:39: note: expected 'unsigned char *' but argument is of type 'char *' 23 | extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ boxdbox.c:245:23: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 245 | sfseek(fp1, mh, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET box_mem.c:356:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 356 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box_sub.c:727:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 727 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box_mem.c:358:28: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 358 | sfseek(p1->offset, k, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'send_pfbbdisk': box_sf.c:659:30: error: 'FO_READ' undeclared (first use in this function) 659 | fhandle = sfopen(tempname, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sys.c: In function 'update_digimap': box_sys.c:116:52: error: 'extsep' undeclared (first use in this function) 116 | snprintf(base, 255, "%sdigimap%cstn", boxsysdir, extsep); | ^~~~~~ box_sys.c:116:52: note: each undeclared identifier is reported only once for each function it appears in In file included from pastrix.h:71, from main.h:10, from boxdbox.c:13: boxdbox.c: In function 'conv5': In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c: In function 'write_msgid': boxdbox.c:409:19: error: 'FO_READ' undeclared (first use in this function) 409 | ih = sfopen(ww, 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:387:25: 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) | ^~~~ In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: box_sub.c: In function 'msgnum2centry': box_sub.c:792:22: error: 'FO_READ' undeclared (first use in this function) 792 | k = sfopen(boxlog, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sf.c:661:17: error: 'minhandle' undeclared (first use in this function); did you mean 'fhandle'? 661 | if (fhandle < minhandle) | ^~~~~~~~~ | fhandle box_send.c: In function 'send_file0': boxdbox.c:410:13: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 410 | if (ih >= minhandle) { | ^~~~~~~~~ | _exithandle box_send.c:1116:37: error: 'allquant' undeclared (first use in this function) 1116 | sprintf(pfad, "%s%c%c%c", boxdir, allquant, extsep, allquant); | ^~~~~~~~ box_sub.c:793:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 793 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box_send.c:1116:47: error: 'extsep' undeclared (first use in this function) 1116 | sprintf(pfad, "%s%c%c%c", boxdir, allquant, extsep, allquant); | ^~~~~~ box_sub.c:797:24: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 797 | end = sfseek(0, k, SFSEEKEND) / sizeof(boxlogstruct); | ^~~~~~~~~ | SEEK_END box_sub.c:800:24: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 800 | if (sfseek(seekp, k, SFSEEKSET) != seekp) { | ^~~~~~~~~ | SEEK_SET box_sub.c:809:24: error: 'SFSEEKCUR' undeclared (first use in this function); did you mean 'SEEK_CUR'? 809 | seekp = sfseek(0, k, SFSEEKCUR); | ^~~~~~~~~ | SEEK_CUR box_mem.c:388:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 388 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box.c: In function 'search_by_bid': box_sys.c: In function 'show_prefix_information': 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); | ^~~~~~~~ box_sys.c:158:45: error: 'extsep' undeclared (first use in this function) 158 | sprintf(hs, "%sprefix%cinf", boxsysdir, extsep); | ^~~~~~ In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c:389:29: 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.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); | ^~~~~~~~ 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 box.c:516:25: error: 'FO_READ' undeclared (first use in this function) 516 | k = open_index(brett, FO_READ, true, true); | ^~~~~~~ filesys.c: In function 'del_dir': filesys.c:800:3: error: unknown type name 'DTA' 800 | DTA dirinfo; | ^~~ box_mem.c:399:33: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 399 | bullidseek = sfseek(0, k, SFSEEKEND) / sizeof(bidtype); | ^~~~~~~~~ | SEEK_END In file included from pastrix.h:71, from main.h:10, from boxdbox.c:13: boxdbox.c:413:27: error: 'FO_RW' undeclared (first use in this function) 413 | oh = sfopen(msgidlog, FO_RW); | ^~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sub.c: In function 'reload_proto': box.c:517:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 517 | if (k < minhandle) | ^~~~~~~~~ | _exithandle filesys.c:803:12: warning: implicit declaration of function 'sffirst' [-Wimplicit-function-declaration] 803 | result = sffirst(name, 0, &dirinfo); | ^~~~~~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c: In function 'erase_by_bid': box.c:582:25: 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) | ^~~~ box_sys.c: In function 'show_single_user': 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); | ^ In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c: In function 'kill_id': box_sys.c:645:7: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 645 | else | ^~~~ 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) | ^~~~ box_sys.c:647:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 647 | if (l > 0 && uf.maxread_day > 0) { | ^~ filesys.c:808:14: warning: implicit declaration of function 'sfnext' [-Wimplicit-function-declaration] 808 | result = sfnext(&dirinfo); | ^~~~~~ box.c:586:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 586 | if (log >= minhandle && lastlog > 0) { | ^~~~~~~~~ | _exithandle box_mem.c:428:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 428 | if (*k < minhandle) | ^~~~~~~~~ | _exithandle box_sf.c:713:27: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 713 | sfseek(offset, fhandle, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET box_sys.c:754:43: error: 'extsep' undeclared (first use in this function) 754 | sprintf(hs, "%s%s%cpwd", boxsfdir, w, extsep); | ^~~~~~ 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_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:603:29: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 603 | if (sfseek(seekpos, log, SFSEEKSET) != seekpos) | ^~~~~~~~~ | SEEK_SET In file included from pastrix.h:71, from box_send.h:5, from box_send.c:13: box_send.c:1138:26: error: 'FO_READ' undeclared (first use in this function) 1138 | kanal = sfopen(name, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ In file included from filesys.c:11: 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) | ^~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'resend_userfile': In file included from pastrix.h:71, from main.h:10, from box.c:14: 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:4: note: in expansion of macro 'idxfname' 615 | idxfname(hs, logptr->brett); | ^~~~~~~~ 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_sf.c:842:3: note: in expansion of macro 'idxfname' 842 | idxfname(index, brett); | ^~~~~~~~ box_sys.c: In function 'show_u_all': boxdbox.c:415:31: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 415 | oh = sfcreate(msgidlog, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c: In function 'bid_mem': box_sys.c:850:72: error: 'extsep' undeclared (first use in this function) 850 | sprintf(arg, "%sboxlog%d%cbox -a -TN 1500", boxprotodir, clock_.mon, extsep); | ^~~~~~ box_mem.c:555:23: 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) | ^~~~ box_sub.c:1304:45: error: 'extsep' undeclared (first use in this function) 1304 | sprintf(STR1, "%sproto%clst", boxstatdir, extsep); | ^~~~~~ In file included from box_sys.c:16: box_sys.c: In function 'show_user': box_sf.c:848:25: error: 'FO_RW' undeclared (first use in this function) 848 | list = sfopen(index, FO_RW); | ^~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ 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_sys.c:870:9: note: in expansion of macro 'compare' 870 | if (compare(call, "PATH")) show_u_path(unr); | ^~~~~~~ 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_sys.c:871:9: note: in expansion of macro 'compare' 871 | if (compare(call, "ALL")) show_u_all(unr); | ^~~~~~~ box_send.c:1141:18: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1141 | if (kanal >= 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:557:23: 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: In function 'check_remote_erase': box.c:680:27: 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) | ^~~~ boxdbox.c:417:21: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 417 | sfseek(0, oh, SFSEEKEND); | ^~~~~~~~~ | SEEK_END box.c:681:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 681 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box_mem.c:558:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 558 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c:849:15: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 849 | if (list >= minhandle) { | ^~~~~~~~~ | _exithandle box_sys.c: In function 'set_password': box_sys.c:913:46: error: 'extsep' undeclared (first use in this function) 913 | sprintf(hs, "%s%s%cpwd", boxsfdir, STR1, extsep); | ^~~~~~ boxdbox.c:435:18: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 435 | sfseek(0, oh, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET box_sys.c:968:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 968 | sprintf(w, "%d", strlen(ufil.password)); | ~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | int size_t {aka long unsigned int} | %ld In file included from pastrix.h:71, from box_send.h:5, from box_send.c:13: box_send.c: In function 'send_sysmsg': filesys.c:832:17: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 832 | sfseek(0, k1, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c: In function 'load_bptr': box_send.c:1187:27: error: 'FO_READ' undeclared (first use in this function) 1187 | kanal = sfopen(msg, 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:703:28: 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: 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 * In file included from filesys.c:11: 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 * In file included from filesys.c:11: filesys.h:145:21: note: expected 'short unsigned int *' but argument is of type 'short int *' 145 | unsigned short *time); | ~~~~~~~~~~~~~~~~^~~~ box_sf.c: In function 'binmsg': boxdbox.c: In function 'convert_sfw': box_sf.c:973:46: error: 'extsep' undeclared (first use in this function) 973 | sprintf(hs, "%simport%c001", newmaildir, extsep); | ^~~~~~ boxdbox.c:523:41: error: 'extsep' undeclared (first use in this function) 523 | sprintf(ona, "%s%s%csf", boxsfdir, w, extsep); | ^~~~~~ In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c: In function 'import_pw': box_sys.c:1012:20: error: 'FO_READ' undeclared (first use in this function) 1012 | ih = sfopen(ifn, 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:704:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 704 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box_send.c:1190:20: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1190 | if (kanal >= minhandle) | ^~~~~~~~~ | _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) | ^~~~ In file included from pastrix.h:71, from main.h:10, from boxdbox.c:13: boxdbox.c:524:20: error: 'FO_READ' undeclared (first use in this function) 524 | ih = sfopen(ina, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:975:23: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 975 | k = sfcreate(hs, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ 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_send.c: In function 'box_s_chan': box_send.c:40:1: warning: control reaches end of non-void function [-Wreturn-type] 40 | } | ^ box_sys.c:1013:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1013 | if (ih < minhandle) { | ^~~~~~~~~ | _exithandle box_mem.c: In function 'load_hbox': box_mem.c:778:20: error: 'minhandle' undeclared (first use in this function) 778 | if (hboxhandle < minhandle) | ^~~~~~~~~ filesys.c:896:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 896 | if (k1 < minhandle) | ^~~~~~~~~ | _exithandle boxdbox.c:525:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 525 | if (ih < minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c:976:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 976 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box.c:14: 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); | ^~~~~~~~ In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c:787:28: 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) | ^~~~ In file included from pastrix.h:71, from main.h:10, from boxdbox.c:13: boxdbox.c:530:22: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 530 | oh = sfcreate(ona, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ 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 In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'setbinlt': 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_sf.c:1031:3: note: in expansion of macro 'idxfname' 1031 | idxfname(fname, rubrik); | ^~~~~~~~ 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 In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: box_sub.c:1305:20: error: 'FO_READ' undeclared (first use in this function) 1305 | k = sfopen(STR1, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ boxdbox.c: In function 'conv3': box_sf.c:1033:27: error: 'FO_RW' undeclared (first use in this function) 1033 | rl = open_index(rubrik, FO_RW, true, false); | ^~~~~ boxdbox.c:648:3: error: unknown type name 'DTA' 648 | DTA dirinfo; | ^~~ box.c:761:11: error: 'nohandle' undeclared (first use in this function) 761 | list = nohandle; | ^~~~~~~~ boxdbox.c:671:33: error: 'allquant' undeclared (first use in this function) 671 | sprintf(STR1, "%s%c%csfw", p, allquant, extsep); | ^~~~~~~~ box.c:763:29: error: 'FO_RW' undeclared (first use in this function) 763 | list = open_index(brett, FO_RW, true, true); | ^~~~~ 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_sys.c: In function 'change_readlock': box_sf.c:1036:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1036 | if (rl < minhandle) | ^~~~~~~~~ | _exithandle box_sys.c:1238:42: error: 'extsep' undeclared (first use in this function) 1238 | sprintf(hs, "%s%s%cpwd", boxsfdir, par, extsep); | ^~~~~~ boxdbox.c:671:43: error: 'extsep' undeclared (first use in this function) 671 | sprintf(STR1, "%s%c%csfw", p, allquant, extsep); | ^~~~~~ boxdbox.c:674:32: error: request for member 'd_fname' in something not a structure or union 674 | convert_sfw(unr, p, dirinfo.d_fname); | ^ boxdbox.c:676:39: error: request for member 'd_fname' in something not a structure or union 676 | sprintf(STR1, "%s%s", p, dirinfo.d_fname); | ^ box_sys.c:1250:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1250 | if (!strcmp(user[x]->call, ufil.call)) | ^~ box_sys.c:1252:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1252 | user[x]->login_priv = ufil.login_priv; | ^~~~ box_sf.c: In function 'conv_to_7plus': box_sf.c:1073:47: error: 'extsep' undeclared (first use in this function) 1073 | sprintf(fname, "%stmp7pl%cXXXXXX", tempdir, extsep); | ^~~~~~ In file included from filesys.c:11: 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) | ^~~~ box.c:765:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 765 | if (list < minhandle) | ^~~~~~~~~ | _exithandle 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 * In file included from filesys.c:11: 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 * In file included from filesys.c:11: filesys.h:147:21: note: expected 'short unsigned int *' but argument is of type 'short int *' 147 | unsigned short *time); | ~~~~~~~~~~~~~~~~^~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:1080:21: error: 'FO_RW' undeclared (first use in this function) 1080 | 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) | ^~~~ filesys.c: In function 'validate': In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c: In function 'zeroize_content': 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.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: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_sf.c:1081:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1081 | if (k < minhandle) | ^~~~~~~~~ | _exithandle 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: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: In function 'str2file': filesys.c:1003:17: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'? 1003 | if (*handle < minhandle) | ^~~~~~~~~ | handle In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c:975:30: 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) | ^~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:1120:19: error: 'FO_READ' undeclared (first use in this function) 1120 | k = sfopen(ofi, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ In file included from pastrix.h:71, from main.h:10, from boxdbox.c:13: boxdbox.c: In function 'conv2': boxdbox.c:991:20: error: 'FO_READ' undeclared (first use in this function) 991 | idh = sfopen(idn, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ 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.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:976:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 976 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box_sf.c:1177:23: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 1177 | k = sfcreate(hs, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ boxdbox.c:992:13: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 992 | if (idh >= minhandle) { | ^~~~~~~~~ | _exithandle filesys.c:1048:21: error: 'SFSEEKCUR' undeclared (first use in this function); did you mean 'SEEK_CUR'? 1048 | sfseek(ct, handle, SFSEEKCUR); | ^~~~~~~~~ | SEEK_CUR box_sys.c: In function 'write_ctext': 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 In file included from filesys.c:11: 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_sys.c:1840:45: error: 'extsep' undeclared (first use in this function) 1840 | sprintf(hs, "%sctext%cnew", boxstatdir, extsep); | ^~~~~~ boxdbox.c:1001:50: error: 'extsep' undeclared (first use in this function) 1001 | sprintf(STR1, "%sdiebox%cimp", boxprotodir, extsep); | ^~~~~~ 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_sf.c: In function 'valid_entry': box_sys.c: In function 'enter_ctext': 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_sf.c:1290:3: note: in expansion of macro 'idxfname' 1290 | idxfname(fname, rubrik); | ^~~~~~~~ filesys.c:1073:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1073 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box_sys.c:1879:45: error: 'extsep' undeclared (first use in this function) 1879 | sprintf(STR1, "%sctext%cnew", boxstatdir, extsep); | ^~~~~~ box_mem.c: In function 'pack_entry': box.c: In function 'erase_brett': box.c:885:29: error: 'FO_RW' undeclared (first use in this function) 885 | list = open_index(name, FO_RW, true, true); | ^~~~~ box_mem.c:1020:47: error: 'extsep' undeclared (first use in this function) 1020 | sprintf(archiv, "%sDPXXXXXX%cLZH", tempdir, extsep); | ^~~~~~ boxdbox.c:1010:36: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 1010 | if (sfseek(irec.offset, dh, SFSEEKSET) != irec.offset) | ^~~~~~~~~ | SEEK_SET In file included from filesys.c:11: 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_sf.c:1292:31: error: 'FO_READ' undeclared (first use in this function) 1292 | rlist = open_index(rubrik, FO_READ, true, false); | ^~~~~~~ In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c:1880:22: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 1880 | k = sfcreate(STR1, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ In file included from pastrix.h:71, from boxlocal.h:6, from box_mem.c:13: box_mem.c:1032:22: 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) | ^~~~ boxdbox.c: In function 'conv1': box.c:886:15: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 886 | if (list >= minhandle && lv > 0) { | ^~~~~~~~~ | _exithandle boxdbox.c:1086:3: error: unknown type name 'DTA' 1086 | DTA dirinfo; | ^~~ 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_sf.c:1294:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1294 | if (rlist >= minhandle) { | ^~~~~~~~~ | _exithandle boxdbox.c:1104:42: error: 'extsep' undeclared (first use in this function) 1104 | sprintf(f, "%sconfig%cbox", boxsysdir, extsep); | ^~~~~~ box_sys.c:1881:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1881 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box_mem.c:1033:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1033 | if (h1 >= 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); | ^~~~~~ filesys.c:1184:15: error: 'FO_RW' undeclared (first use in this function) 1184 | k = open(w, FO_RW); | ^~~~~ filesys.c:1185:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1185 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box_sys.c: In function 'msgwuser': boxdbox.c:1239:38: error: 'dirsep' undeclared (first use in this function); did you mean 'strsep'? 1239 | sprintf(STR7, "%spwd%c%c%cpwd", w, dirsep, allquant, extsep); | ^~~~~~ | strsep box_sys.c:2020:61: error: 'extsep' undeclared (first use in this function) 2020 | sprintf(STR1, "%s%s%cMSG", boxstatdir, user[unr]->call, extsep); | ^~~~~~ box_sf.c: In function 'propose_sf_sending': box_sf.c:1592:30: error: 'FO_RW' undeclared (first use in this function) 1592 | list = open_index("X", FO_RW, true, true); | ^~~~~ 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: In function 'read_brett': boxdbox.c:1239:46: error: 'allquant' undeclared (first use in this function) 1239 | sprintf(STR7, "%spwd%c%c%cpwd", w, dirsep, allquant, extsep); | ^~~~~~~~ boxdbox.c:1242:26: error: request for member 'd_fname' in something not a structure or union 1242 | iwlnuser(unr, dirinfo.d_fname); | ^ 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 boxdbox.c:1243:28: error: request for member 'd_fname' in something not a structure or union 1243 | strcpylower(w1, dirinfo.d_fname); | ^ 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 boxdbox.c:1244:50: error: request for member 'd_fname' in something not a structure or union 1244 | sprintf(STR7, "%spwd%c%s", w, dirsep, dirinfo.d_fname); | ^ gmake: *** [Makefile.netbsd:76: box_send.o] Error 1 gmake: *** Waiting for unfinished jobs.... box_sf.c:1594:14: error: 'nohandle' undeclared (first use in this function) 1594 | list = nohandle; | ^~~~~~~~ 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 In file included from pastrix.h:71, from main.h:10, from box.c:14: 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:1215:34: error: 'FO_READ' undeclared (first use in this function) 1215 | wantwrite = (create || mode != FO_READ); | ^~~~~~~ box_sf.c:1596:17: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1596 | if (list >= minhandle) { | ^~~~~~~~~ | _exithandle box.c:1294:30: error: 'FO_RW' undeclared (first use in this function) 1294 | kx = open_index(board, FO_RW, loginsearch || *search != '\0', true); | ^~~~~ box.c:1296:30: error: 'FO_READ' undeclared (first use in this function) 1296 | kx = open_index(board, FO_READ, loginsearch || *search != '\0', true); | ^~~~~~~ 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_sys.c: In function 'call_runprg': box_sys.c:2312:39: error: 'extsep' undeclared (first use in this function) 2312 | sprintf(ofi, "%sout%s%ctrn", rd, w, extsep); | ^~~~~~ box_sys.c: In function 'stelle_uhr': filesys.c:1239:18: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'? 1239 | if (handle < minhandle) /* File geoeffnet */ | ^~~~~~~~~ | handle box_sys.c:2341:15: warning: variable 's' set but not used [-Wunused-but-set-variable] 2341 | short h, m, s; | ^ box.c:1298:12: error: 'nohandle' undeclared (first use in this function) 1298 | kx = nohandle; | ^~~~~~~~ filesys.c:1207:9: warning: variable 'Result' set but not used [-Wunused-but-set-variable] 1207 | short Result, handle; | ^~~~~~ box_sys.c:2341:12: warning: variable 'm' set but not used [-Wunused-but-set-variable] 2341 | short h, m, s; | ^ box_sys.c:2341:9: warning: variable 'h' set but not used [-Wunused-but-set-variable] 2341 | short h, m, s; | ^ 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 In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: 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_sf.c:2070:7: note: in expansion of macro 'idxfname' 2070 | idxfname(xname, WITH->call); | ^~~~~~~~ filesys.c: In function 'tas_lockfile': 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_sys.c: In function 'yapp_responses': box_sys.c:2446:28: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2446 | if (WITH->yapp->filefd < minhandle) { | ^~~~~~~~~ | _exithandle box_sub.c:1306:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1306 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box.c:1499:39: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 1499 | err = sfseek(header->start, ki, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET filesys.c:1428:39: error: 'FC_FILE_RALL' undeclared (first use in this function) 1428 | close( dpsyscreate(name, FO_CREATE, FC_FILE_RALL) ); | ^~~~~~~~~~~~ box_sf.c: In function 'sf_for': box_sf.c:2207:27: error: 'FO_READ' undeclared (first use in this function) 2207 | list = open_index("X", FO_READ, true, false); | ^~~~~~~ In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c:2447:52: error: 'FO_READ' undeclared (first use in this function) 2447 | WITH->yapp->filefd = sfopen(WITH->yapp->fname, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:1512:24: 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:53: 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); | ~~~~~~~~~~~~~~~^~~ gmake: *** [Makefile.netbsd:76: box_mem.o] Error 1 filesys.c: In function '_filesys_init': filesys.c:1531:22: error: 'nohandle' undeclared (first use in this function) 1531 | lastactivehandle = nohandle; | ^~~~~~~~ box_sf.c:2209:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2209 | if (list < minhandle) | ^~~~~~~~~ | _exithandle box_sys.c:2448:53: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 2448 | sfseek(WITH->yapp->seekpos, WITH->yapp->filefd, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET box.c:1616:34: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] 1616 | if (bcast) checksum16_buf(copybuf, bct, &bodychecksum); | ^~~~~~~ | | | 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_sf.c: In function 'change_sfentries': box_sf.c:2246:27: error: 'FO_RW' undeclared (first use in this function) 2246 | list = open_index("X", FO_RW, true, true); | ^~~~~ box.c:1689:49: 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 * 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_sub.c: In function 'store_proto': box_sys.c: In function 'read_filepart': box_sub.c:1323:47: error: 'extsep' undeclared (first use in this function) 1323 | sprintf(STR1, "%sproto%clst", boxstatdir, extsep); | ^~~~~~ box_sys.c:2483:30: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2483 | if (WITH->yapp->filefd < minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c:2247:15: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2247 | if (list >= minhandle) { | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c:2484:54: error: 'FO_READ' undeclared (first use in this function) 2484 | WITH->yapp->filefd = sfopen(WITH->yapp->fname, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sys.c:2487:69: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 2487 | abort = (sfseek(WITH->yapp->seekpos, WITH->yapp->filefd, SFSEEKSET) | ^~~~~~~~~ | SEEK_SET gmake: *** [Makefile.netbsd:76: boxdbox.o] Error 1 box.c:1808:21: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] 1808 | checksum16_buf(rp, err, &bodychecksum); | ^~ | | | 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_sf.c: In function 'routing_error': box.c:1179:47: warning: variable 'crawler' set but not used [-Wunused-but-set-variable] 1179 | boolean is_binary, bcast, is_call, export, crawler, hidflag; | ^~~~~~~ box_sf.c:2323:54: error: 'extsep' undeclared (first use in this function) 2323 | sprintf(hs2, "%s%s%cERR", boxprotodir, WITH->call, extsep); | ^~~~~~ box_sf.c: In function 'del_emblocks': box_sf.c:2347:27: error: 'FO_RW' undeclared (first use in this function) 2347 | list = open_index("X", FO_RW, true, true); | ^~~~~ box.c: In function 'list_brett': box.c:1928:13: error: 'nohandle' undeclared (first use in this function) 1928 | pwh = nohandle; | ^~~~~~~~ box.c:1933:51: error: 'extsep' undeclared (first use in this function) 1933 | sprintf(pwn, "%sDPpwshow%cXXXXXX", tempdir, extsep); | ^~~~~~ box_sf.c:2348:15: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2348 | if (list >= minhandle) { | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:1935:28: 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_sf.c: In function 'reset_laterflag': box_sf.c:2382:27: error: 'FO_RW' undeclared (first use in this function) 2382 | list = open_index("X", FO_RW, true, true); | ^~~~~ box.c:1936:17: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1936 | if (pwh < minhandle) return; | ^~~~~~~~~ | _exithandle box_sf.c:2383:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2383 | if (list < minhandle) | ^~~~~~~~~ | _exithandle box.c:1967:31: error: 'FO_READ' undeclared (first use in this function) 1967 | list = open_index(board, FO_READ, von != bis, true); | ^~~~~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'received_sf_sending': box_sf.c:2478:29: error: 'FO_RW' undeclared (first use in this function) 2478 | list = sfopen(sflist, FO_RW); | ^~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ gmake: *** [Makefile.netbsd:76: filesys.o] Error 1 box_sf.c:2479:19: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2479 | if (list >= minhandle) { | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: 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_sf.c:2495:5: note: in expansion of macro 'idxfname' 2495 | idxfname(index, w1); | ^~~~~~~~ box.c:2118:20: 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_sf.c: In function 'set_msgflag': 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_sf.c:2688:3: note: in expansion of macro 'idxfname' 2688 | idxfname(STR1, brett); | ^~~~~~~~ box_sf.c:2689:20: error: 'FO_RW' undeclared (first use in this function) 2689 | 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: In function 'change_mbx': box.c:2404:30: 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 box_sf.c:2690:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2690 | if (k < minhandle) | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'get_title': 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_sf.c:2710:3: note: in expansion of macro 'idxfname' 2710 | idxfname(STR1, brett); | ^~~~~~~~ box.c: In function 'change_lifetime': box.c:2530:30: error: 'FO_RW' undeclared (first use in this function) 2530 | list = open_index(brett, FO_RW, bis - von > 5, true); | ^~~~~ box_sf.c:2711:21: error: 'FO_READ' undeclared (first use in this function) 2711 | k = 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_sf.c:2712:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2712 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box.c:2531:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2531 | if (list < minhandle || lv <= 0) { | ^~~~~~~~~ | _exithandle box_sf.c: In function 'ok_sf_sending': box_sf.c:2749:25: error: 'nohandle' undeclared (first use in this function) 2749 | if (read_brett(unr, nohandle, WITH->brett, WITH->nr, WITH->nr, 100, "", "", offset, &lheader) | ^~~~~~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:2812:24: error: 'FO_READ' undeclared (first use in this function) 2812 | kx = sfopen(temp2, 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_logptr': box.c:2678:24: error: 'minhandle' undeclared (first use in this function) 2678 | if (*sorthandle >= minhandle) { | ^~~~~~~~~ box_sf.c:2813:15: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2813 | if (kx >= minhandle) { | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c: In function 'show_fullcheck': box.c:2790:41: 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_sf.c: In function 'prepare_for_next_fbb': box.c:2791:17: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'? 2791 | if (handle >= minhandle) { | ^~~~~~~~~ | handle box_sf.c:3093:39: error: 'extsep' undeclared (first use in this function) 3093 | sprintf(hs, "%sBOXSF%c%d", tempdir, extsep, unr); | ^~~~~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c: In function 'show_sortcheck': box.c:2854:45: 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) { | ^~~~~~~~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c: In function 'check': box.c:2990:28: 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) | ^~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'set_laterflag': box_sf.c:3528:24: error: 'FO_RW' undeclared (first use in this function) 3528 | k = sfopen(sflist, FO_RW); | ^~~~~ 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 ... */ | ^~~~~~~~~ In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: box_sub.c:1328:22: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 1328 | k = sfcreate(STR1, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ box_sf.c:3529:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3529 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box.c:2994:20: 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_sf.c: In function 'set_packsf': In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:2998:29: 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_sf.c:3620:41: error: 'extsep' undeclared (first use in this function) 3620 | sprintf(STR1, "%sBOXSF%c%s", tempdir, extsep, WITH1->wname); | ^~~~~~ box.c:3042:29: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 3042 | if (sfseek(seekpos, log, SFSEEKSET) != seekpos) { | ^~~~~~~~~ | SEEK_SET box_sf.c:3623:18: error: 'nohandle' undeclared (first use in this function) 3623 | WITH1->wchan = nohandle; | ^~~~~~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:3629:41: error: 'FO_RW' undeclared (first use in this function) 3629 | WITH1->wchan = sfopen(WITH1->wname, FO_RW); | ^~~~~ 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_dir': box.c:3200:3: error: unknown type name 'DTA' 3200 | DTA dirinfo; | ^~~ box_sf.c:3635:22: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3635 | if (WITH1->wchan < minhandle) | ^~~~~~~~~ | _exithandle box.c:3211:48: error: 'extsep' undeclared (first use in this function) 3211 | sprintf(ofiname, "%sSHOWDIR%c%d", tempdir, extsep, unr); | ^~~~~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:3636:43: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 3636 | WITH1->wchan = sfcreate(WITH1->wname, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ box_sys.c: In function 'read_file': In file included from pastrix.h:71, from main.h:10, from box.c:14: 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_sf.c: In function 'check_firstsix': box_sf.c:3662:26: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 3662 | sfseek(0, WITH->wchan, SFSEEKSET); /* an den Anfang des Files */ | ^~~~~~~~~ | SEEK_SET box.c:3213:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3213 | if (ofi >= minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c: In function 'add_bpacksf': 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_sf.c:3731:40: error: 'extsep' undeclared (first use in this function) 3731 | sprintf(w, "%sDECSF%c%s", tempdir, extsep, strcpy(STR1, w)); | ^~~~~~ box.c:3218:16: warning: implicit declaration of function 'sffirst' [-Wimplicit-function-declaration] 3218 | result = sffirst(STR1, 0, &dirinfo); | ^~~~~~~ box.c:3220:20: error: request for member 'd_fname' in something not a structure or union 3220 | strcpy(hs, dirinfo.d_fname); | ^ box.c:3227:38: error: request for member 'd_length' in something not a structure or union 3227 | sprintf(hs2, "%s %ld", hs, dirinfo.d_length); | ^ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:3743:36: error: 'FO_READ' undeclared (first use in this function) 3743 | k = sfopen(WITH->binsfptr->wname, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box.c:3230:11: warning: implicit declaration of function 'sfnext' [-Wimplicit-function-declaration] 3230 | result = sfnext(&dirinfo); | ^~~~~~ box_sys.c:2690:45: error: 'extsep' undeclared (first use in this function) 2690 | sprintf(pname, "%sTDHPF%c001", tempdir, extsep); | ^~~~~~ box_sf.c:3744:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3744 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:3234:47: 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_sf.c:3764:17: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] 3764 | crcfbb_buf(puffer, size, &WITH->binsfptr->crcsum); | ^~~~~~ | | | char * In file included from box_sf.c:18: crc.h:24:39: note: expected 'unsigned char *' but argument is of type 'char *' 24 | extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ box_sub.c:1329:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1329 | if (k < minhandle) | ^~~~~~~~~ | _exithandle box.c: In function 'show_statistik': box.c:3323:3: error: unknown type name 'DTA' 3323 | DTA dirinfo; | ^~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: 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:30: 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_sf.c: In function 'put_data': box.c:3372:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3372 | if (ofi >= minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c:4052:22: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 4052 | if (WITH->wchan < minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c:4082:21: warning: pointer targets in passing argument 1 of 'checksum8_buf' differ in signedness [-Wpointer-sign] 4082 | checksum8_buf(buff, hsize, &WITH->checksum); | ^~~~ | | | char * In file included from box_sf.c:18: crc.h:28:42: note: expected 'unsigned char *' but argument is of type 'char *' 28 | extern void checksum8_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ box.c:3376:19: error: 'allquant' undeclared (first use in this function) 3376 | sprintf(w, "%c", allquant); | ^~~~~~~~ box_sf.c:4087:21: warning: pointer targets in passing argument 1 of 'checksum8_buf' differ in signedness [-Wpointer-sign] 4087 | checksum8_buf(buff, hsize, &WITH->checksum); | ^~~~ | | | char * In file included from box_sf.c:18: crc.h:28:42: note: expected 'unsigned char *' but argument is of type 'char *' 28 | extern void checksum8_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ box.c:3382:20: error: request for member 'd_fname' in something not a structure or union 3382 | strcpy(hs, dirinfo.d_fname); | ^ box_sf.c:4088:18: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] 4088 | crcfbb_buf(buff, hsize, &WITH->blockcrc); | ^~~~ | | | char * In file included from box_sf.c:18: crc.h:24:39: note: expected 'unsigned char *' but argument is of type 'char *' 24 | extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ box.c:3384:36: error: request for member 'd_length' in something not a structure or union 3384 | sprintf(hs2, "%s %ld", hs, dirinfo.d_length); | ^ box_sf.c:4095:18: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] 4095 | crcthp_buf(buff, hsize, &WITH->crcsum); | ^~~~ | | | char * In file included from box_sf.c:18: crc.h:23:39: note: expected 'unsigned char *' but argument is of type 'char *' 23 | extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); | ~~~~~~~~~~~~~~~^~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:3390:47: 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_sf.c: In function 'check_frag_sf': box_sf.c:4304:22: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 4304 | if (WITH1->wchan < minhandle) | ^~~~~~~~~ | _exithandle box.c: In function 'set_forward': box_sf.c:4315:55: error: 'extsep' undeclared (first use in this function) 4315 | sprintf(hfragname, "%sresume%c001", boxstatdir, extsep); | ^~~~~~ 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); | ^~~~~~~~ In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: box_sub.c: In function 'flush_bidseek': box_sub.c:1560:29: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 1560 | k = sfcreate(bidseekfile, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ box.c:3534:29: error: 'FO_RW' undeclared (first use in this function) 3534 | list = open_index(quelle, FO_RW, bis - nr > 5, true); | ^~~~~ box_sub.c:1561:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1561 | if (k < minhandle) return; | ^~~~~~~~~ | _exithandle box.c:3544:31: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3544 | while (nr <= bis && list >= minhandle) { | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: box_sub.c: In function 'load_bidseek': box_sub.c:1611:27: error: 'FO_READ' undeclared (first use in this function) 1611 | k = sfopen(bidseekfile, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sf.c: In function 'close_filesf_output': box_sf.c:4492:36: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 4492 | if (user[unr]->fileout_handle >= minhandle) { | ^~~~~~~~~ | _exithandle box_sub.c:1612:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 1612 | if (k < minhandle) | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box.c:14: 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); | ^~~~~~~~ In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c:2728:21: error: 'FO_READ' undeclared (first use in this function) 2728 | k = sfopen(pname, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box.c:3708:29: 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_sf.c: In function 'do_filesf_input': box.c:3709:17: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3709 | if (list >= minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c:4607:38: error: 'nohandle' undeclared (first use in this function) 4607 | if (bincopy(user[unr]->fsfinhandle, nohandle, binsize, true) == 0) { | ^~~~~~~~ box_sub.c: In function 'create_hcs': box_sub.c:1665:18: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] 1665 | checksum16_buf((char *)h, sizeof(indexstruct) - 4, &zs); /* Alignment des GNU-C */ | ^~~~~~~~~ | | | char * In file included from box_sub.c:49: 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_sub.c: In function 'check_hcs': box_sub.c:1676:18: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] 1676 | checksum16_buf((char *)(&h), sizeof(indexstruct) - 4, &zs); /* Alignment des GNU-C */ | ^~~~~~~~~~~~ | | | char * In file included from box_sub.c:49: 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); | ~~~~~~~~~~~~~~~^~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'change_filesf_direction': In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:3776:31: 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_sf.c:4680:42: error: 'FO_READ' undeclared (first use in this function) 4680 | inhandle = sfopen(user[unr]->sfilname, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sys.c:2729:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2729 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c:4685:19: error: 'minhandle' undeclared (first use in this function); did you mean 'inhandle'? 4685 | if (inhandle <= minhandle) { | ^~~~~~~~~ | inhandle box.c:3778:37: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 3778 | sfseek(header.start, list, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'start_filesf': In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:3783:32: 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_sf.c:4727:29: error: 'FO_RW' undeclared (first use in this function) 4727 | handle = sfopen(outfname, FO_RW); | ^~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sf.c:4728:16: error: 'minhandle' undeclared (first use in this function); did you mean 'handle'? 4728 | if (handle < minhandle) | ^~~~~~~~~ | handle box.c:3786:30: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 3786 | start = sfseek(0, nlist, SFSEEKEND); | ^~~~~~~~~ | SEEK_END box.c:3795:24: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] 3795 | checksum16_buf(copybuf, rs, &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.c:3826:24: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] 3826 | checksum16_buf(hs, strlen(hs), &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); | ~~~~~~~~~~~~~~~^~~ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:4729:33: error: 'FC_FILE_RWGROUP' undeclared (first use in this function) 4729 | handle = sfcreate(outfname, FC_FILE_RWGROUP); | ^~~~~~~~~~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ box_sys.c:2731:24: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 2731 | sfseek(start, k, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET box_sf.c:4741:21: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 4741 | sfseek(0, handle, SFSEEKEND); | ^~~~~~~~~ | SEEK_END 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); | ^~~~~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: 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:11: warning: variable 'ok' set but not used [-Wunused-but-set-variable] 3980 | boolean ok, sf; | ^~ box_sys.c:2733:27: error: 'SFSEEKCUR' undeclared (first use in this function); did you mean 'SEEK_CUR'? 2733 | tail = sfseek(0, k, SFSEEKCUR); | ^~~~~~~~~ | SEEK_CUR 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); | ^~~~~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:4062:28: 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_sf.c: In function 'load_sfinfos': box_sf.c:5422:3: error: unknown type name 'DTA' 5422 | DTA dirinfo; | ^~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: 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_sf.c:5431:39: error: 'allquant' undeclared (first use in this function) 5431 | sprintf(STR1, "%s%c%csf", boxsfdir, allquant, extsep); | ^~~~~~~~ box_sf.c:5431:49: error: 'extsep' undeclared (first use in this function) 5431 | sprintf(STR1, "%s%c%csf", boxsfdir, allquant, extsep); | ^~~~~~ box.c:4088:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 4088 | if (l < minhandle) return false; | ^~~~~~~~~ | _exithandle In file included from pastrix.h:71, from main.h:10, from box.c:14: 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_sf.c:5432:25: warning: implicit declaration of function 'sffirst' [-Wimplicit-function-declaration] 5432 | result = sffirst(STR1, 0, &dirinfo); | ^~~~~~~ box_sf.c:5457:25: error: request for member 'd_fname' in something not a structure or union 5457 | strcpy(hs, dirinfo.d_fname); | ^ box_sf.c:5468:46: error: request for member 'd_fname' in something not a structure or union 5468 | sprintf(STR1, "%s%s", boxsfdir, dirinfo.d_fname); | ^ In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:5469:38: error: 'FO_READ' undeclared (first use in this function) 5469 | k = 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_sf.c:5470:16: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 5470 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box_sub.c: In function 'box_logbuch': box_sub.c:1906:60: error: 'extsep' undeclared (first use in this function) 1906 | sprintf(hw1, "%sboxlog%d%cbox", boxprotodir, clock_.mon, extsep); | ^~~~~~ box_sf.c:5656:25: warning: implicit declaration of function 'sfnext' [-Wimplicit-function-declaration] 5656 | result = sfnext(&dirinfo); | ^~~~~~ box_sys.c:2765:72: error: 'dirsep' undeclared (first use in this function); did you mean 'strsep'? 2765 | sprintf(WITH->yapp->yappdir, "%s%sincoming%c", boxdir, fservdir, dirsep); | ^~~~~~ | strsep In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c: In function 'new_sfentry': box_sf.c:5858:25: error: 'FO_RW' undeclared (first use in this function) 5858 | k2 = sfopen(sflist, FO_RW); | ^~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sf.c:5860:23: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 5860 | if (sfseek(0, k2, SFSEEKEND) >= ((SHORT_MAX * sizeof(indexstruct)) - 100)) { | ^~~~~~~~~ | SEEK_END In file included from pastrix.h:71, from main.h:10, from box_sf.c:14: box_sf.c:5866:27: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 5866 | k2 = sfcreate(sflist, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ box_sf.c:5867:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 5867 | if (k2 < minhandle) { | ^~~~~~~~~ | _exithandle box_sf.c: In function 'check_tpk_request': box.c: In function 'read_for_bcast': box_sf.c:6233:25: error: 'nohandle' undeclared (first use in this function) 6233 | if (read_brett(unr, nohandle, board, idx, idx, 100, "T", "", 0, &header) != ERR_READBOARD) { | ^~~~~~~~ box.c:4189:28: 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 In file included from pastrix.h:71, from main.h:10, from box_sub.c:47: box_sub.c: In function 'show_allhelp': box_sub.c:2576:18: error: 'FO_READ' undeclared (first use in this function) 2576 | k = sfopen(fn, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sys.c: In function 'yapp_input': box.c: In function 'begruessung': box_sys.c:2870:28: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2870 | if (WITH->yapp->filefd < minhandle && WITH->action == 98) { | ^~~~~~~~~ | _exithandle gmake: *** [Makefile.netbsd:76: box_sf.o] Error 1 In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c:2871:52: error: 'FO_READ' undeclared (first use in this function) 2871 | WITH->yapp->filefd = sfopen(WITH->yapp->fname, FO_READ); | ^~~~~~~ filesys.h:196:53: note: in definition of macro 'sfopen' 196 | #define sfopen(name, mode) open_locked(false, name, mode) | ^~~~ box_sub.c:2577:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 2577 | if (k < minhandle) { | ^~~~~~~~~ | _exithandle box.c:4229:41: error: 'extsep' undeclared (first use in this function) 4229 | sprintf(w, "%s%s%cpwd", boxsfdir, hs, extsep); | ^~~~~~ box_sub.c: In function 'show_help': box_sys.c:2872:35: error: 'SFSEEKEND' undeclared (first use in this function); did you mean 'SEEK_END'? 2872 | sfseek(0, WITH->yapp->filefd, SFSEEKEND); | ^~~~~~~~~ | SEEK_END box_sub.c:2614:3: error: unknown type name 'DTA' 2614 | DTA dirinfo; | ^~~ box_sub.c:2626:50: error: 'extsep' undeclared (first use in this function) 2626 | sprintf(fname, "%sHELP%c%s", boxlanguagedir, extsep, WITH->language); | ^~~~~~ box_sub.c:2654:53: error: 'allquant' undeclared (first use in this function) 2654 | sprintf(hname, "%s%s%c%c%s", boxlanguagedir, w, allquant, extsep, WITH->language); | ^~~~~~~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c: In function 'set_reply_flag': box_sub.c:2655:14: warning: implicit declaration of function 'sffirst' [-Wimplicit-function-declaration] 2655 | result = sffirst(hname, 0, &dirinfo); | ^~~~~~~ box_sub.c:2657:22: error: request for member 'd_fname' in something not a structure or union 2657 | sprintf(dirinfo.d_fname, "ERROR%c%s", extsep, WITH->language); | ^ box_sub.c:2658:51: error: request for member 'd_fname' in something not a structure or union 2658 | sprintf(fname, "%s%s", boxlanguagedir, dirinfo.d_fname); | ^ box_sys.c: In function 'write_file': box_sys.c:2928:27: error: 'nohandle' undeclared (first use in this function) 2928 | WITH->yapp->filefd = nohandle; | ^~~~~~~~ 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_sys.c:2948:70: error: 'dirsep' undeclared (first use in this function); did you mean 'strsep'? 2948 | sprintf(WITH->yapp->yappdir, "%s%sincoming%c", boxdir, fservdir, dirsep); | ^~~~~~ | strsep 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_sys.c: In function 'show_file_dir': box_sys.c:3006:31: error: 'dirsep' undeclared (first use in this function); did you mean 'strsep'? 3006 | if (cmd[strlen(cmd) - 1] == dirsep) | ^~~~~~ | strsep box.c:4483:12: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 4483 | if (k >= minhandle) { | ^~~~~~~~~ | _exithandle box_sub.c: In function 'strip_invalid_boardname_chars': box_sub.c:2777:9: warning: variable 'x' set but not used [-Wunused-but-set-variable] 2777 | short x; | ^ In file included from pastrix.h:71, from main.h:10, from box.c:14: 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_sys.c:3007:42: error: 'allquant' undeclared (first use in this function) 3007 | sprintf(cmd + strlen(cmd), "%c%c%c", allquant, extsep, allquant); | ^~~~~~~~ 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_sys.c:3007:52: error: 'extsep' undeclared (first use in this function) 3007 | sprintf(cmd + strlen(cmd), "%c%c%c", allquant, extsep, allquant); | ^~~~~~ box_sys.c: In function 'calc_pwdb': box_sys.c:3045:47: error: 'extsep' undeclared (first use in this function) 3045 | sprintf(fname, "%s%s%cpwd", boxsfdir, call, extsep); | ^~~~~~ In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c:3050:22: error: 'FO_READ' undeclared (first use in this function) 3050 | 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: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:15: 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); | ^~~~~~~~ box_sys.c:3051:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3051 | if (k < minhandle) | ^~~~~~~~~ | _exithandle 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")) | ^~~~~~~ box_sys.c:3055:36: error: 'SFSEEKSET' undeclared (first use in this function); did you mean 'SEEK_SET'? 3055 | sfseek(zeile * 27 + spalte, k, SFSEEKSET); | ^~~~~~~~~ | SEEK_SET 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")) | ^~~~~~~ box_sys.c: In function 'generate_dbpwfile': 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")) | ^~~~~~~ box_sys.c:3164:47: error: 'extsep' undeclared (first use in this function) 3164 | sprintf(fname, "%s%s%cpwd", boxdir, hs, 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: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")) | ^~~~~~~ In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c:3176:24: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 3176 | k = sfcreate(fname, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ box_sys.c:3177:11: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3177 | if (k < minhandle) { | ^~~~~~~~~ | _exithandle 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")) | ^~~~~~~ box_sys.c: In function 'op': 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")) | ^~~~~~~ box_sys.c:3223:19: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3223 | else if (*oh >= minhandle) | ^~~~~~~~~ | _exithandle 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")) | ^~~~~~~ box_sys.c: In function 'create_sfstat': box_sys.c:3258:9: error: 'nohandle' undeclared (first use in this function) 3258 | oh = nohandle; | ^~~~~~~~ box_sys.c:3299:46: error: 'extsep' undeclared (first use in this function) 3299 | sprintf(bn, "%sbcstat%cbox", boxstatdir, extsep); | ^~~~~~ box_sys.c:3309:28: error: 'FO_READ' undeclared (first use in this function) 3309 | list = open_index("X", FO_READ, true, true); | ^~~~~~~ box_sys.c:3414:25: error: 'FO_RW' undeclared (first use in this function) 3414 | list = open_index("M", FO_RW, true, true); | ^~~~~ box_sys.c:3415:14: error: 'minhandle' undeclared (first use in this function); did you mean '_exithandle'? 3415 | if (list >= minhandle) { | ^~~~~~~~~ | _exithandle 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) | ^~~~~~~ In file included from pastrix.h:71, from box_sys.h:5, from box_sys.c:15: box_sys.c:3634:27: error: 'FC_FILE' undeclared (first use in this function); did you mean 'FILE'? 3634 | oh = sfcreate(STR1, FC_FILE); | ^~~~~~~ filesys.h:195:54: note: in definition of macro 'sfcreate' 195 | #define sfcreate(name, mode) open_locked(true, name, mode) | ^~~~ 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': In file included from box_sub.c:51: box_sub.c: In function 'check_for_conv_command': box.c:4910:16: warning: type of 'unr' defaults to 'int' [-Wimplicit-int] 4910 | static boolean may_invoke_xeditor(unr) | ^~~~~~~~~~~~~~~~~~ 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_sub.c:4439:7: note: in expansion of macro 'compare' 4439 | if (compare(w, "/HELP")) { | ^~~~~~~ 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_sub.c:4443:7: note: in expansion of macro 'compare' 4443 | if (compare(w, "/WHO")) { | ^~~~~~~ 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_sub.c:4447:7: note: in expansion of macro 'compare' 4447 | if (compare(w, "/QUIT")) { | ^~~~~~~ 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_sub.c:4451:7: note: in expansion of macro 'compare' 4451 | if (compare(w, "/EXIT")) { | ^~~~~~~ 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_sub.c:4455:8: note: in expansion of macro 'compare' 4455 | if (!compare(w, "/CHANNEL")) | ^~~~~~~ In file included from box.c:22: 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:60: error: 'extsep' undeclared (first use in this function) 5213 | sprintf(STR1, "%s%s%cTELXXXXXX", tempdir, WITH->call, extsep); | ^~~~~~ gmake: *** [Makefile.netbsd:76: box_sys.o] Error 1 gmake: *** [Makefile.netbsd:76: box_sub.o] Error 1 In file included from box.c:22: 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); | ^~~~~~ In file included from pastrix.h:71, from main.h:10, from box.c:14: box.c:6433:22: 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 in /data/jenkins/workspace/pkgsrc-upstream-bulktest/ham/dpbox *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/ham/dpbox