D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/units-2.24-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ehd6q5 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.n7PCK7 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/units-2.24-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/units-2.24-build + rm -rf units-2.24 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/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 /home/pterjan/rpmbuild/SOURCES/0001-units-2.22-no-network.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + '[' -z sP ']' + shebang_flags=-kasP + /usr/bin/python3 -B /usr/lib/rpm/redhat/pathfix.py -pni /usr/bin/python3 -kasP ./units_cur ./units_cur: updating + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vT2sKJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/units-2.24-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + 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 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --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 configure: WARNING: unrecognized options: --disable-dependency-tracking checking for x86_64-mageia-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... yes 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 -j16 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 -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 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fpic -I. -c getopt.c gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -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 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fpic -I. -c getopt1.c gcc -DUNITSFILE=\"/usr/share/units/definitions.units\" -DLOCALEMAP=\"/usr/share/units/locale_map.txt\" -DREADLINE -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 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -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: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 -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 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -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:38, 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: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 '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 '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: 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 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.vT2sKJ (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.vT2sKJ (%build) I: [iurt_root_command] ERROR: chroot