=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for Canna-lib-3.6pl4nb3 making all in ./lib... making all in lib/RK... rm -f tempdic.o cc -c -O -I../../include -I/usr/pkg/include tempdic.c tempdic.c:148:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] yomi_equal(x, y, n) ^ tempdic.c:252:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] enterTD(dm, td, gram, word) ^ tempdic.c:430:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] if (close(open(file, 0))) ^ tempdic.c:430:15: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if (close(open(file, 0))) ^ tempdic.c:599:17: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] tmpres = write(fdes, line, sz); ^ tempdic.c:677:12: warning: implicit declaration of function 'creat' is invalid in C99 [-Wimplicit-function-declaration] fdes = creat(backup, (unsigned)0666); ^ 6 warnings generated. rm -f permdic.o cc -c -O -I../../include -I/usr/pkg/include permdic.c permdic.c:96:13: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if ((fd = open(dfnm, 0)) == -1) ^ permdic.c:126:36: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if (lseek(fd, off, 0) < 0 || read(fd, (char *)ll, 4) != 4) ^ permdic.c:157:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void)close(fd); ^ permdic.c:447:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] readThisCache(dm, xdm, pgno, val, key, cur, ylen, nread, mc, nc, cf) ^ 4 warnings generated. rm -f dicsw.o cc -c -O -I../../include -I/usr/pkg/include dicsw.c dicsw.c:30:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rkpopen pro((struct DM *, char *, int, struct RkKxGram *)); ~~~~~~ ^ dicsw.c:31:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rkpclose pro((struct DM *, char *, struct RkKxGram *)); ~~~~~~ ^ dicsw.c:32:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rkpsearch ~~~~~~ ^ dicsw.c:35:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rkpio pro((struct DM *, struct ncache *, int)); ~~~~~~ ^ dicsw.c:36:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rkpctl ~~~~~~ ^ dicsw.c:38:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rkpsync pro((struct RkContext *, struct DM *, struct DM *)); ~~~~~~ ^ dicsw.c:40:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rktopen pro((struct DM *, char *, int, struct RkKxGram *)); ~~~~~~ ^ dicsw.c:41:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rktclose pro((struct DM *, char *, struct RkKxGram *)); ~~~~~~ ^ dicsw.c:42:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rktsearch ~~~~~~ ^ dicsw.c:45:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rktio pro((struct DM *, struct ncache *, int)); ~~~~~~ ^ dicsw.c:46:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rktctl ~~~~~~ ^ dicsw.c:48:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern _Rktsync pro((struct RkContext *, struct DM *, struct DM *)); ~~~~~~ ^ 12 warnings generated. rm -f ngram.o cc -c -O -I../../include -I/usr/pkg/include ngram.c ngram.c:117:15: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] errorres = (read(fd, (char *)l4, 4) < 4 || (sz = L4TOL(l4)) < 5 ^ ngram.c:213:13: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if ((fd = open(mydic, 0)) < 0) ^ ngram.c:246:5: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(fd); ^ ngram.c:355:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] skip_until_space(src, next) ^ ngram.c:468:59: warning: '&' within '|' [-Wbitwise-op-parentheses] *wrec++ = (Wrec)(((wlen >> 5) & 0xfe) | (ncand >> 11) & 0x01); ~ ~~~~~~~~~~~~~~^~~~~~ ngram.c:468:59: note: place parentheses around the '&' expression to silence this warning *wrec++ = (Wrec)(((wlen >> 5) & 0xfe) | (ncand >> 11) & 0x01); ^ ( ) ngram.c:513:59: warning: '&' within '|' [-Wbitwise-op-parentheses] *wrec++ = (Wrec)(((wlen >> 5) & 0xfe) | (ncand >> 11) & 0x01); ~ ~~~~~~~~~~~~~~^~~~~~ ngram.c:513:59: note: place parentheses around the '&' expression to silence this warning *wrec++ = (Wrec)(((wlen >> 5) & 0xfe) | (ncand >> 11) & 0x01); ^ ( ) ngram.c:829:11: warning: '&&' within '||' [-Wlogical-op-parentheses] if (add && i == ncnd || !add && endt && endt < endp - 1) { ~~~~^~~~~~~~~~~~ ~~ ngram.c:829:11: note: place parentheses around the '&&' expression to silence this warning if (add && i == ncnd || !add && endt && endt < endp - 1) { ^ ( ) ngram.c:829:40: warning: '&&' within '||' [-Wlogical-op-parentheses] if (add && i == ncnd || !add && endt && endt < endp - 1) { ~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ ngram.c:829:40: note: place parentheses around the '&&' expression to silence this warning if (add && i == ncnd || !add && endt && endt < endp - 1) { ^ ( ) 8 warnings generated. rm -f bun.o cc -c -O -I../../include -I/usr/pkg/include bun.c bun.c:347:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkwSubstYomi(cx_num, ys, ye, yomi, newLen) ^~~~~~~~~~~~ bun.c:1547:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkwGetSimpleKanji(cxnum, dicname, yomi, maxyomi, ^~~~~~~~~~~~~~~~~ 2 warnings generated. rm -f context.o cc -c -O -I../../include -I/usr/pkg/include context.c context.c:119:6: warning: implicit declaration of function 'mkdir' is invalid in C99 [-Wimplicit-function-declaration] if (mkdir(path, MKDIR_MODE) < 0 && ^ 1 warning generated. rm -f nword.o cc -c -O -I../../include -I/usr/pkg/include nword.c nword.c:1283:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static compword pro((const struct compRec *, const struct compRec *)); ~~~~~~ ^ 1 warning generated. rm -f ncache.o cc -c -O -I../../include -I/usr/pkg/include ncache.c rm -f dic.o cc -c -O -I../../include -I/usr/pkg/include dic.c dic.c:333:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] copyFile(src, dst) ^~~~~~~~ dic.c:358:13: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] srcFd = open(srcN, 0); ^ dic.c:378:10: warning: implicit declaration of function 'creat' is invalid in C99 [-Wimplicit-function-declaration] dstFd = creat(dstN, 0666); ^ dic.c:402:12: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] ((n = read(srcFd, b, RK_BUFFER_SIZE)) > 0) ^ dic.c:409:10: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] ( write(dstFd, b, n) != n ) ^ dic.c:420:6: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] close(dstFd) < 0 ^ dic.c:531:9: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] res = unlink(path); ^ dic.c:947:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] GetLine(cx, gram, tdp, line, size) ^ 8 warnings generated. rm -f util.o cc -c -O -I../../include -I/usr/pkg/include util.c util.c:275:13: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] hdrsize = read(fd, (char *)localbuffer, RK_MAX_HDRSIZ); ^ util.c:420:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] _RkGetLink(dic, pgno, off, lvo, csn) ^~~~~~~~~~ util.c:474:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 3 warnings generated. rm -f kana.o cc -c -O -I../../include -I/usr/pkg/include kana.c rm -f bits.o cc -c -O -I../../include -I/usr/pkg/include bits.c rm -f dd.o cc -c -O -I../../include -I/usr/pkg/include dd.c dd.c:295:9: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] t = close(creat(pathname, CREAT_MODE)); ^ dd.c:295:15: warning: implicit declaration of function 'creat' is invalid in C99 [-Wimplicit-function-declaration] t = close(creat(pathname, CREAT_MODE)); ^ dd.c:590:15: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if ((fdes = open(direct, 0)) < 0) { /* no file? */ ^ dd.c:1011:26: warning: incompatible pointer types passing 'long *' to parameter of type 'const time_t *' (aka 'const long long *') [-Wincompatible-pointer-types] strcpy(whattime, ctime(&tloc)); ^~~~~ /usr/include/time.h:93:27: note: passing argument to parameter here char *ctime(const time_t *) __RENAME(__ctime50); ^ dd.c:1029:12: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] tmpres = write(fdes, header, n); ^ dd.c:1062:7: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration] unlink(dicsdir); ^ dd.c:1447:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] DMcheck(spec, name) ^~~~~~~ 7 warnings generated. rm -f fq.o cc -c -O -I../../include -I/usr/pkg/include fq.c fq.c:237:7: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration] if (read(fr, (char *)ll, 4) != 4) ^ fq.c:306:7: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration] if (write(fr, (char *)ll, 4) != 4) ^ fq.c:675:13: warning: implicit declaration of function 'open' is invalid in C99 [-Wimplicit-function-declaration] if ((fd = open(file, 2)) < 0) { ^ fq.c:746:11: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void)close(fd); ^ 4 warnings generated. rm -f libRK.a ar clq libRK.a tempdic.o permdic.o dicsw.o ngram.o bun.o context.o nword.o ncache.o dic.o util.o kana.o bits.o dd.o fq.o ranlib libRK.a bmake: $(_NULLCMD_) expands to empty string making all in lib/RKC... bmake: $(_NULLCMD_) expands to empty string bmake: $(_NULLCMD_) expands to empty string bmake: $(_NULLCMD_) expands to empty string bmake: $(_NULLCMD_) expands to empty string bmake: $(_NULLCMD_) expands to empty string bmake: $(_NULLCMD_) expands to empty string rm -f rkc.o cc -c -O -I../../include -I/usr/pkg/include -DCANNA_WCHAR rkc.c In file included from rkc.c:53: In file included from ./rkcw.h:67: In file included from ../../include/ccompat.h:75: /usr/include/stdlib.h:52:23: error: typedef redefinition with different types ('int' vs 'unsigned long') typedef _BSD_WCHAR_T_ wchar_t; ^ ../../include/widedef.h:98:23: note: previous definition is here typedef unsigned long wchar_t; ^ In file included from rkc.c:53: ./rkcw.h:83:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern rkcWCinit pro((void)); ~~~~~~ ^ ./rkcw.h:84:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern rkcw_get_server_info pro((int *, int *)); ~~~~~~ ^ ./rkcw.h:85:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern ushortstrncpy pro((Ushort *, Ushort *, int)); ~~~~~~ ^ In file included from rkc.c:55: ./rkc.h:229:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] extern rkc_Connect_Iroha_Server pro((char *)); ~~~~~~ ^ rkc.c:271:36: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] struct passwd *pass = getpwuid(getuid()); ^ rkc.c:294:33: warning: implicit declaration of function 'getgid' is invalid in C99 [-Wimplicit-function-declaration] struct group *gr = getgrgid(getgid()) ; ^ rkc.c:329:5: warning: implicit declaration of function 'G330_rkcWCinit' is invalid in C99 [-Wimplicit-function-declaration] rkcWCinit(); ^ ../../include/sglobal.h:330:45: note: expanded from macro 'rkcWCinit' #define rkcWCinit G330_rkcWCinit ^ rkc.c:356:21: warning: implicit declaration of function 'G331_rkc_Connect_Iroha_Server' is invalid in C99 [-Wimplicit-function-declaration] if( (ServerFD = rkc_Connect_Iroha_Server( ConnectIrohaServerName )) < 0 ) { /* S004 */ ^ ../../include/sglobal.h:331:45: note: expanded from macro 'rkc_Connect_Iroha_Server' #define rkc_Connect_Iroha_Server G331_rkc_Connect_Iroha_Server ^ rkc.c:410:13: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration] (void)close(ServerFD); ^ rkc.c:681:5: warning: implicit declaration of function 'G367_wchar2ushort' is invalid in C99 [-Wimplicit-function-declaration] wchar2ushort(wordrec, wcharstrlen(wordrec), rkc.cbuf, CBUFSIZE); ^ ../../include/sglobal.h:367:45: note: expanded from macro 'wchar2ushort' #define wchar2ushort G367_wchar2ushort ^ rkc.c:681:27: warning: implicit declaration of function 'G368_wcharstrlen' is invalid in C99 [-Wimplicit-function-declaration] wchar2ushort(wordrec, wcharstrlen(wordrec), rkc.cbuf, CBUFSIZE); ^ ../../include/sglobal.h:368:45: note: expanded from macro 'wcharstrlen' #define wcharstrlen G368_wcharstrlen ^ rkc.c:811:14: warning: implicit declaration of function 'G362_ushortstrlen' is invalid in C99 [-Wimplicit-function-declaration] kouhobuf += ushortstrlen( (Ushort *)kouhobuf)+1 ; ^ ../../include/sglobal.h:362:45: note: expanded from macro 'ushortstrlen' #define ushortstrlen G362_ushortstrlen ^ rkc.c:1062:2: warning: implicit declaration of function 'G361_ushortstrcpy' is invalid in C99 [-Wimplicit-function-declaration] ushortstrcpy( kanji, src_kouho ); ^ ../../include/sglobal.h:361:45: note: expanded from macro 'ushortstrcpy' #define ushortstrcpy G361_ushortstrcpy ^ rkc.c:1082:11: warning: implicit declaration of function 'G360_ushort2wchar' is invalid in C99 [-Wimplicit-function-declaration] return ushort2wchar(rkc.cbuf, len, rkc.wbuf, CBUFSIZE); ^ ../../include/sglobal.h:360:45: note: expanded from macro 'ushort2wchar' #define ushort2wchar G360_ushort2wchar ^ rkc.c:1512:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkwGetProtocolVersion(majorp, minorp) ^~~~~~~~~~~~~~~~~~~~~ rkc.c:1527:13: warning: implicit declaration of function 'G334_rkcw_get_server_info' is invalid in C99 [-Wimplicit-function-declaration] return( rkcw_get_server_info(majorp, minorp) ); ^ ../../include/sglobal.h:334:45: note: expanded from macro 'rkcw_get_server_info' #define rkcw_get_server_info G334_rkcw_get_server_info ^ rkc.c:1537:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkcConnectIrohaServer( servername ) ^~~~~~~~~~~~~~~~~~~~~ ../../include/sglobal.h:69:45: note: expanded from macro 'RkcConnectIrohaServer' #define RkcConnectIrohaServer G069_RkcConnectIrohaServer ^~~~~~~~~~~~~~~~~~~~~~~~~~ rkc.c:1545:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] CheckRemoteToolProtoVersion(mode) ^ rkc.c:1677:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] _RkwGetWordTextDic( cxnum, dirname, dicname, info, infolen ) ^ rkc.c:1776:6: warning: implicit declaration of function 'G363_ushortstrncpy' is invalid in C99 [-Wimplicit-function-declaration] ushortstrncpy( cbuf, &(cx->lastyomi[ye]), (cx->maxyomi - ye) ); ^ ../../include/sglobal.h:363:45: note: expanded from macro 'ushortstrncpy' #define ushortstrncpy G363_ushortstrncpy ^ rkc.c:1881:14: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] register i; ~~~~~~~~ ^ rkc.c:1961:38: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign] nkanji = _RkwGetSimpleKanji(cxnum, dicname, cbuf, len, ^~~~~~~ rkc.c:1973:10: warning: implicit declaration of function 'G358_ushort2euc' is invalid in C99 [-Wimplicit-function-declaration] l += ushort2euc(cbuf3 + m, ushortstrlen(cbuf3 + m), ^ ../../include/sglobal.h:358:45: note: expanded from macro 'ushort2euc' #define ushort2euc G358_ushort2euc ^ rkc.c:2195:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkKillServer() ^~~~~~~~~~~~ rkc.c:2237:5: warning: implicit declaration of function 'G210_euc2ushort' is invalid in C99 [-Wimplicit-function-declaration] euc2ushort(wordrec, strlen(wordrec), rkc.cbuf, CBUFSIZE); ^ ../../include/sglobal.h:210:45: note: expanded from macro 'euc2ushort' #define euc2ushort G210_euc2ushort ^ rkc.c:2601:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkListDic( cxnum, dirname, dicnames_return, size ) ^~~~~~~~~ rkc.c:2616:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkRemoveDic( cxnum, dicname, mode ) ^~~~~~~~~~~ rkc.c:2623:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkRenameDic( cxnum, dicname, newdicname, mode ) ^~~~~~~~~~~ rkc.c:2630:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] RkCopyDic(cxnum, dirname, dicname, newdicname, mode) ^~~~~~~~~ rkc.c:2741:38: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'unsigned char *' [-Wint-conversion] nkanji = _RkwGetSimpleKanji(cxnum, dicname, cbuf, len, ^~~~~~~ 30 warnings and 1 error generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/inputmethod/canna-lib/work/Canna36p4/lib/RKC *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/inputmethod/canna-lib/work/Canna36p4/lib *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/inputmethod/canna-lib/work/Canna36p4 *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/inputmethod/canna-lib *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/inputmethod/canna-lib