=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/arc", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for arc-5.21p --- arc.o --- --- arcadd.o --- --- arc.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSYSV=1 -c arc.c --- arcadd.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DSYSV=1 -c arcadd.c arcadd.c: In function 'addarc': arcadd.c:45:1: warning: old-style function definition [-Wold-style-definition] 45 | addarc(num, arg, move, update, fresh) /* add files to archive */ | ^~~~~~ arcadd.c:99:26: error: too many arguments to function 'dir'; expected 0, have 1 99 | for (d = dir(arg[n]); d; d = dir(NULL)) { | ^~~ ~~~~~~ arcadd.c:52:29: note: declared here 52 | char *d, *dir(); /* directory junk */ | ^~~ arcadd.c:99:46: error: too many arguments to function 'dir'; expected 0, have 1 99 | for (d = dir(arg[n]); d; d = dir(NULL)) { | ^~~ ~~~~ arcadd.c:52:29: note: declared here 52 | char *d, *dir(); /* directory junk */ | ^~~ arcadd.c:127:26: error: too many arguments to function 'addbunch'; expected 0, have 6 127 | nfiles = addbunch(nfiles, path, name, move, update, fresh); | ^~~~~~~~ ~~~~~~ arcadd.c:64:25: note: declared here 64 | int addbunch(); | ^~~~~~~~ arcadd.c: In function 'addbunch': arcadd.c:64:25: warning: old-style function definition [-Wold-style-definition] arcadd.c:148:1: error: number of arguments doesn't match prototype 148 | { | ^ arcadd.c:64:25: error: prototype declaration 64 | int addbunch(); | ^~~~~~~~ arcadd.c:170:23: error: too many arguments to function 'izadir'; expected 0, have 1 170 | ||izadir(path[n]) /* or a directory */ | ^~~~~~ ~~~~~~~ arcadd.c:32:9: note: declared here 32 | int izadir(); | ^~~~~~ arcadd.c:188:15: error: too many arguments to function 'izadir'; expected 0, have 1 188 | ||izadir(path[n]) | ^~~~~~ ~~~~~~~ arcadd.c:32:9: note: declared here 32 | int izadir(); | ^~~~~~ arcadd.c:201:25: error: too many arguments to function 'arcdie'; expected 0, have 3 201 | arcdie("Duplicate filenames:\n %s\n %s", path[n], path[n + 1]); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arcadd.c:35:40: note: declared here 35 | VOID pack(), closearc(), openarc(), arcdie(); | ^~~~~~ arcadd.c:203:9: error: too many arguments to function 'openarc'; expected 0, have 1 203 | openarc(1); /* open archive for changes */ | ^~~~~~~ ~ arcadd.c:35:29: note: declared here 35 | VOID pack(), closearc(), openarc(), arcdie(); | ^~~~~~~ arcadd.c:206:21: error: too many arguments to function 'addfile'; expected 0, have 4 206 | if (addfile(path[n], name[n], update, fresh) < 0) { | ^~~~~~~ ~~~~~~~ arcadd.c:29:17: note: declared here 29 | static int addfile(); | ^~~~~~~ arcadd.c:219:16: error: too many arguments to function 'readhdr'; expected 0, have 2 219 | while (readhdr(&hdr, arc)) { /* while more entries to copy */ | ^~~~~~~ ~~~~ arcadd.c:30:9: note: declared here 30 | int readhdr(), unlink(); | ^~~~~~~ arcadd.c:220:17: error: too many arguments to function 'writehdr'; expected 0, have 2 220 | writehdr(&hdr, new); | ^~~~~~~~ ~~~~ arcadd.c:34:9: note: declared here 34 | VOID writehdr(), filecopy(), getstamp(); | ^~~~~~~~ arcadd.c:221:17: error: too many arguments to function 'filecopy'; expected 0, have 3 221 | filecopy(arc, new, hdr.size); | ^~~~~~~~ ~~~ arcadd.c:34:21: note: declared here 34 | VOID writehdr(), filecopy(), getstamp(); | ^~~~~~~~ arcadd.c:224:9: error: too many arguments to function 'writehdr'; expected 0, have 2 224 | writehdr(&hdr, new); /* write out our end marker */ | ^~~~~~~~ ~~~~ arcadd.c:34:9: note: declared here 34 | VOID writehdr(), filecopy(), getstamp(); | ^~~~~~~~ arcadd.c:225:9: error: too many arguments to function 'closearc'; expected 0, have 1 225 | closearc(1); /* close archive after changes */ | ^~~~~~~~ ~ arcadd.c:35:17: note: declared here 35 | VOID pack(), closearc(), openarc(), arcdie(); | ^~~~~~~~ arcadd.c:230:29: error: too many arguments to function 'unlink'; expected 0, have 1 230 | if (unlink(path[n]) && warn) { | ^~~~~~ ~~~~~~~ arcadd.c:30:20: note: declared here 30 | int readhdr(), unlink(); | ^~~~~~ arcadd.c: In function 'addfile': arcadd.c:240:1: warning: old-style function definition [-Wold-style-definition] 240 | addfile(path, name, update, fresh) /* add named file to archive */ | ^~~~~~~ arcadd.c:248:29: error: conflicting types for 'fopen'; have 'FILE *(void)' 248 | FILE *f, *fopen(); /* file to add, opener */ | ^~~~~ In file included from /usr/include/stdio.h:83, from arcadd.c:18: /usr/include/iso/stdio_iso.h:197:18: note: previous declaration of 'fopen' with type 'FILE *(const char * restrict, const char * restrict)' 197 | extern FILE *fopen(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~ arcadd.c:249:33: error: conflicting types for 'ftell'; have 'long int(void)' 249 | long starts, ftell(); /* file locations */ | ^~~~~ /usr/include/iso/stdio_iso.h:254:17: note: previous declaration of 'ftell' with type 'long int(FILE *)' 254 | extern long ftell(FILE *); | ^~~~~ arcadd.c:253:19: error: too many arguments to function 'fopen'; expected 0, have 2 253 | if (!(f = fopen(path, OPEN_R))) | ^~~~~ ~~~~ arcadd.c:248:29: note: declared here 248 | FILE *f, *fopen(); /* file to add, opener */ | ^~~~~ arcadd.c:302:9: error: too many arguments to function 'getstamp'; expected 0, have 3 302 | getstamp(f, &nhdr.date, &nhdr.time); | ^~~~~~~~ ~ arcadd.c:34:33: note: declared here 34 | VOID writehdr(), filecopy(), getstamp(); | ^~~~~~~~ arcadd.c:321:26: error: too many arguments to function 'ftell'; expected 0, have 1 321 | starts = ftell(arc); /* where are we? */ | ^~~~~ ~~~ arcadd.c:249:33: note: declared here 249 | long starts, ftell(); /* file locations */ | ^~~~~ arcadd.c:322:24: error: too many arguments to function 'readhdr'; expected 0, have 2 322 | while (readhdr(&ohdr, arc)) { /* while more files to check */ | ^~~~~~~ ~~~~~ arcadd.c:30:9: note: declared here 30 | int readhdr(), unlink(); | ^~~~~~~ --- arc.o --- arc.c: In function 'main': arc.c:111:1: warning: old-style function definition [-Wold-style-definition] 111 | main(num, arg) /* system entry point */ | ^~~~ --- arcadd.o --- arcadd.c:338:25: error: too many arguments to function 'writehdr'; expected 0, have 2 338 | writehdr(&ohdr, new); /* entry preceeds update; | ^~~~~~~~ ~~~~~ arcadd.c:34:9: note: declared here 34 | VOID writehdr(), filecopy(), getstamp(); | ^~~~~~~~ arcadd.c:340:25: error: too many arguments to function 'filecopy'; expected 0, have 3 340 | filecopy(arc, new, ohdr.size); | ^~~~~~~~ ~~~ arcadd.c:34:21: note: declared here 34 | VOID writehdr(), filecopy(), getstamp(); | ^~~~~~~~ arcadd.c:341:34: error: too many arguments to function 'ftell'; expected 0, have 1 341 | starts = ftell(arc); /* now where are we? */ | ^~~~~ ~~~ arcadd.c:249:33: note: declared here 249 | long starts, ftell(); /* file locations */ | ^~~~~ arcadd.c:371:18: error: too many arguments to function 'ftell'; expected 0, have 1 371 | starts = ftell(new); /* note where header goes */ | ^~~~~ ~~~ arcadd.c:249:33: note: declared here 249 | long starts, ftell(); /* file locations */ | ^~~~~ arcadd.c:373:9: error: too many arguments to function 'writehdr'; expected 0, have 2 373 | writehdr(&nhdr, new); /* write out header skeleton */ | ^~~~~~~~ ~~~~~ arcadd.c:34:9: note: declared here 34 | VOID writehdr(), filecopy(), getstamp(); | ^~~~~~~~ --- arc.o --- In file included from arc.c:74: arc.h:28:17: error: conflicting types for 'getenv'; have 'char *(void)' 28 | #define envfind getenv | ^~~~~~ arc.c:118:25: note: in expansion of macro 'envfind' 118 | char *envfind(); /* environment searcher */ | ^~~~~~~ --- arcadd.o --- arcadd.c:377:9: error: too many arguments to function 'pack'; expected 0, have 3 377 | pack(f, new, &nhdr); /* pack file into archive */ | ^~~~ ~ arcadd.c:35:9: note: declared here 35 | VOID pack(), closearc(), openarc(), arcdie(); | ^~~~ --- arc.o --- In file included from /usr/include/stdlib.h:41, from arc.h:55: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ --- arcadd.o --- arcadd.c:379:9: error: too many arguments to function 'writehdr'; expected 0, have 2 379 | writehdr(&nhdr, new); /* write out real header */ | ^~~~~~~~ ~~~~~ arcadd.c:34:9: note: declared here 34 | VOID writehdr(), filecopy(), getstamp(); | ^~~~~~~~ --- arc.o --- arc.h:28:17: error: too many arguments to function 'getenv'; expected 0, have 1 28 | #define envfind getenv | ^~~~~~ arc.c:216:26: note: in expansion of macro 'envfind' 216 | if (!(arctemp2 = envfind("ARCTEMP"))) | ^~~~~~~ arc.h:28:17: note: declared here 28 | #define envfind getenv | ^~~~~~ arc.c:118:25: note: in expansion of macro 'envfind' 118 | char *envfind(); /* environment searcher */ | ^~~~~~~ arc.h:28:17: error: too many arguments to function 'getenv'; expected 0, have 1 28 | #define envfind getenv | ^~~~~~ arc.c:217:28: note: in expansion of macro 'envfind' 217 | arctemp2 = envfind("TMPDIR"); | ^~~~~~~ arc.h:28:17: note: declared here 28 | #define envfind getenv | ^~~~~~ arc.c:118:25: note: in expansion of macro 'envfind' 118 | char *envfind(); /* environment searcher */ | ^~~~~~~ arc.c:260:9: error: too many arguments to function 'upper'; expected 0, have 1 260 | upper(arg[1]); /* convert to uppercase */ | ^~~~~ ~~~~~~ arc.c:117:25: note: declared here 117 | VOID upper();/* case conversion routine */ | ^~~~~ arc.c:274:25: error: too many arguments to function 'makefnam'; expected 0, have 3 274 | makefnam(arg[2],".arc",arcname); | ^~~~~~~~ ~~~~~~ arc.c:101:18: note: declared here 101 | char *makefnam(); /* filename fixup routine */ | ^~~~~~~~ arc.c:278:17: error: too many arguments to function 'makefnam'; expected 0, have 3 278 | makefnam(arg[2],".arc",arcname); | ^~~~~~~~ ~~~~~~ arc.c:101:18: note: declared here 101 | char *makefnam(); /* filename fixup routine */ | ^~~~~~~~ arc.c:284:9: error: too many arguments to function 'makefnam'; expected 0, have 3 284 | makefnam(".BAK", arcname, bakname); | ^~~~~~~~ ~~~~~~ arc.c:101:18: note: declared here 101 | char *makefnam(); /* filename fixup routine */ | ^~~~~~~~ arc.c:295:33: error: too many arguments to function 'arcdie'; expected 0, have 3 295 | arcdie("Cannot mix %c and %c", opt, *a); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ arc.c:339:25: error: too many arguments to function 'arcdie'; expected 0, have 2 339 | arcdie("%c is an unknown command", *a); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ arc.c:343:17: error: too many arguments to function 'arcdie'; expected 0, have 1 343 | arcdie("I have nothing to do!"); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ arc.c:355:25: error: too many arguments to function 'expandlst'; expected 0, have 1 355 | expandlst(n); | ^~~~~~~~~ ~ arc.c:94:17: note: declared here 94 | static VOID expandlst(); | ^~~~~~~~~ arc.c:378:17: error: too many arguments to function 'arcdie'; expected 0, have 1 378 | arcdie("Not enough memory for input buffer."); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ arc.c:380:17: error: too many arguments to function 'arcdie'; expected 0, have 1 380 | arcdie("Not enough memory for output buffer."); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ arc.c:382:17: error: too many arguments to function 'arcdie'; expected 0, have 1 382 | arcdie("Not enough memory for packing buffer."); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ arc.c:393:17: error: too many arguments to function 'addarc'; expected 0, have 5 393 | addarc(lnum, lst, (opt == 'M'), (opt == 'U'), (opt == 'F')); | ^~~~~~ ~~~~ arc.c:92:17: note: declared here 92 | VOID addarc(), delarc(), extarc(), lstarc(), tstarc(), cvtarc(), runarc(); | ^~~~~~ arc.c:397:17: error: too many arguments to function 'delarc'; expected 0, have 2 397 | delarc(lnum, lst); | ^~~~~~ ~~~~ arc.c:92:27: note: declared here 92 | VOID addarc(), delarc(), extarc(), lstarc(), tstarc(), cvtarc(), runarc(); | ^~~~~~ arc.c:403:17: error: too many arguments to function 'extarc'; expected 0, have 3 403 | extarc(lnum, lst, (opt == 'P')); | ^~~~~~ ~~~~ arc.c:92:37: note: declared here 92 | VOID addarc(), delarc(), extarc(), lstarc(), tstarc(), cvtarc(), runarc(); | ^~~~~~ arc.c:409:17: error: too many arguments to function 'lstarc'; expected 0, have 2 409 | lstarc(lnum, lst); | ^~~~~~ ~~~~ arc.c:92:47: note: declared here 92 | VOID addarc(), delarc(), extarc(), lstarc(), tstarc(), cvtarc(), runarc(); | ^~~~~~ arc.c:417:17: error: too many arguments to function 'cvtarc'; expected 0, have 2 417 | cvtarc(lnum, lst); | ^~~~~~ ~~~~ arc.c:92:67: note: declared here 92 | VOID addarc(), delarc(), extarc(), lstarc(), tstarc(), cvtarc(), runarc(); | ^~~~~~ arc.c:421:17: error: too many arguments to function 'runarc'; expected 0, have 2 421 | runarc(lnum, lst); | ^~~~~~ ~~~~ arc.c:92:77: note: declared here 92 | VOID addarc(), delarc(), extarc(), lstarc(), tstarc(), cvtarc(), runarc(); | ^~~~~~ arc.c:425:17: error: too many arguments to function 'arcdie'; expected 0, have 2 425 | arcdie("I don't know how to do %c yet!", opt); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ arc.c: In function 'expandlst': arc.c:434:1: warning: old-style function definition [-Wold-style-definition] 434 | expandlst(n) /* expand an indirect reference */ | ^~~~~~~~~ arc.c:437:30: error: conflicting types for 'fopen'; have 'FILE *(void)' 437 | FILE *lf, *fopen(); /* list file, opener */ | ^~~~~ In file included from /usr/include/stdio.h:83, from arc.c:73: /usr/include/iso/stdio_iso.h:197:18: note: previous declaration of 'fopen' with type 'FILE *(const char * restrict, const char * restrict)' 197 | extern FILE *fopen(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^~~~~ arc.c:443:17: error: too many arguments to function 'makefnam'; expected 0, have 3 443 | makefnam(p, ".CMD", buf); | ^~~~~~~~ ~ arc.c:101:18: note: declared here 101 | char *makefnam(); /* filename fixup routine */ | ^~~~~~~~ arc.c:444:28: error: too many arguments to function 'fopen'; expected 0, have 2 444 | if (!(lf = fopen(buf, "r"))) | ^~~~~ ~~~ arc.c:437:30: note: declared here 437 | FILE *lf, *fopen(); /* list file, opener */ | ^~~~~ arc.c:445:25: error: too many arguments to function 'arcdie'; expected 0, have 2 445 | arcdie("Cannot read list of files in %s", buf); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ arc.c:455:25: error: too many arguments to function 'arcdie'; expected 0, have 1 455 | arcdie("too many file references"); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ arc.c:93:17: note: declared here 93 | VOID arcdie(); | ^~~~~~ *** [arc.o] Error code 1 bmake: stopped making "all" in /tmp/work/archivers/arc/work/arc-5.21p --- arcadd.o --- *** [arcadd.o] Error code 1 bmake: stopped making "all" in /tmp/work/archivers/arc/work/arc-5.21p bmake: 2 errors bmake: stopped making "all" in /tmp/work/archivers/arc/work/arc-5.21p *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/arc *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/archivers/arc