+ 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/claraocr-0.9.9nb11/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/claraocr-0.9.9nb11/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for claraocr-0.9.9nb11
rm -f doc/clara-faq.html doc/clara-faq.1
rm -f doc/clara-tut.html doc/clara.1
rm -f doc/clara-book.html doc/clara-book.1
rm -f doc/clara-dev.html doc/clara-dev.1
rm -f doc/clara-glo.html doc/clara-glo.1
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c clara.c
clara.c: In function 'zfopen':
clara.c:842:22: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
  842 |             if ((a = alloca(t+20)) == NULL) {
      |                      ^~~~~~
clara.c:842:22: warning: incompatible implicit declaration of built-in function 'alloca'
clara.c: In function 'build_plist':
clara.c:1803:17: warning: incompatible implicit declaration of built-in function 'alloca'
 1803 |             p = alloca(npages*sizeof(int));
      |                 ^~~~~~
clara.c: In function 'checkvar':
clara.c:2038:22: warning: incompatible implicit declaration of built-in function 'alloca'
 2038 |                 id = alloca(i);
      |                      ^~~~~~
clara.c:2045:22: warning: incompatible implicit declaration of built-in function 'alloca'
 2045 |                 id = alloca(i+1);
      |                      ^~~~~~
clara.c: In function 'process_cl':
clara.c:2146:15: warning: variable 'topl' set but not used [-Wunused-but-set-variable]
 2146 |     int largc,topl,lsz,topb,bsz,*disp;
      |               ^~~~
clara.c: In function 'count_classes':
clara.c:3092:12: warning: incompatible implicit declaration of built-in function 'alloca'
 3092 |     used = alloca(topp+1);
      |            ^~~~~~
clara.c: In function 'step_5':
clara.c:3449:17: warning: the address of 'pp_thresh' will always evaluate as 'true' [-Waddress]
 3449 |             if (pp_thresh) {
      |                 ^~~~~~~~~
clara.c: In function 'step_7':
clara.c:3530:16: warning: variable 'st' set but not used [-Wunused-but-set-variable]
 3530 |     static int st=0;
      |                ^~
clara.c: In function 'step_14':
clara.c:4053:17: warning: incompatible implicit declaration of built-in function 'alloca'
 4053 |         if (((a=alloca(sizeof(int)*(topps+1))) == NULL) ||
      |                 ^~~~~~
clara.c: In function 'handle_alrm':
clara.c:4809:9: warning: variable 'who' set but not used [-Wunused-but-set-variable]
 4809 |     int who;
      |         ^~~
clara.c: In function 'gen_wrf':
clara.c:1465:21: warning: '%d' directive writing between 1 and 11 bytes into a region of size between 0 and 256 [-Wformat-overflow=]
 1465 |     sprintf(n,"%s%s.%d.%d.%s",doubtsdir,pagebase,(int)time(NULL),getpid(),host);
      |                     ^~
clara.c:1465:15: note: using the range [-2147483648, 2147483647] for directive argument
 1465 |     sprintf(n,"%s%s.%d.%d.%s",doubtsdir,pagebase,(int)time(NULL),getpid(),host);
      |               ^~~~~~~~~~~~~~~
clara.c:1465:5: note: 'sprintf' output 6 or more bytes (assuming 518) into a destination of size 257
 1465 |     sprintf(n,"%s%s.%d.%d.%s",doubtsdir,pagebase,(int)time(NULL),getpid(),host);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clara.c: In function 'build_plist':
clara.c:1734:44: warning: '%s' directive output may be truncated writing up to 256 bytes into a region of size 66 [-Wformat-truncation=]
 1734 |         snprintf(mba,MMB+1,"could not stat %s",f_arg);
      |                                            ^~  ~~~~~
clara.c:1734:9: note: 'snprintf' output between 16 and 272 bytes into a destination of size 81
 1734 |         snprintf(mba,MMB+1,"could not stat %s",f_arg);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clara.c:1834:27: warning: '%s' directive output may be truncated writing up to 256 bytes into a region of size 80 [-Wformat-truncation=]
 1834 |         snprintf(mba,MMB,"%s is not a file nor a directory",f_arg);
      |                           ^~                                ~~~~~
clara.c:1834:9: note: 'snprintf' output between 31 and 287 bytes into a destination of size 80
 1834 |         snprintf(mba,MMB,"%s is not a file nor a directory",f_arg);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clara.c: In function 'init_ds':
clara.c:3030:37: warning: ' (' directive output may be truncated writing 2 bytes into a region of size between 0 and 256 [-Wformat-truncation=]
 3030 |             snprintf(fqdn,MAXFNL,"%s (%s %s)",b.nodename,b.machine,b.sysname);
      |                                     ^~
clara.c:3030:13: note: 'snprintf' output between 5 and 773 bytes into a destination of size 256
 3030 |             snprintf(fqdn,MAXFNL,"%s (%s %s)",b.nodename,b.machine,b.sysname);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clara.c: In function 'step_14':
clara.c:4127:40: warning: '%s' directive writing up to 256 bytes into a region of size 255 [-Wformat-overflow=]
 4127 |                         sprintf(n,"%su.%s.%d.pbm",doubtsdir,pagebase,b);
      |                                        ^~                   ~~~~~~~~
clara.c:4127:25: note: 'sprintf' output 9 or more bytes (assuming 265) into a destination of size 257
 4127 |                         sprintf(n,"%su.%s.%d.pbm",doubtsdir,pagebase,b);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c skel.c
skel.c: In function 'border_path':
skel.c:1995:10: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
 1995 |     pl = alloca(2*sizeof(short)*w*h);
      |          ^~~~~~
skel.c:1995:10: warning: incompatible implicit declaration of built-in function 'alloca'
skel.c: In function 'closure_border_slines':
skel.c:2651:8: warning: pointer targets in assignment from 'short unsigned int *' to 'short int *' differ in signedness [-Wpointer-sign]
 2651 |     bp = fp;
      |        ^
skel.c:2655:32: warning: pointer targets in passing argument 4 of 'border_path' differ in signedness [-Wpointer-sign]
 2655 |     ps = border_path(c->bm,w,h,bp,FS*FS,-1,-1,0);
      |                                ^~
      |                                |
      |                                short int *
skel.c:1981:62: note: expected 'short unsigned int *' but argument is of type 'short int *'
 1981 | int border_path(unsigned char *b,int w,int h,unsigned short *bp,int m,int u0,int v0,int relax)
      |                                              ~~~~~~~~~~~~~~~~^~
skel.c:2668:10: warning: incompatible implicit declaration of built-in function 'alloca'
 2668 |     pf = alloca(ps);
      |          ^~~~~~
skel.c: In function 'is_extr':
skel.c:4074:11: warning: incompatible implicit declaration of built-in function 'alloca'
 4074 |     rho = alloca(circ_sz*sizeof(int));
      |           ^~~~~~
skel.c:4241:19: warning: variable 't1' set but not used [-Wunused-but-set-variable]
 4241 |             int t,t1,u,v;
      |                   ^~
skel.c: In function 'dx':
skel.c:4425:11: warning: variable 'h' set but not used [-Wunused-but-set-variable]
 4425 |     int w,h;
      |           ^
skel.c:4425:9: warning: variable 'w' set but not used [-Wunused-but-set-variable]
 4425 |     int w,h;
      |         ^
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c event.c
event.c: In function 'additem':
event.c:526:13: warning: variable 'o' set but not used [-Wunused-but-set-variable]
  526 |         int o;
      |             ^
event.c: In function 'sselect':
event.c:2245:15: warning: variable 'h' set but not used [-Wunused-but-set-variable]
 2245 |         int w,h;
      |               ^
event.c: In function 'bselect':
event.c:2302:15: warning: variable 'h' set but not used [-Wunused-but-set-variable]
 2302 |         int w,h;
      |               ^
event.c: In function 'fselect':
event.c:2373:17: warning: variable 'h' set but not used [-Wunused-but-set-variable]
 2373 |         int i,w,h;
      |                 ^
event.c: In function 'kactions':
event.c:2710:20: warning: variable 's' set but not used [-Wunused-but-set-variable]
 2710 |             pdesc *s;
      |                    ^
event.c: In function 'spyhole':
event.c:3166:10: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
 3166 |     bb = alloca(bb_sz);
      |          ^~~~~~
event.c:3166:10: warning: incompatible implicit declaration of built-in function 'alloca'
event.c:3037:23: warning: variable 'K' set but not used [-Wunused-but-set-variable]
 3037 |     int W[257],H[257],K[257],SX[257],SY[257];
      |                       ^
event.c: In function 'copychar':
event.c:7239:19: warning: variable 'h' set but not used [-Wunused-but-set-variable]
 7239 |     int l,r,t,b,w,h;
      |                   ^
event.c:7239:17: warning: variable 'w' set but not used [-Wunused-but-set-variable]
 7239 |     int l,r,t,b,w,h;
      |                 ^
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c symbol.c
symbol.c: In function 'avoid_context':
symbol.c:1971:11: warning: variable 'h' set but not used [-Wunused-but-set-variable]
 1971 |     int w,h;
      |           ^
symbol.c:1971:9: warning: variable 'w' set but not used [-Wunused-but-set-variable]
 1971 |     int w,h;
      |         ^
symbol.c: In function 'bmpcmp_pd':
symbol.c:2405:19: warning: variable 'bp' set but not used [-Wunused-but-set-variable]
 2405 |         int D,t,f,bp;
      |                   ^~
symbol.c:2337:24: warning: variable 'v' set but not used [-Wunused-but-set-variable]
 2337 |     static int u,lu,lv,v,du,dv;
      |                        ^
symbol.c:2337:16: warning: variable 'u' set but not used [-Wunused-but-set-variable]
 2337 |     static int u,lu,lv,v,du,dv;
      |                ^
symbol.c: In function 'bmpcmp_map':
symbol.c:2591:13: warning: variable 'tr' set but not used [-Wunused-but-set-variable]
 2591 |     trdesc *tr;
      |             ^~
symbol.c: In function 'rlimits':
symbol.c:2794:11: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign]
 2794 |         p = cb + j*LFS + (i=P_LL-l);
      |           ^
symbol.c: In function 'classify':
symbol.c:3402:24: warning: variable 'ba' set but not used [-Wunused-but-set-variable]
 3402 |     static int best=-1,ba=0,bact,bal,bf;
      |                        ^~
symbol.c: In function 'list_cl':
symbol.c:4215:15: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
 4215 |     if ((cx = alloca((topcl+1)*sizeof(int))) == NULL) {
      |               ^~~~~~
symbol.c:4215:15: warning: incompatible implicit declaration of built-in function 'alloca'
symbol.c:4261:15: warning: incompatible implicit declaration of built-in function 'alloca'
 4261 |     if ((cy = alloca((topcl+1)*sizeof(int))) == NULL) {
      |               ^~~~~~
symbol.c: In function 'cf_block':
symbol.c:4393:25: warning: variable 'm' set but not used [-Wunused-but-set-variable]
 4393 |     int i,l,r,t,b,tm,bm,m;
      |                         ^
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c pattern.c
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c pbm2cl.c
pbm2cl.c: In function 'bitmerge':
pbm2cl.c:496:30: warning: variable 'pbl' set but not used [-Wunused-but-set-variable]
  496 |     int x1,x2,y1,y2,w,h,i,bl,pbl,l;
      |                              ^~~
pbm2cl.c: In function 'wrzone':
pbm2cl.c:1378:19: warning: variable 'black' set but not used [-Wunused-but-set-variable]
 1378 |         int white,black;
      |                   ^~~~~
pbm2cl.c:1378:13: warning: variable 'white' set but not used [-Wunused-but-set-variable]
 1378 |         int white,black;
      |             ^~~~~
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c cml.c
cml.c: In function 'load_page':
cml.c:1667:32: warning: pointer targets in passing argument 1 of 'find_thing' differ in signedness [-Wpointer-sign]
 1667 |                     find_thing(pixmap,1,-1,-1);
      |                                ^~~~~~
      |                                |
      |                                unsigned char *
In file included from cml.c:28:
common.h:1762:22: note: expected 'char *' but argument is of type 'unsigned char *'
 1762 | int find_thing(char *p,int reset,int x,int y);
      |                ~~~~~~^
cml.c:1674:28: warning: pointer targets in passing argument 1 of 'pbm2bm' differ in signedness [-Wpointer-sign]
 1674 |                     pbm2bm(pixmap,1);
      |                            ^~~~~~
      |                            |
      |                            unsigned char *
In file included from cml.c:28:
common.h:1761:18: note: expected 'char *' but argument is of type 'unsigned char *'
 1761 | int pbm2bm(char *f,int reset);
      |            ~~~~~~^
cml.c:1655:17: warning: variable 't' set but not used [-Wunused-but-set-variable]
 1655 |             int t;
      |                 ^
cml.c:1625:9: warning: variable 'x0' set but not used [-Wunused-but-set-variable]
 1625 |     int x0,y0;
      |         ^~
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c welcome.c
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c redraw.c
redraw.c: In function 'draw_pm':
redraw.c:871:21: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign]
  871 |         image->data = imb;
      |                     ^
redraw.c:876:17: warning: variable 'rf2' set but not used [-Wunused-but-set-variable]
  876 |             int rf2;
      |                 ^~~
redraw.c:698:20: warning: variable 'ht' set but not used [-Wunused-but-set-variable]
  698 |         static int ht;
      |                    ^~
redraw.c: In function 'draw_symbol':
redraw.c:1834:13: warning: variable 'dy0' set but not used [-Wunused-but-set-variable]
 1834 |     int dx0,dy0,x0,y0;
      |             ^~~
redraw.c:1834:9: warning: variable 'dx0' set but not used [-Wunused-but-set-variable]
 1834 |     int dx0,dy0,x0,y0;
      |         ^~~
redraw.c: In function 'slide':
redraw.c:4275:13: warning: variable 'sb' set but not used [-Wunused-but-set-variable]
 4275 |         int sb;
      |             ^~
redraw.c:4274:13: warning: variable 'x' set but not used [-Wunused-but-set-variable]
 4274 |         int x,y;
      |             ^
redraw.c:4305:13: warning: variable 'sb' set but not used [-Wunused-but-set-variable]
 4305 |         int sb;
      |             ^~
redraw.c:4304:13: warning: variable 'x' set but not used [-Wunused-but-set-variable]
 4304 |         int x,y;
      |             ^
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c html.c
html.c: In function 'text2ge':
html.c:239:21: warning: variable 'x' set but not used [-Wunused-but-set-variable]
  239 |     int n,o,p,ln,cn,x,y;
      |                     ^
html.c: In function 'html2ge':
html.c:759:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  759 |             if (k->argsz <= n);
      |             ^~
html.c:760:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  760 |                 k->arg = c_realloc(NULL,k->argsz=n+1,NULL);
      |                 ^
html.c: In function 'mk_page_output':
html.c:1849:15: warning: variable 'f' set but not used [-Wunused-but-set-variable]
 1849 |     int i,a,s,f,w,nw;
      |               ^
html.c:1849:13: warning: variable 's' set but not used [-Wunused-but-set-variable]
 1849 |     int i,a,s,f,w,nw;
      |             ^
html.c: In function 'acc_alpha':
html.c:2221:40: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
 2221 |             if ((t != NULL) && (strlen(t) == 1))
      |                                        ^
      |                                        |
      |                                        unsigned char *
In file included from /usr/include/string.h:34,
                 from html.c:27:
/usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'unsigned char *'
   79 | extern size_t strlen(const char *);
      |                      ^~~~~~~~~~~~
html.c: In function 'ge2txt':
html.c:3147:9: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
 3147 |     a = alloca(c*sizeof(int));
      |         ^~~~~~
html.c:3147:9: warning: incompatible implicit declaration of built-in function 'alloca'
html.c: In function 'submit_form':
html.c:3231:16: warning: variable 's' set but not used [-Wunused-but-set-variable]
 3231 |         pdesc *s;
      |                ^
html.c: In function 'edit_pattern':
html.c:4013:12: warning: variable 'd' set but not used [-Wunused-but-set-variable]
 4013 |     pdesc *d;
      |            ^
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c alphabet.c
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c revision.c
revision.c: In function 'review_tr':
revision.c:237:18: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
  237 |         old_tr = alloca(strlen((mc[curr_mc].tr)->t) + 1);
      |                  ^~~~~~
revision.c:237:18: warning: incompatible implicit declaration of built-in function 'alloca'
revision.c: In function 'review_merge':
revision.c:418:10: warning: incompatible implicit declaration of built-in function 'alloca'
  418 |     wc = alloca(sizeof(int)*ws);
      |          ^~~~~~
revision.c:408:22: warning: variable 'af' set but not used [-Wunused-but-set-variable]
  408 |     int i,j,n,m,*wc,*af;
      |                      ^~
revision.c: In function 'review_dis':
revision.c:557:13: warning: incompatible implicit declaration of built-in function 'alloca'
  557 |         p = alloca((1+mc[k].ncl) * sizeof(int));
      |             ^~~~~~
revision.c:542:12: warning: variable 'p' set but not used [-Wunused-but-set-variable]
  542 |     int i,*p/*,f*/,k;
      |            ^
revision.c: In function 'summarize':
revision.c:1107:13: warning: incompatible implicit declaration of built-in function 'alloca'
 1107 |         t = alloca(n*sizeof(trdesc *));
      |             ^~~~~~
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c build.c
build.c: In function 'recog_validation':
build.c:136:23: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
  136 |             (strlen(t = (unsigned char *)((m->tr)->t)) == 1) &&
      |                     ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       |
      |                       unsigned char *
In file included from /usr/include/string.h:34,
                 from build.c:27:
/usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'unsigned char *'
   79 | extern size_t strlen(const char *);
      |                      ^~~~~~~~~~~~
build.c: In function 'wprops':
build.c:559:28: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
  559 |                 if (strlen(t) == 1) {
      |                            ^
      |                            |
      |                            unsigned char *
In file included from /usr/include/string.h:34,
                 from build.c:27:
/usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'unsigned char *'
   79 | extern size_t strlen(const char *);
      |                      ^~~~~~~~~~~~
build.c: In function 'build':
build.c:1431:17: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
 1431 |             a = alloca(sizeof(int)*(topln+1));
      |                 ^~~~~~
build.c:1431:17: warning: incompatible implicit declaration of built-in function 'alloca'
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c consist.c
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c pgmblock.c
pgmblock.c: In function 'pgmunmap':
pgmblock.c:190:28: warning: variable 'invmap' set but not used [-Wunused-but-set-variable]
  190 |     unsigned char map[256],invmap[256];
      |                            ^~~~~~
pgmblock.c: In function 'clusterize':
pgmblock.c:478:10: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
  478 |     fe = alloca((N+1)*sizeof(int));
      |          ^~~~~~
pgmblock.c:478:10: warning: incompatible implicit declaration of built-in function 'alloca'
pgmblock.c:475:23: warning: variable 'lcf' set but not used [-Wunused-but-set-variable]
  475 |     int i,j,k,l,f,lcs,lcf,n,p;
      |                       ^~~
pgmblock.c: In function 'hmargin':
pgmblock.c:942:9: warning: incompatible implicit declaration of built-in function 'alloca'
  942 |     L = alloca(sizeof(int) * lm);
      |         ^~~~~~
pgmblock.c: In function 'blockfind':
pgmblock.c:1172:13: warning: variable 'd' set but not used [-Wunused-but-set-variable]
 1172 |         int d,m;
      |             ^
gcc -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include -I/opt/pkg/include -g -Wall -DHAVE_POPEN -DMEMCHECK -DFUN_CODES -DHAVE_SIGNAL -DTEST -I/opt/pkg/include -c preproc.c
preproc.c: In function 'PIXFI':
preproc.c:49:17: warning: operation on 'p' may be undefined [-Wsequence-point]
   49 | #define NPIX(p) ++(p)
      |                 ^
preproc.c:42:43: note: in definition of macro 'ITP'
   42 | #define ITP(A,B,R)  (1-R)*(A)+(R)*(float)(B)
      |                                           ^
preproc.c:69:21: note: in expansion of macro 'NPIX'
   69 |   ix=rintf(ITP(*p,*(NPIX(p)),x));
      |                     ^~~~
preproc.c: In function 'skew_score':
preproc.c:213:5: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
  213 |   p=alloca(NP*sizeof(*p));
      |     ^~~~~~
preproc.c:213:5: warning: incompatible implicit declaration of built-in function 'alloca'
preproc.c: In function 'pp_shear_y':
preproc.c:281:3: warning: operation on 's' may be undefined [-Wsequence-point]
  281 |  s=s++/2;
      |  ~^~~~~~
preproc.c:282:5: warning: incompatible implicit declaration of built-in function 'alloca'
  282 |  p= alloca(YRES);
      |     ^~~~~~
preproc.c:303:46: warning: operation on 'D' may be undefined [-Wsequence-point]
   48 | #define PIX(x,y) (pixmap+(x)+(y)*XRES)
      |                              ~~~              
......
  303 |    *PIX(x,y)=(float)0.5+ITP(*PIX(x,D),*PIX(x,++D),m1[x]);
preproc.c:42:43: note: in definition of macro 'ITP'
   42 | #define ITP(A,B,R)  (1-R)*(A)+(R)*(float)(B)
      |                                           ^
preproc.c:303:40: note: in expansion of macro 'PIX'
  303 |    *PIX(x,y)=(float)0.5+ITP(*PIX(x,D),*PIX(x,++D),m1[x]);
      |                                        ^~~
preproc.c:309:46: warning: operation on 'D' may be undefined [-Wsequence-point]
   48 | #define PIX(x,y) (pixmap+(x)+(y)*XRES)
      |                              ~~~              
......
  309 |    *PIX(x,y)=(float)0.5+ITP(*PIX(x,D),*PIX(x,++D),m1[x]);
preproc.c:42:43: note: in definition of macro 'ITP'
   42 | #define ITP(A,B,R)  (1-R)*(A)+(R)*(float)(B)
      |                                           ^
preproc.c:309:40: note: in expansion of macro 'PIX'
  309 |    *PIX(x,y)=(float)0.5+ITP(*PIX(x,D),*PIX(x,++D),m1[x]);
      |                                        ^~~
preproc.c:319:48: warning: operation on 'D' may be undefined [-Wsequence-point]
   48 | #define PIX(x,y) (pixmap+(x)+(y)*XRES)
      |                              ~~~                
......
  319 |      *PIX(x,y)=(float)0.5+ITP(*PIX(x,D),*PIX(x,++D),m1[x]);
preproc.c:42:43: note: in definition of macro 'ITP'
   42 | #define ITP(A,B,R)  (1-R)*(A)+(R)*(float)(B)
      |                                           ^
preproc.c:319:42: note: in expansion of macro 'PIX'
  319 |      *PIX(x,y)=(float)0.5+ITP(*PIX(x,D),*PIX(x,++D),m1[x]);
      |                                          ^~~
preproc.c:326:46: warning: operation on 'D' may be undefined [-Wsequence-point]
   48 | #define PIX(x,y) (pixmap+(x)+(y)*XRES)
      |                              ~~~              
......
  326 |    *PIX(x,y)=(float)0.5+ITP(*PIX(x,D),*PIX(x,++D),m1[x]);
preproc.c:42:43: note: in definition of macro 'ITP'
   42 | #define ITP(A,B,R)  (1-R)*(A)+(R)*(float)(B)
      |                                           ^
preproc.c:326:40: note: in expansion of macro 'PIX'
  326 |    *PIX(x,y)=(float)0.5+ITP(*PIX(x,D),*PIX(x,++D),m1[x]);
      |                                        ^~~
preproc.c:276:17: warning: variable 'p' set but not used [-Wunused-but-set-variable]
  276 |  unsigned char *p;
      |                 ^
preproc.c: In function 'pp_shear_x':
preproc.c:339:5: warning: incompatible implicit declaration of built-in function 'alloca'
  339 |  p= alloca(XRES);
      |     ^~~~~~
preproc.c: In function 'pp_thresh':
preproc.c:414:13: warning: variable 'st' set but not used [-Wunused-but-set-variable]
  414 |  static int st;
      |             ^~
preproc.c: In function 'pre_balance':
preproc.c:449:27: warning: variable 'dx' set but not used [-Wunused-but-set-variable]
  449 |   int x,y,x0,x1,y0,y1,i,j,dx,dy;
      |                           ^~
preproc.c: In function 'balance':
preproc.c:502: warning: "FIXP" redefined
  502 | #define FIXP *p=TRIM(t,0,MAXVAL)
      | 
preproc.c:501: note: this is the location of the previous definition
  501 | #define FIXP *p=(*p<M*t+Q? 0 : MAXVAL)
      | 
preproc.c:503: warning: "FIXP" redefined
  503 | #define FIXP t=M*l+Q; *p=TRIM( (((float)*p-t)/(l-t)/2+0.5)*MAXVAL , 0 , MAXVAL );
      | 
preproc.c:502: note: this is the location of the previous definition
  502 | #define FIXP *p=TRIM(t,0,MAXVAL)
      | 
preproc.c:511:6: warning: incompatible implicit declaration of built-in function 'alloca'
  511 |   r1=alloca(XRES*sizeof(*r1));
      |      ^~~~~~
preproc.c: In function 'avoid_links':
preproc.c:561:6: warning: incompatible implicit declaration of built-in function 'alloca'
  561 |   r1=alloca(XRES+2);
      |      ^~~~~~
preproc.c:555:22: warning: variable 'dy' set but not used [-Wunused-but-set-variable]
  555 |   float v,a,b,dxx,dx,dy,dyy;
      |                      ^~
preproc.c:555:19: warning: variable 'dx' set but not used [-Wunused-but-set-variable]
  555 |   float v,a,b,dxx,dx,dy,dyy;
      |                   ^~
preproc.c:552:11: warning: variable 'bpl' set but not used [-Wunused-but-set-variable]
  552 |   int i,j,bpl,t;
      |           ^~~
preproc.c: In function 'hqbin':
preproc.c:615:6: warning: incompatible implicit declaration of built-in function 'alloca'
  615 |   r1=alloca(XRES+2);
      |      ^~~~~~
./mkdoc.pl -web -html -faq book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara-faq.html
./mkdoc.pl -faq book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/FAQ
./mkdoc.pl -web -html -tutorial book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara-tut.html
./mkdoc.pl -web -nroff -tutorial book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara.1
./mkdoc.pl -web -html -book book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara-adv.html
./mkdoc.pl -web -nroff -book book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara-adv.1
./mkdoc.pl -web -html -devel book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara-dev.html
./mkdoc.pl -web -nroff -devel book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara-dev.1
./mkdoc.pl -web -html -glossary book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara-glo.html
./mkdoc.pl -glossary book.c clara.c skel.c event.c symbol.c pattern.c pbm2cl.c cml.c welcome.c redraw.c html.c alphabet.c revision.c build.c consist.c pgmblock.c preproc.c *.h >doc/clara-glo.1
gcc -o clara -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -g clara.o skel.o event.o symbol.o pattern.o pbm2cl.o cml.o welcome.o redraw.o html.o alphabet.o revision.o build.o consist.o pgmblock.o preproc.o -L/opt/pkg/lib -L/opt/pkg/include -lX11 -lm
Undefined			first referenced
 symbol  			    in file
PIXFI                               preproc.o
ld: fatal: symbol referencing errors. No output written to clara
collect2: error: ld returned 1 exit status
*** [clara] Error code 1

bmake: stopped in /home/pbulk/build/graphics/claraocr/work/clara-0.9.9
1 error

bmake: stopped in /home/pbulk/build/graphics/claraocr/work/clara-0.9.9
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/claraocr
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/claraocr