=> Bootstrap dependency digest>=20010302: found digest-20111104
=> Bootstrap dependency fetch-[0-9]*: found fetch-1.7
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for mg2a-1.11nb1
--- ttydef.h ---
--- sysdef.h ---
--- chrdef.h ---
--- cinfo.c ---
--- spawn.c ---
--- ttyio.c ---
--- tty.c ---
--- ttykbd.c ---
--- fileio.c ---
--- basic.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c basic.c
--- dir.o ---
--- file.o ---
--- line.o ---
--- match.o ---
--- dir.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c dir.c
--- file.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c file.c
--- line.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c line.c
--- match.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c match.c
--- line.o ---
line.c: In function 'lalloc':
line.c:60:19: warning: incompatible implicit declaration of built-in function 'malloc'
line.c: In function 'lfree':
line.c:127:2: warning: incompatible implicit declaration of built-in function 'free'
line.c: In function 'linsert':
line.c:226:3: warning: incompatible implicit declaration of built-in function 'free'
line.c: In function 'lnewline':
line.c:289:14: warning: incompatible implicit declaration of built-in function 'bcopy'
line.c: In function 'ldelete':
line.c:355:4: warning: incompatible implicit declaration of built-in function 'bcopy'
line.c:360:4: warning: incompatible implicit declaration of built-in function 'bcopy'
line.c: In function 'ldelnewline':
line.c:407:3: warning: incompatible implicit declaration of built-in function 'bcopy'
line.c:423:3: warning: incompatible implicit declaration of built-in function 'free'
line.c:428:2: warning: incompatible implicit declaration of built-in function 'bcopy'
line.c:450:2: warning: incompatible implicit declaration of built-in function 'free'
line.c: In function 'lreplace':
line.c:495:9: warning: incompatible implicit declaration of built-in function 'strlen'
line.c: In function 'kdelete':
line.c:544:3: warning: incompatible implicit declaration of built-in function 'free'
--- file.o ---
file.c: In function 'findbuffer':
file.c:100:15: warning: incompatible implicit declaration of built-in function 'strlen'
--- line.o ---
line.c: In function 'kgrow':
line.c:584:13: warning: incompatible implicit declaration of built-in function 'malloc'
line.c:589:2: warning: incompatible implicit declaration of built-in function 'bcopy'
line.c:591:3: warning: incompatible implicit declaration of built-in function 'free'
--- file.o ---
file.c: In function 'insertfile':
file.c:201:3: warning: incompatible implicit declaration of built-in function 'bcopy'
file.c:216:13: warning: incompatible implicit declaration of built-in function 'malloc'
file.c:220:19: warning: incompatible implicit declaration of built-in function 'free'
file.c:225:8: warning: incompatible implicit declaration of built-in function 'free'
file.c:231:5: warning: incompatible implicit declaration of built-in function 'free'
file.c: In function 'writeout':
file.c:474:13: warning: incompatible implicit declaration of built-in function 'strlen'
file.c:480:43: warning: incompatible implicit declaration of built-in function 'strrchr'
--- paragraph.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c paragraph.c
--- random.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c random.c
--- region.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c region.c
--- version.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c version.c
--- window.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c window.c
--- word.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c word.c
--- search.o ---
--- window.o ---
window.c: In function 'onlywind':
window.c:145:3: warning: incompatible implicit declaration of built-in function 'free'
window.c:156:3: warning: incompatible implicit declaration of built-in function 'free'
--- search.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c search.c
--- window.o ---
window.c: In function 'splitwind':
window.c:192:22: warning: incompatible implicit declaration of built-in function 'malloc'
window.c: In function 'delwind':
window.c:377:2: warning: incompatible implicit declaration of built-in function 'free'
--- regex.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c regex.c
--- re_search.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c re_search.c
--- kbd.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c kbd.c
--- search.o ---
search.c: In function 'isearch':
search.c:209:11: warning: incompatible implicit declaration of built-in function 'strlen'
search.c: In function 'is_find':
search.c:371:9: warning: incompatible implicit declaration of built-in function 'strlen'
search.c: In function 'queryrepl':
search.c:459:9: warning: incompatible implicit declaration of built-in function 'strlen'
--- macro.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c macro.c
--- main.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c main.c
--- buffer.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c buffer.c
--- kbd.o ---
kbd.c: In function 'selfinsert':
kbd.c:332:3: warning: incompatible implicit declaration of built-in function 'bcopy'
kbd.c:335:3: warning: incompatible implicit declaration of built-in function 'free'
--- macro.o ---
macro.c: In function 'definemacro':
macro.c:26:3: warning: incompatible implicit declaration of built-in function 'free'
macro.c:28:6: warning: incompatible implicit declaration of built-in function 'free'
--- display.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c display.c
--- main.o ---
main.c: In function 'getrc':
main.c:36:13: warning: incompatible implicit declaration of built-in function 'strrchr'
main.c:38:32: warning: incompatible implicit declaration of built-in function 'strchr'
--- buffer.o ---
buffer.c: In function 'killbuffer':
buffer.c:112:49: warning: comparison between pointer and integer
buffer.c:118:2: warning: incompatible implicit declaration of built-in function 'free'
buffer.c: In function 'addline':
buffer.c:282:10: warning: incompatible implicit declaration of built-in function 'strlen'
buffer.c: In function 'bfind':
buffer.c:342:9: warning: conflicting types for built-in function 'malloc'
buffer.c:361:37: warning: incompatible implicit declaration of built-in function 'strlen'
buffer.c:363:3: warning: incompatible implicit declaration of built-in function 'free'
buffer.c:367:3: warning: incompatible implicit declaration of built-in function 'free'
--- keymap.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c keymap.c
--- modes.o ---
--- dired.o ---
--- modes.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c modes.c
--- dired.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c dired.c
--- display.o ---
display.c: In function 'ucopy':
display.c:499:2: warning: incompatible implicit declaration of built-in function 'bcopy'
--- extend.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c extend.c
--- help.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c help.c
--- echo.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c echo.c
--- cinfo.o ---
--- spawn.o ---
--- cinfo.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c cinfo.c
--- spawn.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c spawn.c
--- echo.o ---
echo.c: In function 'eyesno':
echo.c:86:8: warning: incompatible implicit declaration of built-in function 'free'
echo.c: In function 'veread':
echo.c:147:6: warning: incompatible implicit declaration of built-in function 'bcopy'
echo.c:192:8: warning: incompatible implicit declaration of built-in function 'bcopy'
echo.c: In function 'complt':
echo.c:366:11: warning: incompatible implicit declaration of built-in function 'strlen'
--- cinfo.o ---
cinfo.c: In function 'keyname':
cinfo.c:134:17: warning: incompatible implicit declaration of built-in function 'strlen'
--- spawn.o ---
spawn.c: In function 'spawncli':
spawn.c:72:3: warning: 'sigsetmask' is deprecated (declared at /usr/include/signal.h:199)
spawn.c:74:3: warning: 'sigsetmask' is deprecated (declared at /usr/include/signal.h:199)
spawn.c:85:4: warning: incompatible implicit declaration of built-in function 'execl'
spawn.c:86:4: warning: incompatible implicit declaration of built-in function '_exit'
--- ttyio.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c ttyio.c
--- tty.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c tty.c
--- ttykbd.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c ttykbd.c
--- fileio.o ---
gcc -g -DDO_METAKEY -DPREFIXREGION -DSTARTUPFILE=\"mg.rc\" -DNO_BACKUP -DSYMBLINK  -c fileio.c
--- ttyio.o ---
ttyio.c: In function 'ttopen':
ttyio.c:55:3: warning: incompatible implicit declaration of built-in function 'exit'
ttyio.c: In function 'ttraw':
ttyio.c:71:15: error: 'TIOCGETP' undeclared (first use in this function)
ttyio.c:71:15: note: each undeclared identifier is reported only once for each function it appears in
ttyio.c:75:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:75:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:76:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:76:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:77:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:77:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:78:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:78:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:79:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:79:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:80:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:80:23: error: 'ECHO' undeclared (first use in this function)
ttyio.c:80:28: error: 'CRMOD' undeclared (first use in this function)
ttyio.c:84:2: error: invalid use of undefined type 'struct sgttyb'
ttyio.c:84:21: error: 'RAW' undeclared (first use in this function)
ttyio.c:84:25: error: 'ANYP' undeclared (first use in this function)
ttyio.c:86:15: error: 'TIOCSETP' undeclared (first use in this function)
ttyio.c:90:15: error: 'TIOCGETC' undeclared (first use in this function)
ttyio.c:94:2: error: invalid use of undefined type 'struct tchars'
ttyio.c:95:2: error: invalid use of undefined type 'struct tchars'
ttyio.c:100:2: error: invalid use of undefined type 'struct tchars'
ttyio.c:101:2: error: invalid use of undefined type 'struct tchars'
ttyio.c:103:2: error: invalid use of undefined type 'struct tchars'
ttyio.c:104:2: error: invalid use of undefined type 'struct tchars'
ttyio.c:105:15: error: 'TIOCSETC' undeclared (first use in this function)
ttyio.c:109:15: error: 'TIOCGLTC' undeclared (first use in this function)
ttyio.c:113:2: error: invalid use of undefined type 'struct ltchars'
ttyio.c:114:2: error: invalid use of undefined type 'struct ltchars'
ttyio.c:115:2: error: invalid use of undefined type 'struct ltchars'
ttyio.c:116:2: error: invalid use of undefined type 'struct ltchars'
ttyio.c:117:2: error: invalid use of undefined type 'struct ltchars'
ttyio.c:118:2: error: invalid use of undefined type 'struct ltchars'
ttyio.c:119:15: error: 'TIOCSLTC' undeclared (first use in this function)
ttyio.c: In function 'ttcooked':
ttyio.c:146:15: error: 'TIOCSLTC' undeclared (first use in this function)
ttyio.c:150:15: error: 'TIOCSETC' undeclared (first use in this function)
ttyio.c:154:15: error: 'TIOCSETP' undeclared (first use in this function)
ttyio.c: In function 'panic':
ttyio.c:240:2: warning: incompatible implicit declaration of built-in function 'exit'
ttyio.c: In function 'ttwait':
ttyio.c:257:2: warning: passing argument 2 of 'select' from incompatible pointer type
/usr/include/sys/select.h:109:12: note: expected 'struct fd_set * __restrict__' but argument is of type 'int *'
ttyio.c:257:2: warning: passing argument 3 of 'select' from incompatible pointer type
/usr/include/sys/select.h:109:12: note: expected 'struct fd_set * __restrict__' but argument is of type 'int *'
ttyio.c:257:2: warning: passing argument 4 of 'select' from incompatible pointer type
/usr/include/sys/select.h:109:12: note: expected 'struct fd_set * __restrict__' but argument is of type 'int *'
*** [ttyio.o] Error code 1

bmake: stopped in /tmp/pkgsrc/editors/mg2a/work/mg2a
--- fileio.o ---
fileio.c: In function 'ffropen':
fileio.c:19:25: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c: In function 'ffwopen':
fileio.c:36:25: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c: In function 'adjustname':
fileio.c:187:14: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c:196:18: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c:199:13: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c:206:17: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c: In function 'startupfile':
fileio.c:292:6: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c: In function 'dired_':
fileio.c:366:16: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c: In function 'd_makename':
fileio.c:406:15: warning: incompatible implicit declaration of built-in function 'strlen'
fileio.c:407:5: warning: incompatible implicit declaration of built-in function 'bcopy'
1 error

bmake: stopped in /tmp/pkgsrc/editors/mg2a/work/mg2a
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/editors/mg2a
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/editors/mg2a