=> Bootstrap dependency digest>=20010302: found digest-20111104
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for mgl-0.2.0anb9
(cd lib; /usr/pkg/bin/gmake depend)
gmake[1]: Entering directory `/scratch/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 `/scratch/graphics/mgl/work/mgl2-alpha-020/lib'
(cd lib; /usr/pkg/bin/gmake  )
gmake[1]: Entering directory `/scratch/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
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o recpoint.xo -c recpoint.c
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o event_man.xo -c event_man.c
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
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:119:3: warning: incompatible implicit declaration of built-in function 'memset'
decol4.c: In function 'dec4_draw_line_horizontal':
decol4.c:564:3: warning: incompatible implicit declaration of built-in function 'memset'
decol4.c: In function 'dec4_clear_screen':
decol4.c:639:7: warning: incompatible implicit declaration of built-in function 'memset'
decol4.c: In function 'dec4_bitblt_copy':
decol4.c:701:3: warning: incompatible implicit declaration of built-in function 'memmove'
decol4.c: In function 'dec4_bitblt_scroll_forward':
decol4.c:757:3: warning: incompatible implicit declaration of built-in function 'memmove'
decol4.c: In function 'dec4_bitblt_scroll_backward':
decol4.c:815:3: warning: incompatible implicit declaration of built-in function 'memmove'
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:425:10: warning: passing argument 1 of 'fclose' makes pointer from integer without a cast
/usr/include/stdio.h:224:6: note: expected 'struct FILE *' but argument is of type 'int'
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o textscreen.xo -c textscreen.c
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: In function 'find_sym':
keymap.c:467:6: warning: incompatible implicit declaration of built-in function 'strlen'
keymap.c: In function 'mgl_get_keymap':
keymap.c:480:2: warning: incompatible implicit declaration of built-in function 'strcpy'
keymap.c: In function 'mk_load_keymap':
keymap.c:613:35: warning: incompatible implicit declaration of built-in function 'strlen'
keymap.c:630:16: warning: incompatible implicit declaration of built-in function 'strcpy'
keymap.c: In function 'mk_init_keymap':
keymap.c:687:6: warning: incompatible implicit declaration of built-in function 'strcpy'
keymap.c:688:6: warning: incompatible implicit declaration of built-in function 'strcat'
keymap.c:697:6: warning: incompatible implicit declaration of built-in function 'strcpy'
keymap.c:698:6: warning: incompatible implicit declaration of built-in function 'strcat'
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o emcli.xo -c emcli.c
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:63:3: warning: incompatible implicit declaration of built-in function 'memset'
dec3k.c: In function 'dec3k_bitblt_copy':
dec3k.c:491:3: warning: incompatible implicit declaration of built-in function 'memmove'
dec3k.c: In function 'dec3k_bitblt_scroll_forward':
dec3k.c:519:3: warning: incompatible implicit declaration of built-in function 'memmove'
dec3k.c: In function 'dec3k_bitblt_scroll_backward':
dec3k.c:549:3: warning: incompatible implicit declaration of built-in function 'memmove'
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:88:3: warning: incompatible implicit declaration of built-in function 'memset'
dec192.c: In function 'dec192_draw_line_horizontal':
dec192.c:551:3: warning: incompatible implicit declaration of built-in function 'memset'
dec192.c: In function 'dec192_clear_screen':
dec192.c:609:7: warning: incompatible implicit declaration of built-in function 'memset'
dec192.c: In function 'dec192_bitblt_copy':
dec192.c:646:3: warning: incompatible implicit declaration of built-in function 'memmove'
dec192.c: In function 'dec192_bitblt_scroll_forward':
dec192.c:674:3: warning: incompatible implicit declaration of built-in function 'memmove'
dec192.c: In function 'dec192_bitblt_scroll_backward':
dec192.c:704:3: warning: incompatible implicit declaration of built-in function 'memmove'
gcc -g -O  -I/usr/pkg/include -I/usr/X11R7/include -fPIC -DPIC -o emx11.xo -c emx11.c
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 `/scratch/graphics/mgl/work/mgl2-alpha-020/lib'
(cd bin; /usr/pkg/bin/gmake  )
gmake[1]: Entering directory `/scratch/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
gcc -g -o mglcalibrate -g -O -I../lib -I../lib -I/usr/X11R7/include mglcalibrate.c -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
mglcalibrate.c: In function 'draw_plus':
mglcalibrate.c:60:2: warning: incompatible implicit declaration of built-in function 'sprintf'
mglcalibrate.c: In function 'main':
mglcalibrate.c:77:3: warning: incompatible implicit declaration of built-in function 'exit'
mglcalibrate.c:101:3: warning: incompatible implicit declaration of built-in function 'exit'
mglcalibrate.c:150:2: warning: incompatible implicit declaration of built-in function 'exit'
In file included from mglcalibrate.c:160:0:
mra.c: At top level:
mra.c:31:0: warning: "int64_t" redefined
/usr/include/sys/types.h:85:0: note: this is the location of the previous definition
gcc -g -O -I../lib -I../lib -I/usr/X11R7/include -fPIC -DPIC -o imsoft.po -c imsoft.c
imsoft.c: In function 'conv_keyname':
imsoft.c:153:5: warning: incompatible implicit declaration of built-in function 'strcpy'
imsoft.c: In function 'create_keymap':
imsoft.c:184:2: warning: incompatible implicit declaration of built-in function 'strcpy'
imsoft.c:211:10: warning: incompatible implicit declaration of built-in function 'strlen'
gcc -shared -o imsoft.so imsoft.po \
	-L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
gcc -g -O -I../lib -I../lib -I/usr/X11R7/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2    mgl_fontinfo.c   -o mgl_fontinfo
mgl_fontinfo.c: In function 'main':
mgl_fontinfo.c:154:11: warning: incompatible implicit declaration of built-in function 'strlen'
mgl_fontinfo.c:158:11: warning: incompatible implicit declaration of built-in function 'strcpy'
gcc -g -O -I../lib -I../lib -I/usr/X11R7/include -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2    bdftomgl.c   -o bdftomgl
bdftomgl.c: In function 'main':
bdftomgl.c:64:2: warning: incompatible implicit declaration of built-in function 'memset'
gmake[1]: Leaving directory `/scratch/graphics/mgl/work/mgl2-alpha-020/bin'
(cd mgterm; /usr/pkg/bin/gmake  )
gmake[1]: Entering directory `/scratch/graphics/mgl/work/mgl2-alpha-020/mgterm'
gcc -g -DJISX0201 -O -I.. -DAPP_DYNAMIC -DMGLDIR=\"/usr/pkg/lib/mgl2\" -I../lib -DGET_KEY_IM -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include  -c -o mdate.o mdate.c
gcc -g -DJISX0201 -O -I.. -DAPP_DYNAMIC -DMGLDIR=\"/usr/pkg/lib/mgl2\" -I../lib -DGET_KEY_IM -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include  -c -o mgterm.o mgterm.c
gcc -g -DJISX0201 -O -I.. -DAPP_DYNAMIC -DMGLDIR=\"/usr/pkg/lib/mgl2\" -I../lib -DGET_KEY_IM -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include  -c -o vt.o vt.c
gcc -o mgterm mdate.o mgterm.o vt.o -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2   -lkvm
gcc  -g -DJISX0201 -O -I.. -DAPP_DYNAMIC -DMGLDIR=\"/usr/pkg/lib/mgl2\" -I../lib -DGET_KEY_IM -o mdate -DMINIAPLI mdate.c -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2   -lkvm
gcc  -g -DJISX0201 -O -I.. -DAPP_DYNAMIC -DMGLDIR=\"/usr/pkg/lib/mgl2\" -I../lib -DGET_KEY_IM -o msame -DMINIAPLI msame.c -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
msame.c: In function 'show_all':
msame.c:356:3: warning: passing argument 1 of 'time' from incompatible pointer type
/usr/include/time.h:97:8: note: expected 'time_t *' but argument is of type 'long int *'
gcc  -g -DJISX0201 -O -I.. -DAPP_DYNAMIC -DMGLDIR=\"/usr/pkg/lib/mgl2\" -I../lib -DGET_KEY_IM -o mcalc -DMINIAPLI mcalc.c -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
mcalc.c: In function 'cnum_to_str':
mcalc.c:186:2: warning: incompatible implicit declaration of built-in function 'memset'
mcalc.c: In function 'main':
mcalc.c:292:4: warning: incompatible implicit declaration of built-in function 'exit'
mcalc.c: In function 'mcalc':
mcalc.c:404:3: warning: incompatible implicit declaration of built-in function 'exit'
gcc -c -fPIC -DPIC -g -DJISX0201 -O -I.. -DAPP_DYNAMIC -DMGLDIR=\"/usr/pkg/lib/mgl2\" -I../lib -DGET_KEY_IM mcalc.c -o mcalc.po
mcalc.c: In function 'cnum_to_str':
mcalc.c:186:2: warning: incompatible implicit declaration of built-in function 'memset'
gcc -shared -o mcalc.so mcalc.po -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2   -lm
gcc -c -fPIC -DPIC -g -DJISX0201 -O -I.. -DAPP_DYNAMIC -DMGLDIR=\"/usr/pkg/lib/mgl2\" -I../lib -DGET_KEY_IM msame.c -o msame.po
msame.c: In function 'show_all':
msame.c:356:3: warning: passing argument 1 of 'time' from incompatible pointer type
/usr/include/time.h:97:8: note: expected 'time_t *' but argument is of type 'long int *'
gcc -shared -o msame.so msame.po -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
(cd ../mil ; /usr/pkg/bin/gmake mini_mil.so)
gmake[2]: Entering directory `/scratch/graphics/mgl/work/mgl2-alpha-020/mil'
gcc -c -fPIC -DPIC -I../lib -g -O -DUSE_JPEG -DUSE_GIF -DUSE_PNG -I/usr/pkg/lib/mgl2 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -DMINI -o mil.po mil.c 
gcc -o mini_mil.so mil.po -shared -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -ljpeg -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lgif -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lpng 
gmake[2]: Leaving directory `/scratch/graphics/mgl/work/mgl2-alpha-020/mil'
mv ../mil/mini_mil.so ./
gmake[1]: Leaving directory `/scratch/graphics/mgl/work/mgl2-alpha-020/mgterm'
(cd mil; /usr/pkg/bin/gmake  )
gmake[1]: Entering directory `/scratch/graphics/mgl/work/mgl2-alpha-020/mil'
gcc -I../lib -g -O -DUSE_JPEG -DUSE_GIF -DUSE_PNG -I/usr/pkg/lib/mgl2 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -o mil mil.c -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -ljpeg -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lgif -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lpng 
gcc -I../lib -g -O -DUSE_JPEG -DUSE_GIF -DUSE_PNG -I/usr/pkg/lib/mgl2 -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -DMINI -DEXECUTABLE_MINI -o mini_mil mil.c \
	-L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -ljpeg -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lgif -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lpng
gmake[1]: Leaving directory `/scratch/graphics/mgl/work/mgl2-alpha-020/mil'
(cd demos; /usr/pkg/bin/gmake  )
gmake[1]: Entering directory `/scratch/graphics/mgl/work/mgl2-alpha-020/demos'
gcc -g -O -I../lib  -I../xui -o mgldemo mgldemo.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
gcc -g -O -I../lib  -I../xui -o showcol showcol.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
showcol.c: In function 'main':
showcol.c:118:2: warning: incompatible implicit declaration of built-in function 'exit'
gcc -g -O -I../lib  -I../xui -o paicol paicol.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
gcc -g -O -I../lib  -I../xui -o pai16 pai16.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
gcc -g -O -I../lib  -I../xui -o iconedit iconedit.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
iconedit.c: In function 'read_screen_xpm':
iconedit.c:502:8: warning: incompatible implicit declaration of built-in function 'strstr'
iconedit.c:517:8: warning: incompatible implicit declaration of built-in function 'strlen'
iconedit.c:519:4: warning: incompatible implicit declaration of built-in function 'strcpy'
iconedit.c: In function 'main':
iconedit.c:876:3: warning: incompatible implicit declaration of built-in function 'exit'
gcc -g -O -I../lib  -I../xui -o mglbench mglbench.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
mglbench.c: In function 'main':
mglbench.c:66:8: warning: incompatible implicit declaration of built-in function 'printf'
mglbench.c:70:1: warning: incompatible implicit declaration of built-in function 'printf'
mglbench.c:81:3: warning: incompatible implicit declaration of built-in function 'printf'
mglbench.c:87:2: warning: incompatible implicit declaration of built-in function 'printf'
mglbench.c: In function 'scroll_bench':
mglbench.c:158:2: warning: incompatible implicit declaration of built-in function 'printf'
mglbench.c: In function 'fill_bench':
mglbench.c:183:2: warning: incompatible implicit declaration of built-in function 'printf'
mglbench.c: In function 'dither_bench':
mglbench.c:205:2: warning: incompatible implicit declaration of built-in function 'printf'
mglbench.c: In function 'font_bench':
mglbench.c:242:2: warning: incompatible implicit declaration of built-in function 'printf'
mglbench.c: In function 'convert_bench':
mglbench.c:261:2: warning: incompatible implicit declaration of built-in function 'printf'
gcc -g -O -I../lib  -I../xui -o mgldialog mgldialog.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
mgldialog.c: In function 'main':
mgldialog.c:39:4: warning: incompatible implicit declaration of built-in function 'exit'
mgldialog.c:69:2: warning: incompatible implicit declaration of built-in function 'exit'
gcc -g -O -I../lib  -I../xui -o imcdemo imcdemo.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
gcc -g -O -I../lib  -I../xui -o vkdemo vkdemo.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
vkdemo.c: In function 'conv_keyname':
vkdemo.c:134:5: warning: incompatible implicit declaration of built-in function 'strcpy'
vkdemo.c: In function 'create_keymap':
vkdemo.c:165:2: warning: incompatible implicit declaration of built-in function 'strcpy'
vkdemo.c:191:10: warning: incompatible implicit declaration of built-in function 'strlen'
gcc -g -O -I../lib  -I../xui -o tap tap.c  -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2  
tap.c: In function 'draw_plus':
tap.c:34:2: warning: incompatible implicit declaration of built-in function 'sprintf'
tap.c: In function 'main':
tap.c:46:3: warning: incompatible implicit declaration of built-in function 'exit'
gcc -g -O -I../lib  -I../xui -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2    rawdemo.c   -o rawdemo
gcc -g -O -I../lib  -I../xui -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2    tmdemo.c   -o tmdemo
gcc -g -O -I../lib  -I../xui -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -g -L../lib -rdynamic -Wl,-rpath,/usr/X11R7/lib -L/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2    mousetest.c   -o mousetest
mousetest.c: In function 'main':
mousetest.c:68:4: warning: incompatible implicit declaration of built-in function 'sprintf'
gmake[1]: Leaving directory `/scratch/graphics/mgl/work/mgl2-alpha-020/demos'
(cd nine; /usr/pkg/bin/gmake  )
gmake[1]: Entering directory `/scratch/graphics/mgl/work/mgl2-alpha-020/nine'
sh ./genform.sh -l | \
sed -e 's/\(return KEYCODE_[^;][^;]*;\)/YY_FLUSH_BUFFER ;\1/g' \
 > pattern.txt
sh ./genpattern.sh > pattern.l
flex -l pattern.l
patch < lex.yy.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- lex.yy.c.org	Sat Dec 30 11:53:39 2000
|+++ lex.yy.c	Sat Dec 30 11:54:16 2000
--------------------------
Patching file lex.yy.c using Plan A...
Reversed (or previously applied) patch detected!  Assume -R? [y] [1]   Terminated              patch <lex.yy.patch
gmake[1]: *** [lex.yy.c] Error 143
gmake[1]: Leaving directory `/scratch/graphics/mgl/work/mgl2-alpha-020/nine'
gmake: *** [all] Error 2
*** Error code 2

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

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