=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for mgl-0.2.0anb10 (cd lib; /usr/pkg/bin/gmake depend) gmake[1]: Entering directory '/usr/pkgsrc/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="cc"; 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 ) In file included from emcli.c:45: ./em_comm.h:46:5: warning: '/*' within block comment [-Wcomment] /* args[5] offset */ ^ 1 warning generated. gmake[1]: Leaving directory '/usr/pkgsrc/work/graphics/mgl/work/mgl2-alpha-020/lib' (cd lib; /usr/pkg/bin/gmake ) gmake[1]: Entering directory '/usr/pkgsrc/work/graphics/mgl/work/mgl2-alpha-020/lib' cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o mgl2.xo -c mgl2.c mgl2.c:161:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] mgl_ignore_auto_close() { ^~~~~~~~~~~~~~~~~~~~~ mgl2.c:169:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ mgl2.c:372:43: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat] fprintf(stderr, "%x = dlopen(%s)\n", *handlerp, buf); ~~ ^~~~~~~~~ mgl2.c:725:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] base76_init() { ^~~~~~~~~~~ mgl2.c:772:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ mgl2.c:1088:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if(sscanf(buf, "#MGR%04d%04d%04d", &ver, &w, &h) != 3) { ^~~ /usr/include/stdio.h:260:36: note: passing argument to parameter here int sscanf(const char * __restrict, const char * __restrict, ...) ^ mgl2.c:1269:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (xx = getenv("HOME")) { ~~~^~~~~~~~~~~~~~~~ mgl2.c:1269:13: note: place parentheses around the assignment to silence this warning if (xx = getenv("HOME")) { ^ ( ) mgl2.c:1269:13: note: use '==' to turn this assignment into an equality comparison if (xx = getenv("HOME")) { ^ == 7 warnings generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o recpoint.xo -c recpoint.c recpoint.c:184:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] rp_wrap(struct screen *s) { ^~~~~~~ ./event_man.h:33:18: note: expanded from macro 'rp_wrap' #define rp_wrap em_rp_wrap ^~~~~~~~~~ recpoint.c:199:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 2 warnings generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o event_man.xo -c event_man.c event_man.c:435:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 1 warning generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o mglcol.xo -c mglcol.c cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o imgopt.xo -c imgopt.c imgopt.c:196:36: warning: format specifies type 'char *' but the argument has type 'int *' [-Wformat] if (sscanf(xpm[idx++],"%c %c %7s",&c,&d,&rgb) != 3) return NULL; ~~ ^~ %d imgopt.c:196:39: warning: format specifies type 'char *' but the argument has type 'int *' [-Wformat] if (sscanf(xpm[idx++],"%c %c %7s",&c,&d,&rgb) != 3) return NULL; ~~ ^~ %d imgopt.c:196:42: warning: format specifies type 'char *' but the argument has type 'char (*)[32]' [-Wformat] if (sscanf(xpm[idx++],"%c %c %7s",&c,&d,&rgb) != 3) return NULL; ~~~ ^~~~ 3 warnings generated. cc -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: type specifier missing, defaults to 'int' [-Wimplicit-int] setup_draw_engine(struct draw_engine *self, int hint) { ^~~~~~~~~~~~~~~~~ draw_engine.c:536:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 2 warnings generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o decol4.xo -c decol4.c decol4.c:115:4: warning: implicit declaration of function 'perror' is invalid in C99 [-Wimplicit-function-declaration] perror("malloc"); ^ decol4.c:119:3: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned int)' memset(bitmap,0,ys * wb); ^ decol4.c:119:3: note: please include the header or explicitly provide a declaration for 'memset' decol4.c:161:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = ((struct screen *)(s->bitmap))->bitmap; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ decol4.c:165:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = (char *)s->bitmap; ^ ~~~~~~~~~~~~~~~~~ decol4.c:221:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = ((struct screen *)(s->bitmap))->bitmap; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ decol4.c:225:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = (char *)s->bitmap; ^ ~~~~~~~~~~~~~~~~~ decol4.c:546:3: warning: implicit declaration of function 'mgl_memxor' is invalid in C99 [-Wimplicit-function-declaration] mgl_memxor(p, 0xff, wb); ^ decol4.c:701:3: warning: implicitly declaring library function 'memmove' with type 'void *(void *, const void *, unsigned int)' memmove(dp,sp,len); ^ decol4.c:701:3: note: please include the header or explicitly provide a declaration for 'memmove' decol4.c:710:2: warning: implicit declaration of function 'bitblt_generic' is invalid in C99 [-Wimplicit-function-declaration] bitblt_generic(dst,dx,dy,src,sx,sy,xsize,ysize,op); ^ decol4.c:854:2: warning: implicit declaration of function 'setup_draw_engine' is invalid in C99 [-Wimplicit-function-declaration] setup_draw_engine(&dec4,0); ^ 10 warnings generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o font_engine.xo -c font_engine.c cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o ferom.xo -c ferom.c ferom.c:404:7: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] fd = open(fpath,0); ^ ferom.c:425:17: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'FILE *' (aka 'struct __sFILE *') [-Wint-conversion] fclose(fd); ^~ /usr/include/stdio.h:224:19: note: passing argument to parameter here int fclose(FILE *); ^ ferom.c:456:14: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (fd > 0) close(fd); ^ ferom.c:471:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 4 warnings generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o textscreen.xo -c textscreen.c textscreen.c:64:3: warning: implicit declaration of function 'perror' is invalid in C99 [-Wimplicit-function-declaration] perror("malloc"); ^ 1 warning generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o memory.xo -c memory.c cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o keymap.xo -c keymap.c keymap.c:383:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sym_trans_tab_init() { ^~~~~~~~~~~~~~~~~~ keymap.c:414:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ keymap.c:419:8: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' if (!strcmp(sv_tab[i].sym,name)) { ^ keymap.c:419:8: note: please include the header or explicitly provide a declaration for 'strcmp' keymap.c:426:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ keymap.c:467:6: warning: implicitly declaring library function 'strlen' with type 'unsigned int (const char *)' if (strlen(name) == 1) { ^ keymap.c:467:6: note: please include the header or explicitly provide a declaration for 'strlen' keymap.c:480:2: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' strcpy(sym1,""); ^ keymap.c:480:2: note: please include the header or explicitly provide a declaration for 'strcpy' keymap.c:485:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = find_val(mgl_keymap[code][0])) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keymap.c:485:8: note: place parentheses around the assignment to silence this warning if (p = find_val(mgl_keymap[code][0])) { ^ ( ) keymap.c:485:8: note: use '==' to turn this assignment into an equality comparison if (p = find_val(mgl_keymap[code][0])) { ^ == keymap.c:488:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = find_val(mgl_keymap[code][1])) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keymap.c:488:8: note: place parentheses around the assignment to silence this warning if (p = find_val(mgl_keymap[code][1])) { ^ ( ) keymap.c:488:8: note: use '==' to turn this assignment into an equality comparison if (p = find_val(mgl_keymap[code][1])) { ^ == keymap.c:491:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = find_val(mgl_keymap[code][2])) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ keymap.c:491:8: note: place parentheses around the assignment to silence this warning if (p = find_val(mgl_keymap[code][2])) { ^ ( ) keymap.c:491:8: note: use '==' to turn this assignment into an equality comparison if (p = find_val(mgl_keymap[code][2])) { ^ == keymap.c:613:8: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned int)' if (!strncmp("localtranslate",p,strlen("localtranslate"))) { ^ keymap.c:613:8: note: please include the header or explicitly provide a declaration for 'strncmp' keymap.c:621:43: warning: format specifies type 'char *' but the argument has type 'char (*)[32]' [-Wformat] else if (sscanf(p,"keyboardtype = %30s",&sym1) == 1) { ~~~~ ^~~~~ keymap.c:688:6: warning: implicitly declaring library function 'strcat' with type 'char *(char *, const char *)' strcat(fname,"/keymap"); ^ keymap.c:688:6: note: please include the header or explicitly provide a declaration for 'strcat' keymap.c:691:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(fname,"r")) { ~~~^~~~~~~~~~~~~~~~~~ keymap.c:691:13: note: place parentheses around the assignment to silence this warning if (fp = fopen(fname,"r")) { ^ ( ) keymap.c:691:13: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(fname,"r")) { ^ == keymap.c:699:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(fname,"r")) { ~~~^~~~~~~~~~~~~~~~~~ keymap.c:699:13: note: place parentheses around the assignment to silence this warning if (fp = fopen(fname,"r")) { ^ ( ) keymap.c:699:13: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(fname,"r")) { ^ == keymap.c:721:13: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((sym1 == e[i].tc[0])) { ~~~~~^~~~~~~~~~~~~ keymap.c:721:13: note: remove extraneous parentheses around the comparison to silence this warning if ((sym1 == e[i].tc[0])) { ~ ^ ~ keymap.c:721:13: note: use '=' to turn this equality comparison into an assignment if ((sym1 == e[i].tc[0])) { ^~ = keymap.c:1047:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] mk_dump_keymap(char *s) { ^~~~~~~~~~~~~~ keymap.c:1058:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 17 warnings generated. cc -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:46:5: warning: '/*' within block comment [-Wcomment] /* args[5] offset */ ^ ./em_comm.h:99:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static inline emc_packet_print(char *s,struct emc_packet *p) { ~~~~~~~~~~~~~ ^ ./em_comm.h:115:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ emcli.c:151:3: warning: implicit declaration of function 'vk_mouse_move' is invalid in C99 [-Wimplicit-function-declaration] vk_mouse_move(x,y); ^ emcli.c:155:3: warning: implicit declaration of function 'vk_mouse_up' is invalid in C99 [-Wimplicit-function-declaration] vk_mouse_up(x,y); ^ emcli.c:160:3: warning: implicit declaration of function 'vk_mouse_down' is invalid in C99 [-Wimplicit-function-declaration] vk_mouse_down(x,y); ^ emcli.c:165:4: warning: implicit declaration of function 'em_screen_switch' is invalid in C99 [-Wimplicit-function-declaration] screen_switch(1); ^ ./event_man.h:30:23: note: expanded from macro 'screen_switch' #define screen_switch em_screen_switch ^ emcli.c:287:13: warning: implicit declaration of function 'em_get_key_nodelay' is invalid in C99 [-Wimplicit-function-declaration] int ret = get_key_nodelay(); ^ ./event_man.h:29:25: note: expanded from macro 'get_key_nodelay' #define get_key_nodelay em_get_key_nodelay ^ emcli.c:492:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = getenv("HOME")) { ~~^~~~~~~~~~~~~~~~ emcli.c:492:8: note: place parentheses around the assignment to silence this warning if (p = getenv("HOME")) { ^ ( ) emcli.c:492:8: note: use '==' to turn this assignment into an equality comparison if (p = getenv("HOME")) { ^ == emcli.c:681:2: warning: implicit declaration of function 'em_create_physical_screen' is invalid in C99 [-Wimplicit-function-declaration] create_physical_screen(STK_NATIVE,SCREEN_WIDTH,SCREEN_HEIGHT,NULL); ^ ./event_man.h:50:32: note: expanded from macro 'create_physical_screen' #define create_physical_screen em_create_physical_screen ^ emcli.c:682:2: warning: implicit declaration of function 'em_rp_wrap' is invalid in C99 [-Wimplicit-function-declaration] rp_wrap(physical_screen); ^ ./event_man.h:33:18: note: expanded from macro 'rp_wrap' #define rp_wrap em_rp_wrap ^ emcli.c:490:3: warning: array index 3 is past the end of the array (which contains 3 elements) [-Warray-bounds] mgl_keymap[i][3] = MK_NONE; ^ ~ ./keymap.h:15:1: note: array 'mgl_keymap' declared here extern int mgl_keymap[MGL_KEYMAP_SIZE][3]; /* plain, shifted, alted */ ^ 12 warnings generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o dec3k.xo -c dec3k.c dec3k.c:59:4: warning: implicit declaration of function 'perror' is invalid in C99 [-Wimplicit-function-declaration] perror("malloc"); ^ dec3k.c:63:3: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned int)' memset(bitmap,0,ys * wb); ^ dec3k.c:63:3: note: please include the header or explicitly provide a declaration for 'memset' dec3k.c:104:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = ((struct screen *)(s->bitmap))->bitmap; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dec3k.c:108:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = (char *)s->bitmap; ^ ~~~~~~~~~~~~~~~~~ dec3k.c:389:3: warning: implicit declaration of function 'mgl_memxor2' is invalid in C99 [-Wimplicit-function-declaration] mgl_memxor2(p, 0x0f, wp); ^ dec3k.c:397:3: warning: implicit declaration of function 'mgl_memset2' is invalid in C99 [-Wimplicit-function-declaration] mgl_memset2(p, pen_color, wp); ^ dec3k.c:491:3: warning: implicitly declaring library function 'memmove' with type 'void *(void *, const void *, unsigned int)' memmove(dp,sp,len); ^ dec3k.c:491:3: note: please include the header or explicitly provide a declaration for 'memmove' dec3k.c:582:2: warning: implicit declaration of function 'setup_draw_engine' is invalid in C99 [-Wimplicit-function-declaration] setup_draw_engine(&dec3k,0); ^ 8 warnings generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o dec192.xo -c dec192.c dec192.c:84:4: warning: implicit declaration of function 'perror' is invalid in C99 [-Wimplicit-function-declaration] perror("malloc"); ^ dec192.c:88:3: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned int)' memset(bitmap,0,ys * wb); ^ dec192.c:88:3: note: please include the header or explicitly provide a declaration for 'memset' dec192.c:130:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = ((struct screen *)(s->bitmap))->bitmap; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dec192.c:134:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = (char *)s->bitmap; ^ ~~~~~~~~~~~~~~~~~ dec192.c:187:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = ((struct screen *)(s->bitmap))->bitmap; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dec192.c:191:5: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] p = (char *)s->bitmap; ^ ~~~~~~~~~~~~~~~~~ dec192.c:540:3: warning: implicit declaration of function 'mgl_memxor' is invalid in C99 [-Wimplicit-function-declaration] mgl_memxor(p, 0x3, wb); ^ dec192.c:646:3: warning: implicitly declaring library function 'memmove' with type 'void *(void *, const void *, unsigned int)' memmove(dp,sp,len); ^ dec192.c:646:3: note: please include the header or explicitly provide a declaration for 'memmove' dec192.c:737:2: warning: implicit declaration of function 'setup_draw_engine' is invalid in C99 [-Wimplicit-function-declaration] setup_draw_engine(&dec192,0); ^ 9 warnings generated. cc -g -O -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o emx11.xo -c emx11.c emx11.c:258:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = mgl_getenv("MGL_MAXCOLOR")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ emx11.c:258:8: note: place parentheses around the assignment to silence this warning if (s = mgl_getenv("MGL_MAXCOLOR")) { ^ ( ) emx11.c:258:8: note: use '==' to turn this assignment into an equality comparison if (s = mgl_getenv("MGL_MAXCOLOR")) { ^ == emx11.c:493:10: warning: implicit declaration of function 'em_get_key_nodelay' is invalid in C99 [-Wimplicit-function-declaration] return get_key_nodelay(); ^ ./event_man.h:29:25: note: expanded from macro 'get_key_nodelay' #define get_key_nodelay em_get_key_nodelay ^ emx11.c:837:3: warning: implicit declaration of function 'vk_mouse_move' is invalid in C99 [-Wimplicit-function-declaration] vk_mouse_move(x,y); ^ emx11.c:848:5: warning: implicit declaration of function 'vk_mouse_up' is invalid in C99 [-Wimplicit-function-declaration] vk_mouse_up(x,y); ^ emx11.c:861:5: warning: implicit declaration of function 'vk_mouse_down' is invalid in C99 [-Wimplicit-function-declaration] vk_mouse_down(x,y); ^ emx11.c:1290:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pcolor = (unsigned char *)&ximage_data[i]; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emx11.c:1378:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pcolor = (unsigned char *)&ximage_data[i * 3]; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emx11.c:1473:16: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] pcolor = (unsigned char *)&ximage_data[i * 4]; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. cc -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 '/usr/pkgsrc/work/graphics/mgl/work/mgl2-alpha-020/lib' (cd bin; /usr/pkg/bin/gmake ) gmake[1]: Entering directory '/usr/pkgsrc/work/graphics/mgl/work/mgl2-alpha-020/bin' cc -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:46:5: warning: '/*' within block comment [-Wcomment] /* args[5] offset */ ^ ../lib/em_comm.h:99:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static inline emc_packet_print(char *s,struct emc_packet *p) { ~~~~~~~~~~~~~ ^ ../lib/em_comm.h:115:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../lib/emsvr.c:175:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = conv_screen_from_mgr(icon_nine_num,STK_NATIVE); ^~~~~~~~~~~~~ ../lib/mgl2.h:499:57: note: passing argument to parameter 'buf' here struct screen * mgl_conv_screen_from_mgr(unsigned char *buf,int kind); ^ ../lib/emsvr.c:177:28: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] s = conv_screen_from_mgr(icon_nine,STK_NATIVE); ^~~~~~~~~ ../lib/mgl2.h:499:57: note: passing argument to parameter 'buf' here struct screen * mgl_conv_screen_from_mgr(unsigned char *buf,int kind); ^ ../lib/emsvr.c:199:2: warning: implicit declaration of function 'tb_show' is invalid in C99 [-Wimplicit-function-declaration] tb_show(); ^ ../lib/emsvr.c:481:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] screen_map_print(int i) { ^~~~~~~~~~~~~~~~ ../lib/emsvr.c:495:4: warning: format specifies type 'unsigned int' but the argument has type 'struct screen_window *' [-Wformat] ,m->sw); ^~~~~ ../lib/emsvr.c:496:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../lib/emsvr.c:498:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] screen_map_init(int type) { ^~~~~~~~~~~~~~~ ../lib/emsvr.c:623:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../lib/emsvr.c:652:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] screen_map_focus(int id) { ^~~~~~~~~~~~~~~~ ../lib/emsvr.c:657:19: error: non-void function 'screen_map_focus' should return a value [-Wreturn-type] if (sm_cur->sw) return; ^ ../lib/emsvr.c:669:4: error: non-void function 'screen_map_focus' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:720:7: warning: implicit declaration of function 'screen_map_forground' is invalid in C99 [-Wimplicit-function-declaration] screen_map_forground(m); ^ ../lib/emsvr.c:735:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sw_add_top(struct screen_window *sw) { ^~~~~~~~~~ ../lib/emsvr.c:740:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sw_add(struct screen_window *sw) { ^~~~~~ ../lib/emsvr.c:755:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sw_remove(struct screen_window *sw) { ^~~~~~~~~ ../lib/emsvr.c:758:16: error: non-void function 'sw_remove' should return a value [-Wreturn-type] if (!sw_list) return; ^ ../lib/emsvr.c:775:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sw_free(struct screen_window *sw) { ^~~~~~~ ../lib/emsvr.c:788:3: warning: implicit declaration of function 'tb_detach' is invalid in C99 [-Wimplicit-function-declaration] tb_detach(sw->icon); ^ ../lib/emsvr.c:792:2: warning: implicit declaration of function 'tb_disp' is invalid in C99 [-Wimplicit-function-declaration] tb_disp(); ^ ../lib/emsvr.c:795:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sw_alloc(int fd) { ^~~~~~~~ ../lib/emsvr.c:810:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sw_set_icon(struct screen_window *sw,char *icon) { ^~~~~~~~~~~ ../lib/emsvr.c:819:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] sw->icon = conv_screen_from_mgr(icon_main,STK_NATIVE); ^~~~~~~~~ ../lib/mgl2.h:499:57: note: passing argument to parameter 'buf' here struct screen * mgl_conv_screen_from_mgr(unsigned char *buf,int kind); ^ ../lib/emsvr.c:821:36: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] sw->icon = conv_screen_from_mgr(icon_mini,STK_NATIVE); ^~~~~~~~~ ../lib/mgl2.h:499:57: note: passing argument to parameter 'buf' here struct screen * mgl_conv_screen_from_mgr(unsigned char *buf,int kind); ^ ../lib/emsvr.c:835:35: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] sw->icon = conv_screen_from_mgr(icon,STK_NATIVE); ^~~~ ../lib/mgl2.h:499:57: note: passing argument to parameter 'buf' here struct screen * mgl_conv_screen_from_mgr(unsigned char *buf,int kind); ^ ../lib/emsvr.c:838:4: error: non-void function 'sw_set_icon' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:842:3: warning: implicit declaration of function 'tb_change' is invalid in C99 [-Wimplicit-function-declaration] tb_change(sw->icon,old); ^ ../lib/emsvr.c:845:3: warning: implicit declaration of function 'tb_attach' is invalid in C99 [-Wimplicit-function-declaration] tb_attach(sw->icon,MK_ICON(sw->fd),0); ^ ../lib/emsvr.c:850:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_forground(int fd) { ^~~~~~~~~~~~ ../lib/emsvr.c:861:5: warning: implicit declaration of function 'set_focus' is invalid in C99 [-Wimplicit-function-declaration] set_focus(i); ^ ../lib/emsvr.c:863:5: warning: implicit declaration of function 'sw_forground' is invalid in C99 [-Wimplicit-function-declaration] sw_forground(sw,1); ^ ../lib/emsvr.c:871:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_disp() { ^~~~~~~ ../lib/emsvr.c:873:3: warning: implicit declaration of function 'tb_set_focus' is invalid in C99 [-Wimplicit-function-declaration] tb_set_focus(sm_cur->sw->icon, sm_cur->sw->type == AT_MAIN); ^ ../lib/emsvr.c:919:4: error: non-void function 'sw_recv' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:947:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] screen_map_forground(struct screen_map *m) { ^~~~~~~~~~~~~~~~~~~~ ../lib/emsvr.c:952:3: error: non-void function 'screen_map_forground' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:968:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] screen_map_background(struct screen_map *m) { ^~~~~~~~~~~~~~~~~~~~~ ../lib/emsvr.c:979:3: error: non-void function 'screen_map_background' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:989:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] sw_forground(struct screen_window *sw,int force) { ^~~~~~~~~~~~ ../lib/emsvr.c:994:34: error: non-void function 'sw_forground' should return a value [-Wreturn-type] if (sw->stat != SWS_BACKGROUND) return; ^ ../lib/emsvr.c:1007:5: error: non-void function 'sw_forground' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1016:4: error: non-void function 'sw_forground' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1019:14: error: non-void function 'sw_forground' should return a value [-Wreturn-type] if (!force) return; ^ ../lib/emsvr.c:1026:4: error: non-void function 'sw_forground' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1031:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] execute_client_req(struct screen_window *sw) { ^~~~~~~~~~~~~~~~~~ ../lib/emsvr.c:1038:3: error: non-void function 'execute_client_req' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1046:4: error: non-void function 'execute_client_req' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1057:6: error: non-void function 'execute_client_req' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1103:4: error: non-void function 'execute_client_req' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1113:4: error: non-void function 'execute_client_req' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1123:4: warning: implicit declaration of function 'em_rec_point' is invalid in C99 [-Wimplicit-function-declaration] em_rec_point(current_screen ^ ../lib/emsvr.c:1286:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] execute_send_event() { ^~~~~~~~~~~~~~~~~~ ../lib/emsvr.c:1319:4: warning: implicit declaration of function 'draw_clock' is invalid in C99 [-Wimplicit-function-declaration] draw_clock(clock_image); ^ ../lib/emsvr.c:1358:4: error: non-void function 'execute_send_event' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1363:4: error: non-void function 'execute_send_event' should return a value [-Wreturn-type] return; ^ ../lib/emsvr.c:1371:4: warning: implicit declaration of function 'tb_mouse' is invalid in C99 [-Wimplicit-function-declaration] tb_mouse(x,y); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 39 warnings and 20 errors generated. ../lib/taskbar.c:66:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_free(struct tb_cell *p) { ^~~~~~~ ../lib/taskbar.c:69:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../lib/taskbar.c:83:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_insert(struct tb_cell *new,int space) { ^~~~~~~~~ ../lib/taskbar.c:96:3: error: non-void function 'tb_insert' should return a value [-Wreturn-type] return; ^ ../lib/taskbar.c:121:14: error: non-void function 'tb_insert' should return a value [-Wreturn-type] if (!p) return; ^ ../lib/taskbar.c:127:6: error: non-void function 'tb_insert' should return a value [-Wreturn-type] return; ^ ../lib/taskbar.c:222:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_detach(struct screen *s) { ^~~~~~~~~ ../lib/taskbar.c:225:10: error: non-void function 'tb_detach' should return a value [-Wreturn-type] if (!s) return; ^ ../lib/taskbar.c:233:10: error: non-void function 'tb_detach' should return a value [-Wreturn-type] if (!p) return; ^ ../lib/taskbar.c:245:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_change(struct screen *new,struct screen *old) { ^~~~~~~~~ ../lib/taskbar.c:248:20: error: non-void function 'tb_change' should return a value [-Wreturn-type] if (!old || !new) return; ^ ../lib/taskbar.c:255:10: error: non-void function 'tb_change' should return a value [-Wreturn-type] if (!p) return; ^ ../lib/taskbar.c:259:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_set_focus(struct screen *s,int mode) { ^~~~~~~~~~~~ ../lib/taskbar.c:262:10: error: non-void function 'tb_set_focus' should return a value [-Wreturn-type] if (!s) return; ^ ../lib/taskbar.c:274:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_mouse(int x,int y) { ^~~~~~~~ ../lib/taskbar.c:291:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_attach(struct screen *s,int key,int where) { ^~~~~~~~~ ../lib/taskbar.c:294:10: error: non-void function 'tb_attach' should return a value [-Wreturn-type] if (!s) return; ^ ../lib/taskbar.c:298:4: error: non-void function 'tb_attach' should return a value [-Wreturn-type] return; ^ ../lib/taskbar.c:305:10: error: non-void function 'tb_attach' should return a value [-Wreturn-type] if (!p) return; ^ ../lib/taskbar.c:311:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_show() { ^~~~~~~ ../lib/taskbar.c:346:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] tb_init(int x,int y,int xs,int ys) { ^~~~~~~ 10 warnings and 11 errors generated. Makefile:21: recipe for target 'mglsvrcons' failed gmake[1]: *** [mglsvrcons] Error 1 gmake[1]: Leaving directory '/usr/pkgsrc/work/graphics/mgl/work/mgl2-alpha-020/bin' Makefile:3: recipe for target 'all' failed gmake: *** [all] Error 2 *** Error code 2 Stop. bmake: stopped in /usr/pkgsrc/graphics/mgl *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/graphics/mgl