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 x86_64 --nodeps /builddir/build/SPECS/units.spec'], chrootPath='/var/lib/mock/f42-build-56567732-6544382/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.ydm_lhgm:/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.ydm_lhgm:/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', '7a12e8b87da14902833acb848cd891d6', '-D', '/var/lib/mock/f42-build-56567732-6544382/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ydm_lhgm:/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 x86_64 --nodeps /builddir/build/SPECS/units.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1732838400 Wrote: /builddir/build/SRPMS/units-2.24-1.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/units.spec'], chrootPath='/var/lib/mock/f42-build-56567732-6544382/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.ydm_lhgm:/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.ydm_lhgm:/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', '7558b625e7fd40f1b92cad7f941474ac', '-D', '/var/lib/mock/f42-build-56567732-6544382/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ydm_lhgm:/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 x86_64 --nodeps /builddir/build/SPECS/units.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1732838400 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.KE27PG + umask 022 + cd /builddir/build/BUILD/units-2.24-build + test -d /builddir/build/BUILD/units-2.24-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/units-2.24-build + /usr/bin/rm -rf /builddir/build/BUILD/units-2.24-build + /usr/bin/mkdir -p /builddir/build/BUILD/units-2.24-build + /usr/bin/mkdir -p /builddir/build/BUILD/units-2.24-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QDJFbQ + umask 022 + cd /builddir/build/BUILD/units-2.24-build + cd /builddir/build/BUILD/units-2.24-build + rm -rf units-2.24 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/units-2.24.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd units-2.24 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0100-units-2.22-no-network.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0101-fix-make-less-default-pager.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.u86O5I + umask 022 + cd /builddir/build/BUILD/units-2.24-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 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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 units-2.24 + 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 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -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 + mv ./configure.backup ./configure + /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 --- ./configure.backup 2024-09-02 16:15:15.000000000 +0000 +++ ./configure 2025-01-20 18:03:49.802131509 +0000 @@ -1645,7 +1645,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /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 + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh ++ grep -q runstatedir=DIR ./configure ++ echo --runstatedir=/run + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-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 --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized options: --disable-dependency-tracking checking for x86_64-redhat-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed detected non-mac os: linux-gnu checking whether C compiler accepts -fpic... yes checking for an ANSI C-conforming const... yes checking for a BSD-compatible install... /usr/bin/install -c checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for library containing sin... -lm checking for append_history in -lreadline... yes checking for gcc options needed to detect all undeclared functions... none needed checking whether rl_completion_suppress_append is declared... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for strchr... yes checking for strspn... yes checking for strtok... yes checking whether TIOCGWINSZ is declared... yes checking for setenv... yes checking for setlocale... yes checking for locale and UTF-8 support... yes checking for isfinite... yes checking for mksinfo... no checking for python3... /usr/bin/python3 configure: creating ./config.status config.status: creating Makefile config.status: creating Windows/Makefile configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j48 V=1 VERBOSE=1 sed s!@DATAFILE@!/usr/share/units/definitions.units! ./units.man > units.1 sed -e "s*output_dir = ''*output_dir='/var/lib/units/'*"\ -e "s@/usr/bin/python@/usr/bin/python3@" \ ./units_cur > units_cur_inst gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DHAVE_IOCTL -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.24\" -DPACKAGE_STRING=\"GNU\ units\ 2.24\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"https://www.gnu.org/software/units/\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -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 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpic -I. -c getopt.c gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DHAVE_IOCTL -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.24\" -DPACKAGE_STRING=\"GNU\ units\ 2.24\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"https://www.gnu.org/software/units/\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -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 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpic -I. -c getopt1.c gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DHAVE_IOCTL -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.24\" -DPACKAGE_STRING=\"GNU\ units\ 2.24\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"https://www.gnu.org/software/units/\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -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 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpic -I. -c parse.tab.c In file included from parse.y:27: units.h:57:12: error: conflicting types for ‘strchr’; have ‘char *(void)’ 57 | char *strchr(); | ^~~~~~ In file included from units.h:44: /usr/include/string.h:246:14: note: previous declaration of ‘strchr’ with type ‘char *(const char *, int)’ 246 | extern char *strchr (const char *__s, int __c) | ^~~~~~ parse.tab.c: In function ‘unitsparse’: parse.tab.c:70:25: error: too many arguments to function ‘unitslex’; expected 0, have 2 70 | #define yylex unitslex | ^~~~~~~~ parse.tab.c:1335:16: note: in expansion of macro ‘yylex’ 1335 | yychar = yylex (&yylval, comm); | ^~~~~ parse.tab.c:70:25: note: declared here 70 | #define yylex unitslex | ^~~~~~~~ parse.y:48:5: note: in expansion of macro ‘yylex’ 48 | int yylex(); | ^~~~~ parse.y: At top level: parse.tab.c:70:25: error: conflicting types for ‘unitslex’; have ‘int(UNITSSTYPE *, struct commtype *)’ 70 | #define yylex unitslex | ^~~~~~~~ parse.y:342:5: note: in expansion of macro ‘yylex’ 342 | int yylex(YYSTYPE *lvalp, struct commtype *comm) | ^~~~~ parse.tab.c:70:25: note: previous declaration of ‘unitslex’ with type ‘int(void)’ 70 | #define yylex unitslex | ^~~~~~~~ parse.y:48:5: note: in expansion of macro ‘yylex’ 48 | int yylex(); | ^~~~~ parse.y: In function ‘unitslex’: parse.y:399:7: error: too many arguments to function ‘strchr’; expected 0, have 2 399 | if (strchr(number_start,*inptr)){ /* prevent "nan" from being recognized */ | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ parse.y:405:22: error: too many arguments to function ‘strchr’; expected 0, have 2 405 | if (*endloc && strchr(number_start,*endloc)) | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ parse.y:430:34: error: too many arguments to function ‘strchr’; expected 0, have 2 430 | (length==1 || length==2 && strchr("23456789",inptr[1]))){ | ^~~~~~ ~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ parse.y:430:31: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 430 | (length==1 || length==2 && strchr("23456789",inptr[1]))){ | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parse.y:447:7: error: too many arguments to function ‘strchr’; expected 0, have 2 447 | if (strchr(nonunitstart,*inptr)){ | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ parse.y:451:7: error: too many arguments to function ‘strchr’; expected 0, have 2 451 | if (strchr(nonunitend, inptr[length-1])){ | ^~~~~~ ~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ parse.y:518:7: error: too many arguments to function ‘strchr’; expected 0, have 2 518 | if (strchr("23456789",inptr[length-1]) && !hassubscript(name)) { | ^~~~~~ ~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ parse.y:522:9: error: too many arguments to function ‘strchr’; expected 0, have 2 522 | if (strchr(number_start, name[length-1])){ | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ make: *** [Makefile:82: parse.tab.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -DNO_SUPPRESS_APPEND -DHAVE_IOCTL -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.24\" -DPACKAGE_STRING=\"GNU\ units\ 2.24\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"https://www.gnu.org/software/units/\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -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 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpic -I. -c units.c In file included from units.c:92: units.h:57:12: error: conflicting types for ‘strchr’; have ‘char *(void)’ 57 | char *strchr(); | ^~~~~~ In file included from /usr/include/readline/chardefs.h:35, from /usr/include/readline/keymaps.h:35, from /usr/include/readline/readline.h:37, from units.c:84: /usr/include/string.h:246:14: note: previous declaration of ‘strchr’ with type ‘char *(const char *, int)’ 246 | extern char *strchr (const char *__s, int __c) | ^~~~~~ units.c: In function ‘hassubscript’: units.c:495:10: error: too many arguments to function ‘strchr’; expected 0, have 2 495 | if (!strchr(digits, *ptr)) | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘strip_comment’: units.c:881:15: error: too many arguments to function ‘strchr’; expected 0, have 2 881 | if ((line = strchr(line,COMMENTCHAR))) { | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘isdecimal’: units.c:956:10: error: too many arguments to function ‘strchr’; expected 0, have 2 956 | return strchr(digits, c) != NULL; | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘checkunitname’: units.c:977:7: error: too many arguments to function ‘strchr’; expected 0, have 2 977 | if (strchr(digits, name[0])){ | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘newunit’: units.c:1016:7: error: too many arguments to function ‘strchr’; expected 0, have 2 1016 | if (strchr(".,23456789", lastchar(unitname)) && !hassubscript(unitname)){ | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘parsepair’: units.c:1131:12: error: too many arguments to function ‘strchr’; expected 0, have 2 1131 | middle = strchr(start,delimiter); | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘newfunction’: units.c:1296:11: error: too many arguments to function ‘strchr’; expected 0, have 2 1296 | start = strchr(unitname,'('); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1297:9: error: too many arguments to function ‘strchr’; expected 0, have 2 1297 | end = strchr(unitname,')'); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1463:9: error: too many arguments to function ‘strchr’; expected 0, have 2 1463 | inv = strchr(unitdef,FUNCSEPCHAR); | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘newtable’: units.c:1496:15: error: too many arguments to function ‘strchr’; expected 0, have 2 1496 | tableunit = strchr(unitname,'['); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1497:9: error: too many arguments to function ‘strchr’; expected 0, have 2 1497 | end = strchr(unitname,']'); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘newalias’: units.c:1593:8: error: too many arguments to function ‘strchr’; expected 0, have 2 1593 | if (!strchr(unitdef, UNITSEPCHAR)){ | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘readunits’: units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1762:9: note: in expansion of macro ‘readerror’ 1762 | readerror(errfile, "%s: %s on line %d of '%s'\n", | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1771:11: note: in expansion of macro ‘readerror’ 1771 | readerror(errfile, VAGUE_ERR); | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1784:13: note: in expansion of macro ‘readerror’ 1784 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1788:13: note: in expansion of macro ‘readerror’ 1788 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1792:13: note: in expansion of macro ‘readerror’ 1792 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1800:15: note: in expansion of macro ‘readerror’ 1800 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1812:13: note: in expansion of macro ‘readerror’ 1812 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1822:13: note: in expansion of macro ‘readerror’ 1822 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1826:13: note: in expansion of macro ‘readerror’ 1826 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1838:13: note: in expansion of macro ‘readerror’ 1838 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1847:13: note: in expansion of macro ‘readerror’ 1847 | readerror(errfile,"%s: nested utf8 not allowed, line %d of '%s'\n", | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1854:13: note: in expansion of macro ‘readerror’ 1854 | readerror(errfile,"%s: unmatched !endutf8 on line %d of '%s'\n", | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1884:13: note: in expansion of macro ‘readerror’ 1884 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1888:13: note: in expansion of macro ‘readerror’ 1888 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1898:13: note: in expansion of macro ‘readerror’ 1898 | readerror(errfile,VAGUE_ERR); | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1907:13: note: in expansion of macro ‘readerror’ 1907 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1916:15: note: in expansion of macro ‘readerror’ 1916 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1938:15: note: in expansion of macro ‘readerror’ 1938 | readerror(errfile, "%s: file was included at line %d of file '%s'\n", progname,linenum, file); | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1946:11: note: in expansion of macro ‘readerror’ 1946 | readerror(errfile,VAGUE_ERR); | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1958:11: note: in expansion of macro ‘readerror’ 1958 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1966:11: note: in expansion of macro ‘readerror’ 1966 | readerror(errfile, | ^~~~~~~~~ units.c:921:41: warning: value computed is not used [-Wunused-value] 921 | #define readerror (goterr=1) && errfile && fprintf | ^~ units.c:1972:9: note: in expansion of macro ‘readerror’ 1972 | readerror(errfile, | ^~~~~~~~~ units.c:1983:16: error: too many arguments to function ‘strchr’; expected 0, have 2 1983 | else if (strchr(unitname,'[')){ /* table definition */ | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:1995:16: error: too many arguments to function ‘strchr’; expected 0, have 2 1995 | else if (strchr(unitname,'(')){ /* function definition */ | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘reduceproduct’: units.c:2366:14: error: too many arguments to function ‘strchr’; expected 0, have 2 2366 | if (strchr(toadd, PRIMITIVECHAR)) | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘ignore_primitive’: units.c:2470:13: error: too many arguments to function ‘strchr’; expected 0, have 2 2470 | if (ul && strchr(ul->value, PRIMITIVECHAR)) | ^~~~~~ ~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘vbufprintf’: units.c:2938:9: warning: variable ‘buflen’ set but not used [-Wunused-but-set-variable] 2938 | buflen; /* length of new buffer contents */ | ^~~~~~ units.c: In function ‘showdefinition’: units.c:3063:13: error: too many arguments to function ‘strchr’; expected 0, have 2 3063 | && !strchr(unitstr,PRIMITIVECHAR)) { | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘checksigdigits’: units.c:3328:14: error: too many arguments to function ‘strchr’; expected 0, have 2 3328 | else if (strchr("EeGg", num_format.type) && ival > MAXPRECISION) { | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘parsenumformat’: units.c:3430:12: error: too many arguments to function ‘strchr’; expected 0, have 2 3430 | dotptr = strchr(num_format.format, '.'); | ^~~~~~ ~~~~~~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3440:16: error: too many arguments to function ‘strchr’; expected 0, have 2 3440 | while (*p && strchr(format_flags, *p)) { | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3499:9: error: too many arguments to function ‘strchr’; expected 0, have 2 3499 | if (strchr(format_types, *nonum)) { | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘round_output’: units.c:3589:7: error: too many arguments to function ‘strchr’; expected 0, have 2 3589 | if (strchr("Ff", num_format.type)) { | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3599:7: error: too many arguments to function ‘strchr’; expected 0, have 2 3599 | if (strchr(num_format.format, '\'') && strchr("FfGg", num_format.type)) | ^~~~~~ ~~~~~~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3599:42: error: too many arguments to function ‘strchr’; expected 0, have 2 3599 | if (strchr(num_format.format, '\'') && strchr("FfGg", num_format.type)) | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘displays_as’: units.c:3701:7: error: too many arguments to function ‘strchr’; expected 0, have 2 3701 | if (strchr("Ff", num_format.type)) { | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3711:7: error: too many arguments to function ‘strchr’; expected 0, have 2 3711 | if (strchr(num_format.format, '\'') && strchr("FfGg", num_format.type)) | ^~~~~~ ~~~~~~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:3711:42: error: too many arguments to function ‘strchr’; expected 0, have 2 3711 | if (strchr(num_format.format, '\'') && strchr("FfGg", num_format.type)) | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘showanswer’: units.c:3806:15: error: too many arguments to function ‘strchr’; expected 0, have 2 3806 | else if (strchr(havestr,'/')) { | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘addtolist’: units.c:4045:9: error: too many arguments to function ‘strchr’; expected 0, have 2 4045 | if (strchr(def, PRIMITIVECHAR)) | ^~~~~~ ~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘tryallunits’: units.c:4172:14: error: too many arguments to function ‘strchr’; expected 0, have 2 4172 | seploc = strchr(firstunit,UNITSEPCHAR); /* Alias definitions allowed in */ | ^~~~~~ ~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘checkcwd’: units.c:4421:9: warning: unused variable ‘p’ [-Wunused-variable] 4421 | char *p; | ^ units.c: In function ‘getprogdir’: units.c:1675:25: error: too many arguments to function ‘strchr’; expected 0, have 2 1675 | # define hasdirsep(s) strchr((s),'/') | ^~~~~~ ~~~ units.c:4491:44: note: in expansion of macro ‘hasdirsep’ 4491 | if (!progdir && (isfullpath(progname) || hasdirsep(progname))) | ^~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:4523:21: error: too many arguments to function ‘strchr’; expected 0, have 2 4523 | direc_end = strchr(direc,PATHSEP); | ^~~~~~ ~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘processargs’: units.c:5380:11: error: too many arguments to function ‘strchr’; expected 0, have 2 5380 | temp = strchr(mylocale,'.'); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘processunit’: units.c:5459:26: error: too many arguments to function ‘strchr’; expected 0, have 2 5459 | if (flags.unitlists && strchr(unitstr, UNITSEPCHAR)){ | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘definevariable’: units.c:5505:17: error: too many arguments to function ‘strchr’; expected 0, have 2 5505 | char *value = strchr(def,'='); | ^~~~~~ ~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘checkunitlist’: units.c:5621:24: error: too many arguments to function ‘strchr’; expected 0, have 2 5621 | if ((nextunitstr = strchr(unitstr, UNITSEPCHAR)) != 0) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:5664:13: error: too many arguments to function ‘strchr’; expected 0, have 2 5664 | *(strchr(firstunitstr, UNITSEPCHAR)) = '\0'; | ^~~~~~ ~~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘processwant’: units.c:5706:26: error: too many arguments to function ‘strchr’; expected 0, have 2 5706 | if (flags.unitlists && strchr(unitstr, UNITSEPCHAR)) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘checkunits’: units.c:5767:11: error: too many arguments to function ‘strchr’; expected 0, have 2 5767 | if (strchr(uptr->value, PRIMITIVECHAR)) | ^~~~~~ ~~~~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘showunitlist’: units.c:5866:24: error: too many arguments to function ‘strchr’; expected 0, have 2 5866 | if ((nextunitstr = strchr(wantstr, UNITSEPCHAR))) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘issetting’: units.c:6415:7: error: too many arguments to function ‘strchr’; expected 0, have 2 6415 | if (strchr("Ee", num_format.type)) | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6462:11: error: too many arguments to function ‘strchr’; expected 0, have 2 6462 | if (strchr("EeGg", num_format.type)) | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6511:15: error: too many arguments to function ‘strchr’; expected 0, have 2 6511 | if (strchr(p2, '=')) { | ^~~~~~ ~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6635:20: error: too many arguments to function ‘strchr’; expected 0, have 2 6635 | else if (strchr("EeGg", num_format.type) && value > MAXPRECISION) { | ^~~~~~ ~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6649:15: error: too many arguments to function ‘strchr’; expected 0, have 2 6649 | if (strchr("Ee", num_format.type)) | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6669:38: error: too many arguments to function ‘strchr’; expected 0, have 2 6669 | printf(" %s = %s\n", tag, strchr("Ee", num_format.type) ? YES_STR : NO_STR); | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6677:16: error: too many arguments to function ‘strchr’; expected 0, have 2 6677 | if (!strchr("Ee", num_format.type)) { | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6682:15: error: too many arguments to function ‘strchr’; expected 0, have 2 6682 | if (strchr("Gg", num_format.type)) | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6690:19: error: too many arguments to function ‘strchr’; expected 0, have 2 6690 | if (strchr("Gg", lastformattype)) | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6380:10: warning: variable ‘vlen’ set but not used [-Wunused-but-set-variable] 6380 | size_t vlen; | ^~~~ units.c: In function ‘checklocale’: units.c:6766:12: error: too many arguments to function ‘strchr’; expected 0, have 2 6766 | temp = strchr(mylocale,'.'); | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘remaplocale’: units.c:6859:19: error: too many arguments to function ‘strchr’; expected 0, have 2 6859 | if ((hyphen = strchr(mylocale, '-'))) | ^~~~~~ ~~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6865:13: error: too many arguments to function ‘strchr’; expected 0, have 2 6865 | value=strchr(name,'#'); | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:6867:13: error: too many arguments to function ‘strchr’; expected 0, have 2 6867 | value=strchr(name,'\t'); | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c: In function ‘main’: units.c:7069:12: error: too many arguments to function ‘strchr’; expected 0, have 2 7069 | if (strchr("Ee", num_format.type)) | ^~~~~~ ~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:7168:10: error: too many arguments to function ‘strchr’; expected 0, have 2 7168 | if (strchr(wantstr, UNITSEPCHAR)){ | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ units.c:7251:17: error: too many arguments to function ‘strchr’; expected 0, have 2 7251 | else if (strchr(wantstr, UNITSEPCHAR)) | ^~~~~~ ~~~~~~~ units.h:57:12: note: declared here 57 | char *strchr(); | ^~~~~~ make: *** [Makefile:82: units.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.u86O5I (%build) Bad exit status from /var/tmp/rpm-tmp.u86O5I (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 7558b625e7fd40f1b92cad7f941474ac -D /var/lib/mock/f42-build-56567732-6544382/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.ydm_lhgm:/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 x86_64 --nodeps /builddir/build/SPECS/units.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 7558b625e7fd40f1b92cad7f941474ac -D /var/lib/mock/f42-build-56567732-6544382/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.ydm_lhgm:/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 x86_64 --nodeps /builddir/build/SPECS/units.spec'