=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/misc/mmv", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for mmv-1.0b --- mmv.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DIS_SYSV -DHAS_DIRENT -DHAS_RENAME -c mmv.c mmv.c:131:14: error: conflicting types for 'getenv'; have 'char *(void)' 131 | extern char *getenv(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from mmv.c:123: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ mmv.c: In function 'main': mmv.c:501:5: warning: old-style function definition [-Wold-style-definition] 501 | int main(argc, argv) | ^~~~ mmv.c:510:9: error: too many arguments to function 'procargs'; expected 0, have 4 510 | procargs(argc, argv, &frompat, &topat); | ^~~~~~~~ ~~~~ mmv.c:352:13: note: declared here 352 | static void procargs(/* int argc, char **argv, | ^~~~~~~~ mmv.c:511:9: error: too many arguments to function 'domatch'; expected 0, have 2 511 | domatch(frompat, topat); | ^~~~~~~ ~~~~~~~ mmv.c:354:13: note: declared here 354 | static void domatch(/* char *cfrom, char *cto */); | ^~~~~~~ mmv.c:517:9: error: too many arguments to function 'scandeletes'; expected 0, have 1 517 | scandeletes(baddel); | ^~~~~~~~~~~ ~~~~~~ mmv.c:388:13: note: declared here 388 | static void scandeletes(/* int (*pkilldel)(REP *p) */); | ^~~~~~~~~~~ mmv.c:520:17: error: too many arguments to function 'scandeletes'; expected 0, have 1 520 | scandeletes(skipdel); | ^~~~~~~~~~~ ~~~~~~~ mmv.c:388:13: note: declared here 388 | static void scandeletes(/* int (*pkilldel)(REP *p) */); | ^~~~~~~~~~~ mmv.c: In function 'init': mmv.c:547:21: error: too many arguments to function 'getenv'; expected 0, have 1 547 | if ((home = getenv("HOME")) == NULL || strcmp(home, SLASHSTR) == 0) | ^~~~~~ ~~~~~~ mmv.c:131:14: note: declared here 131 | extern char *getenv(); | ^~~~~~ mmv.c:554:16: error: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration] 554 | euid = geteuid(); | ^~~~~~~ mmv.c:555:15: error: implicit declaration of function 'getuid'; did you mean 'getcwd'? [-Wimplicit-function-declaration] 555 | uid = getuid(); | ^~~~~~ | getcwd mmv.c:556:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 556 | signal(SIGINT, breakout); | ^~~~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from mmv.c:191: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ mmv.c:399:13: note: 'breakout' declared here 399 | static void breakout(/* */); | ^~~~~~~~ mmv.c:560:28: error: too many arguments to function 'myalloc'; expected 0, have 1 560 | dirs = (DIRINFO **)myalloc(dirroom * sizeof(DIRINFO *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:407:14: note: declared here 407 | static void *myalloc(/* unsigned k */); | ^~~~~~~ mmv.c:561:30: error: too many arguments to function 'myalloc'; expected 0, have 1 561 | handles = (HANDLE **)myalloc(handleroom * sizeof(HANDLE *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:407:14: note: declared here 407 | static void *myalloc(/* unsigned k */); | ^~~~~~~ mmv.c: In function 'procargs': mmv.c:566:13: warning: old-style function definition [-Wold-style-definition] 566 | static void procargs(argc, argv, pfrompat, ptopat) | ^~~~~~~~ mmv.c:660:17: error: implicit declaration of function 'setuid'; did you mean 'si_uid'? [-Wimplicit-function-declaration] 660 | setuid(uid); | ^~~~~~ | si_uid mmv.c:661:17: error: implicit declaration of function 'setgid' [-Wimplicit-function-declaration] 661 | setgid(getgid()); | ^~~~~~ mmv.c:661:24: error: implicit declaration of function 'getgid'; did you mean 'getcwd'? [-Wimplicit-function-declaration] 661 | setgid(getgid()); | ^~~~~~ | getcwd mmv.c: In function 'domatch': mmv.c:681:13: warning: old-style function definition [-Wold-style-definition] 681 | static void domatch(cfrom, cto) | ^~~~~~~ mmv.c: In function 'getpat': mmv.c:710:32: error: too many arguments to function 'getword'; expected 0, have 1 710 | if ((fromlen = getword(from)) == 0 || fromlen == -1) | ^~~~~~~ ~~~~ mmv.c:356:12: note: declared here 356 | static int getword(/* char *buf */); | ^~~~~~~ mmv.c:714:38: error: too many arguments to function 'getword'; expected 0, have 1 714 | if ((tolen = getword(to)) == 0) { | ^~~~~~~ ~~ mmv.c:356:12: note: declared here 356 | static int getword(/* char *buf */); | ^~~~~~~ mmv.c:725:21: error: too many arguments to function 'getword'; expected 0, have 1 725 | if (getword(extra) == 0) | ^~~~~~~ ~~~~~ mmv.c:356:12: note: declared here 356 | static int getword(/* char *buf */); | ^~~~~~~ mmv.c:729:22: error: too many arguments to function 'getword'; expected 0, have 1 729 | gotit = (getword(extra) == 0); | ^~~~~~~ ~~~~~ mmv.c:356:12: note: declared here 356 | static int getword(/* char *buf */); | ^~~~~~~ mmv.c: In function 'getword': mmv.c:743:12: warning: old-style function definition [-Wold-style-definition] 743 | static int getword(buf) | ^~~~~~~ mmv.c: In function 'matchpat': mmv.c:777:18: error: too many arguments to function 'dostage'; expected 0, have 6 777 | else if (dostage(from, pathbuf, start, len, 0, 0)) { | ^~~~~~~ ~~~~ mmv.c:359:12: note: declared here 359 | static int dostage(/* char *lastend, char *pathend, | ^~~~~~~ mmv.c: In function 'dostage': mmv.c:1044:12: warning: old-style function definition [-Wold-style-definition] 1044 | static int dostage(lastend, pathend, start1, len1, stage, anylev) | ^~~~~~~ mmv.c:1077:18: error: too many arguments to function 'checkdir'; expected 0, have 3 1077 | if ((h = checkdir(pathbuf, pathend, 0)) == NULL) { | ^~~~~~~~ ~~~~~~~ mmv.c:372:16: note: declared here 372 | static HANDLE *checkdir(/* char *p, char *pathend, int which */); | ^~~~~~~~ mmv.c:1098:29: error: too many arguments to function 'dwritable'; expected 0, have 1 1098 | if ((op & MOVE) && !dwritable(h)) { | ^~~~~~~~~ ~ mmv.c:417:12: note: declared here 417 | static int dwritable(/* HANDLE *h */); | ^~~~~~~~~ mmv.c:1110:33: error: too many arguments to function 'ffirst'; expected 0, have 3 1110 | pf = di->di_fils + (i = ffirst(lastend, litlen, di)); | ^~~~~~ ~~~~~~~ mmv.c:371:12: note: declared here 371 | static int ffirst(/* char *s, int n, DIRINFO *d */); | ^~~~~~ mmv.c:1114:32: error: too many arguments to function 'trymatch'; expected 0, have 2 1114 | (try = trymatch(*pf, lastend)) != 0 && | ^~~~~~~~ ~~~ mmv.c:361:12: note: declared here 361 | static int trymatch(/* FILEINFO *ffrom, char *pat */); | ^~~~~~~~ mmv.c:1117:33: error: too many arguments to function 'match'; expected 0, have 4 1117 | match(lastend + litlen, (*pf)->fi_name + litlen, | ^~~~~ ~~~~~~~~~~~~~~~~ mmv.c:383:12: note: declared here 383 | static int match(/* char *pat, char *s, char **start1, int *len1 */); | ^~~~~ mmv.c:1120:25: error: too many arguments to function 'keepmatch'; expected 0, have 6 1120 | keepmatch(*pf, pathend, &k, 0, wantdirs, laststage) | ^~~~~~~~~ ~~~ mmv.c:362:12: note: declared here 362 | static int keepmatch(/* FILEINFO *ffrom, char *pathend, | ^~~~~~~~~ mmv.c:1123:40: error: too many arguments to function 'dostage'; expected 0, have 6 1123 | ret &= dostage(stager[stage], pathend + k, | ^~~~~~~ ~~~~~~~~~~~~~ mmv.c:1044:12: note: declared here 1044 | static int dostage(lastend, pathend, start1, len1, stage, anylev) | ^~~~~~~ mmv.c:1129:37: error: too many arguments to function 'badrep'; expected 0, have 6 1129 | if (badrep(h, *pf, &hto, &nto, &fdel, &flags)) | ^~~~~~ ~ mmv.c:364:12: note: declared here 364 | static int badrep(/* HANDLE *hfrom, FILEINFO *ffrom, | ^~~~~~ mmv.c:1132:68: error: too many arguments to function 'challoc'; expected 0, have 2 1132 | (*pf)->fi_rep = p = (REP *)challoc(sizeof(REP), 1); | ^~~~~~~ ~~~~~~~~~~~ mmv.c:408:14: note: declared here 408 | static void *challoc(/* int k, int which */); | ^~~~~~~ mmv.c:1159:33: error: too many arguments to function 'keepmatch'; expected 0, have 6 1159 | keepmatch(*pf, pathend, &k, 1, 1, 0) | ^~~~~~~~~ ~~~ mmv.c:362:12: note: declared here 362 | static int keepmatch(/* FILEINFO *ffrom, char *pathend, | ^~~~~~~~~ mmv.c:1162:40: error: too many arguments to function 'dostage'; expected 0, have 6 1162 | ret &= dostage(lastend, pathend + k, start1, len1, stage, 1); | ^~~~~~~ ~~~~~~~ mmv.c:1044:12: note: declared here 1044 | static int dostage(lastend, pathend, start1, len1, stage, anylev) | ^~~~~~~ mmv.c: In function 'trymatch': mmv.c:1169:12: warning: old-style function definition [-Wold-style-definition] 1169 | static int trymatch(ffrom, pat) | ^~~~~~~~ mmv.c: In function 'keepmatch': mmv.c:1194:12: warning: old-style function definition [-Wold-style-definition] 1194 | static int keepmatch(ffrom, pathend, pk, needslash, dirs, fils) | ^~~~~~~~~ mmv.c:1213:9: error: too many arguments to function 'getstat'; expected 0, have 2 1213 | getstat(pathbuf, ffrom); | ^~~~~~~ ~~~~~~~ mmv.c:416:12: note: declared here 416 | static int getstat(/* char *full, FILEINFO *f */); | ^~~~~~~ mmv.c: In function 'badrep': mmv.c:1226:12: warning: old-style function definition [-Wold-style-definition] 1226 | static int badrep(hfrom, ffrom, phto, pnto, pfdel, pflags) | ^~~~~~ mmv.c:1257:44: error: implicit declaration of function 'access' [-Wimplicit-function-declaration] 1257 | else if ((op & (COPY | APPEND)) && access(pathbuf, R_OK)) | ^~~~~~ mmv.c:1267:28: error: too many arguments to function 'checkto'; expected 0, have 5 1267 | else if (repbad || checkto(hfrom, f, phto, pnto, pfdel) || badname(*pnto)) | ^~~~~~~ ~~~~~ mmv.c:366:12: note: declared here 366 | static int checkto(/* HANDLE *hfrom, char *f, | ^~~~~~~ mmv.c:1267:68: error: too many arguments to function 'badname'; expected 0, have 1 1267 | else if (repbad || checkto(hfrom, f, phto, pnto, pfdel) || badname(*pnto)) | ^~~~~~~ ~~~~~ mmv.c:369:12: note: declared here 369 | static int badname(/* char *s */); | ^~~~~~~ mmv.c:1277:19: error: too many arguments to function 'dwritable'; expected 0, have 1 1277 | else if (!dwritable(*phto)) | ^~~~~~~~~ ~~~~~ mmv.c:417:12: note: declared here 417 | static int dwritable(/* HANDLE *h */); | ^~~~~~~~~ mmv.c: In function 'checkto': mmv.c:1315:12: warning: old-style function definition [-Wold-style-definition] 1315 | static int checkto(hfrom, f, phto, pnto, pfdel) | ^~~~~~~ mmv.c:1333:38: error: too many arguments to function 'fsearch'; expected 0, have 2 1333 | if ((fdel = *pfdel = fsearch(pathend, hfrom->h_di)) != NULL) { | ^~~~~~~ ~~~~~~~ mmv.c:370:18: note: declared here 370 | static FILEINFO *fsearch(/* char *s, DIRINFO *d */); | ^~~~~~~ mmv.c:1336:25: error: too many arguments to function 'getstat'; expected 0, have 2 1336 | getstat(fullrep, fdel); | ^~~~~~~ ~~~~~~~ mmv.c:416:12: note: declared here 416 | static int getstat(/* char *full, FILEINFO *f */); | ^~~~~~~ mmv.c:230:34: error: too many arguments to function 'challoc'; expected 0, have 2 230 | #define mydup(s) (strcpy((char *)challoc(strlen(s) + 1, 0), (s))) | ^~~~~~~ ~~~~~~~~~~~~~ mmv.c:1340:33: note: in expansion of macro 'mydup' 1340 | *pnto = mydup(pathend); | ^~~~~ mmv.c:408:14: note: declared here 408 | static void *challoc(/* int k, int which */); | ^~~~~~~ mmv.c:1343:27: error: too many arguments to function 'getpath'; expected 0, have 1 1343 | pathend = getpath(tpath); | ^~~~~~~ ~~~~~ mmv.c:368:14: note: declared here 368 | static char *getpath(/* char *tpath */); | ^~~~~~~ mmv.c:1345:25: error: too many arguments to function 'checkdir'; expected 0, have 3 1345 | *phto = checkdir(tpath, tpath + hlen, 1); | ^~~~~~~~ ~~~~~ mmv.c:372:16: note: declared here 372 | static HANDLE *checkdir(/* char *p, char *pathend, int which */); | ^~~~~~~~ mmv.c:1349:42: error: too many arguments to function 'fsearch'; expected 0, have 2 1349 | (fdel = *pfdel = fsearch(pathend, (*phto)->h_di)) != NULL && | ^~~~~~~ ~~~~~~~ mmv.c:370:18: note: declared here 370 | static FILEINFO *fsearch(/* char *s, DIRINFO *d */); | ^~~~~~~ mmv.c:1353:26: error: too many arguments to function 'getstat'; expected 0, have 2 1353 | (getstat(fullrep, fdel), fdel->fi_stflags & FI_ISDIR) | ^~~~~~~ ~~~~~~~ mmv.c:416:12: note: declared here 416 | static int getstat(/* char *full, FILEINFO *f */); | ^~~~~~~ mmv.c:1362:33: error: too many arguments to function 'checkdir'; expected 0, have 3 1362 | *phto = checkdir(tpath, tpath + hlen, 1); | ^~~~~~~~ ~~~~~ mmv.c:372:16: note: declared here 372 | static HANDLE *checkdir(/* char *p, char *pathend, int which */); | ^~~~~~~~ mmv.c:1373:49: error: too many arguments to function 'fsearch'; expected 0, have 2 1373 | fdel = *pfdel = fsearch(f, (*phto)->h_di); | ^~~~~~~ ~ mmv.c:370:18: note: declared here 370 | static FILEINFO *fsearch(/* char *s, DIRINFO *d */); | ^~~~~~~ mmv.c:1376:41: error: too many arguments to function 'getstat'; expected 0, have 2 1376 | getstat(fullrep, fdel); | ^~~~~~~ ~~~~~~~ mmv.c:416:12: note: declared here 416 | static int getstat(/* char *full, FILEINFO *f */); | ^~~~~~~ mmv.c:230:34: error: too many arguments to function 'challoc'; expected 0, have 2 230 | #define mydup(s) (strcpy((char *)challoc(strlen(s) + 1, 0), (s))) | ^~~~~~~ ~~~~~~~~~~~~~ mmv.c:1383:33: note: in expansion of macro 'mydup' 1383 | *pnto = mydup(pathend); | ^~~~~ mmv.c:408:14: note: declared here 408 | static void *challoc(/* int k, int which */); | ^~~~~~~ mmv.c: In function 'getpath': mmv.c:1389:14: warning: old-style function definition [-Wold-style-definition] 1389 | static char *getpath(tpath) | ^~~~~~~ mmv.c: In function 'badname': mmv.c:1414:12: warning: old-style function definition [-Wold-style-definition] 1414 | static int badname(s) | ^~~~~~~ mmv.c: In function 'getstat': mmv.c:1439:12: warning: old-style function definition [-Wold-style-definition] 1439 | static int getstat(ffull, f) | ^~~~~~~ mmv.c: In function 'dwritable': mmv.c:1477:12: warning: old-style function definition [-Wold-style-definition] 1477 | static int dwritable(h) | ^~~~~~~~~ mmv.c: In function 'fwritable': mmv.c:1508:12: warning: old-style function definition [-Wold-style-definition] 1508 | static int fwritable(hname, f) | ^~~~~~~~~ mmv.c: In function 'fsearch': mmv.c:1526:18: warning: old-style function definition [-Wold-style-definition] 1526 | static FILEINFO *fsearch(s, d) | ^~~~~~~ mmv.c: In function 'ffirst': mmv.c:1548:12: warning: old-style function definition [-Wold-style-definition] 1548 | static int ffirst(s, n, d) | ^~~~~~ mmv.c: In function 'checkdir': mmv.c:1723:16: warning: old-style function definition [-Wold-style-definition] 1723 | static HANDLE *checkdir(p, pathend, which) | ^~~~~~~~ mmv.c:1737:13: error: too many arguments to function 'hsearch'; expected 0, have 3 1737 | if (hsearch(p, which, &h)) | ^~~~~~~ ~ mmv.c:380:12: note: declared here 380 | static int hsearch(/* char *n, int which, HANDLE **ph */); | ^~~~~~~ mmv.c:1766:27: error: too many arguments to function 'dsearch'; expected 0, have 2 1766 | if ((di = dsearch(v, d)) == NULL) | ^~~~~~~ ~ mmv.c:382:17: note: declared here 382 | static DIRINFO *dsearch(/* DEVID v, DIRID d */); | ^~~~~~~ mmv.c:1767:43: error: too many arguments to function 'dadd'; expected 0, have 2 1767 | takedir(myp, di = dadd(v, d), sticky); | ^~~~ ~ mmv.c:381:17: note: declared here 381 | static DIRINFO *dadd(/* DEVID v, DIRID d */); | ^~~~ mmv.c:1767:25: error: too many arguments to function 'takedir'; expected 0, have 3 1767 | takedir(myp, di = dadd(v, d), sticky); | ^~~~~~~ ~~~ mmv.c:373:13: note: declared here 373 | static void takedir(/* | ^~~~~~~ mmv.c: In function 'takedir': mmv.c:1779:13: warning: old-style function definition [-Wold-style-definition] 1779 | static void takedir(p, di, sticky) | ^~~~~~~ mmv.c:1794:43: error: too many arguments to function 'myalloc'; expected 0, have 1 1794 | di->di_fils = fils = (FILEINFO **)myalloc(room * sizeof(FILEINFO *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:407:14: note: declared here 407 | static void *myalloc(/* unsigned k */); | ^~~~~~~ mmv.c:1799:45: error: too many arguments to function 'myalloc'; expected 0, have 1 1799 | fils = (FILEINFO **)myalloc(room * sizeof(FILEINFO *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:407:14: note: declared here 407 | static void *myalloc(/* unsigned k */); | ^~~~~~~ mmv.c:1801:25: error: too many arguments to function 'chgive'; expected 0, have 2 1801 | chgive(di->di_fils, cnt * sizeof(FILEINFO *)); | ^~~~~~ ~~~~~~~~~~~ mmv.c:409:13: note: declared here 409 | static void chgive(/* void *p, unsigned k */); | ^~~~~~ mmv.c:1805:41: error: too many arguments to function 'challoc'; expected 0, have 2 1805 | *fils = f = (FILEINFO *)challoc(sizeof(FILEINFO), 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~ mmv.c:408:14: note: declared here 408 | static void *challoc(/* int k, int which */); | ^~~~~~~ mmv.c:230:34: error: too many arguments to function 'challoc'; expected 0, have 2 230 | #define mydup(s) (strcpy((char *)challoc(strlen(s) + 1, 0), (s))) | ^~~~~~~ ~~~~~~~~~~~~~ mmv.c:1806:30: note: in expansion of macro 'mydup' 1806 | f->fi_name = mydup(dp->d_name); | ^~~~~ mmv.c:408:14: note: declared here 408 | static void *challoc(/* int k, int which */); | ^~~~~~~ mmv.c:1813:53: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types] 1813 | qsort(di->di_fils, cnt, sizeof(FILEINFO *), fcmp); | ^~~~ | | | int (*)(void) /usr/include/iso/stdlib_iso.h:147:43: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(void)' 147 | extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:378:12: note: 'fcmp' declared here 378 | static int fcmp(/* FILEINFO **pf1, FILEINFO **pf2 */); | ^~~~ mmv.c: In function 'fcmp': mmv.c:1821:12: warning: old-style function definition [-Wold-style-definition] 1821 | static int fcmp(pf1, pf2) | ^~~~ mmv.c: In function 'hadd': mmv.c:1828:16: warning: old-style function definition [-Wold-style-definition] 1828 | static HANDLE *hadd(n) | ^~~~ mmv.c:1835:41: error: too many arguments to function 'myalloc'; expected 0, have 1 1835 | newhandles = (HANDLE **)myalloc(handleroom * sizeof(HANDLE *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:407:14: note: declared here 407 | static void *myalloc(/* unsigned k */); | ^~~~~~~ mmv.c:1837:17: error: too many arguments to function 'chgive'; expected 0, have 2 1837 | chgive(handles, nhandles * sizeof(HANDLE *)); | ^~~~~~ ~~~~~~~ mmv.c:409:13: note: declared here 409 | static void chgive(/* void *p, unsigned k */); | ^~~~~~ mmv.c:1840:45: error: too many arguments to function 'challoc'; expected 0, have 2 1840 | handles[nhandles++] = h = (HANDLE *)challoc(sizeof(HANDLE), 1); | ^~~~~~~ ~~~~~~~~~~~~~~ mmv.c:408:14: note: declared here 408 | static void *challoc(/* int k, int which */); | ^~~~~~~ mmv.c:1841:29: error: too many arguments to function 'challoc'; expected 0, have 2 1841 | h->h_name = (char *)challoc(strlen(n) + 1, 0); | ^~~~~~~ ~~~~~~~~~~~~~ mmv.c:408:14: note: declared here 408 | static void *challoc(/* int k, int which */); | ^~~~~~~ mmv.c: In function 'hsearch': mmv.c:1848:12: warning: old-style function definition [-Wold-style-definition] 1848 | static int hsearch(n, which, pret) | ^~~~~~~ mmv.c:1867:37: error: too many arguments to function 'hadd'; expected 0, have 1 1867 | lasthandle[which] = *pret = hadd(n); | ^~~~ ~ mmv.c:1828:16: note: declared here 1828 | static HANDLE *hadd(n) | ^~~~ mmv.c: In function 'dadd': mmv.c:1872:17: warning: old-style function definition [-Wold-style-definition] 1872 | static DIRINFO *dadd(v, d) | ^~~~ mmv.c:1881:39: error: too many arguments to function 'myalloc'; expected 0, have 1 1881 | newdirs = (DIRINFO **)myalloc(dirroom * sizeof(DIRINFO *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:407:14: note: declared here 407 | static void *myalloc(/* unsigned k */); | ^~~~~~~ mmv.c:1883:17: error: too many arguments to function 'chgive'; expected 0, have 2 1883 | chgive(dirs, ndirs * sizeof(DIRINFO *)); | ^~~~~~ ~~~~ mmv.c:409:13: note: declared here 409 | static void chgive(/* void *p, unsigned k */); | ^~~~~~ mmv.c:1886:41: error: too many arguments to function 'challoc'; expected 0, have 2 1886 | dirs[ndirs++] = di = (DIRINFO *)challoc(sizeof(DIRINFO), 1); | ^~~~~~~ ~~~~~~~~~~~~~~~ mmv.c:408:14: note: declared here 408 | static void *challoc(/* int k, int which */); | ^~~~~~~ mmv.c: In function 'dsearch': mmv.c:1896:17: warning: old-style function definition [-Wold-style-definition] 1896 | static DIRINFO *dsearch(v, d) | ^~~~~~~ mmv.c: In function 'match': mmv.c:1910:12: warning: old-style function definition [-Wold-style-definition] 1910 | static int match(pat, s, start1, len1) | ^~~~~ mmv.c:1945:48: error: too many arguments to function 'match'; expected 0, have 4 1945 | for (*len1=0; !match(pat, s, start1+1, len1+1); (*len1)++, s++) | ^~~~~ ~~~ mmv.c:1910:12: note: declared here 1910 | static int match(pat, s, start1, len1) | ^~~~~ mmv.c: In function 'checkcollisions': mmv.c:2143:25: error: too many arguments to function 'myalloc'; expected 0, have 1 2143 | rd = (REPDICT *)myalloc(nreps * sizeof(REPDICT)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:407:14: note: declared here 407 | static void *myalloc(/* unsigned k */); | ^~~~~~~ mmv.c:2154:43: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types] 2154 | qsort(rd, nreps, sizeof(REPDICT), rdcmp); | ^~~~~ | | | int (*)(void) /usr/include/iso/stdlib_iso.h:147:43: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(void)' 147 | extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:386:12: note: 'rdcmp' declared here 386 | static int rdcmp(/* REPDICT *rd1, REPDICT *rd2 */); | ^~~~~ mmv.c:2183:9: error: too many arguments to function 'chgive'; expected 0, have 2 2183 | chgive(rd, oldnreps * sizeof(REPDICT)); | ^~~~~~ ~~ mmv.c:409:13: note: declared here 409 | static void chgive(/* void *p, unsigned k */); | ^~~~~~ mmv.c: In function 'rdcmp': mmv.c:2187:12: warning: old-style function definition [-Wold-style-definition] 2187 | static int rdcmp(rd1, rd2) | ^~~~~ mmv.c: In function 'nochains': mmv.c:2243:25: error: too many arguments to function 'printchain'; expected 0, have 1 2243 | printchain(p); | ^~~~~~~~~~ ~ mmv.c:392:13: note: declared here 392 | static void printchain(/* REP *p */); | ^~~~~~~~~~ mmv.c: In function 'printchain': mmv.c:2252:13: warning: old-style function definition [-Wold-style-definition] 2252 | static void printchain(p) | ^~~~~~~~~~ mmv.c:2256:17: error: too many arguments to function 'printchain'; expected 0, have 1 2256 | printchain(p->r_thendo); | ^~~~~~~~~~ ~~~~~~~~~~~ mmv.c:2252:13: note: declared here 2252 | static void printchain(p) | ^~~~~~~~~~ mmv.c: In function 'scandeletes': mmv.c:2264:13: warning: old-style function definition [-Wold-style-definition] 2264 | static void scandeletes(pkilldel) | ^~~~~~~~~~~ mmv.c:2271:33: error: too many arguments to function 'pkilldel'; expected 0, have 1 2271 | while ((*pkilldel)(p)) { | ~^~~~~~~~~~ ~ mmv.c: In function 'baddel': mmv.c:2290:12: warning: old-style function definition [-Wold-style-definition] 2290 | static int baddel(p) | ^~~~~~ mmv.c:2324:18: error: too many arguments to function 'fwritable'; expected 0, have 2 2324 | !fwritable(hnt, fto) | ^~~~~~~~~ ~~~ mmv.c:1508:12: note: declared here 1508 | static int fwritable(hname, f) | ^~~~~~~~~ mmv.c: In function 'skipdel': mmv.c:2344:12: warning: old-style function definition [-Wold-style-definition] 2344 | static int skipdel(p) | ^~~~~~~ mmv.c:2359:18: error: too many arguments to function 'fwritable'; expected 0, have 2 2359 | !fwritable(p->r_hto->h_name, p->r_fdel) | ^~~~~~~~~ ~~~~~~~~~~~~~~~~ mmv.c:1508:12: note: declared here 1508 | static int fwritable(hname, f) | ^~~~~~~~~ mmv.c:2368:17: error: too many arguments to function 'getreply'; expected 0, have 2 2368 | return(!getreply("? ", -1)); | ^~~~~~~~ ~~~~ mmv.c:406:12: note: declared here 406 | static int getreply(/* char *m, int failact */); | ^~~~~~~~ mmv.c: In function 'goonordie': mmv.c:2382:27: error: too many arguments to function 'getreply'; expected 0, have 2 2382 | else if (!getreply(" Proceed with the rest? ", -1)) | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:406:12: note: declared here 406 | static int getreply(/* char *m, int failact */); | ^~~~~~~~ mmv.c: In function 'doreps': mmv.c:2398:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 2398 | signal(SIGINT, breakrep); | ^~~~~~~~ | | | int (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'int (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ mmv.c:400:12: note: 'breakrep' declared here 400 | static int breakrep(/* */); | ^~~~~~~~ mmv.c:2406:48: error: too many arguments to function 'snap'; expected 0, have 2 2406 | printaliased = snap(first, p); | ^~~~ ~~~~~ mmv.c:397:12: note: declared here 397 | static int snap(/* REP *first, REP *p */); | ^~~~ mmv.c:2413:52: error: too many arguments to function 'appendalias'; expected 0, have 3 2413 | aliaslen = appendalias(first, p, &printaliased); | ^~~~~~~~~~~ ~~~~~ mmv.c:395:13: note: declared here 395 | static long appendalias(/* REP *first, REP *p, int *pprintaliased */); | ^~~~~~~~~~~ mmv.c:2415:49: error: too many arguments to function 'movealias'; expected 0, have 3 2415 | alias = movealias(first, p, &printaliased); | ^~~~~~~~~ ~~~~~ mmv.c:396:12: note: declared here 396 | static int movealias(/* REP *first, REP *p, int *pprintaliased */); | ^~~~~~~~~ mmv.c:2424:41: error: too many arguments to function 'myunlink'; expected 0, have 2 2424 | myunlink(fullrep, p->r_fdel); | ^~~~~~~~ ~~~~~~~ mmv.c:405:12: note: declared here 405 | static int myunlink(/* char *n, FILEINFO *f */); | ^~~~~~~~ mmv.c:2427:49: error: too many arguments to function 'copy'; expected 0, have 2 2427 | copy(p->r_ffrom, | ^~~~ ~~~~~~~~~~ mmv.c:404:12: note: declared here 404 | static int copy(/* FILENFO *f, long len */); | ^~~~ mmv.c:2431:49: error: implicit declaration of function 'link' [-Wimplicit-function-declaration] 2431 | link(pathbuf, fullrep) : | ^~~~ mmv.c:2434:49: error: implicit declaration of function 'symlink' [-Wimplicit-function-declaration] 2434 | symlink((p->r_flags & R_ONEDIRLINK) ? fstart : pathbuf, | ^~~~~~~ mmv.c:2439:49: error: too many arguments to function 'copymove'; expected 0, have 1 2439 | copymove(p) : | ^~~~~~~~ ~ mmv.c:403:12: note: declared here 403 | static int copymove(/* REP *p */); | ^~~~~~~~ mmv.c:2445:56: error: too many arguments to function 'snap'; expected 0, have 2 2445 | printaliased = snap(first, p); | ^~~~ ~~~~~ mmv.c:397:12: note: declared here 397 | static int snap(/* REP *first, REP *p */); | ^~~~ mmv.c: In function 'appendalias': mmv.c:2470:13: warning: old-style function definition [-Wold-style-definition] 2470 | static long appendalias(first, p, pprintaliased) | ^~~~~~~~~~~ mmv.c:2492:34: error: too many arguments to function 'snap'; expected 0, have 2 2492 | *pprintaliased = snap(first, p); | ^~~~ ~~~~~ mmv.c:397:12: note: declared here 397 | static int snap(/* REP *first, REP *p */); | ^~~~ mmv.c: In function 'movealias': mmv.c:2502:12: warning: old-style function definition [-Wold-style-definition] 2502 | static int movealias(first, p, pprintaliased) | ^~~~~~~~~ mmv.c:2515:17: error: too many arguments to function 'fsearch'; expected 0, have 2 2515 | fsearch(fstart, p->r_hto->h_di) != NULL; | ^~~~~~~ ~~~~~~ mmv.c:1526:18: note: declared here 1526 | static FILEINFO *fsearch(s, d) | ^~~~~~~ mmv.c:2522:34: error: too many arguments to function 'snap'; expected 0, have 2 2522 | *pprintaliased = snap(first, p); | ^~~~ ~~~~~ mmv.c:397:12: note: declared here 397 | static int snap(/* REP *first, REP *p */); | ^~~~ mmv.c: In function 'snap': mmv.c:2528:12: warning: old-style function definition [-Wold-style-definition] 2528 | static int snap(first, p) | ^~~~ mmv.c:2541:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 2541 | signal(SIGINT, breakstat); | ^~~~~~~~~ | | | void (*)(void) /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ mmv.c:401:13: note: 'breakstat' declared here 401 | static void breakstat(/* */); | ^~~~~~~~~ mmv.c:2546:17: error: too many arguments to function 'getreply'; expected 0, have 2 2546 | getreply("Redirect standard output to file? ", 0) | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmv.c:406:12: note: declared here 406 | static int getreply(/* char *m, int failact */); | ^~~~~~~~ mmv.c:2554:42: error: too many arguments to function 'mygets'; expected 0, have 2 2554 | (outfile = fopen(mygets(fname, 80), "w")) == NULL | ^~~~~~ ~~~~~ mmv.c:411:14: note: declared here 411 | static char *mygets(/* char *s, int l */); | ^~~~~~ mmv.c:2559:17: error: too many arguments to function 'showdone'; expected 0, have 1 2559 | showdone(p); | ^~~~~~~~ ~ mmv.c:398:13: note: declared here 398 | static void showdone(/* REP *fin */); | ^~~~~~~~ mmv.c: In function 'showdone': mmv.c:2566:13: warning: old-style function definition [-Wold-style-definition] 2566 | static void showdone(fin) | ^~~~~~~~ mmv.c: In function 'copymove': mmv.c:2613:12: warning: old-style function definition [-Wold-style-definition] 2613 | static int copymove(p) | ^~~~~~~~ mmv.c:2629:16: error: too many arguments to function 'copy'; expected 0, have 2 2629 | return(copy(p->r_ffrom, -1L) || myunlink(pathbuf, p->r_ffrom)); | ^~~~ ~~~~~~~~~~ mmv.c:404:12: note: declared here 404 | static int copy(/* FILENFO *f, long len */); | ^~~~ mmv.c:2629:41: error: too many arguments to function 'myunlink'; expected 0, have 2 2629 | return(copy(p->r_ffrom, -1L) || myunlink(pathbuf, p->r_ffrom)); | ^~~~~~~~ ~~~~~~~ mmv.c:405:12: note: declared here 405 | static int myunlink(/* char *n, FILEINFO *f */); | ^~~~~~~~ mmv.c: In function 'copy': mmv.c:2637:12: warning: old-style function definition [-Wold-style-definition] 2637 | static int copy(ff, len) | ^~~~ mmv.c:2683:17: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 2683 | close(f); | ^~~~~ | pclose mmv.c:2687:17: error: too many arguments to function 'lseek'; expected 0, have 3 2687 | lseek(t, 0L, 2); | ^~~~~ ~ mmv.c:132:13: note: declared here 132 | extern long lseek(); | ^~~~~ mmv.c:2702:30: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 2702 | (k = read(f, buf, len > BUFSIZE ? BUFSIZE : (unsigned)len)) > 0 && | ^~~~ | fread mmv.c:2703:25: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 2703 | write(t, buf, k) == k | ^~~~~ | fwrite mmv.c:202:22: error: implicit declaration of function 'utime'; did you mean 'time'? [-Wimplicit-function-declaration] 202 | #define utimes(f, t) utime((f), &(t)) | ^~~~~ mmv.c:2728:33: note: in expansion of macro 'utimes' 2728 | utimes(fullrep, tim) | ^~~~~~ mmv.c:2739:25: error: implicit declaration of function 'unlink'; did you mean 'myunlink'? [-Wimplicit-function-declaration] 2739 | unlink(fullrep); | ^~~~~~ | myunlink mmv.c: In function 'myunlink': mmv.c:2797:12: warning: old-style function definition [-Wold-style-definition] 2797 | static int myunlink(n, f) | ^~~~~~~~ mmv.c: In function 'getreply': mmv.c:2817:12: warning: old-style function definition [-Wold-style-definition] 2817 | static int getreply(m, failact) | ^~~~~~~~ mmv.c: In function 'myalloc': mmv.c:2852:14: warning: old-style function definition [-Wold-style-definition] 2852 | static void *myalloc(k) | ^~~~~~~ mmv.c: In function 'challoc': mmv.c:2867:14: warning: old-style function definition [-Wold-style-definition] 2867 | static void *challoc(k, which) | ^~~~~~~ mmv.c:2884:38: error: too many arguments to function 'myalloc'; expected 0, have 1 2884 | p = (CHUNK *)myalloc(CHUNKSIZE); | ^~~~~~~ mmv.c:2852:14: note: declared here 2852 | static void *myalloc(k) | ^~~~~~~ mmv.c: In function 'chgive': mmv.c:2901:13: warning: old-style function definition [-Wold-style-definition] 2901 | static void chgive(p, k) | ^~~~~~ mmv.c: In function 'mygets': mmv.c:2943:14: warning: old-style function definition [-Wold-style-definition] 2943 | static char *mygets(s, l) | ^~~~~~ *** [mmv.o] Error code 1 bmake: stopped making "mmv" in /tmp/work/misc/mmv/work/mmv-1.01b.orig bmake: 1 error bmake: stopped making "mmv" in /tmp/work/misc/mmv/work/mmv-1.01b.orig *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/mmv *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/mmv