=> Building chinese/celvis Started : Wednesday, 18 APR 2018 at 04:19:47 UTC Platform: 5.3-DEVELOPMENT DragonFly v5.3.0.81.g32506c-DEVELOPMENT #29: Tue Apr 10 08:49:52 PDT 2018 marino@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.0-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.0-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/chinese/celvis XDG_CONFIG_HOME=/construction/chinese/celvis HOME=/construction/chinese/celvis TMPDIR="/tmp" PATH=/construction/chinese/celvis/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc50 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/chinese/celvis XDG_CONFIG_HOME=/construction/chinese/celvis HOME=/construction/chinese/celvis TMPDIR="/tmp" PATH=/construction/chinese/celvis/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" NOPROFILE=1 CC="cc" CFLAGS="-pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS=" -L/usr/local/lib -Wl,-rpath=/usr/local/lib" LIBS="" CXX="c++" CXXFLAGS=" -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- LIBS=" -L/usr/local/lib -Wl,-rpath=/usr/local/lib -lncurses" DESTDIR=/construction/chinese/celvis/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- PORTDOCS="" PORTEXAMPLES="" OSREL=5.0 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/celvis" EXAMPLESDIR="share/examples/celvis" DATADIR="share/celvis" WWWDIR="www/celvis" ETCDIR="etc/celvis" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/celvis DOCSDIR=/usr/local/share/doc/celvis EXAMPLESDIR=/usr/local/share/examples/celvis WWWDIR=/usr/local/www/celvis ETCDIR=/usr/local/etc/celvis -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-5.0 USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500000 OSVERSION=9999999 OSREL=5.0 _OSRELEASE=5.0-SYNTH -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> zh-celvis-1.3 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5.txz Installing pkg-1.10.5... Extracting pkg-1.10.5: .......... done ===> zh-celvis-1.3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of zh-celvis-1.3 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by zh-celvis-1.3 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by zh-celvis-1.3 for building => SHA256 Checksum OK for celvis.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by zh-celvis-1.3 for building ===> Extracting for zh-celvis-1.3 ===> NOTICE: The celvis port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by zh-celvis-1.3 for building => SHA256 Checksum OK for celvis.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for zh-celvis-1.3 ===> Applying ports patches for zh-celvis-1.3 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> zh-celvis-1.3 depends on file: /usr/local/lib/libncurses.so.6 - not found ===> Installing existing package /packages/All/ncurses-6.0.0s20171223_1.txz Installing ncurses-6.0.0s20171223_1... Extracting ncurses-6.0.0s20171223_1: .......... done ===> zh-celvis-1.3 depends on file: /usr/local/lib/libncurses.so.6 - found ===> Returning to build of zh-celvis-1.3 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for zh-celvis-1.3 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for zh-celvis-1.3 --- blk.o --- --- cmd1.o --- --- cmd2.o --- --- curses.o --- --- cut.o --- --- blk.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c blk.c --- cmd1.o --- eval cc -c -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -DDATE=\'\"`date`\"\' cmd1.c --- cmd2.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c cmd2.c --- curses.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c curses.c --- cut.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c cut.c --- blk.o --- In file included from blk.c:16:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ blk.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int] blkinit() ^ blk.c: In function 'blkget': blk.c:97:2: warning: implicit declaration of function 'blkflush' [-Wimplicit-function-declaration] blkflush(this); ^ blk.c:105:7: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] if (read(tmpfd, this->buf.c, BLKSIZE) != BLKSIZE) ^ blk.c:107:4: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Error reading back from tmp file!"); ^ blk.c: At top level: blk.c:137:1: warning: return type defaults to 'int' [-Wimplicit-int] blkflush(this) ^ blk.c: In function 'blkflush': blk.c:146:3: warning: implicit declaration of function 'blkdirty' [-Wimplicit-function-declaration] blkdirty(&this->buf); ^ blk.c:152:3: warning: 'return' with no value, in function returning non-void return; ^ blk.c:165:6: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] if (write(tmpfd, this->buf.c, BLKSIZE) != BLKSIZE) ^ blk.c: At top level: blk.c:177:1: warning: return type defaults to 'int' [-Wimplicit-int] blkdirty(bp) ^ blk.c: In function 'blkdirty': blk.c:214:3: warning: 'return' with no value, in function returning non-void return; ^ blk.c: At top level: blk.c:300:1: warning: return type defaults to 'int' [-Wimplicit-int] blksync() ^ blk.c: In function 'blksync': blk.c:311:3: warning: implicit declaration of function 'sync' [-Wimplicit-function-declaration] sync(); ^ blk.c: At top level: blk.c:325:1: warning: return type defaults to 'int' [-Wimplicit-int] beforedo(undo) ^ blk.c: In function 'beforedo': blk.c:334:3: warning: 'return' with no value, in function returning non-void return; ^ blk.c:342:2: warning: implicit declaration of function 'garbage' [-Wimplicit-function-declaration] garbage(); ^ blk.c: At top level: blk.c:384:1: warning: return type defaults to 'int' [-Wimplicit-int] afterdo() ^ blk.c: In function 'afterdo': blk.c:388:3: warning: 'return' with no value, in function returning non-void return; ^ blk.c: At top level: blk.c:404:1: warning: return type defaults to 'int' [-Wimplicit-int] abortdo() ^ blk.c: In function 'abortdo': blk.c:409:3: warning: 'return' with no value, in function returning non-void return; ^ blk.c:422:3: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^ blk.c: At top level: blk.c:427:1: warning: return type defaults to 'int' [-Wimplicit-int] undo() ^ blk.c: In function 'undo': blk.c:435:3: warning: 'return' with no value, in function returning non-void return; ^ --- curses.o --- In file included from curses.c:18:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ curses.c:108:1: warning: return type defaults to 'int' [-Wimplicit-int] initscr() ^ curses.c: In function 'initscr': curses.c:120:3: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] write(2, "Environment variable TERM must be set\n", 38); ^ curses.c:121:3: warning: implicit declaration of function 'HZ_abort' [-Wimplicit-function-declaration] HZ_abort(1); ^ curses.c:133:3: warning: implicit declaration of function 'starttcap' [-Wimplicit-function-declaration] starttcap(); ^ curses.c:147:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(TRUE); ^ curses.c: At top level: curses.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int] endwin() ^ curses.c: In function 'endwin': curses.c:154:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^ curses.c: At top level: curses.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int] suspend_curses() ^ In file included from vi.h:51:0, from curses.c:18: curses.c: In function 'suspend_curses': curses.h:139:49: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:139:36: note: in expansion of macro 'ttywrite' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^ curses.c:171:3: note: in expansion of macro 'do_TE' do_TE(); ^ curses.h:139:49: warning: incompatible implicit declaration of built-in function 'strlen' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:139:36: note: in expansion of macro 'ttywrite' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^ curses.c:171:3: note: in expansion of macro 'do_TE' do_TE(); ^ curses.h:139:49: note: include '' or provide a declaration of 'strlen' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:139:36: note: in expansion of macro 'ttywrite' #define do_TE() VOIDBIOS(0, (void)ttywrite(TE, strlen(TE))) ^ curses.c:171:3: note: in expansion of macro 'do_TE' do_TE(); ^ curses.c: At top level: curses.c:193:1: warning: return type defaults to 'int' [-Wimplicit-int] resume_curses(quietly) ^ In file included from vi.h:51:0, from curses.c:18: curses.c: In function 'resume_curses': curses.h:138:49: warning: incompatible implicit declaration of built-in function 'strlen' #define do_TI() VOIDBIOS(0, (void)ttywrite(TI, strlen(TI))) ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:138:36: note: in expansion of macro 'ttywrite' #define do_TI() VOIDBIOS(0, (void)ttywrite(TI, strlen(TI))) ^ curses.c:233:3: note: in expansion of macro 'do_TI' do_TI(); ^ curses.h:138:49: note: include '' or provide a declaration of 'strlen' #define do_TI() VOIDBIOS(0, (void)ttywrite(TI, strlen(TI))) ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:138:36: note: in expansion of macro 'ttywrite' #define do_TI() VOIDBIOS(0, (void)ttywrite(TI, strlen(TI))) ^ curses.c:233:3: note: in expansion of macro 'do_TI' do_TI(); ^ curses.c:241:3: warning: 'return' with no value, in function returning non-void return; ^ In file included from curses.c:17:0: config.h:124:28: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] # define ttyread(buf, len) read(0, buf, len) /* raw read */ ^ curses.c:251:2: note: in expansion of macro 'ttyread' ttyread(kbuf, 20); /* in RAW mode, so <20 is very likely */ ^ curses.c:261:3: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^ curses.c:268:17: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGINT, trapint); ^ In file included from /usr/include/sys/select.h:39:0, from /usr/include/sys/param.h:205, from config.h:10, from curses.c:17: /usr/include/sys/signal.h:414:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^ curses.c: At top level: curses.c:272:8: warning: return type defaults to 'int' [-Wimplicit-int] static lacking(s) ^ curses.c:281:1: warning: return type defaults to 'int' [-Wimplicit-int] starttcap() ^ curses.c: In function 'starttcap': curses.c:293:10: warning: implicit declaration of function 'tgetent' [-Wimplicit-function-declaration] switch (tgetent(kbuf, getenv("TERM"))) ^ curses.c:311:6: warning: implicit declaration of function 'tgetnum' [-Wimplicit-function-declaration] if (tgetnum("ug") <= 0) ^ curses.c:334:7: warning: implicit declaration of function 'tgetflag' [-Wimplicit-function-declaration] AM = tgetflag("am"); ^ curses.c:337:2: warning: implicit declaration of function 'getsize' [-Wimplicit-function-declaration] getsize(0); ^ curses.c: At top level: curses.c:376:1: warning: return type defaults to 'int' [-Wimplicit-int] getsize(signo) ^ curses.c: In function 'getsize': curses.c:387:19: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGWINCH, getsize); ^ In file included from /usr/include/sys/select.h:39:0, from /usr/include/sys/param.h:205, from config.h:10, from curses.c:17: /usr/include/sys/signal.h:414:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^ --- cmd1.o --- In file included from cmd1.c:17:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ cmd1.c: In function 'cmd_mark': cmd1.c:154:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Invalid mark name"); ^ cmd1.c: In function 'cmd_write': cmd1.c:178:3: warning: implicit declaration of function 'tmpsave' [-Wimplicit-function-declaration] tmpsave(extra, bang); ^ cmd1.c:191:6: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] if (access(extra, 0) == 0 && !bang && !append) ^ cmd1.c:228:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] i = strlen(scan); ^ cmd1.c:228:7: warning: incompatible implicit declaration of built-in function 'strlen' cmd1.c:228:7: note: include '' or provide a declaration of 'strlen' In file included from cmd1.c:15:0: config.h:146:17: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] #define twrite write ^ cmd1.c:232:3: note: in expansion of macro 'twrite' twrite(fd, scan, i); ^ cmd1.c:234:2: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(fd); ^ cmd1.c: In function 'cmd_shell': cmd1.c:266:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(prevextra, extra); ^ cmd1.c:266:3: warning: incompatible implicit declaration of built-in function 'strcpy' cmd1.c:266:3: note: include '' or provide a declaration of 'strcpy' cmd1.c:270:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^ cmd1.c:273:3: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration] system(extra); ^ cmd1.c:277:3: warning: implicit declaration of function 'filter' [-Wimplicit-function-declaration] filter(frommark, tomark, extra); ^ cmd1.c:281:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(mode == MODE_EX); ^ In file included from cmd1.c:17:0: cmd1.c: In function 'cmd_global': vi.h:231:32: warning: implicit declaration of function 'beforedo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ cmd1.c:327:2: note: in expansion of macro 'ChangeText' ChangeText ^ vi.h:231:48: warning: implicit declaration of function 'afterdo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ cmd1.c:327:2: note: in expansion of macro 'ChangeText' ChangeText ^ cmd1.c:355:29: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (cmd==CMD_GLOBAL && !strncmp(cmdptr, "s//", 3)) ^ cmd1.c:363:6: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(cmdln, "s/"); /* beginning of :s cmd */ ^ cmd1.c:363:6: note: include '' or provide a declaration of 'strcpy' cmd1.c:364:6: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(cmdln, extra+1); /* pattern from :g search */ ^ cmd1.c:364:6: warning: incompatible implicit declaration of built-in function 'strcat' cmd1.c:364:6: note: include '' or provide a declaration of 'strcat' cmd1.c:368:6: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(cmdln, cmdptr); ^ cmd1.c:368:6: note: include '' or provide a declaration of 'strcpy' cmd1.c:377:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(re); ^ cmd1.c:377:2: warning: incompatible implicit declaration of built-in function 'free' cmd1.c:377:2: note: include '' or provide a declaration of 'free' cmd1.c: In function 'cmd_edit': cmd1.c:420:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (!strcmp(extra, prevorig)) ^ cmd1.c:426:6: warning: implicit declaration of function 'tmpabort' [-Wimplicit-function-declaration] if (tmpabort(bang)) ^ cmd1.c:428:3: warning: implicit declaration of function 'tmpstart' [-Wimplicit-function-declaration] tmpstart(extra); ^ cmd1.c:439:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(prevorig, extra); ^ cmd1.c:439:3: note: include '' or provide a declaration of 'strcpy' cmd1.c: In function 'cmd_xit': cmd1.c:539:6: warning: implicit declaration of function 'tmpend' [-Wimplicit-function-declaration] if (tmpend(bang)) ^ cmd1.c: In function 'cmd_args': cmd1.c:605:3: warning: implicit declaration of function 'exrefresh' [-Wimplicit-function-declaration] exrefresh(); ^ cmd1.c:609:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(args, extra); ^ cmd1.c:609:3: note: include '' or provide a declaration of 'strcpy' cmd1.c: In function 'cmd_cd': cmd1.c:650:6: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] if (chdir(extra) < 0) ^ cmd1.c: In function 'cmd_map': cmd1.c:669:3: warning: implicit declaration of function 'dumpkey' [-Wimplicit-function-declaration] dumpkey(bang ? WHEN_VIINP|WHEN_VIREP : WHEN_VICMD); ^ cmd1.c:682:3: warning: implicit declaration of function 'mapkey' [-Wimplicit-function-declaration] mapkey(extra, mapto, bang ? WHEN_VIINP|WHEN_VIREP : WHEN_VICMD, (char *)0); ^ cmd1.c: In function 'cmd_set': cmd1.c:696:3: warning: implicit declaration of function 'dumpopts' [-Wimplicit-function-declaration] dumpopts(FALSE);/* "FALSE" means "don't dump all" - only set */ ^ cmd1.c:704:3: warning: implicit declaration of function 'setopts' [-Wimplicit-function-declaration] setopts(extra); ^ cmd1.c: In function 'cmd_tag': cmd1.c:739:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(prevtag, extra, sizeof prevtag); ^ cmd1.c:739:3: warning: incompatible implicit declaration of built-in function 'strncpy' cmd1.c:739:3: note: include '' or provide a declaration of 'strncpy' In file included from cmd1.c:15:0: config.h:145:15: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] #define tread read ^ cmd1.c:758:21: note: in expansion of macro 'tread' end = tmpblk.c + tread(fd, tmpblk.c, BLKSIZE); ^ cmd1.c: In function 'cmd_mkexrc': cmd1.c:924:2: warning: implicit declaration of function 'savekeys' [-Wimplicit-function-declaration] savekeys(fd); ^ cmd1.c:925:2: warning: implicit declaration of function 'saveopts' [-Wimplicit-function-declaration] saveopts(fd); ^ cmd1.c:927:2: warning: implicit declaration of function 'savedigs' [-Wimplicit-function-declaration] savedigs(fd); ^ cmd1.c: In function 'cmd_digraph': cmd1.c:945:2: warning: implicit declaration of function 'do_digraph' [-Wimplicit-function-declaration] do_digraph(bang, extra); ^ --- ex.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c ex.c --- input.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c input.c --- ex.o --- In file included from ex.c:15:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ ex.c:265:1: warning: return type defaults to 'int' [-Wimplicit-int] ex() ^ ex.c: In function 'ex': ex.c:271:11: warning: implicit declaration of function 'vgets' [-Wimplicit-function-declaration] cmdlen = vgets(':', cmdbuf, sizeof cmdbuf); ^ ex.c:274:3: warning: 'return' with no value, in function returning non-void return; ^ In file included from vi.h:51:0, from ex.c:15: config.h:127:29: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^ ex.c:277:2: note: in expansion of macro 'refresh' refresh(); ^ ex.c:282:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(cmdbuf, ".+1"); ^ ex.c:282:3: warning: incompatible implicit declaration of built-in function 'strcpy' ex.c:282:3: note: include '' or provide a declaration of 'strcpy' ex.c: At top level: ex.c:289:1: warning: return type defaults to 'int' [-Wimplicit-int] doexcmd(cmdbuf) ^ ex.c: In function 'doexcmd': ex.c:312:3: warning: 'return' with no value, in function returning non-void return; ^ ex.c:347:4: warning: 'return' with no value, in function returning non-void return; ^ ex.c:351:4: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("first address exceeds the second"); ^ ex.c:352:4: warning: 'return' with no value, in function returning non-void return; ^ ex.c:369:4: warning: 'return' with no value, in function returning non-void return; ^ ex.c:390:32: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] cmdnames[cmdidx].name && strncmp(scan, cmdnames[cmdidx].name, cmdlen); ^ ex.c:399:3: warning: 'return' with no value, in function returning non-void return; ^ ex.c:434:7: warning: 'return' with no value, in function returning non-void return; ^ ex.c:436:6: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(build, origname); ^ ex.c:436:6: note: include '' or provide a declaration of 'strcpy' ex.c:448:7: warning: 'return' with no value, in function returning non-void return; ^ ex.c:485:6: warning: implicit declaration of function 'exrefresh' [-Wimplicit-function-declaration] exrefresh(); ^ ex.c:500:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(tmpblk.c, origname); ^ ex.c:500:5: note: include '' or provide a declaration of 'strcpy' ex.c:515:3: warning: 'return' with no value, in function returning non-void return; ^ ex.c:520:3: warning: 'return' with no value, in function returning non-void return; ^ ex.c:525:3: warning: 'return' with no value, in function returning non-void return; ^ ex.c:530:3: warning: 'return' with no value, in function returning non-void return; ^ ex.c:541:5: warning: 'return' with no value, in function returning non-void return; ^ In file included from ex.c:13:0: ex.c: In function 'doexrc': config.h:145:15: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] #define tread read ^ ex.c:580:8: note: in expansion of macro 'tread' len = tread(fd, buf, MAXRCLEN); ^ ex.c:581:2: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(fd); ^ --- input.o --- In file included from input.c:17:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ input.c:57:1: warning: return type defaults to 'int' [-Wimplicit-int] do_digraph(bang, args) ^ input.c: In function 'do_digraph': input.c:71:5: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("digraph %c%c %c", digs[i].key1, digs[i].key2, digs[i].dig); ^ input.c:74:3: warning: 'return' with no value, in function returning non-void return; ^ input.c:81:3: warning: 'return' with no value, in function returning non-void return; ^ input.c:86:3: warning: 'return' with no value, in function returning non-void return; ^ input.c:111:4: warning: 'return' with no value, in function returning non-void return; ^ input.c: At top level: input.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] savedigs(fd) ^ input.c: In function 'savedigs': input.c:134:4: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] write(fd, buf, 14); ^ input.c: In function 'input': input.c:179:3: warning: implicit declaration of function 'cut' [-Wimplicit-function-declaration] cut(from, to); ^ In file included from input.c:17:0: vi.h:231:32: warning: implicit declaration of function 'beforedo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ input.c:182:2: note: in expansion of macro 'ChangeText' ChangeText ^ vi.h:231:48: warning: implicit declaration of function 'afterdo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ input.c:182:2: note: in expansion of macro 'ChangeText' ChangeText ^ input.c:190:5: warning: implicit declaration of function 'delete' [-Wimplicit-function-declaration] delete(from, to); ^ input.c:194:4: warning: implicit declaration of function 'cutname' [-Wimplicit-function-declaration] cutname('.'); ^ input.c:210:9: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] if (IsIdxHZ(markidx(to-1), ptext) < 0) ^ input.c:211:6: warning: implicit declaration of function 'change' [-Wimplicit-function-declaration] change (to - 2, to, " $"); ^ input.c:244:7: warning: implicit declaration of function 'add' [-Wimplicit-function-declaration] add(cursor, tmpblk.c); ^ input.c:256:5: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(cursor, TRUE); ^ input.c:257:14: warning: implicit declaration of function 'getkey' [-Wimplicit-function-declaration] key[0] = getkey(when); ^ input.c:274:10: warning: implicit declaration of function 'idx2col' [-Wimplicit-function-declaration] if (idx2col(cursor, ptext, TRUE) > COLS - (*o_wrapmargin & 0xff)) ^ input.c:315:7: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration] beep(); ^ input.c:542:3: warning: implicit declaration of function 'blksync' [-Wimplicit-function-declaration] blksync(); ^ --- cut.o --- In file included from cut.c:14:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ cut.c:39:8: warning: type defaults to 'int' in declaration of 'cutfree' [-Wimplicit-int] static cutfree(struct cutbuf *buf); ^ cut.c:92:1: warning: return type defaults to 'int' [-Wimplicit-int] cutswitch(tmpname) ^ cut.c: In function 'cutswitch': cut.c:117:3: warning: 'return' with no value, in function returning non-void return; ^ cut.c:134:7: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] fd = dup(tmpfd); ^ cut.c:135:41: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] sprintf(cutname, CUTNAME, o_directory, getpid(), fd); ^ cut.c:136:2: warning: implicit declaration of function 'link' [-Wimplicit-function-declaration] link(tmpname, cutname) || unlink(tmpname); ^ cut.c:136:28: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] link(tmpname, cutname) || unlink(tmpname); ^ cut.c: At top level: cut.c:151:8: warning: return type defaults to 'int' [-Wimplicit-int] static cutfree(buf) ^ cut.c: In function 'cutfree': cut.c:160:3: warning: 'return' with no value, in function returning non-void return; ^ cut.c:165:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(buf->phys); ^ cut.c:165:2: warning: incompatible implicit declaration of built-in function 'free' cut.c:165:2: note: include '' or provide a declaration of 'free' cut.c:186:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(buf->fd); ^ cut.c: At top level: cut.c:200:1: warning: return type defaults to 'int' [-Wimplicit-int] cutend() ^ cut.c:215:1: warning: return type defaults to 'int' [-Wimplicit-int] cutname(name) ^ cut.c:225:1: warning: return type defaults to 'int' [-Wimplicit-int] cut(from, to) ^ cut.c: In function 'cut': cut.c:266:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Invalid cut buffer name: \"%c", cbname); ^ cut.c:268:3: warning: 'return' with no value, in function returning non-void return; ^ cut.c:286:1: warning: implicit declaration of function 'blksync' [-Wimplicit-function-declaration] blksync(); ^ cut.c: At top level: cut.c:357:8: warning: return type defaults to 'int' [-Wimplicit-int] static readcutblk(cb, blkno) ^ cut.c: In function 'readcutblk': cut.c:375:6: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] if (read(fd, tmpblk.c, BLKSIZE) != BLKSIZE) ^ In file included from cut.c:14:0: cut.c: In function 'paste': vi.h:231:32: warning: implicit declaration of function 'beforedo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ cut.c:471:3: note: in expansion of macro 'ChangeText' ChangeText ^ vi.h:231:48: warning: implicit declaration of function 'afterdo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ cut.c:471:3: note: in expansion of macro 'ChangeText' ChangeText ^ cut.c:473:4: warning: implicit declaration of function 'add' [-Wimplicit-function-declaration] add(at, &tmpblk.c[cb->start]); ^ --- cmd2.o --- In file included from cmd2.c:14:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ cmd2.c: In function 'cmd_substitute': cmd2.c:41:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Usage: s/regular expression/new text/"); ^ In file included from cmd2.c:14:0: vi.h:231:32: warning: implicit declaration of function 'beforedo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ cmd2.c:78:2: note: in expansion of macro 'ChangeText' ChangeText ^ vi.h:231:48: warning: implicit declaration of function 'afterdo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ cmd2.c:78:2: note: in expansion of macro 'ChangeText' ChangeText ^ cmd2.c:106:6: warning: implicit declaration of function 'redrawrange' [-Wimplicit-function-declaration] redrawrange(l, l + 1L, l + 1L); ^ cmd2.c:117:11: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] d += strlen(d); ^ cmd2.c:117:11: warning: incompatible implicit declaration of built-in function 'strlen' cmd2.c:117:11: note: include '' or provide a declaration of 'strlen' cmd2.c:127:5: warning: implicit declaration of function 'changeline' [-Wimplicit-function-declaration] changeline(l, tmpblk.c); ^ cmd2.c:134:6: warning: implicit declaration of function 'exrefresh' [-Wimplicit-function-declaration] exrefresh(); ^ cmd2.c:153:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(re); ^ cmd2.c:153:2: warning: incompatible implicit declaration of built-in function 'free' cmd2.c:153:2: note: include '' or provide a declaration of 'free' cmd2.c: In function 'cmd_delete': cmd2.c:183:3: warning: implicit declaration of function 'cutname' [-Wimplicit-function-declaration] cutname(*extra); ^ cmd2.c:191:2: warning: implicit declaration of function 'cut' [-Wimplicit-function-declaration] cut(frommark, tomark); ^ cmd2.c:200:4: warning: implicit declaration of function 'delete' [-Wimplicit-function-declaration] delete(frommark, tomark); ^ cmd2.c: In function 'cmd_append': cmd2.c:241:10: warning: implicit declaration of function 'vgets' [-Wimplicit-function-declaration] while (vgets('\0', tmpblk.c, BLKSIZE) >= 0) ^ cmd2.c:244:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (!strcmp(tmpblk.c, ".")) ^ cmd2.c:249:4: warning: implicit declaration of function 'addline' [-Wimplicit-function-declaration] addline(l, tmpblk.c); ^ cmd2.c:255:2: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^ cmd2.c: In function 'cmd_join': cmd2.c:310:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(tmpblk.c, fetchline(l++)); ^ cmd2.c:310:2: warning: incompatible implicit declaration of built-in function 'strcpy' cmd2.c:310:2: note: include '' or provide a declaration of 'strcpy' cmd2.c:311:8: warning: incompatible implicit declaration of built-in function 'strlen' len = strlen(tmpblk.c); ^ cmd2.c:311:8: note: include '' or provide a declaration of 'strlen' cmd2.c: In function 'cmd_shift': cmd2.c:429:4: warning: implicit declaration of function 'change' [-Wimplicit-function-declaration] change(MARK_AT_LINE(l), MARK_AT_LINE(l) + oldidx, tmpblk.c); ^ cmd2.c: In function 'cmd_read': cmd2.c:468:3: warning: implicit declaration of function 'filter' [-Wimplicit-function-declaration] filter(frommark, MARK_UNSET, extra); ^ In file included from cmd2.c:13:0: config.h:145:15: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] #define tread read ^ cmd2.c:490:19: note: in expansion of macro 'tread' (rc = rc + tread(fd, tmpblk.c + rc, BLKSIZE - rc)) > 0; ^ cmd2.c:533:2: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(fd); ^ cmd2.c: In function 'cmd_undo': cmd2.c:590:2: warning: implicit declaration of function 'undo' [-Wimplicit-function-declaration] undo(); ^ cmd2.c: In function 'cmd_source': cmd2.c:723:2: warning: implicit declaration of function 'doexrc' [-Wimplicit-function-declaration] doexrc(extra); ^ --- main.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c main.c --- misc.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c misc.c --- main.o --- In file included from main.c:16:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ main.c:18:9: warning: type defaults to 'int' in declaration of 'trapint' [-Wimplicit-int] extern trapint(); /* defined below */ ^ main.c: In function 'HZ_abort': main.c:27:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^ main.c:28:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(i); ^ main.c:28:2: warning: incompatible implicit declaration of built-in function 'exit' main.c:28:2: note: include '' or provide a declaration of 'exit' main.c: In function 'main': main.c:50:18: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] switch (argv[0][strlen(argv[0]) - 1]) ^ main.c:50:18: warning: incompatible implicit declaration of built-in function 'strlen' main.c:50:18: note: include '' or provide a declaration of 'strlen' main.c:82:2: warning: implicit declaration of function 'initscr' [-Wimplicit-function-declaration] initscr(); ^ main.c:104:2: warning: implicit declaration of function 'initopts' [-Wimplicit-function-declaration] initopts(); ^ main.c:110:14: warning: implicit declaration of function 'mapkey' [-Wimplicit-function-declaration] if (has_KU) mapkey(has_KU, "k", WHEN_VICMD|WHEN_INMV, ""); ^ main.c:143:4: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Use the `virec` command to recover lost files\n"); ^ --- misc.o --- In file included from misc.c:14:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ --- main.o --- In file included from vi.h:51:0, from main.c:16: config.h:127:29: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^ main.c:144:4: note: in expansion of macro 'refresh' refresh(); ^ main.c:145:4: warning: implicit declaration of function 'endwin' [-Wimplicit-function-declaration] endwin(); ^ main.c:146:4: warning: incompatible implicit declaration of built-in function 'exit' exit(0); ^ main.c:146:4: note: include '' or provide a declaration of 'exit' main.c:199:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(args, argv[i]); ^ main.c:199:3: warning: incompatible implicit declaration of built-in function 'strcpy' main.c:199:3: note: include '' or provide a declaration of 'strcpy' main.c:200:24: warning: incompatible implicit declaration of built-in function 'strlen' while (++i < argc && strlen(args) + 1 + strlen(argv[i]) < sizeof args) ^ main.c:200:24: note: include '' or provide a declaration of 'strlen' main.c:202:4: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(args, " "); ^ main.c:202:4: warning: incompatible implicit declaration of built-in function 'strcat' main.c:202:4: note: include '' or provide a declaration of 'strcat' --- misc.o --- misc.c:85:1: warning: return type defaults to 'int' [-Wimplicit-int] deleteline(line) ^ --- main.o --- main.c:249:3: warning: implicit declaration of function 'doexrc' [-Wimplicit-function-declaration] doexrc(tmpblk.c); ^ --- misc.o --- misc.c: In function 'deleteline': misc.c:92:2: warning: implicit declaration of function 'delete' [-Wimplicit-function-declaration] delete(frommark, tomark); ^ --- main.o --- main.c:262:2: warning: implicit declaration of function 'blkinit' [-Wimplicit-function-declaration] blkinit(); ^ --- misc.o --- misc.c: At top level: misc.c:97:1: warning: return type defaults to 'int' [-Wimplicit-int] addline(l, txt) ^ --- main.o --- main.c:269:19: warning: implicit declaration of function 'tmpstart' [-Wimplicit-function-declaration] if (tmpfd < 0 && tmpstart(firstarg) == 0 && *origname) ^ --- misc.o --- misc.c: In function 'addline': misc.c:104:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(newtext.c, txt); ^ misc.c:104:2: warning: incompatible implicit declaration of built-in function 'strcpy' misc.c:104:2: note: include '' or provide a declaration of 'strcpy' misc.c:105:2: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(newtext.c, "\n"); ^ misc.c:105:2: warning: incompatible implicit declaration of built-in function 'strcat' --- main.o --- In file included from main.c:16:0: vi.h:231:32: warning: implicit declaration of function 'beforedo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ main.c:271:3: note: in expansion of macro 'ChangeText' ChangeText ^ --- misc.o --- misc.c:105:2: note: include '' or provide a declaration of 'strcat' --- main.o --- vi.h:231:48: warning: implicit declaration of function 'afterdo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ main.c:271:3: note: in expansion of macro 'ChangeText' ChangeText ^ --- misc.o --- misc.c:107:2: warning: implicit declaration of function 'add' [-Wimplicit-function-declaration] add(atmark, newtext.c); ^ misc.c: At top level: misc.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int] changeline(l, txt) ^ --- main.o --- main.c:291:4: warning: implicit declaration of function 'abortdo' [-Wimplicit-function-declaration] abortdo(); ^ main.c:296:18: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGINT, trapint); ^ --- misc.o --- misc.c: In function 'regerror': misc.c:125:2: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("RE error: %s", txt); ^ misc.c: In function 'pfetch': misc.c:136:10: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] plen = strlen(ptext); ^ misc.c:136:10: warning: incompatible implicit declaration of built-in function 'strlen' misc.c:136:10: note: include '' or provide a declaration of 'strlen' --- main.o --- In file included from /usr/include/sys/select.h:39:0, from /usr/include/sys/param.h:205, from config.h:10, from main.c:13: /usr/include/sys/signal.h:414:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^ main.c:317:2: warning: implicit declaration of function 'cutend' [-Wimplicit-function-declaration] cutend(); ^ main.c:327:2: warning: incompatible implicit declaration of built-in function 'exit' exit(0); ^ main.c:327:2: note: include '' or provide a declaration of 'exit' main.c: At top level: main.c:333:1: warning: return type defaults to 'int' [-Wimplicit-int] trapint(signo) ^ main.c: In function 'trapint': main.c:336:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(FALSE); ^ --- modify.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c modify.c --- move1.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move1.c --- modify.o --- In file included from modify.c:10:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ modify.c:14:1: warning: return type defaults to 'int' [-Wimplicit-int] delete(frommark, tomark) ^ modify.c: In function 'delete': modify.c:28:3: warning: 'return' with no value, in function returning non-void return; ^ modify.c:38:3: warning: implicit declaration of function 'redrawrange' [-Wimplicit-function-declaration] redrawrange(markline(frommark), markline(tomark), markline(frommark)); ^ --- move1.o --- In file included from move1.c:15:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ --- modify.o --- modify.c:144:3: warning: implicit declaration of function 'blkdirty' [-Wimplicit-function-declaration] blkdirty(blk); ^ modify.c: At top level: modify.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int] add(atmark, newtext) ^ modify.c: In function 'add': modify.c:179:3: warning: 'return' with no value, in function returning non-void return; ^ --- move2.o --- --- move1.o --- move1.c: In function 'm_right': move1.c:89:8: warning: implicit declaration of function 'FindNBytesOfP2CharFromMarkP1' [-Wimplicit-function-declaration] cnt = FindNBytesOfP2CharFromMarkP1(m, cnt); ^ move1.c: In function 'm_left': move1.c:114:8: warning: implicit declaration of function 'FindNBytesOfP2CharBackFromMarkP1' [-Wimplicit-function-declaration] cnt = FindNBytesOfP2CharBackFromMarkP1(m, cnt); ^ move1.c: In function 'm_toline': move1.c:141:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Line numbers range from 1 to %ld", nlines); ^ --- move2.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move2.c --- modify.o --- modify.c:343:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (strlen(following->c) + (build - blk->c) < BLKSIZE - 1) ^ modify.c:343:7: warning: incompatible implicit declaration of built-in function 'strlen' modify.c:343:7: note: include '' or provide a declaration of 'strlen' modify.c: At top level: modify.c:372:1: warning: return type defaults to 'int' [-Wimplicit-int] change(frommark, tomark, newtext) ^ modify.c: In function 'change': modify.c:407:4: warning: 'return' with no value, in function returning non-void return; ^ In file included from modify.c:10:0: vi.h:231:32: warning: implicit declaration of function 'beforedo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ modify.c:413:4: note: in expansion of macro 'ChangeText' ChangeText ^ vi.h:231:48: warning: implicit declaration of function 'afterdo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ modify.c:413:4: note: in expansion of macro 'ChangeText' ChangeText ^ modify.c:418:4: warning: 'return' with no value, in function returning non-void return; ^ --- move2.o --- In file included from move2.c:14:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ move2.c:18:9: warning: type defaults to 'int' in declaration of 'prevsf' [-Wimplicit-int] static prevsf; /* boolean: previous search direction was forward? */ ^ move2.c: In function 'm_fsrch': move2.c:67:11: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] if (re) free(re); ^ move2.c:67:11: warning: incompatible implicit declaration of built-in function 'free' move2.c:67:11: note: include '' or provide a declaration of 'free' move2.c:78:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("No previous expression"); ^ move2.c:123:8: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] if (IsIdxHZ (pos, line) < 0) ^ move2.c: In function 'm_bsrch': move2.c:159:11: warning: incompatible implicit declaration of built-in function 'free' if (re) free(re); ^ move2.c:159:11: note: include '' or provide a declaration of 'free' --- move3.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move3.c In file included from move3.c:14:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ move3.c: In function 'm__ch': move3.c:32:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("No previous f, F, t, or T command"); ^ move3.c: In function 'm_fch': move3.c:72:22: warning: implicit declaration of function 'getkey' [-Wimplicit-function-declaration] prev_key2 = key2 = getkey(0); ^ move3.c:85:8: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] IsIdxHZ(markidx(m), ptext) < 0) ); ^ --- move4.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move4.c --- move5.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c move5.c --- move4.o --- In file included from move4.c:14:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ move4.c: In function 'm_z': move4.c:74:9: warning: implicit declaration of function 'getkey' [-Wimplicit-function-declaration] key = getkey(0); ^ move4.c: In function 'm_scroll': move4.c:171:3: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(tmp, FALSE); ^ --- move5.o --- In file included from move5.c:15:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ move5.c: In function 'm_bword': move5.c:21:29: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] # define At2ndHZbyte(text) (IsIdxHZ((int)((text)-ptext),ptext) < 0) ^ move5.c:132:7: note: in expansion of macro 'At2ndHZbyte' if (At2ndHZbyte (text)) ^ --- opts.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c opts.c In file included from opts.c:16:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ opts.c:147:1: warning: return type defaults to 'int' [-Wimplicit-int] initopts() ^ opts.c: In function 'initopts': opts.c:156:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(o_shell, val); ^ opts.c:156:3: warning: incompatible implicit declaration of built-in function 'strcpy' opts.c:156:3: note: include '' or provide a declaration of 'strcpy' opts.c:160:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(o_term, val); ^ opts.c:160:3: note: include '' or provide a declaration of 'strcpy' opts.c: At top level: opts.c:200:1: warning: return type defaults to 'int' [-Wimplicit-int] dumpopts(all) ^ opts.c: In function 'dumpopts': opts.c:248:11: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] col += strlen(opts[i].name); ^ opts.c:248:11: warning: incompatible implicit declaration of built-in function 'strlen' opts.c:248:11: note: include '' or provide a declaration of 'strlen' opts.c:268:3: warning: implicit declaration of function 'exrefresh' [-Wimplicit-function-declaration] exrefresh(); ^ opts.c: At top level: opts.c:278:1: warning: return type defaults to 'int' [-Wimplicit-int] saveopts(fd) ^ opts.c: In function 'saveopts': opts.c:293:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(buf, "set "); ^ opts.c:293:3: note: include '' or provide a declaration of 'strcpy' opts.c:304:4: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(pos, "\n"); ^ opts.c:304:4: warning: incompatible implicit declaration of built-in function 'strcat' opts.c:304:4: note: include '' or provide a declaration of 'strcat' In file included from opts.c:15:0: config.h:146:17: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] #define twrite write ^ opts.c:315:3: note: in expansion of macro 'twrite' twrite(fd, buf, strlen(buf)); ^ opts.c:315:19: warning: incompatible implicit declaration of built-in function 'strlen' twrite(fd, buf, strlen(buf)); ^ opts.c:315:19: note: include '' or provide a declaration of 'strlen' opts.c: At top level: opts.c:321:1: warning: return type defaults to 'int' [-Wimplicit-int] setopts(assignments) ^ opts.c: In function 'setopts': opts.c:386:24: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] opts[i].name && strcmp(opts[i].name, name) && strcmp(opts[i].nm, name); ^ opts.c:394:4: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("invalid option name \"%s\"", name); ^ opts.c:413:9: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] j = atoi(value); ^ opts.c:431:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(opts[i].value, value); ^ opts.c:431:5: note: include '' or provide a declaration of 'strcpy' --- recycle.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c recycle.c In file included from recycle.c:16:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ recycle.c:38:1: warning: return type defaults to 'int' [-Wimplicit-int] garbage() ^ recycle.c: In function 'garbage': recycle.c:60:6: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] if (read(tmpfd, &oldhdr, sizeof oldhdr) != sizeof oldhdr) ^ recycle.c:62:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("garbage() failed to read oldhdr??"); ^ recycle.c:67:3: warning: 'return' with no value, in function returning non-void return; ^ recycle.c:75:11: warning: implicit declaration of function 'cutneeds' [-Wimplicit-function-declaration] for (i = cutneeds(&oldhdr) - 1; i >= 0; i--) ^ --- redraw.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c redraw.c In file included from redraw.c:21:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ redraw.c:29:1: warning: return type defaults to 'int' [-Wimplicit-int] redrawrange(after, pre, post) ^ redraw.c:50:1: warning: return type defaults to 'int' [-Wimplicit-int] redraw(curs, inputting) ^ redraw.c: In function 'redraw': redraw.c:78:3: warning: 'return' with no value, in function returning non-void return; ^ redraw.c:84:2: warning: implicit declaration of function 'mark2phys' [-Wimplicit-function-declaration] mark2phys(curs, text, inputting); ^ redraw.c:94:4: warning: implicit declaration of function 'smartdrawtext' [-Wimplicit-function-declaration] smartdrawtext(text, l); ^ redraw.c:115:5: warning: implicit declaration of function 'drawtext' [-Wimplicit-function-declaration] drawtext(text); ^ In file included from vi.h:51:0, from redraw.c:21: config.h:127:29: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:207:67: note: in expansion of macro 'ttywrite' #define wqrefresh(w) if ((w) - kbuf > 2000) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ redraw.c:336:2: note: in expansion of macro 'wqrefresh' wqrefresh(stdscr); ^ redraw.c: In function 'idx2col': redraw.c:367:7: warning: implicit declaration of function 'hasattr' [-Wimplicit-function-declaration] && !hasattr(markline(curs), text) ^ redraw.c: At top level: redraw.c:452:1: warning: return type defaults to 'int' [-Wimplicit-int] mark2phys(m, text, inputting) ^ redraw.c:486:1: warning: return type defaults to 'int' [-Wimplicit-int] drawtext(text) ^ redraw.c: In function 'drawtext': redraw.c:501:3: warning: 'return' with no value, in function returning non-void return; ^ redraw.c: At top level: redraw.c:691:8: warning: return type defaults to 'int' [-Wimplicit-int] static nudgecursor(same, scan, new, lno) ^ redraw.c:720:1: warning: return type defaults to 'int' [-Wimplicit-int] smartdrawtext(text, lno) ^ redraw.c: In function 'smartdrawtext': redraw.c:742:3: warning: 'return' with no value, in function returning non-void return; ^ redraw.c:754:3: warning: 'return' with no value, in function returning non-void return; ^ redraw.c:852:3: warning: 'return' with no value, in function returning non-void return; ^ --- regexp.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c regexp.c --- regsub.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c regsub.c --- regexp.o --- In file included from regexp.c:34:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ regexp.c: In function 'regcomp': regexp.c:286:31: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (OP(scan) == EXACTLY && strlen(OPERAND(scan)) >= len) { ^ regexp.c:286:31: warning: incompatible implicit declaration of built-in function 'strlen' regexp.c:286:31: note: include '' or provide a declaration of 'strlen' regexp.c: In function 'regmatch': regexp.c:951:10: warning: incompatible implicit declaration of built-in function 'strlen' len = strlen(opnd); ^ regexp.c:951:10: note: include '' or provide a declaration of 'strlen' In file included from regexp.c:33:0: regexp.c: In function 'regrepeat': config.h:135:17: warning: implicit declaration of function 'index' [-Wimplicit-function-declaration] # define strchr index ^ regexp.c:1123:35: note: in expansion of macro 'strchr' while (*scan && *scan != '\n' && strchr(opnd, *scan) != NULL) { ^ config.h:135:17: note: previous declaration of 'index' was here # define strchr index ^ regexp.c:905:16: note: in expansion of macro 'strchr' extern char *strchr(); ^ config.h:135:17: warning: incompatible implicit declaration of built-in function 'index' # define strchr index ^ regexp.c:1123:35: note: in expansion of macro 'strchr' while (*scan && *scan != '\n' && strchr(opnd, *scan) != NULL) { ^ config.h:135:17: warning: incompatible implicit declaration of built-in function 'index' # define strchr index ^ regexp.c:1129:35: note: in expansion of macro 'strchr' while (*scan && *scan != '\n' && strchr(opnd, *scan) == NULL) { ^ --- system.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c system.c In file included from system.c:24:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ system.c: In function 'system': system.c:41:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("Warning: \"%s\" has been modified but not yet saved", origname); ^ system.c:44:10: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (fork()) ^ system.c:51:3: warning: implicit declaration of function 'execle' [-Wimplicit-function-declaration] execle(o_shell, o_shell, "-c", cmd, (char *)0, environ); ^ system.c:51:3: warning: incompatible implicit declaration of built-in function 'execle' system.c:52:3: warning: implicit declaration of function 'HZ_abort' [-Wimplicit-function-declaration] HZ_abort(1); /* if we get here, the exec failed */ ^ system.c:56:3: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration] wait(&status); ^ system.c:57:18: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGINT, trapint); ^ In file included from /usr/include/sys/select.h:39:0, from /usr/include/sys/param.h:205, from config.h:10, from system.c:23: /usr/include/sys/signal.h:414:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^ system.c: In function 'rpipe': system.c:73:6: warning: implicit declaration of function 'pipe' [-Wimplicit-function-declaration] if (pipe(r0w1) < 0) ^ system.c:85:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(r0w1[0]); ^ system.c:89:3: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration] dup(r0w1[1]); ^ system.c:103:3: warning: incompatible implicit declaration of built-in function 'execle' execle(o_shell, o_shell, "-c", cmd, (char *)0, environ); ^ system.c: In function 'rpclose': system.c:124:17: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGINT, trapint); ^ In file included from /usr/include/sys/select.h:39:0, from /usr/include/sys/param.h:205, from config.h:10, from system.c:23: /usr/include/sys/signal.h:414:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^ system.c: In function 'wildcard': system.c:160:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(tmpblk.c, PROG); ^ system.c:160:3: warning: incompatible implicit declaration of built-in function 'strcpy' system.c:160:3: note: include '' or provide a declaration of 'strcpy' system.c:161:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(tmpblk.c, names); ^ system.c:161:3: warning: incompatible implicit declaration of built-in function 'strcat' system.c:161:3: note: include '' or provide a declaration of 'strcat' system.c:170:20: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] for (s = names + strlen(names) + 1, d = s + PROGLEN; s > names; ) ^ system.c:170:20: warning: incompatible implicit declaration of built-in function 'strlen' system.c:170:20: note: include '' or provide a declaration of 'strlen' system.c:174:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(names, PROG, PROGLEN); ^ system.c:174:3: warning: incompatible implicit declaration of built-in function 'strncpy' system.c:174:3: note: include '' or provide a declaration of 'strncpy' In file included from system.c:23:0: config.h:145:15: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] #define tread read ^ system.c:183:7: note: in expansion of macro 'tread' j = tread(fd, tmpblk.c + i, BLKSIZE - i); ^ system.c: In function 'filter': system.c:225:3: warning: implicit declaration of function 'mktemp' [-Wimplicit-function-declaration] mktemp(scrout); ^ system.c:232:4: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] unlink(scrout); ^ In file included from system.c:24:0: vi.h:231:32: warning: implicit declaration of function 'beforedo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ system.c:253:2: note: in expansion of macro 'ChangeText' ChangeText ^ vi.h:231:48: warning: implicit declaration of function 'afterdo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ system.c:253:2: note: in expansion of macro 'ChangeText' ChangeText ^ system.c:261:4: warning: implicit declaration of function 'delete' [-Wimplicit-function-declaration] delete(from, to); ^ system.c:268:4: warning: implicit declaration of function 'add' [-Wimplicit-function-declaration] add(from, tmpblk.c); ^ --- tio.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c tio.c In file included from tio.c:15:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ In file included from vi.h:51:0, from tio.c:15: tio.c: In function 'vgets': config.h:127:29: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^ tio.c:39:2: note: in expansion of macro 'refresh' refresh(); ^ tio.c:45:8: warning: implicit declaration of function 'getkey' [-Wimplicit-function-declaration] ch = getkey(quoted ? 0 : WHEN_EX); ^ tio.c:87:9: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] if (IsIdxHZ(len, buf) < 0) ^ tio.c:143:7: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration] beep (); ^ tio.c: At top level: tio.c:179:1: warning: return type defaults to 'int' [-Wimplicit-int] beep() ^ tio.c:192:8: warning: type defaults to 'int' in declaration of 'manymsgs' [-Wimplicit-int] static manymsgs; /* This variable keeps msgs from overwriting each other */ ^ tio.c:203:1: warning: return type defaults to 'int' [-Wimplicit-int] msg(fmt, arg1, arg2, arg3, arg4, arg5, arg6, arg7) ^ tio.c: In function 'msg': tio.c:215:3: warning: implicit declaration of function 'exrefresh' [-Wimplicit-function-declaration] exrefresh(); ^ tio.c:229:4: warning: 'return' with no value, in function returning non-void return; ^ tio.c:235:16: warning: 'return' with no value, in function returning non-void if (!*pmsg) return; ^ tio.c:239:4: warning: 'return' with no value, in function returning non-void return; ^ tio.c: At top level: tio.c:266:1: warning: return type defaults to 'int' [-Wimplicit-int] exrefresh() ^ tio.c:300:1: warning: return type defaults to 'int' [-Wimplicit-int] ungetkey(key) ^ tio.c: In function 'getkey': tio.c:407:5: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(cursor, FALSE); ^ In file included from tio.c:13:0: config.h:124:28: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] # define ttyread(buf, len) read(0, buf, len) /* raw read */ ^ tio.c:444:19: note: in expansion of macro 'ttyread' while ((nkeys = ttyread(keybuf, sizeof keybuf)) <= 0) ^ tio.c:472:10: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (!strncmp(km->rawin, kptr, nkeys - next)) ^ tio.c:492:19: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] signal(SIGALRM, dummy); ^ In file included from /usr/include/sys/select.h:39:0, from /usr/include/sys/param.h:205, from config.h:10, from tio.c:13: /usr/include/sys/signal.h:414:17: note: expected 'void (*)(int)' but argument is of type 'int (*)()' __sighandler_t *signal (int, __sighandler_t *); ^ tio.c:494:3: warning: implicit declaration of function 'alarm' [-Wimplicit-function-declaration] alarm((unsigned)*o_keytime); ^ tio.c: At top level: tio.c:565:1: warning: return type defaults to 'int' [-Wimplicit-int] mapkey(rawin, cooked, when, name) ^ tio.c: In function 'mapkey': tio.c:586:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] j = strlen(rawin); ^ tio.c:586:6: warning: incompatible implicit declaration of built-in function 'strlen' tio.c:586:6: note: include '' or provide a declaration of 'strlen' tio.c:609:3: warning: 'return' with no value, in function returning non-void return; ^ tio.c:617:3: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] strncpy(mapped[i].rawin, rawin, j); ^ tio.c:617:3: warning: incompatible implicit declaration of built-in function 'strncpy' tio.c:617:3: note: include '' or provide a declaration of 'strncpy' tio.c:618:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(mapped[i].cooked, cooked); ^ tio.c:618:3: warning: incompatible implicit declaration of built-in function 'strcpy' tio.c:618:3: note: include '' or provide a declaration of 'strcpy' tio.c: At top level: tio.c:631:1: warning: return type defaults to 'int' [-Wimplicit-int] dumpkey(when) ^ tio.c: In function 'dumpkey': tio.c:631:1: warning: type of 'when' defaults to 'int' [-Wimplicit-int] tio.c:650:11: warning: incompatible implicit declaration of built-in function 'strlen' len -= strlen(mapped[i].name); ^ tio.c:650:11: note: include '' or provide a declaration of 'strlen' tio.c: At top level: tio.c:706:1: warning: return type defaults to 'int' [-Wimplicit-int] savekeys(fd) ^ tio.c: In function 'savekeys': tio.c:734:20: warning: incompatible implicit declaration of built-in function 'strlen' twrite(fd, buf, strlen(buf)); ^ tio.c:734:20: note: include '' or provide a declaration of 'strlen' tio.c:743:21: warning: incompatible implicit declaration of built-in function 'strlen' twrite(fd, buf, strlen(buf)); ^ tio.c:743:21: note: include '' or provide a declaration of 'strlen' tio.c:750:21: warning: incompatible implicit declaration of built-in function 'strlen' twrite(fd, buf, strlen(buf)); ^ tio.c:750:21: note: include '' or provide a declaration of 'strlen' --- tmp.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c tmp.c In file included from tmp.c:15:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ tmp.c: In function 'tmpstart': tmp.c:50:2: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^ tmp.c:56:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(origname, filename); ^ tmp.c:56:3: warning: incompatible implicit declaration of built-in function 'strcpy' tmp.c:56:3: note: include '' or provide a declaration of 'strcpy' tmp.c:23:39: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] #define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9) ^ tmp.c:60:4: note: in expansion of macro 'FAIL' FAIL("Can't open \"%s\"", origname); ^ tmp.c:23:54: warning: implicit declaration of function 'endwin' [-Wimplicit-function-declaration] #define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9) ^ tmp.c:60:4: note: in expansion of macro 'FAIL' FAIL("Can't open \"%s\"", origname); ^ tmp.c:23:64: warning: implicit declaration of function 'HZ_abort' [-Wimplicit-function-declaration] #define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9) ^ tmp.c:60:4: note: in expansion of macro 'FAIL' FAIL("Can't open \"%s\"", origname); ^ tmp.c:99:24: warning: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration] (statb.st_uid != geteuid() ? 0022 : 0200))) ^ tmp.c:132:13: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] { int pid = getpid() ; ^ tmp.c:139:6: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] if (access(tmpname, 0) == 0) ^ tmp.c:146:2: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(creat(tmpname, 0600)); ^ tmp.c:158:2: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] write(tmpfd, hdr.c, BLKSIZE); ^ tmp.c:164:2: warning: implicit declaration of function 'garbage' [-Wimplicit-function-declaration] garbage(); ^ tmp.c:180:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(this->c, "\n"); /* put a line in it */ ^ tmp.c:180:3: note: include '' or provide a declaration of 'strcpy' In file included from tmp.c:14:0: config.h:145:15: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] #define tread read ^ tmp.c:231:13: note: in expansion of macro 'tread' nread = tread(origfd, &this->c[inbuf], BLKSIZE - 1 - inbuf); ^ tmp.c:238:6: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] unlink(tmpname); ^ tmp.c:320:4: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(this->c, "\n"); /* put a line in it */ ^ tmp.c:320:4: note: include '' or provide a declaration of 'strcpy' tmp.c: At top level: tmp.c:348:1: warning: return type defaults to 'int' [-Wimplicit-int] tmpsave(filename, bang) ^ tmp.c: In function 'tmpsave': tmp.c:398:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (strcmp(filename, origname) && access(filename, 0) == 0 && !bang) ^ tmp.c:429:6: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (strncmp(filename, o_directory, strlen(o_directory))) ^ tmp.c:429:37: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (strncmp(filename, o_directory, strlen(o_directory))) ^ tmp.c:429:37: warning: incompatible implicit declaration of built-in function 'strlen' tmp.c:429:37: note: include '' or provide a declaration of 'strlen' tmp.c: At top level: tmp.c:448:1: warning: return type defaults to 'int' [-Wimplicit-int] tmpabort(bang) ^ tmp.c: In function 'tmpabort': tmp.c:462:11: warning: implicit declaration of function 'tmpend' [-Wimplicit-function-declaration] return tmpend(bang); ^ tmp.c:468:2: warning: implicit declaration of function 'cutswitch' [-Wimplicit-function-declaration] cutswitch(tmpname); ^ tmp.c:472:2: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(prevorig, origname); ^ tmp.c:472:2: note: include '' or provide a declaration of 'strcpy' tmp.c:476:2: warning: implicit declaration of function 'blkinit' [-Wimplicit-function-declaration] blkinit(); ^ tmp.c: At top level: tmp.c:487:1: warning: return type defaults to 'int' [-Wimplicit-int] tmpend(bang) ^ --- vars.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c vars.c In file included from vars.c:14:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ --- vcmd.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c vcmd.c In file included from vcmd.c:15:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ vcmd.c: In function 'IsIdxHZ': vcmd.c:53:12: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if (idx > strlen(text)) ^ vcmd.c:53:12: warning: incompatible implicit declaration of built-in function 'strlen' vcmd.c:53:12: note: include '' or provide a declaration of 'strlen' vcmd.c: In function 'v_redraw': vcmd.c:128:2: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^ In file included from vi.h:51:0, from vcmd.c:15: vcmd.c: In function 'v_1ex': config.h:127:29: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^ vcmd.c:145:3: note: in expansion of macro 'refresh' refresh(); ^ vcmd.c:151:2: warning: implicit declaration of function 'exrefresh' [-Wimplicit-function-declaration] exrefresh(); ^ vcmd.c:161:3: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg("[Hit any key to continue]"); ^ vcmd.c:162:7: warning: implicit declaration of function 'getkey' [-Wimplicit-function-declaration] if (getkey(0) == ':') ^ vcmd.c: In function 'v_undo': vcmd.c:178:2: warning: implicit declaration of function 'undo' [-Wimplicit-function-declaration] undo(); ^ In file included from vcmd.c:15:0: vcmd.c: In function 'v_xchar': vi.h:231:32: warning: implicit declaration of function 'beforedo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:41: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ vcmd.c:203:2: note: in expansion of macro 'ChangeText' ChangeText ^ vi.h:231:48: warning: implicit declaration of function 'afterdo' [-Wimplicit-function-declaration] #define ChangeText BeforeAfter(beforedo(FALSE),afterdo()) ^ vi.h:230:64: note: in definition of macro 'BeforeAfter' #define BeforeAfter(before, after) for((before),bavar=1;bavar;(after),bavar=0) ^ vcmd.c:203:2: note: in expansion of macro 'ChangeText' ChangeText ^ vcmd.c:205:3: warning: implicit declaration of function 'cut' [-Wimplicit-function-declaration] cut(m, m + cnt); ^ vcmd.c:206:3: warning: implicit declaration of function 'delete' [-Wimplicit-function-declaration] delete(m, m + cnt); ^ vcmd.c: In function 'v_ulcase': vcmd.c:281:4: warning: implicit declaration of function 'change' [-Wimplicit-function-declaration] change(m, m + 1, new); ^ vcmd.c: In function 'v_selcut': vcmd.c:461:2: warning: implicit declaration of function 'cutname' [-Wimplicit-function-declaration] cutname(key); ^ --- vi.o --- --- vcmd.o --- vcmd.c: In function 'v_insert': vcmd.c:551:4: warning: implicit declaration of function 'add' [-Wimplicit-function-declaration] add(m, "\n"); ^ vcmd.c: In function 'v_filter': vcmd.c:718:6: warning: implicit declaration of function 'vgets' [-Wimplicit-function-declaration] if (vgets('!', cmdln, sizeof(cmdln)) > 0) ^ vcmd.c:720:3: warning: implicit declaration of function 'filter' [-Wimplicit-function-declaration] filter(m, n, cmdln); ^ vcmd.c: In function 'v_switch': vcmd.c:741:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] { strcpy(tmpblk.c, prevorig); ^ vcmd.c:741:4: warning: incompatible implicit declaration of built-in function 'strcpy' vcmd.c:741:4: note: include '' or provide a declaration of 'strcpy' vcmd.c: In function 'v_keyword': vcmd.c:783:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^ vcmd.c:787:10: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] switch (fork()) ^ vcmd.c:793:3: warning: implicit declaration of function 'execl' [-Wimplicit-function-declaration] execl(o_keywordprg, o_keywordprg, keyword, (char *)0); ^ vcmd.c:793:3: warning: incompatible implicit declaration of built-in function 'execl' --- vi.o --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -c vi.c --- vcmd.o --- vcmd.c:794:3: warning: implicit declaration of function 'HZ_abort' [-Wimplicit-function-declaration] HZ_abort(2); /* if we get here, the exec failed */ ^ vcmd.c:797:3: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration] wait(&status); ^ vcmd.c:817:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(FALSE); /* "resume, but not quietly" */ ^ vcmd.c: In function 'v_increment': vcmd.c:829:9: warning: type defaults to 'int' in declaration of 'sign' [-Wimplicit-int] static sign; ^ vcmd.c:863:17: warning: incompatible implicit declaration of built-in function 'strlen' change(m, m + strlen(keyword), newval); ^ vcmd.c:863:17: note: include '' or provide a declaration of 'strlen' vcmd.c: In function 'v_undoline': vcmd.c:915:3: warning: implicit declaration of function 'changeline' [-Wimplicit-function-declaration] changeline(U_line, U_text); ^ --- vi.o --- In file included from vi.c:13:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ vi.c:77:21: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] /* ^Z suspend */ {suspend_elvis, NO_ARGS, NO_FLAGS}, ^ vi.c:77:21: note: (near initialization for 'vikeys[26].func') vi.c:223:1: warning: return type defaults to 'int' [-Wimplicit-int] vi() ^ vi.c: In function 'vi': vi.c:240:2: warning: implicit declaration of function 'redraw' [-Wimplicit-function-declaration] redraw(MARK_UNSET, FALSE); ^ vi.c:241:2: warning: implicit declaration of function 'msg' [-Wimplicit-function-declaration] msg((char *)0); ^ vi.c:290:11: warning: implicit declaration of function 'getkey' [-Wimplicit-function-declaration] key = getkey(WHEN_VICMD); ^ vi.c:293:5: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration] beep (); ^ vi.c:343:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(U_text, fetchline(U_line)); ^ vi.c:343:5: warning: incompatible implicit declaration of built-in function 'strcpy' vi.c:343:5: note: include '' or provide a declaration of 'strcpy' vi.c:367:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(U_text, fetchline(U_line)); ^ vi.c:367:5: note: include '' or provide a declaration of 'strcpy' vi.c:517:9: warning: implicit declaration of function 'vgets' [-Wimplicit-function-declaration] if (vgets(key, text, sizeof text) >= 0) ^ In file included from vi.h:51:0, from vi.c:13: config.h:127:29: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] # define ttywrite(buf, len) write(1, buf, len) /* raw write */ ^ curses.h:115:24: note: in definition of macro 'VOIDBIOS' #define VOIDBIOS(x,y) {y;} ^ curses.h:206:38: note: in expansion of macro 'VOIDBIOS' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:206:60: note: in expansion of macro 'ttywrite' #define wrefresh(w) if ((w) != kbuf) VOIDBIOS((w) = kbuf, {ttywrite(kbuf, (int)((w) - kbuf)); (w) = kbuf;}) else ^ curses.h:205:31: note: in expansion of macro 'wrefresh' #define refresh() VOIDBIOS(0, wrefresh(stdscr)) ^ vi.c:521:6: note: in expansion of macro 'refresh' refresh(); ^ vi.c: In function 'adjmove': vi.c:677:9: warning: implicit declaration of function 'IsIdxHZ' [-Wimplicit-function-declaration] if (IsIdxHZ (markidx(new), ptext) < 0) ^ vi.c:694:12: warning: implicit declaration of function 'idx2col' [-Wimplicit-function-declaration] colno = idx2col(new, ptext, FALSE); ^ vi.c: At top level: vi.c:746:1: warning: return type defaults to 'int' [-Wimplicit-int] suspend_elvis() ^ vi.c: In function 'suspend_elvis': vi.c:750:2: warning: implicit declaration of function 'suspend_curses' [-Wimplicit-function-declaration] suspend_curses(); ^ vi.c:757:2: warning: implicit declaration of function 'resume_curses' [-Wimplicit-function-declaration] resume_curses(TRUE); ^ --- virec --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H virec.c -o virec In file included from virec.c:15:0: vi.h:354:9: warning: type defaults to 'int' in declaration of 'ex' [-Wimplicit-int] extern ex(); ^ vi.h:355:9: warning: type defaults to 'int' in declaration of 'vi' [-Wimplicit-int] extern vi(); ^ vi.h:356:9: warning: type defaults to 'int' in declaration of 'doexcmd' [-Wimplicit-int] extern doexcmd(); ^ virec.c:32:1: warning: return type defaults to 'int' [-Wimplicit-int] main(argc, argv) ^ virec.c: In function 'main': virec.c:46:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(o_directory, tmp); ^ virec.c:46:3: warning: incompatible implicit declaration of built-in function 'strcpy' virec.c:46:3: note: include '' or provide a declaration of 'strcpy' virec.c:48:20: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if (argc >= 3 && !strcmp(argv[1], "-d")) ^ virec.c:50:3: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy(o_directory, argv[2]); ^ virec.c:50:3: note: include '' or provide a declaration of 'strcpy' virec.c:62:12: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] else if (read(0, &hdr, BLKSIZE) != BLKSIZE) ^ virec.c:68:4: warning: implicit declaration of function 'copytext' [-Wimplicit-function-declaration] copytext(0, stdout); ^ virec.c:75:4: warning: implicit declaration of function 'recover' [-Wimplicit-function-declaration] recover(*++argv); ^ virec.c:78:2: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(0); ^ virec.c:78:2: warning: incompatible implicit declaration of built-in function 'exit' virec.c:78:2: note: include '' or provide a declaration of 'exit' virec.c: At top level: virec.c:83:1: warning: return type defaults to 'int' [-Wimplicit-int] recover(filename) ^ virec.c: In function 'recover': virec.c:99:4: warning: 'return' with no value, in function returning non-void return; ^ virec.c:114:3: warning: 'return' with no value, in function returning non-void return; ^ virec.c:139:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(tmpfd); ^ virec.c:140:5: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] unlink(tmpname); ^ virec.c:141:5: warning: 'return' with no value, in function returning non-void return; ^ virec.c:146:5: warning: 'return' with no value, in function returning non-void return; ^ virec.c:158:3: warning: 'return' with no value, in function returning non-void return; ^ virec.c:173:3: warning: 'return' with no value, in function returning non-void return; ^ virec.c:182:3: warning: 'return' with no value, in function returning non-void return; ^ virec.c: At top level: virec.c:196:1: warning: return type defaults to 'int' [-Wimplicit-int] copytext(tmpfd, fp) ^ --- celvis --- cc -pipe -Wno-error=return-type -I/usr/local/include -I/usr/local/include/ncurses -O2 -fno-strict-aliasing -D_HAVE_PARAM_H -o celvis blk.o cmd1.o cmd2.o curses.o cut.o ex.o input.o main.o misc.o modify.o move1.o move2.o move3.o move4.o move5.o opts.o recycle.o redraw.o regexp.o regsub.o system.o tio.o tmp.o vars.o vcmd.o vi.o -L/usr/local/lib -Wl,-rpath=/usr/local/lib -lncurses system.o:system.c:function filter: warning: warning: mktemp() possibly used unsafely; consider using mkstemp() -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- ===> zh-celvis-1.3 depends on file: /usr/local/lib/libncurses.so.6 - found -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for zh-celvis-1.3 ===> Generating temporary packing list install -s -m 555 /construction/chinese/celvis/celvis/celvis /construction/chinese/celvis/celvis/virec /construction/chinese/celvis/stage/usr/local/bin ln -s celvis /construction/chinese/celvis/stage/usr/local/bin/cvi install -m 444 /xports/chinese/celvis/files/celvis.1 /construction/chinese/celvis/stage/usr/local/man/man1 ====> Compressing man pages (compress-man) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for zh-celvis-1.3 file sizes/checksums [4]: . done packing files [4]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Wednesday, 18 APR 2018 at 04:19:57 UTC Duration: 00:00:09