D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/pmars-0.9.2-14.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.75Kaxw Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ifXTAn + umask 022 + cd /home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build + rm -rf pmars-0.9.2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pmars-0.9.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pmars-0.9.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/pmars-0.9.2-mga-nostrip.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/pmars-0.9.2-fix-building-with-gcc14.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + cp -a /home/pterjan/rpmbuild/SOURCES/guide.html doc + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.xpGQG3 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/pmars-0.9.2-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 pmars-0.9.2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j16 V=1 VERBOSE=1 -C src make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Making pmars with compiler flags -O -DEXT94 -DXWINGRAPHX -DPERMUTATE -g make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling disasm.o In file included from disasm.c:24: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ In file included from disasm.c:26: sim.h:92:12: warning: built-in function 'round' declared as non-function [-Wbuiltin-declaration-mismatch] 92 | extern int round; | ^~~~~ disasm.c: In function 'cellview': disasm.c:44:1: warning: old-style function definition [-Wold-style-definition] 44 | cellview(cell, outp, emptyDisp) | ^~~~~~~~ disasm.c: In function 'locview': disasm.c:87:1: warning: old-style function definition [-Wold-style-definition] 87 | locview(loc, outp) | ^~~~~~~ disasm.c: In function 'disasm': disasm.c:99:1: warning: old-style function definition [-Wold-style-definition] 99 | disasm(cells, n, offset) | ^~~~~~ make: *** [Makefile:59: disasm.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: *** Waiting for unfinished jobs.... make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling pmars.o In file included from pmars.c:32: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ pmars.c: In function 'decode_vopt': pmars.c:139:1: warning: old-style function definition [-Wold-style-definition] 139 | decode_vopt(option) | ^~~~~~~~~~~ pmars.c: In function 'sighandler': pmars.c:223:1: warning: old-style function definition [-Wold-style-definition] 223 | sighandler(dummy) | ^~~~~~~~~~ pmars.c: In function 'Exit': pmars.c:250:1: warning: old-style function definition [-Wold-style-definition] 250 | Exit(errorcode) | ^~~~ pmars.c: In function 'main': pmars.c:280:1: warning: old-style function definition [-Wold-style-definition] 280 | main(argc, argv) | ^~~~ pmars.c: In function 'returninfo': pmars.c:359:7: error: too many arguments to function 'sort_by_score'; expected 0, have 2 359 | sort_by_score(idxV, scrV); | ^~~~~~~~~~~~~ ~~~~ global.h:415:13: note: declared here 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ make: *** [Makefile:59: pmars.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling eval.o In file included from eval.c:27: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ eval.c: In function 'calc': eval.c:107:1: warning: old-style function definition [-Wold-style-definition] 107 | calc(x, y, op) | ^~~~ eval.c: In function 'getop': eval.c:189:1: warning: old-style function definition [-Wold-style-definition] 189 | getop(expr, oper) | ^~~~~ eval.c: In function 'getreg': eval.c:233:1: warning: old-style function definition [-Wold-style-definition] 233 | getreg(expr, regId, val) | ^~~~~~ eval.c: In function 'getval': eval.c:249:1: warning: old-style function definition [-Wold-style-definition] 249 | getval(expr, val) | ^~~~~~ eval.c: In function 'set_reg': eval.c:367:1: warning: old-style function definition [-Wold-style-definition] 367 | set_reg(regChr, val) | ^~~~~~~ eval.c: In function 'eval_expr': eval.c:376:1: warning: old-style function definition [-Wold-style-definition] 376 | eval_expr(expr, result) /* wrapper for eval() */ | ^~~~~~~~~ make: *** [Makefile:59: eval.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling global.o In file included from global.c:26: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ make: *** [Makefile:59: global.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling pos.o In file included from pos.c:23: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ In file included from pos.c:24: sim.h:92:12: warning: built-in function 'round' declared as non-function [-Wbuiltin-declaration-mismatch] 92 | extern int round; | ^~~~~ pos.c: In function 'rng': pos.c:36:1: warning: old-style function definition [-Wold-style-definition] 36 | rng(seed) | ^~~ make: *** [Makefile:59: pos.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling clparse.o In file included from clparse.c:43: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ clparse.c: In function 'xwin_decode': clparse.c:140:1: warning: old-style function definition [-Wold-style-definition] 140 | xwin_decode(inputs, clip) | ^~~~~~~~~~~ clparse.c: In function 'print_usage': clparse.c:168:1: warning: old-style function definition [-Wold-style-definition] 168 | print_usage(clopt) | ^~~~~~~~~~~ clparse.c: In function 'next_input': clparse.c:212:1: warning: old-style function definition [-Wold-style-definition] 212 | next_input(filep, inputs) | ^~~~~~~~~~ clparse.c: In function 'clp_parse': clparse.c:252:1: warning: old-style function definition [-Wold-style-definition] 252 | clp_parse(clopt, filep) | ^~~~~~~~~ clparse.c: In function 'parse_param': clparse.c:448:1: warning: old-style function definition [-Wold-style-definition] 448 | parse_param(largc, largv) | ^~~~~~~~~~~ make: *** [Makefile:59: clparse.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling asm.o In file included from asm.c:43: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ asm.c: In function 'lookup': asm.c:266:1: warning: old-style function definition [-Wold-style-definition] 266 | lookup(symn) | ^~~~~~ asm.c: In function 'addsym': asm.c:300:1: warning: old-style function definition [-Wold-style-definition] 300 | addsym(symn, curgroup) | ^~~~~~ asm.c: In function 'addpredef': asm.c:320:1: warning: old-style function definition [-Wold-style-definition] 320 | addpredef(symn, value) | ^~~~~~~~~ asm.c: In function 'addline': asm.c:364:1: warning: old-style function definition [-Wold-style-definition] 364 | addline(vline, src, lspnt) | ^~~~~~~ asm.c: In function 'addlinesrc': asm.c:388:1: warning: old-style function definition [-Wold-style-definition] 388 | addlinesrc(src, loc) | ^~~~~~~~~~ asm.c: In function 'disposeline': asm.c:409:1: warning: old-style function definition [-Wold-style-definition] 409 | disposeline(aline) | ^~~~~~~~~~~ asm.c: In function 'disposegrp': asm.c:424:1: warning: old-style function definition [-Wold-style-definition] 424 | disposegrp(agrp) | ^~~~~~~~~~ asm.c: In function 'disposetbl': asm.c:439:1: warning: old-style function definition [-Wold-style-definition] 439 | disposetbl(atbl, btbl) | ^~~~~~~~~~ asm.c: In function 'show_info': asm.c:523:1: warning: old-style function definition [-Wold-style-definition] 523 | show_info(sspnt) | ^~~~~~~~~ asm.c: In function 'nocmnt': asm.c:544:1: warning: old-style function definition [-Wold-style-definition] 544 | nocmnt(str) | ^~~~~~ asm.c: In function 'globalswitch': asm.c:555:1: warning: old-style function definition [-Wold-style-definition] 555 | globalswitch(str, idx, loc, lspnt) | ^~~~~~~~~~~~ asm.c: In function 'lineswitch': asm.c:606:1: warning: old-style function definition [-Wold-style-definition] 606 | lineswitch(str, idx, aline) /* line switch */ | ^~~~~~~~~~ asm.c: In function 'textout': asm.c:648:1: warning: old-style function definition [-Wold-style-definition] 648 | textout(str) | ^~~~~~~ asm.c: In function 'errprn': asm.c:693:1: warning: old-style function definition [-Wold-style-definition] 693 | errprn(code, aline, arg) | ^~~~~~ asm.c: In function 'automaton': asm.c:946:1: warning: old-style function definition [-Wold-style-definition] 946 | automaton(expr, state, cell) | ^~~~~~~~~ asm.c: In function 'dfashell': asm.c:1282:1: warning: old-style function definition [-Wold-style-definition] 1282 | dfashell(expr, cell) | ^~~~~~~~ asm.c: In function 'normalize': asm.c:1423:1: warning: old-style function definition [-Wold-style-definition] 1423 | normalize(value) | ^~~~~~~~~ asm.c: In function 'encode': asm.c:1437:1: warning: old-style function definition [-Wold-style-definition] 1437 | encode(sspnt) | ^~~~~~ asm.c: In function 'blkfor': asm.c:1542:1: warning: old-style function definition [-Wold-style-definition] 1542 | blkfor(expr, dest) | ^~~~~~ asm.c: In function 'equtbl': asm.c:1629:1: warning: old-style function definition [-Wold-style-definition] 1629 | equtbl(expr) | ^~~~~~ asm.c: In function 'equsub': asm.c:1685:1: warning: old-style function definition [-Wold-style-definition] 1685 | equsub(expr, dest, wdecl, tbl) | ^~~~~~ asm.c: In function 'trav2': asm.c:1722:1: warning: old-style function definition [-Wold-style-definition] 1722 | trav2(buffer, dest, wdecl) | ^~~~~ asm.c: In function 'expand': asm.c:1941:1: warning: old-style function definition [-Wold-style-definition] 1941 | expand(sspnt) | ^~~~~~ asm.c: In function 'parse': asm.c:1973:1: warning: old-style function definition [-Wold-style-definition] 1973 | parse(expr, cell, loc) | ^~~~~ asm.c: In function 'assemble': asm.c:2068:1: warning: old-style function definition [-Wold-style-definition] 2068 | assemble(fName, aWarrior) | ^~~~~~~~ make: *** [Makefile:59: asm.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling cdb.o In file included from cdb.c:29: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ In file included from cdb.c:30: sim.h:92:12: warning: built-in function 'round' declared as non-function [-Wbuiltin-declaration-mismatch] 92 | extern int round; | ^~~~~ cdb.c: In function 'cdb': cdb.c:359:1: warning: old-style function definition [-Wold-style-definition] 359 | cdb(message) | ^~~ cdb.c: In function 'queue': cdb.c:1008:1: warning: old-style function definition [-Wold-style-definition] 1008 | queue(index) | ^~~~~ cdb.c: In function 'get_cmd': cdb.c:1034:1: warning: old-style function definition [-Wold-style-definition] 1034 | get_cmd(prompt) | ^~~~~~~ cdb.c: In function 'cdb_fputs': cdb.c:1364:1: warning: old-style function definition [-Wold-style-definition] 1364 | cdb_fputs(str, wout) | ^~~~~~~~~ cdb.c: In function 'bad_arg': cdb.c:1443:1: warning: old-style function definition [-Wold-style-definition] 1443 | bad_arg(argStr) | ^~~~~~~ cdb.c: In function 'hash_str': cdb.c:1454:1: warning: old-style function definition [-Wold-style-definition] 1454 | hash_str(str, length) | ^~~~~~~~ cdb.c: In function 'substitute': cdb.c:1471:1: warning: old-style function definition [-Wold-style-definition] 1471 | substitute(in, repl, with, out) | ^~~~~~~~~~ cdb.c: In function 'subst_eval': cdb.c:1501:1: warning: old-style function definition [-Wold-style-definition] 1501 | subst_eval(inpStr, result) | ^~~~~~~~~~ cdb.c: In function 'parse_cmd': cdb.c:1620:1: warning: old-style function definition [-Wold-style-definition] 1620 | parse_cmd(inpStr, verbStr, start, stop, argStr) | ^~~~~~~~~ cdb.c: In function 'print_core': cdb.c:1753:1: warning: old-style function definition [-Wold-style-definition] 1753 | print_core(start, stop) | ^~~~~~~~~~ cdb.c: In function 'set_trace': cdb.c:1843:1: warning: old-style function definition [-Wold-style-definition] 1843 | set_trace(start, stop) | ^~~~~~~~~ cdb.c: In function 'unset_trace': cdb.c:1856:1: warning: old-style function definition [-Wold-style-definition] 1856 | unset_trace(start, stop) | ^~~~~~~~~~~ cdb.c: In function 'edit_core': cdb.c:2003:1: warning: old-style function definition [-Wold-style-definition] 2003 | edit_core(start, stop) | ^~~~~~~~~ cdb.c: In function 'fill_core': cdb.c:2066:1: warning: old-style function definition [-Wold-style-definition] 2066 | fill_core(start, stop) | ^~~~~~~~~ cdb.c: In function 'wildsearch': cdb.c:2121:1: warning: old-style function definition [-Wold-style-definition] 2121 | wildsearch(pattern, target) | ^~~~~~~~~~ cdb.c: In function 'load_macros': cdb.c:2147:1: warning: old-style function definition [-Wold-style-definition] 2147 | load_macros(fnStr) | ^~~~~~~~~~~ cdb.c: In function 'match_macro': cdb.c:2277:1: warning: old-style function definition [-Wold-style-definition] 2277 | match_macro(match, macroDef) | ^~~~~~~~~~~ cdb.c: In function 'exec_macro': cdb.c:2347:1: warning: old-style function definition [-Wold-style-definition] 2347 | exec_macro(macro) | ^~~~~~~~~~ cdb.c: In function 'queueview': cdb.c:2375:1: warning: old-style function definition [-Wold-style-definition] 2375 | queueview(loc, outp) | ^~~~~~~~~ cdb.c: In function 'warriorview': cdb.c:2390:1: warning: old-style function definition [-Wold-style-definition] 2390 | warriorview(loc, outp) | ^~~~~~~~~~~ cdb.c: In function 'pspaceview': cdb.c:2403:1: warning: old-style function definition [-Wold-style-definition] 2403 | pspaceview(loc, outp) | ^~~~~~~~~~ cdb.c: In function 'score': cdb.c:2415:1: warning: old-style function definition [-Wold-style-definition] 2415 | score(warnum) | ^~~~~ cdb.c: In function 'deaths': cdb.c:2435:1: warning: old-style function definition [-Wold-style-definition] 2435 | deaths(warnum) | ^~~~~~ cdb.c: At top level: cdb.c:2445:1: error: conflicting types for 'sort_by_score'; have 'void(void)' 2445 | sort_by_score(idxV, scrV) | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ cdb.c: In function 'sort_by_score': cdb.c:2445:1: warning: old-style function definition [-Wold-style-definition] 2445 | sort_by_score(idxV, scrV) | ^~~~~~~~~~~~~ cdb.c: In function 'results': cdb.c:2466:1: warning: old-style function definition [-Wold-style-definition] 2466 | results(outp) | ^~~~~~~ cdb.c:2483:5: error: too many arguments to function 'sort_by_score'; expected 0, have 2 2483 | sort_by_score(idxV, scrV); | ^~~~~~~~~~~~~ ~~~~ cdb.c:2445:1: note: declared here 2445 | sort_by_score(idxV, scrV) | ^~~~~~~~~~~~~ make: *** [Makefile:59: cdb.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling token.o In file included from token.c:26: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ token.c: In function 'pstrchr': token.c:46:1: warning: old-style function definition [-Wold-style-definition] 46 | pstrchr(s, c) | ^~~~~~~ token.c: In function 'pstrdup': token.c:61:1: warning: old-style function definition [-Wold-style-definition] 61 | pstrdup(s) | ^~~~~~~ token.c: In function 'pstrcat': token.c:82:1: warning: old-style function definition [-Wold-style-definition] 82 | pstrcat(s1, s2) | ^~~~~~~ token.c: In function 'ch_in_set': token.c:100:1: warning: old-style function definition [-Wold-style-definition] 100 | ch_in_set(c, s) | ^~~~~~~~~ token.c: In function 'str_in_set': token.c:119:1: warning: old-style function definition [-Wold-style-definition] 119 | str_in_set(str, s) | ^~~~~~~~~~ token.c: In function 'skip_space': token.c:131:1: warning: old-style function definition [-Wold-style-definition] 131 | skip_space(str, i) | ^~~~~~~~~~ token.c: In function 'to_upper': token.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | to_upper(str) | ^~~~~~~~ token.c: In function 'get_token': token.c:156:1: warning: old-style function definition [-Wold-style-definition] 156 | get_token(str, curIndex, token) | ^~~~~~~~~ make: *** [Makefile:59: token.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling str_eng.o In file included from str_eng.c:25: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ make: *** [Makefile:59: str_eng.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' make: Entering directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' Compiling sim.o In file included from sim.c:28: global.h:415:13: error: conflicting types for 'sort_by_score'; have 'void(void)' 415 | extern void sort_by_score(); | ^~~~~~~~~~~~~ global.h:412:13: note: previous declaration of 'sort_by_score' with type 'void(int *, int *)' 412 | extern void sort_by_score(int *idxV, int *scrV); | ^~~~~~~~~~~~~ In file included from sim.c:29: sim.h:92:12: warning: built-in function 'round' declared as non-function [-Wbuiltin-declaration-mismatch] 92 | extern int round; | ^~~~~ In file included from sim.c:92: xwindisp.c: In function 'my_err': xwindisp.c:255:1: warning: old-style function definition [-Wold-style-definition] 255 | my_err(s) | ^~~~~~ xwindisp.c: In function 'make_int': xwindisp.c:266:1: warning: old-style function definition [-Wold-style-definition] 266 | make_int(s) | ^~~~~~~~ xwindisp.c: In function 'parse_geometry': xwindisp.c:284:1: warning: old-style function definition [-Wold-style-definition] 284 | parse_geometry(sizeHints, x, y, w, h) | ^~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_update': xwindisp.c:345:1: warning: old-style function definition [-Wold-style-definition] 345 | xWin_update(newcurPanel) | ^~~~~~~~~~~ xwindisp.c: In function 'xkoord': xwindisp.c:434:1: warning: old-style function definition [-Wold-style-definition] 434 | xkoord(addr) | ^~~~~~ xwindisp.c: In function 'ykoord': xwindisp.c:444:1: warning: old-style function definition [-Wold-style-definition] 444 | ykoord(addr) | ^~~~~~ xwindisp.c: In function 'findplace': xwindisp.c:454:1: warning: old-style function definition [-Wold-style-definition] 454 | findplace(addr) | ^~~~~~~~~ xwindisp.c: In function 'xWin_puts': xwindisp.c:610:1: warning: old-style function definition [-Wold-style-definition] 610 | xWin_puts(sss) | ^~~~~~~~~ xwindisp.c: In function 'conv_key': xwindisp.c:707:1: warning: old-style function definition [-Wold-style-definition] 707 | conv_key(event) | ^~~~~~~~ xwindisp.c: In function 'mouse_or_key': xwindisp.c:748:1: warning: old-style function definition [-Wold-style-definition] 748 | mouse_or_key(result, key) | ^~~~~~~~~~~~ xwindisp.c: In function 'special_keys': xwindisp.c:803:1: warning: old-style function definition [-Wold-style-definition] 803 | special_keys(key, buf) | ^~~~~~~~~~~~ xwindisp.c: In function 'xWin_gets': xwindisp.c:911:1: warning: old-style function definition [-Wold-style-definition] 911 | xWin_gets(result, maxchar) | ^~~~~~~~~ xwindisp.c: In function 'handle_event': xwindisp.c:1007:1: warning: old-style function definition [-Wold-style-definition] 1007 | handle_event(event) | ^~~~~~~~~~~~ xwindisp.c: In function 'setcolor': xwindisp.c:1101:1: warning: old-style function definition [-Wold-style-definition] 1101 | setcolor(c) | ^~~~~~~~ xwindisp.c: In function 'xWin_cleartextxy': xwindisp.c:1127:1: warning: old-style function definition [-Wold-style-definition] 1127 | xWin_cleartextxy(x, y, gc) | ^~~~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_outtextxy': xwindisp.c:1145:1: warning: old-style function definition [-Wold-style-definition] 1145 | xWin_outtextxy(x, y, s) | ^~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_display_read': xwindisp.c:1333:1: warning: old-style function definition [-Wold-style-definition] 1333 | xWin_display_read(addr) | ^~~~~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_display_dec': xwindisp.c:1346:1: warning: old-style function definition [-Wold-style-definition] 1346 | xWin_display_dec(addr) | ^~~~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_display_inc': xwindisp.c:1363:1: warning: old-style function definition [-Wold-style-definition] 1363 | xWin_display_inc(addr) | ^~~~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_display_write': xwindisp.c:1380:1: warning: old-style function definition [-Wold-style-definition] 1380 | xWin_display_write(addr) | ^~~~~~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_display_exec': xwindisp.c:1399:1: warning: old-style function definition [-Wold-style-definition] 1399 | xWin_display_exec(addr) | ^~~~~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_display_spl': xwindisp.c:1414:1: warning: old-style function definition [-Wold-style-definition] 1414 | xWin_display_spl(warrior, tasks) | ^~~~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_display_dat': xwindisp.c:1427:1: warning: old-style function definition [-Wold-style-definition] 1427 | xWin_display_dat(addr, warNum, tasks) | ^~~~~~~~~~~~~~~~ xwindisp.c: In function 'xWin_display_close': xwindisp.c:1497:1: warning: old-style function definition [-Wold-style-definition] 1497 | xWin_display_close(wait) | ^~~~~~~~~~~~~~~~~~ make: *** [Makefile:59: sim.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/pmars-0.9.2-build/pmars-0.9.2/src' error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.xpGQG3 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.xpGQG3 (%build) I: [iurt_root_command] ERROR: chroot