Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target ppc64le --nodeps /builddir/build/SPECS/arc.spec'], chrootPath='/var/lib/mock/f43-build-57636511-6556164/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.38qdz646:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.38qdz646:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '8df09f85d2b14ccfbc6b74c36bd51206', '-D', '/var/lib/mock/f43-build-57636511-6556164/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.38qdz646:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target ppc64le --nodeps /builddir/build/SPECS/arc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1721174400 Wrote: /builddir/build/SRPMS/arc-5.21p-27.fc43.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/arc.spec'], chrootPath='/var/lib/mock/f43-build-57636511-6556164/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.38qdz646:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.38qdz646:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '7d4caa90ce4b43e891e716b498e6270b', '-D', '/var/lib/mock/f43-build-57636511-6556164/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.38qdz646:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/arc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1721174400 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.JaMW57 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.i7k2qd + umask 022 + cd /builddir/build/BUILD/arc-5.21p-build + cd /builddir/build/BUILD/arc-5.21p-build + rm -rf arc-5.21p + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/arc-5.21p.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd arc-5.21p + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/arc-5.21p-spelling.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/arc-5.21p-manpage-section-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/arc-5.21p-clarify-license.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/arc-5.21p-hdrv1-read-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/arc-5.21p-fix-arcdie.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/arc-5.21p-directory-traversel.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/arc-5.21p-compiler-warn.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/arc-5.21p-fcommon-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i -e 's,^OPT =.*$,OPT = ${RPM_OPT_FLAGS},' Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wcmNgd + umask 022 + cd /builddir/build/BUILD/arc-5.21p-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd arc-5.21p + make -j8 cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DSYSV=1 -c arc.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DSYSV=1 -c arcadd.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DSYSV=1 -c arccode.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DSYSV=1 -c arccvt.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DSYSV=1 -c arcdata.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DSYSV=1 -c arcdel.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DSYSV=1 -c arcdos.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -DSYSV=1 -c arcext.c arccvt.c: In function ‘cvtarc’: arccvt.c:33:1: warning: old-style function definition [-Wold-style-definition] 33 | cvtarc(num, arg) /* convert archive */ | ^~~~~~ arccvt.c:42:25: error: conflicting types for ‘fopen’; have ‘FILE *(void)’ 42 | FILE *fopen();/* file opener */ | ^~~~~ In file included from arccvt.c:19: /usr/include/stdio.h:264:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict, const char * restrict)’ 264 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ arccvt.c:47:17: error: too many arguments to function ‘makefnam’; expected 0, have 3 47 | makefnam("$ARCTEMP.CVT", arcname, tempname); | ^~~~~~~~ ~~~~~~~~~~~~~~ arccvt.c:41:25: note: declared here 41 | char *makefnam(); /* filename fixer */ | ^~~~~~~~ arccvt.c:52:9: error: too many arguments to function ‘openarc’; expected 0, have 1 52 | openarc(1); /* open archive for changes */ | ^~~~~~~ ~ arccvt.c:26:9: note: declared here 26 | VOID openarc(), rempath(), closearc(), arcdie(), pack(); | ^~~~~~~ arccvt.c:56:9: error: too many arguments to function ‘rempath’; expected 0, have 2 56 | rempath(num, arg); /* strip off paths */ | ^~~~~~~ ~~~ arccvt.c:26:20: note: declared here 26 | VOID openarc(), rempath(), closearc(), arcdie(), pack(); | ^~~~~~~ arccvt.c:59:24: error: too many arguments to function ‘readhdr’; expected 0, have 2 59 | while (readhdr(&hdr, arc)) { /* while more files to check */ | ^~~~~~~ ~~~~ arccvt.c:25:18: note: declared here 25 | int match(), readhdr(), unpack(), unlink(); | ^~~~~~~ arccvt.c:63:37: error: too many arguments to function ‘match’; expected 0, have 2 63 | if (match(hdr.name, arg[n])) { | ^~~~~ ~~~~~~~~ arccvt.c:25:9: note: declared here 25 | int match(), readhdr(), unpack(), unlink(); | ^~~~~ arccvt.c:71:33: error: too many arguments to function ‘cvtfile’; expected 0, have 1 71 | cvtfile(&hdr); /* then do it */ | ^~~~~~~ ~~~~ arccvt.c:28:17: note: declared here 28 | static VOID cvtfile(); | ^~~~~~~ arccvt.c:73:33: error: too many arguments to function ‘writehdr’; expected 0, have 2 73 | writehdr(&hdr, new); | ^~~~~~~~ ~~~~ arccvt.c:27:9: note: declared here 27 | VOID writehdr(), filecopy(); | ^~~~~~~~ arccvt.c:74:33: error: too many arguments to function ‘filecopy’; expected 0, have 3 74 | filecopy(arc, new, hdr.size); | ^~~~~~~~ ~~~ arccvt.c:27:21: note: declared here 27 | VOID writehdr(), filecopy(); | ^~~~~~~~ arccvt.c:78:24: error: too many arguments to function ‘readhdr’; expected 0, have 2 78 | while (readhdr(&hdr, arc)) /* else convert all files */ | ^~~~~~~ ~~~~ arccvt.c:25:18: note: declared here 25 | int match(), readhdr(), unpack(), unlink(); | ^~~~~~~ arccvt.c:79:25: error: too many arguments to function ‘cvtfile’; expected 0, have 1 79 | cvtfile(&hdr); | ^~~~~~~ ~~~~ arccvt.c:28:17: note: declared here 28 | static VOID cvtfile(); | ^~~~~~~ arccvt.c:82:9: error: too many arguments to function ‘writehdr’; expected 0, have 2 82 | writehdr(&hdr, new); /* write out our end marker */ | ^~~~~~~~ ~~~~ arccvt.c:27:9: note: declared here 27 | VOID writehdr(), filecopy(); | ^~~~~~~~ arccvt.c:83:9: error: too many arguments to function ‘closearc’; expected 0, have 1 83 | closearc(1); /* close archive after changes */ | ^~~~~~~~ ~ arccvt.c:26:31: note: declared here 26 | VOID openarc(), rempath(), closearc(), arcdie(), pack(); | ^~~~~~~~ arccvt.c: In function ‘cvtfile’: arccvt.c:96:1: warning: old-style function definition [-Wold-style-definition] 96 | cvtfile(hdr) /* convert a file */ | ^~~~~~~ arccvt.c:99:33: error: conflicting types for ‘ftell’; have ‘long int(void)’ 99 | long starts, ftell(); /* where the file goes */ | ^~~~~ /usr/include/stdio.h:775:17: note: previous declaration of ‘ftell’ with type ‘long int(FILE *)’ 775 | extern long int ftell (FILE *__stream) __wur __nonnull ((1)); | ^~~~~ arccvt.c:102:21: error: too many arguments to function ‘fopen’; expected 0, have 2 102 | if (!(tmp = fopen(tempname, "w+b"))) | ^~~~~ ~~~~~~~~ arccvt.c:100:31: note: declared here 100 | FILE *tmp, *fopen(); /* temporary file */ | ^~~~~ arccvt.c:103:17: error: too many arguments to function ‘arcdie’; expected 0, have 2 103 | arcdie("Unable to create temporary file %s", tempname); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arccvt.c:26:43: note: declared here 26 | VOID openarc(), rempath(), closearc(), arcdie(), pack(); | ^~~~~~ arccvt.c:109:9: error: too many arguments to function ‘unpack’; expected 0, have 3 109 | unpack(arc, tmp, hdr); /* unpack the entry */ | ^~~~~~ ~~~ arccvt.c:25:29: note: declared here 25 | int match(), readhdr(), unpack(), unlink(); | ^~~~~~ arccvt.c:112:18: error: too many arguments to function ‘ftell’; expected 0, have 1 112 | starts = ftell(new); /* note where header goes */ | ^~~~~ ~~~ arccvt.c:99:33: note: declared here 99 | long starts, ftell(); /* where the file goes */ | ^~~~~ arccvt.c:114:9: error: too many arguments to function ‘writehdr’; expected 0, have 2 114 | writehdr(hdr, new); /* write out header skeleton */ | ^~~~~~~~ ~~~ arccvt.c:27:9: note: declared here 27 | VOID writehdr(), filecopy(); | ^~~~~~~~ arccvt.c:118:9: error: too many arguments to function ‘pack’; expected 0, have 3 118 | pack(tmp, new, hdr); /* pack file into archive */ | ^~~~ ~~~ arccvt.c:26:53: note: declared here 26 | VOID openarc(), rempath(), closearc(), arcdie(), pack(); | ^~~~ arccvt.c:120:9: error: too many arguments to function ‘writehdr’; expected 0, have 2 120 | writehdr(hdr, new); /* write out real header */ | ^~~~~~~~ ~~~ arccvt.c:27:9: note: declared here 27 | VOID writehdr(), filecopy(); | ^~~~~~~~ arccvt.c:123:13: error: too many arguments to function ‘unlink’; expected 0, have 1 123 | if (unlink(tempname) && warn) { | ^~~~~~ ~~~~~~~~ arccvt.c:25:39: note: declared here 25 | int match(), readhdr(), unpack(), unlink(); | ^~~~~~ 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 arcadd.c:18: /usr/include/stdio.h:264:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict, const char * restrict)’ 264 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ arcadd.c:249:33: error: conflicting types for ‘ftell’; have ‘long int(void)’ 249 | long starts, ftell(); /* file locations */ | ^~~~~ /usr/include/stdio.h:775:17: note: previous declaration of ‘ftell’ with type ‘long int(FILE *)’ 775 | extern long int ftell (FILE *__stream) __wur __nonnull ((1)); | ^~~~~ 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:275:39: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] 275 | char *dummy; | ^~~~~ 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(); | ^~~~~~~ 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(); | ^~~~~~~~ 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(); | ^~~~ 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(); | ^~~~~~~~ make: *** [Makefile:89: arccvt.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:85: arcadd.o] Error 1 arcdel.c: In function ‘delarc’: arcdel.c:26:1: warning: old-style function definition [-Wold-style-definition] 26 | delarc(num, arg) /* remove files from archive */ | ^~~~~~ arcdel.c:36:17: error: too many arguments to function ‘arcdie’; expected 0, have 1 36 | arcdie("You must tell me which files to delete!"); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arcdel.c:22:9: note: declared here 22 | VOID arcdie(), rempath(), openarc(), closearc(), writehdr(), filecopy(); | ^~~~~~ arcdel.c:40:9: error: too many arguments to function ‘rempath’; expected 0, have 2 40 | rempath(num, arg); /* strip off paths */ | ^~~~~~~ ~~~ arcdel.c:22:19: note: declared here 22 | VOID arcdie(), rempath(), openarc(), closearc(), writehdr(), filecopy(); | ^~~~~~~ arcdel.c:42:9: error: too many arguments to function ‘openarc’; expected 0, have 1 42 | openarc(1); /* open archive for changes */ | ^~~~~~~ ~ arcdel.c:22:30: note: declared here 22 | VOID arcdie(), rempath(), openarc(), closearc(), writehdr(), filecopy(); | ^~~~~~~ arcdel.c:44:16: error: too many arguments to function ‘readhdr’; expected 0, have 2 44 | while (readhdr(&hdr, arc)) { /* while more entries in archive */ | ^~~~~~~ ~~~~ arcdel.c:23:18: note: declared here 23 | int match(), readhdr(); | ^~~~~~~ arcdel.c:47:29: error: too many arguments to function ‘match’; expected 0, have 2 47 | if (match(hdr.name, arg[n])) { | ^~~~~ ~~~~~~~~ arcdel.c:23:9: note: declared here 23 | int match(), readhdr(); | ^~~~~ arcdel.c:59:25: error: too many arguments to function ‘writehdr’; expected 0, have 2 59 | writehdr(&hdr, new); /* write out header and file */ | ^~~~~~~~ ~~~~ arcdel.c:22:53: note: declared here 22 | VOID arcdie(), rempath(), openarc(), closearc(), writehdr(), filecopy(); | ^~~~~~~~ arcdel.c:60:25: error: too many arguments to function ‘filecopy’; expected 0, have 3 60 | filecopy(arc, new, hdr.size); | ^~~~~~~~ ~~~ arcdel.c:22:65: note: declared here 22 | VOID arcdie(), rempath(), openarc(), closearc(), writehdr(), filecopy(); | ^~~~~~~~ arcdel.c:65:9: error: too many arguments to function ‘writehdr’; expected 0, have 2 65 | writehdr(&hdr, new); /* write out archive end marker */ | ^~~~~~~~ ~~~~ arcdel.c:22:53: note: declared here 22 | VOID arcdie(), rempath(), openarc(), closearc(), writehdr(), filecopy(); | ^~~~~~~~ arccode.c: In function ‘codebuf’: arccode.c:34:1: warning: old-style function definition [-Wold-style-definition] 34 | codebuf(buf, len) /* encrypt a buffer */ | ^~~~~~~ arcdel.c:66:9: error: too many arguments to function ‘closearc’; expected 0, have 1 66 | closearc(1); /* close archive after changes */ | ^~~~~~~~ ~ arcdel.c:22:41: note: declared here 22 | VOID arcdie(), rempath(), openarc(), closearc(), writehdr(), filecopy(); | ^~~~~~~~ make: *** [Makefile:93: arcdel.o] Error 1 arc.c: In function ‘main’: arc.c:111:1: warning: old-style function definition [-Wold-style-definition] 111 | main(num, arg) /* system entry point */ | ^~~~ 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 */ | ^~~~~~~ In file included from arc.h:55: /usr/include/stdlib.h:773:14: note: previous declaration of ‘getenv’ with type ‘char *(const char *)’ 773 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur; | ^~~~~~ 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 arc.c:73: /usr/include/stdio.h:264:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict, const char * restrict)’ 264 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ 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(); | ^~~~~~ arcdos.c: In function ‘getstamp’: arcdos.c:56:1: warning: old-style function definition [-Wold-style-definition] 56 | getstamp(f, date, time) /* get a file's date/time stamp */ | ^~~~~~~~ arcdos.c:87:26: error: conflicting types for ‘localtime’; have ‘struct tm *(void)’ 87 | struct tm *localtime(), *t; | ^~~~~~~~~ In file included from arcdos.c:36: /usr/include/time.h:136:19: note: previous declaration of ‘localtime’ with type ‘struct tm *(const time_t *)’ {aka ‘struct tm *(const long int *)’} 136 | extern struct tm *localtime (const time_t *__timer) __THROW; | ^~~~~~~~~ arcdos.c:90:11: error: too many arguments to function ‘localtime’; expected 0, have 1 90 | t=localtime(&(buf.st_mtime)); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ arcdos.c:87:26: note: declared here 87 | struct tm *localtime(), *t; | ^~~~~~~~~ arcdos.c: In function ‘setstamp’: arcdos.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | setstamp(f, date, time) /* set a file's date/time stamp */ | ^~~~~~~~ arcdos.c:185:25: error: too many arguments to function ‘tmclock’; expected 0, have 1 185 | tvp[0].tv_sec = tmclock(&tm); | ^~~~~~~ ~~~ arcdos.c:178:17: note: declared here 178 | long tmclock(); | ^~~~~~~ arcdos.c:188:9: error: too many arguments to function ‘utimes’; expected 0, have 2 188 | utimes(f, tvp); | ^~~~~~ ~ arcdos.c:177:17: note: declared here 177 | int utimes(); | ^~~~~~ arcdos.c: In function ‘izadir’: arcdos.c:203:1: warning: old-style function definition [-Wold-style-definition] 203 | izadir(filename) /* Is filename a directory? */ | ^~~~~~ make: *** [Makefile:97: arcdos.o] Error 1 make: *** [Makefile:81: arc.o] Error 1 arcext.c: In function ‘extarc’: arcext.c:41:1: warning: old-style function definition [-Wold-style-definition] 41 | extarc(num, arg, prt) /* extract files from archive */ | ^~~~~~ arcext.c:74:9: error: too many arguments to function ‘openarc’; expected 0, have 1 74 | openarc(0); /* open archive for reading */ | ^~~~~~~ ~ arcext.c:29:9: note: declared here 29 | VOID openarc(), closearc(), setstamp(); | ^~~~~~~ arcext.c:77:24: error: too many arguments to function ‘readhdr’; expected 0, have 2 77 | while (readhdr(&hdr, arc)) { /* while more files to check */ | ^~~~~~~ ~~~~ arcext.c:30:18: note: declared here 30 | int match(), readhdr(), unpack(); | ^~~~~~~ arcext.c:81:37: error: too many arguments to function ‘match’; expected 0, have 2 81 | if (match(hdr.name, name[n])) { | ^~~~~ ~~~~~~~~ arcext.c:30:9: note: declared here 30 | int match(), readhdr(), unpack(); | ^~~~~ arcext.c:89:33: error: too many arguments to function ‘extfile’; expected 0, have 3 89 | extfile(&hdr, arg[n], prt); | ^~~~~~~ ~~~~ arcext.c:31:17: note: declared here 31 | static VOID extfile(); | ^~~~~~~ arcext.c:94:24: error: too many arguments to function ‘readhdr’; expected 0, have 2 94 | while (readhdr(&hdr, arc)) /* else extract all files */ | ^~~~~~~ ~~~~ arcext.c:30:18: note: declared here 30 | int match(), readhdr(), unpack(); | ^~~~~~~ arcext.c:95:25: error: too many arguments to function ‘extfile’; expected 0, have 3 95 | extfile(&hdr, "", prt); | ^~~~~~~ ~~~~ arcext.c:31:17: note: declared here 31 | static VOID extfile(); | ^~~~~~~ arcext.c:97:9: error: too many arguments to function ‘closearc’; expected 0, have 1 97 | closearc(0); /* close archive after reading */ | ^~~~~~~~ ~ arcext.c:29:20: note: declared here 29 | VOID openarc(), closearc(), setstamp(); | ^~~~~~~~ arcext.c: In function ‘extfile’: arcext.c:111:1: warning: old-style function definition [-Wold-style-definition] 111 | extfile(hdr, path, prt) /* extract a file */ | ^~~~~~~ arcext.c:116:29: error: conflicting types for ‘fopen’; have ‘FILE *(void)’ 116 | FILE *f, *fopen(); /* extracted file, opener */ | ^~~~~ In file included from arcext.c:19: /usr/include/stdio.h:264:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict, const char * restrict)’ 264 | extern FILE *fopen (const char *__restrict __filename, | ^~~~~ arcext.c:122:17: error: too many arguments to function ‘unpack’; expected 0, have 3 122 | unpack(arc, stdout, hdr); /* unpack file from archive */ | ^~~~~~ ~~~ arcext.c:30:29: note: declared here 30 | int match(), readhdr(), unpack(); | ^~~~~~ arcext.c:147:26: error: too many arguments to function ‘fopen’; expected 0, have 2 147 | if ((f = fopen(fix, "r"))) { /* see if it exists */ | ^~~~~ ~~~ arcext.c:116:29: note: declared here 116 | FILE *f, *fopen(); /* extracted file, opener */ | ^~~~~ arcext.c:152:47: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] 152 | char *dummy; | ^~~~~ arcext.c:168:19: error: too many arguments to function ‘fopen’; expected 0, have 2 168 | if (!(f = fopen(fix, OPEN_W))) | ^~~~~ ~~~ arcext.c:116:29: note: declared here 116 | FILE *f, *fopen(); /* extracted file, opener */ | ^~~~~ arcext.c:204:9: error: too many arguments to function ‘unpack’; expected 0, have 3 204 | unpack(arc, f, hdr); /* unpack file from archive */ | ^~~~~~ ~~~ arcext.c:30:29: note: declared here 30 | int match(), readhdr(), unpack(); | ^~~~~~ arcext.c:207:9: error: too many arguments to function ‘setstamp’; expected 0, have 3 207 | setstamp(fix, hdr->date, hdr->time); /* use filename for stamp */ | ^~~~~~~~ ~~~ arcext.c:29:32: note: declared here 29 | VOID openarc(), closearc(), setstamp(); | ^~~~~~~~ make: *** [Makefile:99: arcext.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.wcmNgd (%build) Bad exit status from /var/tmp/rpm-tmp.wcmNgd (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 7d4caa90ce4b43e891e716b498e6270b -D /var/lib/mock/f43-build-57636511-6556164/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.38qdz646:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/arc.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 7d4caa90ce4b43e891e716b498e6270b -D /var/lib/mock/f43-build-57636511-6556164/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.38qdz646:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/arc.spec'