D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/bwbasic-3.30-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.0DyJVz Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.1lKrvr + umask 022 + cd /home/pterjan/rpmbuild/BUILD/bwbasic-3.30-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/bwbasic-3.30-build + rm -rf bwbasic-3.30 + /usr/bin/mkdir -p bwbasic-3.30 + cd bwbasic-3.30 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/bwbasic-3.30.zip + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + unzip /home/pterjan/rpmbuild/SOURCES/bwbtest.zip Archive: /home/pterjan/rpmbuild/SOURCES/bwbtest.zip creating: bwbtest/ inflating: bwbtest/abs.bas extracting: bwbtest/assign.bas inflating: bwbtest/callfunc.bas inflating: bwbtest/callsub.bas inflating: bwbtest/chain1.bas inflating: bwbtest/chain2.bas inflating: bwbtest/dataread.bas inflating: bwbtest/deffn.bas inflating: bwbtest/dim.bas inflating: bwbtest/doloop.bas inflating: bwbtest/dowhile.bas inflating: bwbtest/elseif.bas inflating: bwbtest/end.bas extracting: bwbtest/err.bas inflating: bwbtest/fncallfn.bas inflating: bwbtest/fornext.bas inflating: bwbtest/function.bas inflating: bwbtest/gosub.bas inflating: bwbtest/gotolabl.bas inflating: bwbtest/ifline.bas inflating: bwbtest/index.txt inflating: bwbtest/input.bas inflating: bwbtest/lof.bas inflating: bwbtest/loopuntl.bas inflating: bwbtest/main.bas inflating: bwbtest/mlifthen.bas inflating: bwbtest/on.bas inflating: bwbtest/onerr.bas inflating: bwbtest/onerrlbl.bas inflating: bwbtest/ongosub.bas inflating: bwbtest/opentest.bas inflating: bwbtest/option.bas inflating: bwbtest/pascaltr.bas inflating: bwbtest/putget.bas inflating: bwbtest/random.bas inflating: bwbtest/selcase.bas inflating: bwbtest/snglfunc.bas inflating: bwbtest/stop.bas inflating: bwbtest/term.bas inflating: bwbtest/whilwend.bas inflating: bwbtest/width.bas inflating: bwbtest/writeinp.bas + chmod ug+x ./configure + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.oloMkG + umask 022 + cd /home/pterjan/rpmbuild/BUILD/bwbasic-3.30-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 bwbasic-3.30 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + sed -ie 's/HAVE_UNIX/HAVE_UNIX -fPIE/' Makefile.in + autoconf configure.in:6: warning: The macro 'AC_SIZE_T' is obsolete. configure.in:6: You should run autoupdate. ./lib/autoconf/oldnames.m4:73: AC_SIZE_T is expanded from... configure.in:6: the top level configure.in:7: warning: The macro 'AC_HEADER_CHECK' is obsolete. configure.in:7: You should run autoupdate. ./lib/autoconf/oldnames.m4:36: AC_HEADER_CHECK is expanded from... configure.in:7: the top level configure.in:8: warning: The macro 'AC_HEADER_CHECK' is obsolete. configure.in:8: You should run autoupdate. ./lib/autoconf/oldnames.m4:36: AC_HEADER_CHECK is expanded from... configure.in:8: the top level configure.in:9: warning: The macro 'AC_HEADER_CHECK' is obsolete. configure.in:9: You should run autoupdate. ./lib/autoconf/oldnames.m4:36: AC_HEADER_CHECK is expanded from... configure.in:9: the top level configure.in:10: warning: The macro 'AC_COMPILE_CHECK' is obsolete. configure.in:10: You should run autoupdate. ./lib/autoconf/general.m4:2925: AC_COMPILE_CHECK is expanded from... configure.in:10: the top level configure.in:12: warning: AC_OUTPUT should be used without arguments. configure.in:12: You should run autoupdate. ++ ls -1 /usr/share/ ++ grep automake ++ sort ++ head -1 + INSTALLSH=automake-1.17 + cp -a /usr/share/automake-1.17/install-sh . + 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 checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c 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 size_t... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for raise... configure: creating ./config.status config.status: creating Makefile configure: WARNING: unrecognized options: --disable-dependency-tracking + /usr/bin/make -O -j16 V=1 VERBOSE=1 gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_tbl.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwx_tty.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwd_cmd.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwd_fun.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_str.c gcc renum.c -o renum renum.c: In function 'main': renum.c:24:5: warning: old-style function definition [-Wold-style-definition] 24 | int main(argc, argv) | ^~~~ renum.c:83:11: error: too many arguments to function 'instr'; expected 0, have 2 83 | p = instr(pstr, " "); | ^~~~~ ~~~~ renum.c:15:5: note: declared here 15 | int instr(); | ^~~~~ renum.c:86:19: error: too many arguments to function 'midstr2'; expected 0, have 3 86 | n = atoi(midstr2(pstr, 1, p)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:160:22: error: too many arguments to function 'midstr2'; expected 0, have 3 160 | t = atoi(midstr2(pstr, 1, 1)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:169:14: error: too many arguments to function 'instr'; expected 0, have 2 169 | c = instr(pstr, ","); | ^~~~~ ~~~~ renum.c:15:5: note: declared here 15 | int instr(); | ^~~~~ renum.c:171:20: error: too many arguments to function 'midstr2'; expected 0, have 3 171 | f1 = atoi(midstr2(pstr, 1, p + temp*(p - c + 1))); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:178:21: error: too many arguments to function 'midstr1'; expected 0, have 2 178 | c1 = instr(midstr1(pstr, c + 1), ",") + c; | ^~~~~~~ ~~~~ renum.c:16:7: note: declared here 16 | char *midstr1(); | ^~~~~~~ renum.c:178:15: error: too many arguments to function 'instr'; expected 0, have 2 178 | c1 = instr(midstr1(pstr, c + 1), ",") + c; | ^~~~~ ~~~~~~~~~~~~~~~~~~~~ renum.c:15:5: note: declared here 15 | int instr(); | ^~~~~ renum.c:180:19: error: too many arguments to function 'midstr2'; expected 0, have 3 180 | i = atoi(midstr2(pstr, c + 1, p + temp*(p - c1 + 1) - c)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:187:20: error: too many arguments to function 'midstr1'; expected 0, have 2 187 | c = instr(midstr1(pstr, c1 + 1), ",") + c1; | ^~~~~~~ ~~~~ renum.c:16:7: note: declared here 16 | char *midstr1(); | ^~~~~~~ renum.c:187:14: error: too many arguments to function 'instr'; expected 0, have 2 187 | c = instr(midstr1(pstr, c1 + 1), ",") + c1; | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~ renum.c:15:5: note: declared here 15 | int instr(); | ^~~~~ renum.c:189:20: error: too many arguments to function 'midstr2'; expected 0, have 3 189 | f8 = atoi(midstr2(pstr, c1 + 1, p + temp*(p - c + 1) - c1)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:196:19: error: too many arguments to function 'midstr1'; expected 0, have 2 196 | l = atoi(midstr1(pstr, c + 1)); | ^~~~~~~ ~~~~ renum.c:16:7: note: declared here 16 | char *midstr1(); | ^~~~~~~ renum.c:300:15: error: too many arguments to function 'midstr2'; expected 0, have 3 300 | if (strcmp(midstr2(pstr, 1, 1), "N") == 0) v1 = 1; | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:301:15: error: too many arguments to function 'midstr2'; expected 0, have 3 301 | if (strcmp(midstr2(pstr, 1, 1), "n") == 0) v1 = 1; | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:321:11: error: too many arguments to function 'instr'; expected 0, have 2 321 | b = instr(pstr, " "); | ^~~~~ ~~~~ renum.c:15:5: note: declared here 15 | int instr(); | ^~~~~ renum.c:324:19: error: too many arguments to function 'midstr2'; expected 0, have 3 324 | n = atoi(midstr2(pstr, 1, b)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:332:32: error: too many arguments to function 'midstr1'; expected 0, have 2 332 | strcat(rstr, midstr1(pstr, b)); | ^~~~~~~ ~~~~ renum.c:16:7: note: declared here 16 | char *midstr1(); | ^~~~~~~ renum.c:334:23: error: too many arguments to function 'instr'; expected 0, have 2 334 | b = instr(pstr, " "); | ^~~~~ ~~~~ renum.c:15:5: note: declared here 15 | int instr(); | ^~~~~ renum.c:351:27: error: too many arguments to function 'midstr2'; expected 0, have 3 351 | if (strcmp(midstr2(pstr, b, 3), "REM") == 0 || | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:352:23: error: too many arguments to function 'midstr2'; expected 0, have 3 352 | strcmp(midstr2(pstr, b, 1), "'") == 0) break; | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:358:31: error: too many arguments to function 'midstr2'; expected 0, have 3 358 | if ((char)(*midstr2(pstr, x9, 1)) == 34) | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:365:35: error: too many arguments to function 'midstr2'; expected 0, have 3 365 | else if (strcmp(midstr2(pstr, x9, 1), ":") == 0 && | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:375:48: error: too many arguments to function 'midstr2'; expected 0, have 3 375 | t = instr("GOSGOTIF ON RESRET", midstr2(pstr, b, 3)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:375:20: error: too many arguments to function 'instr'; expected 0, have 2 375 | t = instr("GOSGOTIF ON RESRET", midstr2(pstr, b, 3)); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~ renum.c:15:5: note: declared here 15 | int instr(); | ^~~~~ renum.c:402:36: error: too many arguments to function 'midstr2'; expected 0, have 3 402 | if (strcmp(midstr2(pstr, x9, 1), " ") == 0) | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:420:37: error: too many arguments to function 'midstr2'; expected 0, have 3 420 | if ((char)(*midstr2(pstr, x9, 1)) == 34) | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:427:41: error: too many arguments to function 'midstr2'; expected 0, have 3 427 | else if (strcmp(midstr2(pstr, x9, 1), s9str) == 0 && | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:440:37: error: too many arguments to function 'midstr2'; expected 0, have 3 440 | a = (char)(*midstr2(pstr, x9, 1)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:453:34: error: too many arguments to function 'midstr2'; expected 0, have 3 453 | n = atoi(midstr2(pstr, p8, p9 - p8 + 1)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:463:53: error: too many arguments to function 'midstr2'; expected 0, have 3 463 | strcpy(tempstr, midstr2(pstr, 1, p8 - 1)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:469:53: error: too many arguments to function 'midstr2'; expected 0, have 3 469 | strcpy(tempstr, midstr2(pstr, 1, p8 - 1)); | ^~~~~~~ ~~~~ renum.c:17:7: note: declared here 17 | char *midstr2(); | ^~~~~~~ renum.c:471:53: error: too many arguments to function 'midstr1'; expected 0, have 2 471 | strcat(tempstr, midstr1(pstr, p9 + 1)); | ^~~~~~~ ~~~~ renum.c:16:7: note: declared here 16 | char *midstr1(); | ^~~~~~~ renum.c: In function 'instr': renum.c:522:5: warning: old-style function definition [-Wold-style-definition] 522 | int instr(astr, bstr) | ^~~~~ renum.c:524:1: error: number of arguments doesn't match prototype 524 | { | ^ renum.c:15:5: error: prototype declaration 15 | int instr(); | ^~~~~ renum.c: In function 'midstr1': renum.c:541:7: warning: old-style function definition [-Wold-style-definition] 541 | char *midstr1(astr, start) | ^~~~~~~ renum.c:544:1: error: number of arguments doesn't match prototype 544 | { | ^ renum.c:16:7: error: prototype declaration 16 | char *midstr1(); | ^~~~~~~ renum.c: In function 'midstr2': renum.c:555:7: warning: old-style function definition [-Wold-style-definition] 555 | char *midstr2(astr, start, len) | ^~~~~~~ renum.c:558:1: error: number of arguments doesn't match prototype 558 | { | ^ renum.c:17:7: error: prototype declaration 17 | char *midstr2(); | ^~~~~~~ make: *** [Makefile:70: renum] Error 1 make: *** Waiting for unfinished jobs.... gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_dio.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_stc.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_cnd.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_prn.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_fnc.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_inp.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_int.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_exp.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwbasic.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_var.c gcc -c -I. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -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 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_UNISTD=1 -DHAVE_RAISE=1 -g -ansi -DHAVE_UNIX -fPIE bwb_cmd.c error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.oloMkG (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.oloMkG (%build) I: [iurt_root_command] ERROR: chroot