=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for mgl-0.2.0anb13
(cd lib; /usr/pkg/bin/gmake depend)
gmake[1]: Entering directory '/pbulk/work/graphics/mgl/work/mgl2-alpha-020/lib'
echo "#define MGLDIR \"/usr/pkg/lib/mgl2\"" > ./config.h
echo "#define MAX_COLOR 4096" >> ./config.h
echo "#define DULLY_DISPLAY " >> ./config.h
echo "#define SUPPORT_GENERIC_4COLOR" >> ./config.h
echo "#define SUPPORT_GENERIC_192COLOR" >> ./config.h
echo "#define SUPPORT_GENERIC_FULLCOLOR" >> ./config.h
echo "#define SUPPORT_CLIENT" >> ./config.h
echo "#define FONT_ENGINE_INITIATOR		ferom_init" >>./config.h
echo "#define EVENT_MANAGER_INITIATOR	emx11_init" >> ./config.h
echo "#include \"mgl_opt.h\"" >> ./config.h
echo "#define OPTIMIZE_FOR" OPTTYPE_ANY >> ./config.h
echo "#define SUPPORT_X_KEYMOUSE" >> ./config.h
echo "#define IM_DYNAMIC" >> ./config.h
echo "#define GP_DYNAMIC" >> ./config.h
echo "#define MGL_MACHINE MGL_MACHINE_NONE" >> ./config.h
echo "#define MGL_NO_MOUSE" >> ./config.h
( export CC="gcc"; sh ../conf/mkdep.sh -I/usr/X11R7/include -I/usr/pkg/include mgl2.c recpoint.c event_man.c mglcol.c imgopt.c draw_engine.c decol4.c font_engine.c ferom.c textscreen.c memory.c keymap.c emcli.c dec3k.c dec192.c emx11.c )
gmake[1]: Leaving directory '/pbulk/work/graphics/mgl/work/mgl2-alpha-020/lib'
(cd lib; /usr/pkg/bin/gmake  )
gmake[1]: Entering directory '/pbulk/work/graphics/mgl/work/mgl2-alpha-020/lib'
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o mgl2.xo -c mgl2.c
mgl2.c:161:1: warning: return type defaults to 'int' [-Wimplicit-int]
  161 | mgl_ignore_auto_close() {
      | ^~~~~~~~~~~~~~~~~~~~~
mgl2.c: In function 'mgl_set_keymode':
mgl2.c:657:5: warning: type of 'mode' defaults to 'int' [-Wimplicit-int]
  657 | int mgl_set_keymode(mode) {
      |     ^~~~~~~~~~~~~~~
mgl2.c: At top level:
mgl2.c:725:1: warning: return type defaults to 'int' [-Wimplicit-int]
  725 | base76_init() {
      | ^~~~~~~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o recpoint.xo -c recpoint.c
In file included from recpoint.c:31:
event_man.h:33:18: warning: return type defaults to 'int' [-Wimplicit-int]
   33 | #define rp_wrap  em_rp_wrap
      |                  ^~~~~~~~~~
recpoint.c:184:1: note: in expansion of macro 'rp_wrap'
  184 | rp_wrap(struct screen *s) {
      | ^~~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o event_man.xo -c event_man.c
In file included from event_man.c:41:
event_man.c: In function 'mgl_create_virtual_key':
mgl2.h:35:30: warning: type of 'x' defaults to 'int' [-Wimplicit-int]
   35 | #define  create_virtual_key  mgl_create_virtual_key
      |                              ^~~~~~~~~~~~~~~~~~~~~~
event_man.c:146:1: note: in expansion of macro 'create_virtual_key'
  146 | create_virtual_key(x,y,xs,ys,keycode) {
      | ^~~~~~~~~~~~~~~~~~
mgl2.h:35:30: warning: type of 'y' defaults to 'int' [-Wimplicit-int]
   35 | #define  create_virtual_key  mgl_create_virtual_key
      |                              ^~~~~~~~~~~~~~~~~~~~~~
event_man.c:146:1: note: in expansion of macro 'create_virtual_key'
  146 | create_virtual_key(x,y,xs,ys,keycode) {
      | ^~~~~~~~~~~~~~~~~~
mgl2.h:35:30: warning: type of 'xs' defaults to 'int' [-Wimplicit-int]
   35 | #define  create_virtual_key  mgl_create_virtual_key
      |                              ^~~~~~~~~~~~~~~~~~~~~~
event_man.c:146:1: note: in expansion of macro 'create_virtual_key'
  146 | create_virtual_key(x,y,xs,ys,keycode) {
      | ^~~~~~~~~~~~~~~~~~
mgl2.h:35:30: warning: type of 'ys' defaults to 'int' [-Wimplicit-int]
   35 | #define  create_virtual_key  mgl_create_virtual_key
      |                              ^~~~~~~~~~~~~~~~~~~~~~
event_man.c:146:1: note: in expansion of macro 'create_virtual_key'
  146 | create_virtual_key(x,y,xs,ys,keycode) {
      | ^~~~~~~~~~~~~~~~~~
mgl2.h:35:30: warning: type of 'keycode' defaults to 'int' [-Wimplicit-int]
   35 | #define  create_virtual_key  mgl_create_virtual_key
      |                              ^~~~~~~~~~~~~~~~~~~~~~
event_man.c:146:1: note: in expansion of macro 'create_virtual_key'
  146 | create_virtual_key(x,y,xs,ys,keycode) {
      | ^~~~~~~~~~~~~~~~~~
event_man.c: In function 'mgl_create_virtual_key3':
mgl2.h:36:31: warning: type of 'x' defaults to 'int' [-Wimplicit-int]
   36 | #define  create_virtual_key3  mgl_create_virtual_key3
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
event_man.c:151:1: note: in expansion of macro 'create_virtual_key3'
  151 | create_virtual_key3(x,y,xs,ys,down,move,up) {
      | ^~~~~~~~~~~~~~~~~~~
mgl2.h:36:31: warning: type of 'y' defaults to 'int' [-Wimplicit-int]
   36 | #define  create_virtual_key3  mgl_create_virtual_key3
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
event_man.c:151:1: note: in expansion of macro 'create_virtual_key3'
  151 | create_virtual_key3(x,y,xs,ys,down,move,up) {
      | ^~~~~~~~~~~~~~~~~~~
mgl2.h:36:31: warning: type of 'xs' defaults to 'int' [-Wimplicit-int]
   36 | #define  create_virtual_key3  mgl_create_virtual_key3
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
event_man.c:151:1: note: in expansion of macro 'create_virtual_key3'
  151 | create_virtual_key3(x,y,xs,ys,down,move,up) {
      | ^~~~~~~~~~~~~~~~~~~
mgl2.h:36:31: warning: type of 'ys' defaults to 'int' [-Wimplicit-int]
   36 | #define  create_virtual_key3  mgl_create_virtual_key3
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
event_man.c:151:1: note: in expansion of macro 'create_virtual_key3'
  151 | create_virtual_key3(x,y,xs,ys,down,move,up) {
      | ^~~~~~~~~~~~~~~~~~~
mgl2.h:36:31: warning: type of 'down' defaults to 'int' [-Wimplicit-int]
   36 | #define  create_virtual_key3  mgl_create_virtual_key3
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
event_man.c:151:1: note: in expansion of macro 'create_virtual_key3'
  151 | create_virtual_key3(x,y,xs,ys,down,move,up) {
      | ^~~~~~~~~~~~~~~~~~~
mgl2.h:36:31: warning: type of 'move' defaults to 'int' [-Wimplicit-int]
   36 | #define  create_virtual_key3  mgl_create_virtual_key3
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
event_man.c:151:1: note: in expansion of macro 'create_virtual_key3'
  151 | create_virtual_key3(x,y,xs,ys,down,move,up) {
      | ^~~~~~~~~~~~~~~~~~~
mgl2.h:36:31: warning: type of 'up' defaults to 'int' [-Wimplicit-int]
   36 | #define  create_virtual_key3  mgl_create_virtual_key3
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
event_man.c:151:1: note: in expansion of macro 'create_virtual_key3'
  151 | create_virtual_key3(x,y,xs,ys,down,move,up) {
      | ^~~~~~~~~~~~~~~~~~~
event_man.c: In function 'mgl_vk_detach':
mgl2.h:39:21: warning: type of 'clean_mode' defaults to 'int' [-Wimplicit-int]
   39 | #define  vk_detach  mgl_vk_detach
      |                     ^~~~~~~~~~~~~
event_man.c:180:6: note: in expansion of macro 'vk_detach'
  180 | void vk_detach(vk,clean_mode) struct virtual_key *vk; {
      |      ^~~~~~~~~
event_man.c: In function 'vk_search':
event_man.c:215:5: warning: type of 'x' defaults to 'int' [-Wimplicit-int]
  215 | int vk_search(p,x,y) struct virtual_key *p; {
      |     ^~~~~~~~~
event_man.c:215:5: warning: type of 'y' defaults to 'int' [-Wimplicit-int]
event_man.c: In function 'vk_match':
event_man.c:230:5: warning: type of 'x' defaults to 'int' [-Wimplicit-int]
  230 | int vk_match(p,x,y) struct virtual_key *p; {
      |     ^~~~~~~~
event_man.c:230:5: warning: type of 'y' defaults to 'int' [-Wimplicit-int]
event_man.c: In function 'vk_reverse':
event_man.c:253:6: warning: type of 'mode' defaults to 'int' [-Wimplicit-int]
  253 | void vk_reverse(p,mode) struct virtual_key *p; {
      |      ^~~~~~~~~~
In file included from event_man.c:42:
event_man.c: In function 'em_screen_switch':
event_man.h:30:23: warning: type of 'mode' defaults to 'int' [-Wimplicit-int]
   30 | #define screen_switch em_screen_switch
      |                       ^~~~~~~~~~~~~~~~
event_man.c:437:5: note: in expansion of macro 'screen_switch'
  437 | int screen_switch(mode) {
      |     ^~~~~~~~~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o mglcol.xo -c mglcol.c
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o imgopt.xo -c imgopt.c
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o draw_engine.xo -c draw_engine.c
draw_engine.c:478:1: warning: return type defaults to 'int' [-Wimplicit-int]
  478 | setup_draw_engine(struct draw_engine *self, int hint) {
      | ^~~~~~~~~~~~~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o decol4.xo -c decol4.c
decol4.c: In function 'dec4_create_memscreen':
decol4.c:115:4: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
  115 |    perror("malloc");
      |    ^~~~~~
decol4.c:119:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
  119 |   memset(bitmap,0,ys * wb);
      |   ^~~~~~
decol4.c:119:3: warning: incompatible implicit declaration of built-in function 'memset'
decol4.c:34:1: note: include '<string.h>' or provide a declaration of 'memset'
   33 | #include <stdlib.h>
  +++ |+#include <string.h>
   34 | 
decol4.c: In function 'dec4_draw_line_horizontal':
decol4.c:546:3: warning: implicit declaration of function 'mgl_memxor' [-Wimplicit-function-declaration]
  546 |   mgl_memxor(p, 0xff, wb);
      |   ^~~~~~~~~~
decol4.c:564:3: warning: incompatible implicit declaration of built-in function 'memset'
  564 |   memset(p, lp_mask & 0xff, wb);
      |   ^~~~~~
decol4.c:564:3: note: include '<string.h>' or provide a declaration of 'memset'
decol4.c: In function 'dec4_clear_screen':
decol4.c:639:7: warning: incompatible implicit declaration of built-in function 'memset'
  639 |       memset(p, lp_mask & 0xff, wb);
      |       ^~~~~~
decol4.c:639:7: note: include '<string.h>' or provide a declaration of 'memset'
decol4.c: In function 'dec4_bitblt_copy':
decol4.c:701:3: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration]
  701 |   memmove(dp,sp,len);
      |   ^~~~~~~
decol4.c:701:3: warning: incompatible implicit declaration of built-in function 'memmove'
decol4.c:701:3: note: include '<string.h>' or provide a declaration of 'memmove'
decol4.c:710:2: warning: implicit declaration of function 'bitblt_generic' [-Wimplicit-function-declaration]
  710 |  bitblt_generic(dst,dx,dy,src,sx,sy,xsize,ysize,op);
      |  ^~~~~~~~~~~~~~
decol4.c: In function 'dec4_bitblt_scroll_forward':
decol4.c:757:3: warning: incompatible implicit declaration of built-in function 'memmove'
  757 |   memmove(dp,sp,len);
      |   ^~~~~~~
decol4.c:757:3: note: include '<string.h>' or provide a declaration of 'memmove'
decol4.c: In function 'dec4_bitblt_scroll_backward':
decol4.c:815:3: warning: incompatible implicit declaration of built-in function 'memmove'
  815 |   memmove(dp,sp,len);
      |   ^~~~~~~
decol4.c:815:3: note: include '<string.h>' or provide a declaration of 'memmove'
decol4.c: In function 'dec4_init':
decol4.c:854:2: warning: implicit declaration of function 'setup_draw_engine' [-Wimplicit-function-declaration]
  854 |  setup_draw_engine(&dec4,0);
      |  ^~~~~~~~~~~~~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o font_engine.xo -c font_engine.c
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o ferom.xo -c ferom.c
ferom.c: In function 'ferom_load_font':
ferom.c:404:7: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
  404 |  fd = open(fpath,0);
      |       ^~~~
      |       popen
ferom.c:425:17: warning: passing argument 1 of 'fclose' makes pointer from integer without a cast [-Wint-conversion]
  425 |          fclose(fd);
      |                 ^~
      |                 |
      |                 int
In file included from ferom.c:34:
/usr/include/stdio.h:225:13: note: expected 'FILE *' but argument is of type 'int'
  225 | int  fclose(FILE *);
      |             ^~~~~~
ferom.c: In function 'ferom_init':
ferom.c:456:14: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  456 |  if (fd > 0) close(fd);
      |              ^~~~~
      |              pclose
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o textscreen.xo -c textscreen.c
textscreen.c: In function 'mgl_create_textscreen':
textscreen.c:64:3: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
   64 |   perror("malloc");
      |   ^~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o memory.xo -c memory.c
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o keymap.xo -c keymap.c
keymap.c:383:1: warning: return type defaults to 'int' [-Wimplicit-int]
  383 | sym_trans_tab_init() {
      | ^~~~~~~~~~~~~~~~~~
keymap.c: In function 'mgl_get_keysym':
keymap.c:419:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
  419 |   if (!strcmp(sv_tab[i].sym,name)) {
      |        ^~~~~~
keymap.c: In function 'find_sym':
keymap.c:467:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
  467 |  if (strlen(name) == 1) {
      |      ^~~~~~
keymap.c:467:6: warning: incompatible implicit declaration of built-in function 'strlen'
keymap.c:36:1: note: include '<string.h>' or provide a declaration of 'strlen'
   35 | #include "event_man.h"
  +++ |+#include <string.h>
   36 | 
keymap.c: In function 'mgl_get_keymap':
keymap.c:480:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
  480 |  strcpy(sym1,"");
      |  ^~~~~~
keymap.c:480:2: warning: incompatible implicit declaration of built-in function 'strcpy'
keymap.c:480:2: note: include '<string.h>' or provide a declaration of 'strcpy'
keymap.c: In function 'mk_load_keymap':
keymap.c:613:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
  613 |   if (!strncmp("localtranslate",p,strlen("localtranslate"))) {
      |        ^~~~~~~
keymap.c:613:35: warning: incompatible implicit declaration of built-in function 'strlen'
  613 |   if (!strncmp("localtranslate",p,strlen("localtranslate"))) {
      |                                   ^~~~~~
keymap.c:613:35: note: include '<string.h>' or provide a declaration of 'strlen'
keymap.c:630:16: warning: incompatible implicit declaration of built-in function 'strcpy'
  630 |    if (n == 2) strcpy(sym2,sym1);
      |                ^~~~~~
keymap.c:630:16: note: include '<string.h>' or provide a declaration of 'strcpy'
keymap.c:631:16: warning: incompatible implicit declaration of built-in function 'strcpy'
  631 |    if (n == 3) strcpy(sym3,"none");
      |                ^~~~~~
keymap.c:631:16: note: include '<string.h>' or provide a declaration of 'strcpy'
keymap.c: In function 'mk_init_keymap':
keymap.c:687:6: warning: incompatible implicit declaration of built-in function 'strcpy'
  687 |      strcpy(fname,MGLDIR);
      |      ^~~~~~
keymap.c:687:6: note: include '<string.h>' or provide a declaration of 'strcpy'
keymap.c:688:6: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
  688 |      strcat(fname,"/keymap");
      |      ^~~~~~
keymap.c:688:6: warning: incompatible implicit declaration of built-in function 'strcat'
keymap.c:688:6: note: include '<string.h>' or provide a declaration of 'strcat'
keymap.c:697:6: warning: incompatible implicit declaration of built-in function 'strcpy'
  697 |      strcpy(fname,MGLDIR);
      |      ^~~~~~
keymap.c:697:6: note: include '<string.h>' or provide a declaration of 'strcpy'
keymap.c:698:6: warning: incompatible implicit declaration of built-in function 'strcat'
  698 |      strcat(fname,"/keymap");
      |      ^~~~~~
keymap.c:698:6: note: include '<string.h>' or provide a declaration of 'strcat'
keymap.c: At top level:
keymap.c:1047:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1047 | mk_dump_keymap(char *s) {
      | ^~~~~~~~~~~~~~
keymap.c: In function 'mk_init':
keymap.c:528:23: warning: iteration 28 invokes undefined behavior [-Waggressive-loop-optimizations]
  528 |   mgl_keymap[ec_ext[i].kc][0] = ec_ext[i].tc[0];
      |              ~~~~~~~~~^~~
keymap.c:527:2: note: within this loop
  527 |  for (i=0; i< sizeof(ec_base)/sizeof(ec_ext[0]);i++) {
      |  ^~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o emcli.xo -c emcli.c
In file included from emcli.c:45:
em_comm.h:99:15: warning: return type defaults to 'int' [-Wimplicit-int]
   99 | static inline emc_packet_print(char *s,struct emc_packet *p) {
      |               ^~~~~~~~~~~~~~~~
emcli.c: In function 'emc_execute_event':
emcli.c:151:3: warning: implicit declaration of function 'vk_mouse_move' [-Wimplicit-function-declaration]
  151 |   vk_mouse_move(x,y);
      |   ^~~~~~~~~~~~~
emcli.c:155:3: warning: implicit declaration of function 'vk_mouse_up' [-Wimplicit-function-declaration]
  155 |   vk_mouse_up(x,y);
      |   ^~~~~~~~~~~
emcli.c:160:3: warning: implicit declaration of function 'vk_mouse_down' [-Wimplicit-function-declaration]
  160 |   vk_mouse_down(x,y);
      |   ^~~~~~~~~~~~~
In file included from emcli.c:43:
event_man.h:30:23: warning: implicit declaration of function 'em_screen_switch'; did you mean 'screen_switch'? [-Wimplicit-function-declaration]
   30 | #define screen_switch em_screen_switch
      |                       ^~~~~~~~~~~~~~~~
emcli.c:165:4: note: in expansion of macro 'screen_switch'
  165 |    screen_switch(1);
      |    ^~~~~~~~~~~~~
emcli.c: In function 'emc_get_key_common':
event_man.h:29:25: warning: implicit declaration of function 'em_get_key_nodelay'; did you mean 'get_key_nodelay'? [-Wimplicit-function-declaration]
   29 | #define get_key_nodelay em_get_key_nodelay
      |                         ^~~~~~~~~~~~~~~~~~
emcli.c:287:13: note: in expansion of macro 'get_key_nodelay'
  287 |   int ret = get_key_nodelay();
      |             ^~~~~~~~~~~~~~~
emcli.c: In function 'emc_init':
event_man.h:50:32: warning: implicit declaration of function 'em_create_physical_screen'; did you mean 'create_physical_screen'? [-Wimplicit-function-declaration]
   50 | #define create_physical_screen em_create_physical_screen
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~
emcli.c:681:2: note: in expansion of macro 'create_physical_screen'
  681 |  create_physical_screen(STK_NATIVE,SCREEN_WIDTH,SCREEN_HEIGHT,NULL);
      |  ^~~~~~~~~~~~~~~~~~~~~~
event_man.h:33:18: warning: implicit declaration of function 'em_rp_wrap'; did you mean 'rp_wrap'? [-Wimplicit-function-declaration]
   33 | #define rp_wrap  em_rp_wrap
      |                  ^~~~~~~~~~
emcli.c:682:2: note: in expansion of macro 'rp_wrap'
  682 |  rp_wrap(physical_screen);
      |  ^~~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o dec3k.xo -c dec3k.c
dec3k.c: In function 'dec3k_create_memscreen':
dec3k.c:59:4: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
   59 |    perror("malloc");
      |    ^~~~~~
dec3k.c:63:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   63 |   memset(bitmap,0,ys * wb);
      |   ^~~~~~
dec3k.c:63:3: warning: incompatible implicit declaration of built-in function 'memset'
dec3k.c:34:1: note: include '<string.h>' or provide a declaration of 'memset'
   33 | #include <stdlib.h>
  +++ |+#include <string.h>
   34 | 
dec3k.c: In function 'dec3k_draw_line_horizontal':
dec3k.c:389:3: warning: implicit declaration of function 'mgl_memxor2' [-Wimplicit-function-declaration]
  389 |   mgl_memxor2(p, 0x0f, wp);
      |   ^~~~~~~~~~~
dec3k.c:397:3: warning: implicit declaration of function 'mgl_memset2' [-Wimplicit-function-declaration]
  397 |   mgl_memset2(p, pen_color, wp);
      |   ^~~~~~~~~~~
dec3k.c: In function 'dec3k_bitblt_copy':
dec3k.c:491:3: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration]
  491 |   memmove(dp,sp,len);
      |   ^~~~~~~
dec3k.c:491:3: warning: incompatible implicit declaration of built-in function 'memmove'
dec3k.c:491:3: note: include '<string.h>' or provide a declaration of 'memmove'
dec3k.c: In function 'dec3k_bitblt_scroll_forward':
dec3k.c:519:3: warning: incompatible implicit declaration of built-in function 'memmove'
  519 |   memmove(dp,sp,len);
      |   ^~~~~~~
dec3k.c:519:3: note: include '<string.h>' or provide a declaration of 'memmove'
dec3k.c: In function 'dec3k_bitblt_scroll_backward':
dec3k.c:549:3: warning: incompatible implicit declaration of built-in function 'memmove'
  549 |   memmove(dp,sp,len);
      |   ^~~~~~~
dec3k.c:549:3: note: include '<string.h>' or provide a declaration of 'memmove'
dec3k.c: In function 'dec3k_init':
dec3k.c:582:2: warning: implicit declaration of function 'setup_draw_engine' [-Wimplicit-function-declaration]
  582 |  setup_draw_engine(&dec3k,0);
      |  ^~~~~~~~~~~~~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o dec192.xo -c dec192.c
dec192.c: In function 'dec192_create_memscreen':
dec192.c:84:4: warning: implicit declaration of function 'perror' [-Wimplicit-function-declaration]
   84 |    perror("malloc");
      |    ^~~~~~
dec192.c:88:3: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   88 |   memset(bitmap,0,ys * wb);
      |   ^~~~~~
dec192.c:88:3: warning: incompatible implicit declaration of built-in function 'memset'
dec192.c:34:1: note: include '<string.h>' or provide a declaration of 'memset'
   33 | #include <stdlib.h>
  +++ |+#include <string.h>
   34 | 
dec192.c: In function 'dec192_draw_line_horizontal':
dec192.c:540:3: warning: implicit declaration of function 'mgl_memxor' [-Wimplicit-function-declaration]
  540 |   mgl_memxor(p, 0x3, wb);
      |   ^~~~~~~~~~
dec192.c:551:3: warning: incompatible implicit declaration of built-in function 'memset'
  551 |   memset(p, lp_color, wb);
      |   ^~~~~~
dec192.c:551:3: note: include '<string.h>' or provide a declaration of 'memset'
dec192.c: In function 'dec192_clear_screen':
dec192.c:609:7: warning: incompatible implicit declaration of built-in function 'memset'
  609 |       memset(p, lp_color, wb);
      |       ^~~~~~
dec192.c:609:7: note: include '<string.h>' or provide a declaration of 'memset'
dec192.c: In function 'dec192_bitblt_copy':
dec192.c:646:3: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration]
  646 |   memmove(dp,sp,len);
      |   ^~~~~~~
dec192.c:646:3: warning: incompatible implicit declaration of built-in function 'memmove'
dec192.c:646:3: note: include '<string.h>' or provide a declaration of 'memmove'
dec192.c: In function 'dec192_bitblt_scroll_forward':
dec192.c:674:3: warning: incompatible implicit declaration of built-in function 'memmove'
  674 |   memmove(dp,sp,len);
      |   ^~~~~~~
dec192.c:674:3: note: include '<string.h>' or provide a declaration of 'memmove'
dec192.c: In function 'dec192_bitblt_scroll_backward':
dec192.c:704:3: warning: incompatible implicit declaration of built-in function 'memmove'
  704 |   memmove(dp,sp,len);
      |   ^~~~~~~
dec192.c:704:3: note: include '<string.h>' or provide a declaration of 'memmove'
dec192.c: In function 'dec192_init':
dec192.c:737:2: warning: implicit declaration of function 'setup_draw_engine' [-Wimplicit-function-declaration]
  737 |  setup_draw_engine(&dec192,0);
      |  ^~~~~~~~~~~~~~~~~
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o emx11.xo -c emx11.c
In file included from emx11.c:104:
emx11.c: In function 'emx11_get_key':
event_man.h:29:25: warning: implicit declaration of function 'em_get_key_nodelay'; did you mean 'get_key_nodelay'? [-Wimplicit-function-declaration]
   29 | #define get_key_nodelay em_get_key_nodelay
      |                         ^~~~~~~~~~~~~~~~~~
emx11.c:493:10: note: in expansion of macro 'get_key_nodelay'
  493 |   return get_key_nodelay();
      |          ^~~~~~~~~~~~~~~
emx11.c: In function 'xevent_check':
emx11.c:837:3: warning: implicit declaration of function 'vk_mouse_move' [-Wimplicit-function-declaration]
  837 |   vk_mouse_move(x,y);
      |   ^~~~~~~~~~~~~
emx11.c:848:5: warning: implicit declaration of function 'vk_mouse_up' [-Wimplicit-function-declaration]
  848 |     vk_mouse_up(x,y);
      |     ^~~~~~~~~~~
emx11.c:861:5: warning: implicit declaration of function 'vk_mouse_down' [-Wimplicit-function-declaration]
  861 |     vk_mouse_down(x,y);
      |     ^~~~~~~~~~~~~
gcc -shared -Wl,-soname,libmgl2.so.2.0 -o libmgl2.so.2.0.19.3 mgl2.xo recpoint.xo event_man.xo mglcol.xo imgopt.xo draw_engine.xo decol4.xo font_engine.xo ferom.xo textscreen.xo memory.xo keymap.xo emcli.xo dec3k.xo dec192.xo emx11.xo -L/usr/X11R7/lib -Wl,-rpath,/usr/X11R7/lib -lX11 -lXtst -lXext
ln -sf libmgl2.so.2.0.19.3 libmgl2.so.2.0 
ln -sf libmgl2.so.2.0 libmgl2.so
ln -sf libmgl2.so.2.0 libmgl2.so.2
gmake[1]: Leaving directory '/pbulk/work/graphics/mgl/work/mgl2-alpha-020/lib'
(cd bin; /usr/pkg/bin/gmake  )
gmake[1]: Entering directory '/pbulk/work/graphics/mgl/work/mgl2-alpha-020/bin'
gcc -g -o mglsvrcons -g -O -I../lib -I../lib -I/usr/X11R7/include ../lib/emsvr.c ../lib/taskbar.c \
	-DSVR_EVENT_MANAGER_INITIATOR=emx11_init \
	-L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  -L/usr/X11R7/lib -Wl,-rpath,/usr/X11R7/lib -lX11 -lXtst -lXext
In file included from ../lib/emsvr.c:50:
../lib/em_comm.h:99:15: warning: return type defaults to 'int' [-Wimplicit-int]
   99 | static inline emc_packet_print(char *s,struct emc_packet *p) {
      |               ^~~~~~~~~~~~~~~~
../lib/emsvr.c: In function 'draw_gp_status':
../lib/emsvr.c:199:2: warning: implicit declaration of function 'tb_show' [-Wimplicit-function-declaration]
  199 |  tb_show();
      |  ^~~~~~~
../lib/emsvr.c: At top level:
../lib/emsvr.c:481:1: warning: return type defaults to 'int' [-Wimplicit-int]
  481 | screen_map_print(int i) {
      | ^~~~~~~~~~~~~~~~
../lib/emsvr.c:498:1: warning: return type defaults to 'int' [-Wimplicit-int]
  498 | screen_map_init(int type) {
      | ^~~~~~~~~~~~~~~
../lib/emsvr.c:652:1: warning: return type defaults to 'int' [-Wimplicit-int]
  652 | screen_map_focus(int id) {
      | ^~~~~~~~~~~~~~~~
../lib/emsvr.c: In function 'screen_map_focus':
../lib/emsvr.c:657:19: warning: 'return' with no value, in function returning non-void
  657 |   if (sm_cur->sw) return;
      |                   ^~~~~~
../lib/emsvr.c:652:1: note: declared here
  652 | screen_map_focus(int id) {
      | ^~~~~~~~~~~~~~~~
../lib/emsvr.c:669:4: warning: 'return' with no value, in function returning non-void
  669 |    return;
      |    ^~~~~~
../lib/emsvr.c:652:1: note: declared here
  652 | screen_map_focus(int id) {
      | ^~~~~~~~~~~~~~~~
../lib/emsvr.c: In function 'screen_map_disp':
../lib/emsvr.c:720:7: warning: implicit declaration of function 'screen_map_forground'; did you mean 'screen_map_focus'? [-Wimplicit-function-declaration]
  720 |       screen_map_forground(m);
      |       ^~~~~~~~~~~~~~~~~~~~
      |       screen_map_focus
../lib/emsvr.c: At top level:
../lib/emsvr.c:735:1: warning: return type defaults to 'int' [-Wimplicit-int]
  735 | sw_add_top(struct screen_window *sw) {
      | ^~~~~~~~~~
../lib/emsvr.c:740:1: warning: return type defaults to 'int' [-Wimplicit-int]
  740 | sw_add(struct screen_window *sw) {
      | ^~~~~~
../lib/emsvr.c:755:1: warning: return type defaults to 'int' [-Wimplicit-int]
  755 | sw_remove(struct screen_window *sw) {
      | ^~~~~~~~~
../lib/emsvr.c: In function 'sw_remove':
../lib/emsvr.c:758:16: warning: 'return' with no value, in function returning non-void
  758 |  if (!sw_list) return;
      |                ^~~~~~
../lib/emsvr.c:755:1: note: declared here
  755 | sw_remove(struct screen_window *sw) {
      | ^~~~~~~~~
../lib/emsvr.c: At top level:
../lib/emsvr.c:775:1: warning: return type defaults to 'int' [-Wimplicit-int]
  775 | sw_free(struct screen_window *sw) {
      | ^~~~~~~
../lib/emsvr.c: In function 'sw_free':
../lib/emsvr.c:788:3: warning: implicit declaration of function 'tb_detach'; did you mean 'vk_detach'? [-Wimplicit-function-declaration]
  788 |   tb_detach(sw->icon);
      |   ^~~~~~~~~
      |   vk_detach
../lib/emsvr.c:792:2: warning: implicit declaration of function 'tb_disp'; did you mean 'sw_disp'? [-Wimplicit-function-declaration]
  792 |  tb_disp();
      |  ^~~~~~~
      |  sw_disp
../lib/emsvr.c: At top level:
../lib/emsvr.c:795:1: warning: return type defaults to 'int' [-Wimplicit-int]
  795 | sw_alloc(int fd) {
      | ^~~~~~~~
../lib/emsvr.c:810:1: warning: return type defaults to 'int' [-Wimplicit-int]
  810 | sw_set_icon(struct screen_window *sw,char *icon) {
      | ^~~~~~~~~~~
../lib/emsvr.c: In function 'sw_set_icon':
../lib/emsvr.c:838:4: warning: 'return' with no value, in function returning non-void
  838 |    return;
      |    ^~~~~~
../lib/emsvr.c:810:1: note: declared here
  810 | sw_set_icon(struct screen_window *sw,char *icon) {
      | ^~~~~~~~~~~
../lib/emsvr.c:842:3: warning: implicit declaration of function 'tb_change' [-Wimplicit-function-declaration]
  842 |   tb_change(sw->icon,old);
      |   ^~~~~~~~~
../lib/emsvr.c:845:3: warning: implicit declaration of function 'tb_attach'; did you mean 'vk_attach'? [-Wimplicit-function-declaration]
  845 |   tb_attach(sw->icon,MK_ICON(sw->fd),0);
      |   ^~~~~~~~~
      |   vk_attach
../lib/emsvr.c: At top level:
../lib/emsvr.c:850:1: warning: return type defaults to 'int' [-Wimplicit-int]
  850 | tb_forground(int fd) {
      | ^~~~~~~~~~~~
../lib/emsvr.c: In function 'tb_forground':
../lib/emsvr.c:861:5: warning: implicit declaration of function 'set_focus'; did you mean 'set_font'? [-Wimplicit-function-declaration]
  861 |     set_focus(i);
      |     ^~~~~~~~~
      |     set_font
../lib/emsvr.c:863:5: warning: implicit declaration of function 'sw_forground'; did you mean 'tb_forground'? [-Wimplicit-function-declaration]
  863 |     sw_forground(sw,1);
      |     ^~~~~~~~~~~~
      |     tb_forground
../lib/emsvr.c: At top level:
../lib/emsvr.c:871:1: warning: return type defaults to 'int' [-Wimplicit-int]
  871 | tb_disp() {
      | ^~~~~~~
../lib/emsvr.c: In function 'tb_disp':
../lib/emsvr.c:873:3: warning: implicit declaration of function 'tb_set_focus' [-Wimplicit-function-declaration]
  873 |   tb_set_focus(sm_cur->sw->icon, sm_cur->sw->type == AT_MAIN);
      |   ^~~~~~~~~~~~
../lib/emsvr.c: In function 'sw_recv':
../lib/emsvr.c:919:4: warning: 'return' with no value, in function returning non-void
  919 |    return;
      |    ^~~~~~
../lib/emsvr.c:893:5: note: declared here
  893 | int sw_recv(struct screen_window *sw,struct emc_packet *es,int n) {
      |     ^~~~~~~
../lib/emsvr.c: At top level:
../lib/emsvr.c:947:1: warning: return type defaults to 'int' [-Wimplicit-int]
  947 | screen_map_forground(struct screen_map *m) {
      | ^~~~~~~~~~~~~~~~~~~~
../lib/emsvr.c: In function 'screen_map_forground':
../lib/emsvr.c:952:3: warning: 'return' with no value, in function returning non-void
  952 |   return;
      |   ^~~~~~
../lib/emsvr.c:947:1: note: declared here
  947 | screen_map_forground(struct screen_map *m) {
      | ^~~~~~~~~~~~~~~~~~~~
../lib/emsvr.c: At top level:
../lib/emsvr.c:968:1: warning: return type defaults to 'int' [-Wimplicit-int]
  968 | screen_map_background(struct screen_map *m) {
      | ^~~~~~~~~~~~~~~~~~~~~
../lib/emsvr.c: In function 'screen_map_background':
../lib/emsvr.c:979:3: warning: 'return' with no value, in function returning non-void
  979 |   return;
      |   ^~~~~~
../lib/emsvr.c:968:1: note: declared here
  968 | screen_map_background(struct screen_map *m) {
      | ^~~~~~~~~~~~~~~~~~~~~
../lib/emsvr.c: At top level:
../lib/emsvr.c:989:1: warning: return type defaults to 'int' [-Wimplicit-int]
  989 | sw_forground(struct screen_window *sw,int force) {
      | ^~~~~~~~~~~~
../lib/emsvr.c: In function 'sw_forground':
../lib/emsvr.c:994:34: warning: 'return' with no value, in function returning non-void
  994 |  if (sw->stat != SWS_BACKGROUND) return;
      |                                  ^~~~~~
../lib/emsvr.c:989:1: note: declared here
  989 | sw_forground(struct screen_window *sw,int force) {
      | ^~~~~~~~~~~~
../lib/emsvr.c:1007:5: warning: 'return' with no value, in function returning non-void
 1007 |     return;
      |     ^~~~~~
../lib/emsvr.c:989:1: note: declared here
  989 | sw_forground(struct screen_window *sw,int force) {
      | ^~~~~~~~~~~~
../lib/emsvr.c:1016:4: warning: 'return' with no value, in function returning non-void
 1016 |    return;
      |    ^~~~~~
../lib/emsvr.c:989:1: note: declared here
  989 | sw_forground(struct screen_window *sw,int force) {
      | ^~~~~~~~~~~~
../lib/emsvr.c:1019:14: warning: 'return' with no value, in function returning non-void
 1019 |  if (!force) return;
      |              ^~~~~~
../lib/emsvr.c:989:1: note: declared here
  989 | sw_forground(struct screen_window *sw,int force) {
      | ^~~~~~~~~~~~
../lib/emsvr.c:1026:4: warning: 'return' with no value, in function returning non-void
 1026 |    return;
      |    ^~~~~~
../lib/emsvr.c:989:1: note: declared here
  989 | sw_forground(struct screen_window *sw,int force) {
      | ^~~~~~~~~~~~
../lib/emsvr.c: At top level:
../lib/emsvr.c:1031:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1031 | execute_client_req(struct screen_window *sw) {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c: In function 'execute_client_req':
../lib/emsvr.c:1038:3: warning: 'return' with no value, in function returning non-void
 1038 |   return;
      |   ^~~~~~
../lib/emsvr.c:1031:1: note: declared here
 1031 | execute_client_req(struct screen_window *sw) {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c:1046:4: warning: 'return' with no value, in function returning non-void
 1046 |    return;
      |    ^~~~~~
../lib/emsvr.c:1031:1: note: declared here
 1031 | execute_client_req(struct screen_window *sw) {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c:1057:6: warning: 'return' with no value, in function returning non-void
 1057 |      return;
      |      ^~~~~~
../lib/emsvr.c:1031:1: note: declared here
 1031 | execute_client_req(struct screen_window *sw) {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c:1103:4: warning: 'return' with no value, in function returning non-void
 1103 |    return;
      |    ^~~~~~
../lib/emsvr.c:1031:1: note: declared here
 1031 | execute_client_req(struct screen_window *sw) {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c:1113:4: warning: 'return' with no value, in function returning non-void
 1113 |    return;
      |    ^~~~~~
../lib/emsvr.c:1031:1: note: declared here
 1031 | execute_client_req(struct screen_window *sw) {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c:1123:4: warning: implicit declaration of function 'em_rec_point'; did you mean 'rec_point'? [-Wimplicit-function-declaration]
 1123 |    em_rec_point(current_screen
      |    ^~~~~~~~~~~~
      |    rec_point
../lib/emsvr.c: At top level:
../lib/emsvr.c:1286:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1286 | execute_send_event() {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c: In function 'execute_send_event':
../lib/emsvr.c:1319:4: warning: implicit declaration of function 'draw_clock' [-Wimplicit-function-declaration]
 1319 |    draw_clock(clock_image);
      |    ^~~~~~~~~~
../lib/emsvr.c:1358:4: warning: 'return' with no value, in function returning non-void
 1358 |    return;
      |    ^~~~~~
../lib/emsvr.c:1286:1: note: declared here
 1286 | execute_send_event() {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c:1363:4: warning: 'return' with no value, in function returning non-void
 1363 |    return;
      |    ^~~~~~
../lib/emsvr.c:1286:1: note: declared here
 1286 | execute_send_event() {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c:1371:4: warning: implicit declaration of function 'tb_mouse' [-Wimplicit-function-declaration]
 1371 |    tb_mouse(x,y);
      |    ^~~~~~~~
../lib/emsvr.c:1372:4: warning: 'return' with no value, in function returning non-void
 1372 |    return;
      |    ^~~~~~
../lib/emsvr.c:1286:1: note: declared here
 1286 | execute_send_event() {
      | ^~~~~~~~~~~~~~~~~~
../lib/emsvr.c: At top level:
../lib/emsvr.c:1424:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1424 | set_focus(int i) {
      | ^~~~~~~~~
../lib/emsvr.c:1654:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1654 | ems_term() {
      | ^~~~~~~~
../lib/emsvr.c:1689:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1689 | ems_init() {
      | ^~~~~~~~
../lib/emsvr.c: In function 'ems_init':
../lib/emsvr.c:1718:3: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration]
 1718 |   mkdir(cs_workdir,0700);
      |   ^~~~~
../lib/emsvr.c:1744:2: warning: implicit declaration of function 'chmod' [-Wimplicit-function-declaration]
 1744 |  chmod(cs_sock_name,0777);
      |  ^~~~~
../lib/emsvr.c: At top level:
../lib/emsvr.c:1797:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1797 | ems_postinit() {
      | ^~~~~~~~~~~~
../lib/emsvr.c:1835:1: warning: return type defaults to 'int' [-Wimplicit-int]
 1835 | main(int argc,char *argv[]) {
      | ^~~~
../lib/emsvr.c: In function 'main':
../lib/emsvr.c:1976:3: warning: implicit declaration of function 'tb_init'; did you mean 'mk_init'? [-Wimplicit-function-declaration]
 1976 |   tb_init(m->x,m->y,m->xs,m->ys);
      |   ^~~~~~~
      |   mk_init
../lib/emsvr.c:2037:4: warning: implicit declaration of function 'mgl_ignore_auto_close' [-Wimplicit-function-declaration]
 2037 |    mgl_ignore_auto_close();
      |    ^~~~~~~~~~~~~~~~~~~~~
../lib/taskbar.c:66:1: warning: return type defaults to 'int' [-Wimplicit-int]
   66 | tb_free(struct tb_cell *p) {
      | ^~~~~~~
../lib/taskbar.c:83:1: warning: return type defaults to 'int' [-Wimplicit-int]
   83 | tb_insert(struct tb_cell *new,int space) {
      | ^~~~~~~~~
../lib/taskbar.c: In function 'tb_insert':
../lib/taskbar.c:96:3: warning: 'return' with no value, in function returning non-void
   96 |   return;
      |   ^~~~~~
../lib/taskbar.c:83:1: note: declared here
   83 | tb_insert(struct tb_cell *new,int space) {
      | ^~~~~~~~~
../lib/taskbar.c:121:14: warning: 'return' with no value, in function returning non-void
  121 |      if (!p) return;
      |              ^~~~~~
../lib/taskbar.c:83:1: note: declared here
   83 | tb_insert(struct tb_cell *new,int space) {
      | ^~~~~~~~~
../lib/taskbar.c:127:6: warning: 'return' with no value, in function returning non-void
  127 |      return;
      |      ^~~~~~
../lib/taskbar.c:83:1: note: declared here
   83 | tb_insert(struct tb_cell *new,int space) {
      | ^~~~~~~~~
../lib/taskbar.c: At top level:
../lib/taskbar.c:222:1: warning: return type defaults to 'int' [-Wimplicit-int]
  222 | tb_detach(struct screen *s) {
      | ^~~~~~~~~
../lib/taskbar.c: In function 'tb_detach':
../lib/taskbar.c:225:10: warning: 'return' with no value, in function returning non-void
  225 |  if (!s) return;
      |          ^~~~~~
../lib/taskbar.c:222:1: note: declared here
  222 | tb_detach(struct screen *s) {
      | ^~~~~~~~~
../lib/taskbar.c:233:10: warning: 'return' with no value, in function returning non-void
  233 |  if (!p) return;
      |          ^~~~~~
../lib/taskbar.c:222:1: note: declared here
  222 | tb_detach(struct screen *s) {
      | ^~~~~~~~~
../lib/taskbar.c: At top level:
../lib/taskbar.c:245:1: warning: return type defaults to 'int' [-Wimplicit-int]
  245 | tb_change(struct screen *new,struct screen *old) {
      | ^~~~~~~~~
../lib/taskbar.c: In function 'tb_change':
../lib/taskbar.c:248:20: warning: 'return' with no value, in function returning non-void
  248 |  if (!old || !new) return;
      |                    ^~~~~~
../lib/taskbar.c:245:1: note: declared here
  245 | tb_change(struct screen *new,struct screen *old) {
      | ^~~~~~~~~
../lib/taskbar.c:255:10: warning: 'return' with no value, in function returning non-void
  255 |  if (!p) return;
      |          ^~~~~~
../lib/taskbar.c:245:1: note: declared here
  245 | tb_change(struct screen *new,struct screen *old) {
      | ^~~~~~~~~
../lib/taskbar.c: At top level:
../lib/taskbar.c:259:1: warning: return type defaults to 'int' [-Wimplicit-int]
  259 | tb_set_focus(struct screen *s,int mode) {
      | ^~~~~~~~~~~~
../lib/taskbar.c: In function 'tb_set_focus':
../lib/taskbar.c:262:10: warning: 'return' with no value, in function returning non-void
  262 |  if (!s) return;
      |          ^~~~~~
../lib/taskbar.c:259:1: note: declared here
  259 | tb_set_focus(struct screen *s,int mode) {
      | ^~~~~~~~~~~~
../lib/taskbar.c: At top level:
../lib/taskbar.c:274:1: warning: return type defaults to 'int' [-Wimplicit-int]
  274 | tb_mouse(int x,int y) {
      | ^~~~~~~~
../lib/taskbar.c:291:1: warning: return type defaults to 'int' [-Wimplicit-int]
  291 | tb_attach(struct screen *s,int key,int where) {
      | ^~~~~~~~~
../lib/taskbar.c: In function 'tb_attach':
../lib/taskbar.c:294:10: warning: 'return' with no value, in function returning non-void
  294 |  if (!s) return;
      |          ^~~~~~
../lib/taskbar.c:291:1: note: declared here
  291 | tb_attach(struct screen *s,int key,int where) {
      | ^~~~~~~~~
../lib/taskbar.c:298:4: warning: 'return' with no value, in function returning non-void
  298 |    return;
      |    ^~~~~~
../lib/taskbar.c:291:1: note: declared here
  291 | tb_attach(struct screen *s,int key,int where) {
      | ^~~~~~~~~
../lib/taskbar.c:305:10: warning: 'return' with no value, in function returning non-void
  305 |  if (!p) return;
      |          ^~~~~~
../lib/taskbar.c:291:1: note: declared here
  291 | tb_attach(struct screen *s,int key,int where) {
      | ^~~~~~~~~
../lib/taskbar.c: At top level:
../lib/taskbar.c:311:1: warning: return type defaults to 'int' [-Wimplicit-int]
  311 | tb_show() {
      | ^~~~~~~
../lib/taskbar.c:346:1: warning: return type defaults to 'int' [-Wimplicit-int]
  346 | tb_init(int x,int y,int xs,int ys) {
      | ^~~~~~~
ld: /tmp//ccD9hGZJ.o: in function `execute_client_req':
/pbulk/work/graphics/mgl/work/mgl2-alpha-020/bin/../lib/emsvr.c:1123: undefined reference to `em_rec_point'
ld: /pbulk/work/graphics/mgl/work/mgl2-alpha-020/bin/../lib/emsvr.c:1126: undefined reference to `em_rec_point'
gmake[1]: *** [Makefile:21: mglsvrcons] Error 1
gmake[1]: Leaving directory '/pbulk/work/graphics/mgl/work/mgl2-alpha-020/bin'
gmake: *** [Makefile:4: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/graphics/mgl
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/mgl