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 aarch64 --nodeps /builddir/build/SPECS/sqlite2.spec'], chrootPath='/var/lib/mock/f43-build-57589914-6555394/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.mhcy2a88:/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.mhcy2a88:/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', 'baeebde8487d44e3ab463becf21b8349', '-D', '/var/lib/mock/f43-build-57589914-6555394/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mhcy2a88:/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 aarch64 --nodeps /builddir/build/SPECS/sqlite2.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: aarch64 Building for target aarch64 sh: line 1: tclsh: command not found setting SOURCE_DATE_EPOCH=1721433600 Wrote: /builddir/build/SRPMS/sqlite2-2.8.17-44.fc43.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/sqlite2.spec'], chrootPath='/var/lib/mock/f43-build-57589914-6555394/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.mhcy2a88:/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.mhcy2a88:/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', 'e3de28c94ae24b03963e19887d4fe187', '-D', '/var/lib/mock/f43-build-57589914-6555394/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mhcy2a88:/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 aarch64 --nodeps /builddir/build/SPECS/sqlite2.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: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1721433600 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.I6pPKS Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EnPVeq + umask 022 + cd /builddir/build/BUILD/sqlite2-2.8.17-build + cd /builddir/build/BUILD/sqlite2-2.8.17-build + rm -rf sqlite-2.8.17 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/sqlite-2.8.17.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd sqlite-2.8.17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find . -type d -name CVS -print0 + xargs -0 rm -r Patch #1 (sqlite-2.8.15.rpath.patch): + echo 'Patch #1 (sqlite-2.8.15.rpath.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .rpath --fuzz=0 patching file Makefile.in Patch #2 (sqlite-2.8.15-makefile.patch): + echo 'Patch #2 (sqlite-2.8.15-makefile.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile.in Patch #3 (sqlite-2.8.3.test.rh9.patch): + echo 'Patch #3 (sqlite-2.8.3.test.rh9.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file test/tester.tcl Hunk #1 succeeded at 56 (offset 13 lines). Patch #4 (sqlite-64bit-fixes.patch): + echo 'Patch #4 (sqlite-64bit-fixes.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/test3.c patching file src/test2.c patching file src/test-util.c patching file src/test-util.h patching file Makefile.in Hunk #1 succeeded at 141 (offset -1 lines). Patch #5 (sqlite-2.8.15-arch-double-differences.patch): + echo 'Patch #5 (sqlite-2.8.15-arch-double-differences.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file test/format3.test patching file test/misc1.test Patch #6 (sqlite-2.8.17-test.patch): + echo 'Patch #6 (sqlite-2.8.17-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file test/tclsqlite.test Patch #7 (sqlite-2.8.17-tcl.patch): + echo 'Patch #7 (sqlite-2.8.17-tcl.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.ac Hunk #1 succeeded at 435 (offset 3 lines). patching file src/tclsqlite.c Patch #8 (sqlite-2.8.17-ppc64.patch): + echo 'Patch #8 (sqlite-2.8.17-ppc64.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/test2.c patching file src/test3.c Patch #9 (sqlite-2.8.17-format-security.patch): + echo 'Patch #9 (sqlite-2.8.17-format-security.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/shell.c Patch #10 (sqlite-2.8.17-tcl86.patch): + echo 'Patch #10 (sqlite-2.8.17-tcl86.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/md5.c patching file src/tclsqlite.c Patch #11 (sqlite-2.8.17-cleanup-temp-c.patch): + echo 'Patch #11 (sqlite-2.8.17-cleanup-temp-c.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .cleanup-tempc --fuzz=0 patching file Makefile.in Patch #12 (sqlite-2.8.17-suse-cleanups.patch): + echo 'Patch #12 (sqlite-2.8.17-suse-cleanups.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .suse --fuzz=0 patching file main.mk patching file Makefile.in patching file src/attach.c patching file src/build.c patching file src/expr.c patching file src/pragma.c patching file src/printf.c patching file src/select.c patching file src/tokenize.c patching file src/vdbe.c Patch #13 (sqlite-2.8.17-suse-detect-sqlite3.patch): + echo 'Patch #13 (sqlite-2.8.17-suse-detect-sqlite3.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .detect-sqlite3 --fuzz=0 patching file src/btree.c patching file src/main.c patching file src/sqlite.h.in Patch #14 (sqlite-2.8.17-CVE-2007-1888.patch): + echo 'Patch #14 (sqlite-2.8.17-CVE-2007-1888.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .CVE-2007-1888 --fuzz=0 patching file src/encode.c Patch #15 (sqlite-2.8.17-lemon-snprintf.patch): + echo 'Patch #15 (sqlite-2.8.17-lemon-snprintf.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .snprintf --fuzz=0 patching file tool/lemon.c Patch #16 (sqlite-2.8.17-fix-sort-syntax.patch): + echo 'Patch #16 (sqlite-2.8.17-fix-sort-syntax.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .fix-sort-syntax --fuzz=0 patching file Makefile.in Patch #17 (sqlite-2.8.17-ldflags.patch): + echo 'Patch #17 (sqlite-2.8.17-ldflags.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ldflags --fuzz=0 patching file Makefile.in Patch #18 (sqlite-2.8.17-fix-unsigned-FTBFS.patch): + echo 'Patch #18 (sqlite-2.8.17-fix-unsigned-FTBFS.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .unsigned-fix --fuzz=0 patching file tool/lemon.c Patch #19 (sqlite-2.8.17-gcc10.patch): + echo 'Patch #19 (sqlite-2.8.17-gcc10.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gcc10 --fuzz=0 patching file src/btree.h patching file src/pager.h Patch #20 (sqlite2-configure-c99.patch): + echo 'Patch #20 (sqlite2-configure-c99.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure Patch #21 (sqlite2-lemon-c99.patch): + echo 'Patch #21 (sqlite2-lemon-c99.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tool/lemon.c + sed -i.rpath 's!__VERSION__!2.8.17!g' Makefile.in + sed -i.lib 's!@exec_prefix@/lib!/usr/lib64!g' Makefile.in + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Hq264o + umask 022 + cd /builddir/build/BUILD/sqlite2-2.8.17-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -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 sqlite-2.8.17 + CFLAGS='-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG=1' + CFLAGS='-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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG=1' + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + 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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -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 + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2025-03-02 23:25:40.282201592 +0000 +++ ./configure 2025-03-02 23:25:40.304201807 +0000 @@ -7549,7 +7549,7 @@ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else -char (*f) () = shl_load; +__attribute__ ((used)) char (*f) () = shl_load; #endif #ifdef __cplusplus } @@ -7707,7 +7707,7 @@ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else -char (*f) () = dlopen; +__attribute__ ((used)) char (*f) () = dlopen; #endif #ifdef __cplusplus } @@ -11230,7 +11230,7 @@ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else -char (*f) () = shl_load; +__attribute__ ((used)) char (*f) () = shl_load; #endif #ifdef __cplusplus } @@ -11388,7 +11388,7 @@ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else -char (*f) () = dlopen; +__attribute__ ((used)) char (*f) () = dlopen; #endif #ifdef __cplusplus } @@ -16707,7 +16707,7 @@ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else -char (*f) () = shl_load; +__attribute__ ((used)) char (*f) () = shl_load; #endif #ifdef __cplusplus } @@ -16865,7 +16865,7 @@ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else -char (*f) () = dlopen; +__attribute__ ((used)) char (*f) () = dlopen; #endif #ifdef __cplusplus } @@ -19531,7 +19531,7 @@ #if defined (__stub_sin) || defined (__stub___sin) choke me #else -char (*f) () = sin; +__attribute__ ((used)) char (*f) () = sin; #endif #ifdef __cplusplus } @@ -20473,7 +20473,7 @@ #if defined (__stub_usleep) || defined (__stub___usleep) choke me #else -char (*f) () = usleep; +__attribute__ ((used)) char (*f) () = usleep; #endif #ifdef __cplusplus } + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2025-03-02 23:25:40.304201807 +0000 +++ ./configure 2025-03-02 23:25:40.373202483 +0000 @@ -4744,7 +4744,7 @@ symxfrm='\1 \2\3 \3' # Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh ++ grep -q runstatedir=DIR ./configure + ./configure --build=aarch64-redhat-linux-gnu --host=aarch64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-utf8 --disable-static --disable-rpath checking build system type... aarch64-redhat-linux-gnu checking host system type... aarch64-redhat-linux-gnu checking for aarch64-redhat-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for aarch64-redhat-linux-gnu-g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for aarch64-redhat-linux-gnu-g77... no checking for aarch64-redhat-linux-gnu-f77... no checking for aarch64-redhat-linux-gnu-xlf... no checking for aarch64-redhat-linux-gnu-frt... no checking for aarch64-redhat-linux-gnu-pgf77... no checking for aarch64-redhat-linux-gnu-fort77... no checking for aarch64-redhat-linux-gnu-fl32... no checking for aarch64-redhat-linux-gnu-af77... no checking for aarch64-redhat-linux-gnu-f90... no checking for aarch64-redhat-linux-gnu-xlf90... no checking for aarch64-redhat-linux-gnu-pgf90... no checking for aarch64-redhat-linux-gnu-epcf90... no checking for aarch64-redhat-linux-gnu-f95... no checking for aarch64-redhat-linux-gnu-fort... no checking for aarch64-redhat-linux-gnu-xlf95... no checking for aarch64-redhat-linux-gnu-ifc... no checking for aarch64-redhat-linux-gnu-efc... no checking for aarch64-redhat-linux-gnu-pgf95... no checking for aarch64-redhat-linux-gnu-lf95... no checking for aarch64-redhat-linux-gnu-gfortran... no checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse nm output from gcc object... ok checking for objdir... .libs checking for aarch64-redhat-linux-gnu-ar... no checking for ar... ar checking for aarch64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for aarch64-redhat-linux-gnu-strip... no checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... egrep: warning: egrep is obsolescent; using grep -E yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking for a BSD-compatible install... /usr/bin/install -c Version set to 2.8.17 ./configure: line 18375: hostname: command not found checking for aarch64-redhat-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking switches for the host compiler... -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG=1 checking target compiler... gcc checking switches on the target compiler... -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG=1 checking target linker... gcc checking switches on the target compiler... checking for aarch64-redhat-linux-gnu-ranlib... ranlib -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG=1 checking if host and target compilers are the same... yes checking character encoding... UTF-8 checking whether to support incore databases for attach and open... yes checking whether to support shared library linked as release mode or not... no checking whether to use an in-ram database for temporary tables... no checking if executables have the .exe suffix... unknown checking for sin... no checking for dlopen in -ldl... yes checking for library containing Tcl_Init... -ltcl checking TCL header files... not specified: still searching... checking tcl.h usability... yes checking tcl.h presence... yes checking for tcl.h... yes checking for library containing tgetent... -lncurses checking for readline in -lreadline... yes checking readline header files... not specified: still searching... checking readline.h usability... no checking readline.h presence... no checking for readline.h... no checking for /usr/include/readline.h... no checking for /usr/include/readline/readline.h... yes checking for usleep... yes configure: creating ./config.status config.status: creating Makefile config.status: creating sqlite.pc + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + make sed -e s/--VERS--/`cat ./VERSION`/ \ -e s/--ENCODING--/UTF8/ \ ./src/sqlite.h.in >sqlite.h echo '#include ' >temp.c echo '#include '>>temp.c echo 'int main(){printf(' >>temp.c echo '"#define SQLITE_PTR_SZ %ld",sizeof(char*));' >>temp.c echo 'exit(0);}' >>temp.c gcc -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG=1 -o temp temp.c ./temp >config.h echo >>config.h rm -f temp.c temp echo '/* Automatically generated file. Do not edit */' >opcodes.h grep '^case OP_' ./src/vdbe.c | \ sed -e 's/://' | \ awk '{printf "#define %-30s %3d\n", $2, ++cnt}' >>opcodes.h gcc -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 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG=1 -o lemon ./tool/lemon.c ./tool/lemon.c:32:14: error: conflicting types for ‘malloc’; have ‘void *(void)’ 32 | extern void *malloc(); | ^~~~~~ In file included from ./tool/lemon.c:13: /usr/include/stdlib.h:672:14: note: previous declaration of ‘malloc’ with type ‘void *(long unsigned int)’ 672 | extern void *malloc (size_t __size) __THROW __attribute_malloc__ | ^~~~~~ ./tool/lemon.c: In function ‘Action_new’: ./tool/lemon.c:337:33: error: too many arguments to function ‘malloc’; expected 0, have 1 337 | freelist = (struct action *)malloc( sizeof(struct action)*amt ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘actioncmp’: ./tool/lemon.c:351:12: warning: old-style function definition [-Wold-style-definition] 351 | static int actioncmp(ap1,ap2) | ^~~~~~~~~ ./tool/lemon.c: In function ‘Action_sort’: ./tool/lemon.c:367:16: warning: old-style function definition [-Wold-style-definition] 367 | struct action *Action_sort(ap) | ^~~~~~~~~~~ ./tool/lemon.c:369:1: error: number of arguments doesn’t match prototype 369 | { | ^ ./tool/lemon.c:36:16: error: prototype declaration 36 | struct action *Action_sort(); | ^~~~~~~~~~~ ./tool/lemon.c:370:25: error: too many arguments to function ‘msort’; expected 0, have 3 370 | ap = (struct action *)msort((char *)ap,(char **)&ap->next,actioncmp); | ^~~~~ ~~~~~~~~~~ ./tool/lemon.c:31:7: note: declared here 31 | char *msort(); | ^~~~~ ./tool/lemon.c: In function ‘Action_add’: ./tool/lemon.c:374:6: warning: old-style function definition [-Wold-style-definition] 374 | void Action_add(app,type,sp,arg) | ^~~~~~~~~~ ./tool/lemon.c: In function ‘acttab_alloc’: ./tool/lemon.c:435:15: error: too many arguments to function ‘malloc’; expected 0, have 1 435 | acttab *p = malloc( sizeof(*p) ); | ^~~~~~ ~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘myassert’: ./tool/lemon.c:560:6: warning: old-style function definition [-Wold-style-definition] 560 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:563:1: error: number of arguments doesn’t match prototype 563 | { | ^ ./tool/lemon.c:39:6: error: prototype declaration 39 | void myassert(); | ^~~~~~~~ ./tool/lemon.c: In function ‘FindRulePrecedences’: ./tool/lemon.c:582:6: warning: old-style function definition [-Wold-style-definition] 582 | void FindRulePrecedences(xp) | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:584:1: error: number of arguments doesn’t match prototype 584 | { | ^ ./tool/lemon.c:47:6: error: prototype declaration 47 | void FindRulePrecedences(); | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘FindFirstSets’: ./tool/lemon.c:605:6: warning: old-style function definition [-Wold-style-definition] 605 | void FindFirstSets(lemp) | ^~~~~~~~~~~~~ ./tool/lemon.c:607:1: error: number of arguments doesn’t match prototype 607 | { | ^ ./tool/lemon.c:48:6: error: prototype declaration 48 | void FindFirstSets(); | ^~~~~~~~~~~~~ ./tool/lemon.c:643:23: error: too many arguments to function ‘SetAdd’; expected 0, have 2 643 | progress += SetAdd(s1->firstset,s2->index); | ^~~~~~ ~~~~~~~~~~~~ ./tool/lemon.c:104:5: note: declared here 104 | int SetAdd(/* char*,int */); /* Add element to a set */ | ^~~~~~ ./tool/lemon.c:648:23: error: too many arguments to function ‘SetUnion’; expected 0, have 2 648 | progress += SetUnion(s1->firstset,s2->firstset); | ^~~~~~~~ ~~~~~~~~~~~~ ./tool/lemon.c:105:5: note: declared here 105 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */ | ^~~~~~~~ ./tool/lemon.c: In function ‘FindStates’: ./tool/lemon.c:662:6: warning: old-style function definition [-Wold-style-definition] 662 | void FindStates(lemp) | ^~~~~~~~~~ ./tool/lemon.c:664:1: error: number of arguments doesn’t match prototype 664 | { | ^ ./tool/lemon.c:49:6: error: prototype declaration 49 | void FindStates(); | ^~~~~~~~~~ ./tool/lemon.c:672:10: error: too many arguments to function ‘Symbol_find’; expected 0, have 1 672 | sp = Symbol_find(lemp->start); | ^~~~~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:304:16: note: declared here 304 | struct symbol *Symbol_find(/* char * */); | ^~~~~~~~~~~ ./tool/lemon.c:706:14: error: too many arguments to function ‘Configlist_addbasis’; expected 0, have 2 706 | newcfp = Configlist_addbasis(rp,0); | ^~~~~~~~~~~~~~~~~~~ ~~ ./tool/lemon.c:57:16: note: declared here 57 | struct config *Configlist_addbasis(/* struct rule *, int */); | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:707:5: error: too many arguments to function ‘SetAdd’; expected 0, have 2 707 | SetAdd(newcfp->fws,0); | ^~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:104:5: note: declared here 104 | int SetAdd(/* char*,int */); /* Add element to a set */ | ^~~~~~ ./tool/lemon.c:713:9: error: too many arguments to function ‘getstate’; expected 0, have 1 713 | (void)getstate(lemp); | ^~~~~~~~ ~~~~ ./tool/lemon.c:661:23: note: declared here 661 | PRIVATE struct state *getstate(/* struct lemon * */); /* forward reference */ | ^~~~~~~~ ./tool/lemon.c: In function ‘getstate’: ./tool/lemon.c:721:23: warning: old-style function definition [-Wold-style-definition] 721 | PRIVATE struct state *getstate(lemp) | ^~~~~~~~ ./tool/lemon.c:723:1: error: number of arguments doesn’t match prototype 723 | { | ^ ./tool/lemon.c:661:23: error: prototype declaration 661 | PRIVATE struct state *getstate(/* struct lemon * */); /* forward reference */ | ^~~~~~~~ ./tool/lemon.c:733:9: error: too many arguments to function ‘State_find’; expected 0, have 1 733 | stp = State_find(bp); | ^~~~~~~~~~ ~~ ./tool/lemon.c:315:15: note: declared here 315 | struct state *State_find(/* struct config * */); | ^~~~~~~~~~ ./tool/lemon.c:740:7: error: too many arguments to function ‘Plink_copy’; expected 0, have 2 740 | Plink_copy(&y->bplp,x->bplp); | ^~~~~~~~~~ ~~~~~~~~ ./tool/lemon.c:89:6: note: declared here 89 | void Plink_copy(/* struct plink **, struct plink * */); | ^~~~~~~~~~ ./tool/lemon.c:741:7: error: too many arguments to function ‘Plink_delete’; expected 0, have 1 741 | Plink_delete(x->fplp); | ^~~~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:90:6: note: declared here 90 | void Plink_delete(/* struct plink * */); | ^~~~~~~~~~~~ ./tool/lemon.c:745:5: error: too many arguments to function ‘Configlist_eat’; expected 0, have 1 745 | Configlist_eat(cfp); | ^~~~~~~~~~~~~~ ~~~ ./tool/lemon.c:63:6: note: declared here 63 | void Configlist_eat(/* struct config * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:748:5: error: too many arguments to function ‘Configlist_closure’; expected 0, have 1 748 | Configlist_closure(lemp); /* Compute the configuration closure */ | ^~~~~~~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:58:6: note: declared here 58 | void Configlist_closure(/* void */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:757:5: error: too many arguments to function ‘State_insert’; expected 0, have 2 757 | State_insert(stp,stp->bp); /* Add to the state table */ | ^~~~~~~~~~~~ ~~~ ./tool/lemon.c:314:5: note: declared here 314 | int State_insert(/* struct state *, struct config * */); | ^~~~~~~~~~~~ ./tool/lemon.c:758:5: error: too many arguments to function ‘buildshifts’; expected 0, have 2 758 | buildshifts(lemp,stp); /* Recursively compute successor states */ | ^~~~~~~~~~~ ~~~~ ./tool/lemon.c:720:14: note: declared here 720 | PRIVATE void buildshifts(/* struct lemon *, struct state * */); /* Forwd ref */ | ^~~~~~~~~~~ ./tool/lemon.c: In function ‘buildshifts’: ./tool/lemon.c:766:14: warning: old-style function definition [-Wold-style-definition] 766 | PRIVATE void buildshifts(lemp,stp) | ^~~~~~~~~~~ ./tool/lemon.c:769:1: error: number of arguments doesn’t match prototype 769 | { | ^ ./tool/lemon.c:720:14: error: prototype declaration 720 | PRIVATE void buildshifts(/* struct lemon *, struct state * */); /* Forwd ref */ | ^~~~~~~~~~~ ./tool/lemon.c:797:13: error: too many arguments to function ‘Configlist_addbasis’; expected 0, have 2 797 | new = Configlist_addbasis(bcfp->rp,bcfp->dot+1); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ./tool/lemon.c:57:16: note: declared here 57 | struct config *Configlist_addbasis(/* struct rule *, int */); | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:798:7: error: too many arguments to function ‘Plink_add’; expected 0, have 2 798 | Plink_add(&new->bplp,bcfp); | ^~~~~~~~~ ~~~~~~~~~~ ./tool/lemon.c:88:6: note: declared here 88 | void Plink_add(/* struct plink **, struct config * */); | ^~~~~~~~~ ./tool/lemon.c:803:14: error: too many arguments to function ‘getstate’; expected 0, have 1 803 | newstp = getstate(lemp); | ^~~~~~~~ ~~~~ ./tool/lemon.c:721:23: note: declared here 721 | PRIVATE struct state *getstate(lemp) | ^~~~~~~~ ./tool/lemon.c: In function ‘FindLinks’: ./tool/lemon.c:814:6: warning: old-style function definition [-Wold-style-definition] 814 | void FindLinks(lemp) | ^~~~~~~~~ ./tool/lemon.c:816:1: error: number of arguments doesn’t match prototype 816 | { | ^ ./tool/lemon.c:50:6: error: prototype declaration 50 | void FindLinks(); | ^~~~~~~~~ ./tool/lemon.c:839:9: error: too many arguments to function ‘Plink_add’; expected 0, have 2 839 | Plink_add(&other->fplp,cfp); | ^~~~~~~~~ ~~~~~~~~~~~~ ./tool/lemon.c:88:6: note: declared here 88 | void Plink_add(/* struct plink **, struct config * */); | ^~~~~~~~~ ./tool/lemon.c: In function ‘FindFollowSets’: ./tool/lemon.c:850:6: warning: old-style function definition [-Wold-style-definition] 850 | void FindFollowSets(lemp) | ^~~~~~~~~~~~~~ ./tool/lemon.c:852:1: error: number of arguments doesn’t match prototype 852 | { | ^ ./tool/lemon.c:51:6: error: prototype declaration 51 | void FindFollowSets(); | ^~~~~~~~~~~~~~ ./tool/lemon.c:871:20: error: too many arguments to function ‘SetUnion’; expected 0, have 2 871 | change = SetUnion(plp->cfp->fws,cfp->fws); | ^~~~~~~~ ~~~~~~~~~~~~~ ./tool/lemon.c:105:5: note: declared here 105 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */ | ^~~~~~~~ ./tool/lemon.c: In function ‘FindActions’: ./tool/lemon.c:887:6: warning: old-style function definition [-Wold-style-definition] 887 | void FindActions(lemp) | ^~~~~~~~~~~ ./tool/lemon.c:889:1: error: number of arguments doesn’t match prototype 889 | { | ^ ./tool/lemon.c:52:6: error: prototype declaration 52 | void FindActions(); | ^~~~~~~~~~~ ./tool/lemon.c:917:10: error: too many arguments to function ‘Symbol_find’; expected 0, have 1 917 | sp = Symbol_find(lemp->start); | ^~~~~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:304:16: note: declared here 304 | struct symbol *Symbol_find(/* char * */); | ^~~~~~~~~~~ ./tool/lemon.c:933:15: error: too many arguments to function ‘Action_sort’; expected 0, have 1 933 | stp->ap = Action_sort(stp->ap); | ^~~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:367:16: note: declared here 367 | struct action *Action_sort(ap) | ^~~~~~~~~~~ ./tool/lemon.c:938:29: error: too many arguments to function ‘resolve_conflict’; expected 0, have 3 938 | lemp->nconflict += resolve_conflict(ap,nap,lemp->errsym); | ^~~~~~~~~~~~~~~~ ~~ ./tool/lemon.c:883:12: note: declared here 883 | static int resolve_conflict(); | ^~~~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘resolve_conflict’: ./tool/lemon.c:971:12: warning: old-style function definition [-Wold-style-definition] 971 | static int resolve_conflict(apx,apy,errsym) | ^~~~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘newconfig’: ./tool/lemon.c:1044:33: error: too many arguments to function ‘malloc’; expected 0, have 1 1044 | freelist = (struct config *)malloc( sizeof(struct config)*amt ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘deleteconfig’: ./tool/lemon.c:1058:14: warning: old-style function definition [-Wold-style-definition] 1058 | PRIVATE void deleteconfig(old) | ^~~~~~~~~~~~ ./tool/lemon.c: In function ‘Configlist_reset’: ./tool/lemon.c:1081:3: error: too many arguments to function ‘Configtable_clear’; expected 0, have 1 1081 | Configtable_clear(0); | ^~~~~~~~~~~~~~~~~ ~ ./tool/lemon.c:323:6: note: declared here 323 | void Configtable_clear(/* int(*)(struct config *) */); | ^~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘Configlist_add’: ./tool/lemon.c:1086:16: warning: old-style function definition [-Wold-style-definition] 1086 | struct config *Configlist_add(rp,dot) | ^~~~~~~~~~~~~~ ./tool/lemon.c:1089:1: error: number of arguments doesn’t match prototype 1089 | { | ^ ./tool/lemon.c:56:16: error: prototype declaration 56 | struct config *Configlist_add(/* struct rule *, int */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:1095:9: error: too many arguments to function ‘Configtable_find’; expected 0, have 1 1095 | cfp = Configtable_find(&model); | ^~~~~~~~~~~~~~~~ ~~~~~~ ./tool/lemon.c:322:16: note: declared here 322 | struct config *Configtable_find(/* struct config * */); | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:1107:5: error: too many arguments to function ‘Configtable_insert’; expected 0, have 1 1107 | Configtable_insert(cfp); | ^~~~~~~~~~~~~~~~~~ ~~~ ./tool/lemon.c:321:5: note: declared here 321 | int Configtable_insert(/* struct config * */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘Configlist_addbasis’: ./tool/lemon.c:1113:16: warning: old-style function definition [-Wold-style-definition] 1113 | struct config *Configlist_addbasis(rp,dot) | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:1116:1: error: number of arguments doesn’t match prototype 1116 | { | ^ ./tool/lemon.c:57:16: error: prototype declaration 57 | struct config *Configlist_addbasis(/* struct rule *, int */); | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:1123:9: error: too many arguments to function ‘Configtable_find’; expected 0, have 1 1123 | cfp = Configtable_find(&model); | ^~~~~~~~~~~~~~~~ ~~~~~~ ./tool/lemon.c:322:16: note: declared here 322 | struct config *Configtable_find(/* struct config * */); | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:1137:5: error: too many arguments to function ‘Configtable_insert’; expected 0, have 1 1137 | Configtable_insert(cfp); | ^~~~~~~~~~~~~~~~~~ ~~~ ./tool/lemon.c:321:5: note: declared here 321 | int Configtable_insert(/* struct config * */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘Configlist_closure’: ./tool/lemon.c:1143:6: warning: old-style function definition [-Wold-style-definition] 1143 | void Configlist_closure(lemp) | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:1145:1: error: number of arguments doesn’t match prototype 1145 | { | ^ ./tool/lemon.c:58:6: error: prototype declaration 58 | void Configlist_closure(/* void */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:1164:18: error: too many arguments to function ‘Configlist_add’; expected 0, have 2 1164 | newcfp = Configlist_add(newrp,0); | ^~~~~~~~~~~~~~ ~~~~~ ./tool/lemon.c:1086:16: note: declared here 1086 | struct config *Configlist_add(rp,dot) | ^~~~~~~~~~~~~~ ./tool/lemon.c:1168:13: error: too many arguments to function ‘SetAdd’; expected 0, have 2 1168 | SetAdd(newcfp->fws,xsp->index); | ^~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:104:5: note: declared here 104 | int SetAdd(/* char*,int */); /* Add element to a set */ | ^~~~~~ ./tool/lemon.c:1171:13: error: too many arguments to function ‘SetUnion’; expected 0, have 2 1171 | SetUnion(newcfp->fws,xsp->firstset); | ^~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:105:5: note: declared here 105 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */ | ^~~~~~~~ ./tool/lemon.c:1175:27: error: too many arguments to function ‘Plink_add’; expected 0, have 2 1175 | if( i==rp->nrhs ) Plink_add(&cfp->fplp,newcfp); | ^~~~~~~~~ ~~~~~~~~~~ ./tool/lemon.c:88:6: note: declared here 88 | void Plink_add(/* struct plink **, struct config * */); | ^~~~~~~~~ ./tool/lemon.c: In function ‘Configlist_sort’: ./tool/lemon.c:1184:30: error: too many arguments to function ‘msort’; expected 0, have 3 1184 | current = (struct config *)msort((char *)current,(char **)&(current->next),Configcmp); | ^~~~~ ~~~~~~~~~~~~~~~ ./tool/lemon.c:31:7: note: declared here 31 | char *msort(); | ^~~~~ ./tool/lemon.c: In function ‘Configlist_sortbasis’: ./tool/lemon.c:1191:28: error: too many arguments to function ‘msort’; expected 0, have 3 1191 | basis = (struct config *)msort((char *)current,(char **)&(current->bp),Configcmp); | ^~~~~ ~~~~~~~~~~~~~~~ ./tool/lemon.c:31:7: note: declared here 31 | char *msort(); | ^~~~~ ./tool/lemon.c: In function ‘Configlist_eat’: ./tool/lemon.c:1217:6: warning: old-style function definition [-Wold-style-definition] 1217 | void Configlist_eat(cfp) | ^~~~~~~~~~~~~~ ./tool/lemon.c:1219:1: error: number of arguments doesn’t match prototype 1219 | { | ^ ./tool/lemon.c:63:6: error: prototype declaration 63 | void Configlist_eat(/* struct config * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:1225:20: error: too many arguments to function ‘SetFree’; expected 0, have 1 1225 | if( cfp->fws ) SetFree(cfp->fws); | ^~~~~~~ ~~~~~~~~ ./tool/lemon.c:102:7: note: declared here 102 | void SetFree(/* char* */); /* Deallocate a set */ | ^~~~~~~ ./tool/lemon.c: In function ‘findbreak’: ./tool/lemon.c:1238:12: warning: old-style function definition [-Wold-style-definition] 1238 | static int findbreak(msg,min,max) | ^~~~~~~~~ ./tool/lemon.c: In function ‘main’: ./tool/lemon.c:1317:5: warning: old-style function definition [-Wold-style-definition] 1317 | int main(argc,argv) | ^~~~ ./tool/lemon.c:1341:3: error: too many arguments to function ‘OptInit’; expected 0, have 3 1341 | OptInit(argv,options,stderr); | ^~~~~~~ ~~~~ ./tool/lemon.c:77:8: note: declared here 77 | int OptInit(/* char**,struct s_options*,FILE* */); | ^~~~~~~ ./tool/lemon.c:1357:18: error: too many arguments to function ‘OptArg’; expected 0, have 1 1357 | lem.filename = OptArg(0); | ^~~~~~ ~ ./tool/lemon.c:79:8: note: declared here 79 | char *OptArg(/* int */); | ^~~~~~ ./tool/lemon.c:1368:3: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 1368 | Symbol_new("$"); | ^~~~~~~~~~ ~~~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:1369:16: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 1369 | lem.errsym = Symbol_new("error"); | ^~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:1372:3: error: too many arguments to function ‘Parse’; expected 0, have 1 1372 | Parse(&lem); | ^~~~~ ~~~~ ./tool/lemon.c:84:6: note: declared here 84 | void Parse(/* struct lemon *lemp */); | ^~~~~ ./tool/lemon.c:1381:3: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 1381 | Symbol_new("{default}"); | ^~~~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:1385:9: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types] 1385 | (int(*)())Symbolcmpp); | ^~~~~~~~~~~~~~~~~~~~ | | | int (*)(void) /usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’ 971 | __compar_fn_t __compar) __nonnull ((1, 4)); | ~~~~~~~~~~~~~~^~~~~~~~ ./tool/lemon.c:301:5: note: ‘Symbolcmpp’ declared here 301 | int Symbolcmpp(/* struct symbol **, struct symbol ** */); | ^~~~~~~~~~ /usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here 948 | typedef int (*__compar_fn_t) (const void *, const void *); | ^~~~~~~~~~~~~ ./tool/lemon.c:1392:5: error: too many arguments to function ‘Reprint’; expected 0, have 1 1392 | Reprint(&lem); | ^~~~~~~ ~~~~ ./tool/lemon.c:93:6: note: declared here 93 | void Reprint(/* struct lemon * */); | ^~~~~~~ ./tool/lemon.c:1395:5: error: too many arguments to function ‘SetSize’; expected 0, have 1 1395 | SetSize(lem.nterminal); | ^~~~~~~ ~~~~~~~~~~~~~ ./tool/lemon.c:100:7: note: declared here 100 | void SetSize(/* int N */); /* All sets will be of size N */ | ^~~~~~~ ./tool/lemon.c:1398:5: error: too many arguments to function ‘FindRulePrecedences’; expected 0, have 1 1398 | FindRulePrecedences(&lem); | ^~~~~~~~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:582:6: note: declared here 582 | void FindRulePrecedences(xp) | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:1402:5: error: too many arguments to function ‘FindFirstSets’; expected 0, have 1 1402 | FindFirstSets(&lem); | ^~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:605:6: note: declared here 605 | void FindFirstSets(lemp) | ^~~~~~~~~~~~~ ./tool/lemon.c:1407:5: error: too many arguments to function ‘FindStates’; expected 0, have 1 1407 | FindStates(&lem); | ^~~~~~~~~~ ~~~~ ./tool/lemon.c:662:6: note: declared here 662 | void FindStates(lemp) | ^~~~~~~~~~ ./tool/lemon.c:1411:5: error: too many arguments to function ‘FindLinks’; expected 0, have 1 1411 | FindLinks(&lem); | ^~~~~~~~~ ~~~~ ./tool/lemon.c:814:6: note: declared here 814 | void FindLinks(lemp) | ^~~~~~~~~ ./tool/lemon.c:1414:5: error: too many arguments to function ‘FindFollowSets’; expected 0, have 1 1414 | FindFollowSets(&lem); | ^~~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:850:6: note: declared here 850 | void FindFollowSets(lemp) | ^~~~~~~~~~~~~~ ./tool/lemon.c:1417:5: error: too many arguments to function ‘FindActions’; expected 0, have 1 1417 | FindActions(&lem); | ^~~~~~~~~~~ ~~~~ ./tool/lemon.c:887:6: note: declared here 887 | void FindActions(lemp) | ^~~~~~~~~~~ ./tool/lemon.c:1420:23: error: too many arguments to function ‘CompressTables’; expected 0, have 1 1420 | if( compress==0 ) CompressTables(&lem); | ^~~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:97:6: note: declared here 97 | void CompressTables(/* struct lemon * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:1423:18: error: too many arguments to function ‘ReportOutput’; expected 0, have 1 1423 | if( !quiet ) ReportOutput(&lem); | ^~~~~~~~~~~~ ~~~~ ./tool/lemon.c:94:6: note: declared here 94 | void ReportOutput(/* struct lemon * */); | ^~~~~~~~~~~~ ./tool/lemon.c:1426:5: error: too many arguments to function ‘ReportTable’; expected 0, have 2 1426 | ReportTable(&lem, mhflag); | ^~~~~~~~~~~ ~~~~ ./tool/lemon.c:95:6: note: declared here 95 | void ReportTable(/* struct lemon * */); | ^~~~~~~~~~~ ./tool/lemon.c:1431:19: error: too many arguments to function ‘ReportHeader’; expected 0, have 1 1431 | if( !mhflag ) ReportHeader(&lem); | ^~~~~~~~~~~~ ~~~~ ./tool/lemon.c:96:6: note: declared here 96 | void ReportHeader(/* struct lemon * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function ‘merge’: ./tool/lemon.c:1489:14: warning: old-style function definition [-Wold-style-definition] 1489 | static char *merge(a,b,cmp,offset) | ^~~~~ ./tool/lemon.c:1502:10: error: too many arguments to function ‘cmp’; expected 0, have 2 1502 | if( (*cmp)(a,b)<0 ){ | ~^~~~~ ~ ./tool/lemon.c:1511:12: error: too many arguments to function ‘cmp’; expected 0, have 2 1511 | if( (*cmp)(a,b)<0 ){ | ~^~~~~ ~ ./tool/lemon.c: In function ‘msort’: ./tool/lemon.c:1541:7: warning: old-style function definition [-Wold-style-definition] 1541 | char *msort(list,next,cmp) | ^~~~~ ./tool/lemon.c:1545:1: error: number of arguments doesn’t match prototype 1545 | { | ^ ./tool/lemon.c:31:7: error: prototype declaration 31 | char *msort(); | ^~~~~ ./tool/lemon.c: In function ‘errline’: ./tool/lemon.c:1577:13: warning: old-style function definition [-Wold-style-definition] 1577 | static void errline(n,k,err) | ^~~~~~~ ./tool/lemon.c: In function ‘argindex’: ./tool/lemon.c:1603:12: warning: old-style function definition [-Wold-style-definition] 1603 | static int argindex(n) | ^~~~~~~~ ./tool/lemon.c: In function ‘handleflags’: ./tool/lemon.c:1625:12: warning: old-style function definition [-Wold-style-definition] 1625 | static int handleflags(i,err) | ^~~~~~~~~~~ ./tool/lemon.c:1645:6: error: too many arguments to function ‘(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg’; expected 0, have 1 1645 | (*(void(*)())(op[j].arg))(v); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~ ./tool/lemon.c: In function ‘handleswitch’: ./tool/lemon.c:1659:12: warning: old-style function definition [-Wold-style-definition] 1659 | static int handleswitch(i,err) | ^~~~~~~~~~~~ ./tool/lemon.c:1727:10: error: too many arguments to function ‘(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg’; expected 0, have 1 1727 | (*(void(*)())(op[j].arg))(dv); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~ ./tool/lemon.c:1733:10: error: too many arguments to function ‘(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg’; expected 0, have 1 1733 | (*(void(*)())(op[j].arg))((int)lv); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:1739:10: error: too many arguments to function ‘(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg’; expected 0, have 1 1739 | (*(void(*)())(op[j].arg))(sv); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~ ./tool/lemon.c: In function ‘OptInit’: ./tool/lemon.c:1746:5: warning: old-style function definition [-Wold-style-definition] 1746 | int OptInit(a,o,err) | ^~~~~~~ ./tool/lemon.c:1750:1: error: number of arguments doesn’t match prototype 1750 | { | ^ ./tool/lemon.c:77:8: error: prototype declaration 77 | int OptInit(/* char**,struct s_options*,FILE* */); | ^~~~~~~ ./tool/lemon.c: In function ‘OptArg’: ./tool/lemon.c:1786:7: warning: old-style function definition [-Wold-style-definition] 1786 | char *OptArg(n) | ^~~~~~ ./tool/lemon.c:1788:1: error: number of arguments doesn’t match prototype 1788 | { | ^ ./tool/lemon.c:79:8: error: prototype declaration 79 | char *OptArg(/* int */); | ^~~~~~ ./tool/lemon.c: In function ‘OptErr’: ./tool/lemon.c:1794:6: warning: old-style function definition [-Wold-style-definition] 1794 | void OptErr(n) | ^~~~~~ ./tool/lemon.c:1796:1: error: number of arguments doesn’t match prototype 1796 | { | ^ ./tool/lemon.c:80:8: error: prototype declaration 80 | void OptErr(/* int */); | ^~~~~~ ./tool/lemon.c: In function ‘parseonetoken’: ./tool/lemon.c:1901:13: warning: old-style function definition [-Wold-style-definition] 1901 | static void parseonetoken(psp) | ^~~~~~~~~~~~~ ./tool/lemon.c:1905:7: error: too many arguments to function ‘Strsafe’; expected 0, have 1 1905 | x = Strsafe(psp->tokenstart); /* Save the token permanently */ | ^~~~~~~ ~~~~~~~~~~~~~~~ ./tool/lemon.c:292:7: note: declared here 292 | char *Strsafe(); | ^~~~~~~ ./tool/lemon.c:1921:20: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 1921 | psp->lhs = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:1964:34: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 1964 | psp->prevrule->precsym = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2025:29: error: too many arguments to function ‘malloc’; expected 0, have 1 2025 | rp = (struct rule *)malloc( sizeof(struct rule) + | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~ 2026 | sizeof(struct symbol*)*psp->nrhs + sizeof(char*)*psp->nrhs ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:2067:33: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 2067 | psp->rhs[psp->nrhs] = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2185:29: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 2185 | struct symbol *sp = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2198:29: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 2198 | struct symbol *sp = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2209:14: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 2209 | sp = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2252:29: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 2252 | struct symbol *sp = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c: In function ‘Parse’: ./tool/lemon.c:2280:6: warning: old-style function definition [-Wold-style-definition] 2280 | void Parse(gp) | ^~~~~ ./tool/lemon.c:2282:1: error: number of arguments doesn’t match prototype 2282 | { | ^ ./tool/lemon.c:84:6: error: prototype declaration 84 | void Parse(/* struct lemon *lemp */); | ^~~~~ ./tool/lemon.c:2307:21: error: too many arguments to function ‘malloc’; expected 0, have 1 2307 | filebuf = (char *)malloc( filesize+1 ); | ^~~~~~ ~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Plink_new’: ./tool/lemon.c:2432:38: error: too many arguments to function ‘malloc’; expected 0, have 1 2432 | plink_freelist = (struct plink *)malloc( sizeof(struct plink)*amt ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Plink_add’: ./tool/lemon.c:2447:6: warning: old-style function definition [-Wold-style-definition] 2447 | void Plink_add(plpp,cfp) | ^~~~~~~~~ ./tool/lemon.c:2450:1: error: number of arguments doesn’t match prototype 2450 | { | ^ ./tool/lemon.c:88:6: error: prototype declaration 88 | void Plink_add(/* struct plink **, struct config * */); | ^~~~~~~~~ ./tool/lemon.c: In function ‘Plink_copy’: ./tool/lemon.c:2459:6: warning: old-style function definition [-Wold-style-definition] 2459 | void Plink_copy(to,from) | ^~~~~~~~~~ ./tool/lemon.c:2462:1: error: number of arguments doesn’t match prototype 2462 | { | ^ ./tool/lemon.c:89:6: error: prototype declaration 89 | void Plink_copy(/* struct plink **, struct plink * */); | ^~~~~~~~~~ ./tool/lemon.c: In function ‘Plink_delete’: ./tool/lemon.c:2473:6: warning: old-style function definition [-Wold-style-definition] 2473 | void Plink_delete(plp) | ^~~~~~~~~~~~ ./tool/lemon.c:2475:1: error: number of arguments doesn’t match prototype 2475 | { | ^ ./tool/lemon.c:90:6: error: prototype declaration 90 | void Plink_delete(/* struct plink * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function ‘file_makename’: ./tool/lemon.c:2494:15: warning: old-style function definition [-Wold-style-definition] 2494 | PRIVATE char *file_makename(lemp,suffix) | ^~~~~~~~~~~~~ ./tool/lemon.c:2501:10: error: too many arguments to function ‘malloc’; expected 0, have 1 2501 | name = malloc( strlen(lemp->filename) + strlen(suffix) + 5 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘file_open’: ./tool/lemon.c:2516:15: warning: old-style function definition [-Wold-style-definition] 2516 | PRIVATE FILE *file_open(lemp,suffix,mode) | ^~~~~~~~~ ./tool/lemon.c: In function ‘Reprint’: ./tool/lemon.c:2536:6: warning: old-style function definition [-Wold-style-definition] 2536 | void Reprint(lemp) | ^~~~~~~ ./tool/lemon.c:2538:1: error: number of arguments doesn’t match prototype 2538 | { | ^ ./tool/lemon.c:93:6: error: prototype declaration 93 | void Reprint(/* struct lemon * */); | ^~~~~~~ ./tool/lemon.c: In function ‘ConfigPrint’: ./tool/lemon.c:2576:6: warning: old-style function definition [-Wold-style-definition] 2576 | void ConfigPrint(fp,cfp) | ^~~~~~~~~~~ ./tool/lemon.c: In function ‘ReportOutput’: ./tool/lemon.c:2659:6: warning: old-style function definition [-Wold-style-definition] 2659 | void ReportOutput(lemp) | ^~~~~~~~~~~~ ./tool/lemon.c:2661:1: error: number of arguments doesn’t match prototype 2661 | { | ^ ./tool/lemon.c:94:6: error: prototype declaration 94 | void ReportOutput(/* struct lemon * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function ‘pathsearch’: ./tool/lemon.c:2706:15: warning: old-style function definition [-Wold-style-definition] 2706 | PRIVATE char *pathsearch(argv0,name,modemask) | ^~~~~~~~~~ ./tool/lemon.c:2723:20: error: too many arguments to function ‘malloc’; expected 0, have 1 2723 | path = (char *)malloc( strlen(argv0) + strlen(name) + 2 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:2727:18: error: conflicting types for ‘getenv’; have ‘char *(void)’ 2727 | extern char *getenv(); | ^~~~~~ /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; | ^~~~~~ ./tool/lemon.c:2728:16: error: too many arguments to function ‘getenv’; expected 0, have 1 2728 | pathlist = getenv("PATH"); | ^~~~~~ ~~~~~~ ./tool/lemon.c:2727:18: note: declared here 2727 | extern char *getenv(); | ^~~~~~ ./tool/lemon.c:2730:20: error: too many arguments to function ‘malloc’; expected 0, have 1 2730 | path = (char *)malloc( strlen(pathlist)+strlen(name)+2 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘compute_action’: ./tool/lemon.c:2752:13: warning: old-style function definition [-Wold-style-definition] 2752 | PRIVATE int compute_action(lemp,ap) | ^~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘tplt_xfer’: ./tool/lemon.c:2777:14: warning: old-style function definition [-Wold-style-definition] 2777 | PRIVATE void tplt_xfer(name,in,out,lineno) | ^~~~~~~~~ ./tool/lemon.c: In function ‘tplt_open’: ./tool/lemon.c:2806:15: warning: old-style function definition [-Wold-style-definition] 2806 | PRIVATE FILE *tplt_open(lemp) | ^~~~~~~~~ ./tool/lemon.c: In function ‘tplt_print’: ./tool/lemon.c:2846:14: warning: old-style function definition [-Wold-style-definition] 2846 | PRIVATE void tplt_print(out,lemp,str,strln,lineno) | ^~~~~~~~~~ ./tool/lemon.c: In function ‘emit_destructor_code’: ./tool/lemon.c:2868:6: warning: old-style function definition [-Wold-style-definition] 2868 | void emit_destructor_code(out,sp,lemp,lineno) | ^~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘has_destructor’: ./tool/lemon.c:2908:5: warning: old-style function definition [-Wold-style-definition] 2908 | int has_destructor(sp, lemp) | ^~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘emit_code’: ./tool/lemon.c:2925:14: warning: old-style function definition [-Wold-style-definition] 2925 | PRIVATE void emit_code(out,rp,lemp,lineno) | ^~~~~~~~~ ./tool/lemon.c: In function ‘print_stack_union’: ./tool/lemon.c:3009:6: warning: old-style function definition [-Wold-style-definition] 3009 | void print_stack_union(out,lemp,plineno,mhflag) | ^~~~~~~~~~~~~~~~~ ./tool/lemon.c:3026:19: error: too many arguments to function ‘malloc’; expected 0, have 1 3026 | types = (char**)malloc( arraysize * sizeof(char*) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3039:18: error: too many arguments to function ‘malloc’; expected 0, have 1 3039 | stddt = (char*)malloc( maxdtlength*2 + 1 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3084:28: error: too many arguments to function ‘malloc’; expected 0, have 1 3084 | types[hash] = (char*)malloc( strlen(stddt)+1 ); | ^~~~~~ ~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘ReportTable’: ./tool/lemon.c:3158:6: warning: old-style function definition [-Wold-style-definition] 3158 | void ReportTable(lemp, mhflag) | ^~~~~~~~~~~ ./tool/lemon.c:3161:1: error: number of arguments doesn’t match prototype 3161 | { | ^ ./tool/lemon.c:95:6: error: prototype declaration 95 | void ReportTable(/* struct lemon * */); | ^~~~~~~~~~~ ./tool/lemon.c:3274:8: error: too many arguments to function ‘malloc’; expected 0, have 1 3274 | ax = malloc( sizeof(ax[0])*lemp->nstate*2 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘ReportHeader’: ./tool/lemon.c:3553:6: warning: old-style function definition [-Wold-style-definition] 3553 | void ReportHeader(lemp) | ^~~~~~~~~~~~ ./tool/lemon.c:3555:1: error: number of arguments doesn’t match prototype 3555 | { | ^ ./tool/lemon.c:96:6: error: prototype declaration 96 | void ReportHeader(/* struct lemon * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function ‘CompressTables’: ./tool/lemon.c:3592:6: warning: old-style function definition [-Wold-style-definition] 3592 | void CompressTables(lemp) | ^~~~~~~~~~~~~~ ./tool/lemon.c:3594:1: error: number of arguments doesn’t match prototype 3594 | { | ^ ./tool/lemon.c:97:6: error: prototype declaration 97 | void CompressTables(/* struct lemon * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:3633:14: error: too many arguments to function ‘Symbol_new’; expected 0, have 1 3633 | ap->sp = Symbol_new("{default}"); | ^~~~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:300:16: note: declared here 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:3637:15: error: too many arguments to function ‘Action_sort’; expected 0, have 1 3637 | stp->ap = Action_sort(stp->ap); | ^~~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:367:16: note: declared here 367 | struct action *Action_sort(ap) | ^~~~~~~~~~~ ./tool/lemon.c: In function ‘SetSize’: ./tool/lemon.c:3649:6: warning: old-style function definition [-Wold-style-definition] 3649 | void SetSize(n) | ^~~~~~~ ./tool/lemon.c:3651:1: error: number of arguments doesn’t match prototype 3651 | { | ^ ./tool/lemon.c:100:7: error: prototype declaration 100 | void SetSize(/* int N */); /* All sets will be of size N */ | ^~~~~~~ ./tool/lemon.c: In function ‘SetNew’: ./tool/lemon.c:3659:14: error: too many arguments to function ‘malloc’; expected 0, have 1 3659 | s = (char*)malloc( size ); | ^~~~~~ ~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘SetFree’: ./tool/lemon.c:3669:6: warning: old-style function definition [-Wold-style-definition] 3669 | void SetFree(s) | ^~~~~~~ ./tool/lemon.c:3671:1: error: number of arguments doesn’t match prototype 3671 | { | ^ ./tool/lemon.c:102:7: error: prototype declaration 102 | void SetFree(/* char* */); /* Deallocate a set */ | ^~~~~~~ ./tool/lemon.c: In function ‘SetAdd’: ./tool/lemon.c:3677:5: warning: old-style function definition [-Wold-style-definition] 3677 | int SetAdd(s,e) | ^~~~~~ ./tool/lemon.c:3680:1: error: number of arguments doesn’t match prototype 3680 | { | ^ ./tool/lemon.c:104:5: error: prototype declaration 104 | int SetAdd(/* char*,int */); /* Add element to a set */ | ^~~~~~ ./tool/lemon.c: In function ‘SetUnion’: ./tool/lemon.c:3688:5: warning: old-style function definition [-Wold-style-definition] 3688 | int SetUnion(s1,s2) | ^~~~~~~~ ./tool/lemon.c:3691:1: error: number of arguments doesn’t match prototype 3691 | { | ^ ./tool/lemon.c:105:5: error: prototype declaration 105 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */ | ^~~~~~~~ ./tool/lemon.c: In function ‘strhash’: ./tool/lemon.c:3716:13: warning: old-style function definition [-Wold-style-definition] 3716 | PRIVATE int strhash(x) | ^~~~~~~ ./tool/lemon.c: In function ‘Strsafe’: ./tool/lemon.c:3728:7: warning: old-style function definition [-Wold-style-definition] 3728 | char *Strsafe(y) | ^~~~~~~ ./tool/lemon.c:3730:1: error: number of arguments doesn’t match prototype 3730 | { | ^ ./tool/lemon.c:292:7: error: prototype declaration 292 | char *Strsafe(); | ^~~~~~~ ./tool/lemon.c:3733:7: error: too many arguments to function ‘Strsafe_find’; expected 0, have 1 3733 | z = Strsafe_find(y); | ^~~~~~~~~~~~ ~ ./tool/lemon.c:296:7: note: declared here 296 | char *Strsafe_find(/* char * */); | ^~~~~~~~~~~~ ./tool/lemon.c:3734:18: error: too many arguments to function ‘malloc’; expected 0, have 1 3734 | if( z==0 && (z=malloc( strlen(y)+1 ))!=0 ){ | ^~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3736:5: error: too many arguments to function ‘Strsafe_insert’; expected 0, have 1 3736 | Strsafe_insert(z); | ^~~~~~~~~~~~~~ ~ ./tool/lemon.c:295:5: note: declared here 295 | int Strsafe_insert(/* char * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c: In function ‘Strsafe_init’: ./tool/lemon.c:3769:23: error: too many arguments to function ‘malloc’; expected 0, have 1 3769 | x1a = (struct s_x1*)malloc( sizeof(struct s_x1) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3773:25: error: too many arguments to function ‘malloc’; expected 0, have 1 3773 | x1a->tbl = (x1node*)malloc( | ^~~~~~ 3774 | (sizeof(x1node) + sizeof(x1node*))*1024 ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Strsafe_insert’: ./tool/lemon.c:3787:5: warning: old-style function definition [-Wold-style-definition] 3787 | int Strsafe_insert(data) | ^~~~~~~~~~~~~~ ./tool/lemon.c:3789:1: error: number of arguments doesn’t match prototype 3789 | { | ^ ./tool/lemon.c:295:5: error: prototype declaration 295 | int Strsafe_insert(/* char * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:3812:26: error: too many arguments to function ‘malloc’; expected 0, have 1 3812 | array.tbl = (x1node*)malloc( | ^~~~~~ 3813 | (sizeof(x1node) + sizeof(x1node*))*size ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Strsafe_find’: ./tool/lemon.c:3844:7: warning: old-style function definition [-Wold-style-definition] 3844 | char *Strsafe_find(key) | ^~~~~~~~~~~~ ./tool/lemon.c:3846:1: error: number of arguments doesn’t match prototype 3846 | { | ^ ./tool/lemon.c:296:7: error: prototype declaration 296 | char *Strsafe_find(/* char * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function ‘Symbol_new’: ./tool/lemon.c:3863:16: warning: old-style function definition [-Wold-style-definition] 3863 | struct symbol *Symbol_new(x) | ^~~~~~~~~~ ./tool/lemon.c:3865:1: error: number of arguments doesn’t match prototype 3865 | { | ^ ./tool/lemon.c:300:16: error: prototype declaration 300 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:3868:8: error: too many arguments to function ‘Symbol_find’; expected 0, have 1 3868 | sp = Symbol_find(x); | ^~~~~~~~~~~ ~ ./tool/lemon.c:304:16: note: declared here 304 | struct symbol *Symbol_find(/* char * */); | ^~~~~~~~~~~ ./tool/lemon.c:3870:27: error: too many arguments to function ‘malloc’; expected 0, have 1 3870 | sp = (struct symbol *)malloc( sizeof(struct symbol) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3872:16: error: too many arguments to function ‘Strsafe’; expected 0, have 1 3872 | sp->name = Strsafe(x); | ^~~~~~~ ~ ./tool/lemon.c:3728:7: note: declared here 3728 | char *Strsafe(y) | ^~~~~~~ ./tool/lemon.c:3882:5: error: too many arguments to function ‘Symbol_insert’; expected 0, have 2 3882 | Symbol_insert(sp,sp->name); | ^~~~~~~~~~~~~ ~~ ./tool/lemon.c:303:5: note: declared here 303 | int Symbol_insert(/* struct symbol *, char * */); | ^~~~~~~~~~~~~ ./tool/lemon.c: At top level: ./tool/lemon.c:3897:5: error: conflicting types for ‘Symbolcmpp’; have ‘int(struct symbol **, struct symbol **)’ 3897 | int Symbolcmpp(struct symbol **a, struct symbol **b){ | ^~~~~~~~~~ ./tool/lemon.c:301:5: note: previous declaration of ‘Symbolcmpp’ with type ‘int(void)’ 301 | int Symbolcmpp(/* struct symbol **, struct symbol ** */); | ^~~~~~~~~~ ./tool/lemon.c: In function ‘Symbol_init’: ./tool/lemon.c:3931:23: error: too many arguments to function ‘malloc’; expected 0, have 1 3931 | x2a = (struct s_x2*)malloc( sizeof(struct s_x2) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3935:25: error: too many arguments to function ‘malloc’; expected 0, have 1 3935 | x2a->tbl = (x2node*)malloc( | ^~~~~~ 3936 | (sizeof(x2node) + sizeof(x2node*))*128 ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Symbol_insert’: ./tool/lemon.c:3949:5: warning: old-style function definition [-Wold-style-definition] 3949 | int Symbol_insert(data,key) | ^~~~~~~~~~~~~ ./tool/lemon.c:3952:1: error: number of arguments doesn’t match prototype 3952 | { | ^ ./tool/lemon.c:303:5: error: prototype declaration 303 | int Symbol_insert(/* struct symbol *, char * */); | ^~~~~~~~~~~~~ ./tool/lemon.c:3975:26: error: too many arguments to function ‘malloc’; expected 0, have 1 3975 | array.tbl = (x2node*)malloc( | ^~~~~~ 3976 | (sizeof(x2node) + sizeof(x2node*))*size ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Symbol_find’: ./tool/lemon.c:4009:16: warning: old-style function definition [-Wold-style-definition] 4009 | struct symbol *Symbol_find(key) | ^~~~~~~~~~~ ./tool/lemon.c:4011:1: error: number of arguments doesn’t match prototype 4011 | { | ^ ./tool/lemon.c:304:16: error: prototype declaration 304 | struct symbol *Symbol_find(/* char * */); | ^~~~~~~~~~~ ./tool/lemon.c: In function ‘Symbol_Nth’: ./tool/lemon.c:4026:16: warning: old-style function definition [-Wold-style-definition] 4026 | struct symbol *Symbol_Nth(n) | ^~~~~~~~~~ ./tool/lemon.c:4028:1: error: number of arguments doesn’t match prototype 4028 | { | ^ ./tool/lemon.c:305:16: error: prototype declaration 305 | struct symbol *Symbol_Nth(/* int */); | ^~~~~~~~~~ ./tool/lemon.c: In function ‘Symbol_arrayof’: ./tool/lemon.c:4053:29: error: too many arguments to function ‘malloc’; expected 0, have 1 4053 | array = (struct symbol **)malloc( sizeof(struct symbol *)*size ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Configcmp’: ./tool/lemon.c:4061:5: warning: old-style function definition [-Wold-style-definition] 4061 | int Configcmp(a,b) | ^~~~~~~~~ ./tool/lemon.c:4064:1: error: number of arguments doesn’t match prototype 4064 | { | ^ ./tool/lemon.c:311:5: error: prototype declaration 311 | int Configcmp(/* struct config *, struct config * */); | ^~~~~~~~~ ./tool/lemon.c: In function ‘statecmp’: ./tool/lemon.c:4072:13: warning: old-style function definition [-Wold-style-definition] 4072 | PRIVATE int statecmp(a,b) | ^~~~~~~~ ./tool/lemon.c: In function ‘statehash’: ./tool/lemon.c:4089:13: warning: old-style function definition [-Wold-style-definition] 4089 | PRIVATE int statehash(a) | ^~~~~~~~~ ./tool/lemon.c: In function ‘State_new’: ./tool/lemon.c:4104:25: error: too many arguments to function ‘malloc’; expected 0, have 1 4104 | new = (struct state *)malloc( sizeof(struct state) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘State_init’: ./tool/lemon.c:4137:23: error: too many arguments to function ‘malloc’; expected 0, have 1 4137 | x3a = (struct s_x3*)malloc( sizeof(struct s_x3) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:4141:25: error: too many arguments to function ‘malloc’; expected 0, have 1 4141 | x3a->tbl = (x3node*)malloc( | ^~~~~~ 4142 | (sizeof(x3node) + sizeof(x3node*))*128 ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘State_insert’: ./tool/lemon.c:4155:5: warning: old-style function definition [-Wold-style-definition] 4155 | int State_insert(data,key) | ^~~~~~~~~~~~ ./tool/lemon.c:4158:1: error: number of arguments doesn’t match prototype 4158 | { | ^ ./tool/lemon.c:314:5: error: prototype declaration 314 | int State_insert(/* struct state *, struct config * */); | ^~~~~~~~~~~~ ./tool/lemon.c:4181:26: error: too many arguments to function ‘malloc’; expected 0, have 1 4181 | array.tbl = (x3node*)malloc( | ^~~~~~ 4182 | (sizeof(x3node) + sizeof(x3node*))*size ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘State_find’: ./tool/lemon.c:4215:15: warning: old-style function definition [-Wold-style-definition] 4215 | struct state *State_find(key) | ^~~~~~~~~~ ./tool/lemon.c:4217:1: error: number of arguments doesn’t match prototype 4217 | { | ^ ./tool/lemon.c:315:15: error: prototype declaration 315 | struct state *State_find(/* struct config * */); | ^~~~~~~~~~ ./tool/lemon.c: In function ‘State_arrayof’: ./tool/lemon.c:4240:28: error: too many arguments to function ‘malloc’; expected 0, have 1 4240 | array = (struct state **)malloc( sizeof(struct state *)*size ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘confighash’: ./tool/lemon.c:4248:13: warning: old-style function definition [-Wold-style-definition] 4248 | PRIVATE int confighash(a) | ^~~~~~~~~~ ./tool/lemon.c: In function ‘Configtable_init’: ./tool/lemon.c:4283:23: error: too many arguments to function ‘malloc’; expected 0, have 1 4283 | x4a = (struct s_x4*)malloc( sizeof(struct s_x4) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:4287:25: error: too many arguments to function ‘malloc’; expected 0, have 1 4287 | x4a->tbl = (x4node*)malloc( | ^~~~~~ 4288 | (sizeof(x4node) + sizeof(x4node*))*64 ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Configtable_insert’: ./tool/lemon.c:4301:5: warning: old-style function definition [-Wold-style-definition] 4301 | int Configtable_insert(data) | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:4303:1: error: number of arguments doesn’t match prototype 4303 | { | ^ ./tool/lemon.c:321:5: error: prototype declaration 321 | int Configtable_insert(/* struct config * */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:4313:9: error: too many arguments to function ‘Configcmp’; expected 0, have 2 4313 | if( Configcmp(np->data,data)==0 ){ | ^~~~~~~~~ ~~~~~~~~ ./tool/lemon.c:4061:5: note: declared here 4061 | int Configcmp(a,b) | ^~~~~~~~~ ./tool/lemon.c:4326:26: error: too many arguments to function ‘malloc’; expected 0, have 1 4326 | array.tbl = (x4node*)malloc( | ^~~~~~ 4327 | (sizeof(x4node) + sizeof(x4node*))*size ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:32:14: note: declared here 32 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function ‘Configtable_find’: ./tool/lemon.c:4358:16: warning: old-style function definition [-Wold-style-definition] 4358 | struct config *Configtable_find(key) | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:4360:1: error: number of arguments doesn’t match prototype 4360 | { | ^ ./tool/lemon.c:322:16: error: prototype declaration 322 | struct config *Configtable_find(/* struct config * */); | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:4368:9: error: too many arguments to function ‘Configcmp’; expected 0, have 2 4368 | if( Configcmp(np->data,key)==0 ) break; | ^~~~~~~~~ ~~~~~~~~ ./tool/lemon.c:4061:5: note: declared here 4061 | int Configcmp(a,b) | ^~~~~~~~~ ./tool/lemon.c: In function ‘Configtable_clear’: ./tool/lemon.c:4376:6: warning: old-style function definition [-Wold-style-definition] 4376 | void Configtable_clear(f) | ^~~~~~~~~~~~~~~~~ ./tool/lemon.c:4378:1: error: number of arguments doesn’t match prototype 4378 | { | ^ ./tool/lemon.c:323:6: error: prototype declaration 323 | void Configtable_clear(/* int(*)(struct config *) */); | ^~~~~~~~~~~~~~~~~ ./tool/lemon.c:4381:40: error: too many arguments to function ‘f’; expected 0, have 1 4381 | if( f ) for(i=0; icount; i++) (*f)(x4a->tbl[i].data); | ~^~~ ~~~~~~~~~~~~~~~~ make: *** [Makefile:219: lemon] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.Hq264o (%build) Bad exit status from /var/tmp/rpm-tmp.Hq264o (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M e3de28c94ae24b03963e19887d4fe187 -D /var/lib/mock/f43-build-57589914-6555394/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.mhcy2a88:/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 aarch64 --nodeps /builddir/build/SPECS/sqlite2.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 e3de28c94ae24b03963e19887d4fe187 -D /var/lib/mock/f43-build-57589914-6555394/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.mhcy2a88:/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 aarch64 --nodeps /builddir/build/SPECS/sqlite2.spec'