D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/x11iraf-2.1-3.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.PhFWLs sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.DmtWiS + umask 022 + cd /home/pterjan/rpmbuild/BUILD/x11iraf-2.1-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/x11iraf-2.1-build + rm -rf x11iraf-2.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/x11iraf-2.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd x11iraf-2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/x11iraf-makefile.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/x11iraf-fix-building-with-gcc14.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i 's|use=xterm-r5|use=xterm|' xgterm/xgterm.terminfo + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.TdgzPa + umask 022 + cd /home/pterjan/rpmbuild/BUILD/x11iraf-2.1-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 x11iraf-2.1 + '[' 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 + unset IRAFARCH ++ /usr/lib64/iraf/unix/hlib/irafarch.sh + export IRAFARCH=linux64 + IRAFARCH=linux64 + export PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin:/usr/lib64/iraf/unix/bin:/usr/lib64/iraf/unix/bin.linux64 + PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin:/usr/lib64/iraf/unix/bin:/usr/lib64/iraf/unix/bin.linux64 + make make -C obm make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/x11iraf-2.1-build/x11iraf-2.1/obm' gcc -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 -I/usr/include/tcl -c -o Obm.o Obm.c In file included from Obm.c:5: ObmP.h:77:5: error: conflicting types for 'Tcl_GetErrorLine'; have 'int(void)' 77 | int Tcl_GetErrorLine(); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/tcl.h:2424, from ObmP.h:76: /usr/include/tclDecls.h:1745:25: note: previous declaration of 'Tcl_GetErrorLine' with type 'int(Tcl_Interp *)' 1745 | EXTERN int Tcl_GetErrorLine(Tcl_Interp *interp); | ^~~~~~~~~~~~~~~~ ObmP.h:78:6: error: conflicting types for 'Tcl_SetErrorLine'; have 'void(void)' 78 | void Tcl_SetErrorLine(); | ^~~~~~~~~~~~~~~~ /usr/include/tclDecls.h:1747:25: note: previous declaration of 'Tcl_SetErrorLine' with type 'void(Tcl_Interp *, int)' 1747 | EXTERN void Tcl_SetErrorLine(Tcl_Interp *interp, int lineNum); | ^~~~~~~~~~~~~~~~ ObmP.h:532:15: error: conflicting types for 'getenv'; have 'char *(void)' 532 | extern char *getenv(); | ^~~~~~ In file included from ObmP.h:9: /usr/include/stdlib.h:773:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 773 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur; | ^~~~~~ Obm.c: In function 'ObmOpen': Obm.c:126:1: warning: old-style function definition [-Wold-style-definition] 126 | ObmOpen (app_context, argc, argv) | ^~~~~~~ Obm.c:130:1: error: number of arguments doesn't match prototype 130 | { | ^ In file included from ObmP.h:529: Obm.h:14:12: error: prototype declaration 14 | ObmContext ObmOpen (/* app_context, argc, argv */); | ^~~~~~~ Obm.c:143:28: error: too many arguments to function 'getenv'; expected 0, have 1 143 | obm->debug = ((s = getenv("OBMDEBUG")) != NULL); | ^~~~~~ ~~~~~~~~~~ ObmP.h:532:15: note: declared here 532 | extern char *getenv(); | ^~~~~~ Obm.c:146:18: error: too many arguments to function 'getenv'; expected 0, have 1 146 | if ((s = getenv("OBMOBJECTS"))) { | ^~~~~~ ~~~~~~~~~~~~ ObmP.h:532:15: note: declared here 532 | extern char *getenv(); | ^~~~~~ Obm.c:157:18: error: too many arguments to function 'classrec->ClassInit'; expected 0, have 2 157 | (*(classrec->ClassInit)) (obm, classrec); | ~^~~~~~~~~~~~~~~~~~~~~~~ ~~~ ObmP.h:206:19: note: declared here 206 | ObmMethod ClassInit; /* initializes class record */ | ^~~~~~~~~ Obm.c:161:9: error: too many arguments to function 'ObmInitialize'; expected 0, have 1 161 | ObmInitialize (obm); | ^~~~~~~~~~~~~ ~~~ Obm.h:16:6: note: declared here 16 | void ObmInitialize (/* obm */); | ^~~~~~~~~~~~~ Obm.c: In function 'ObmClose': Obm.c:170:1: warning: old-style function definition [-Wold-style-definition] 170 | ObmClose (obm) | ^~~~~~~~ Obm.c:172:1: error: number of arguments doesn't match prototype 172 | { | ^ Obm.h:15:6: error: prototype declaration 15 | void ObmClose (/* obm */); | ^~~~~~~~ Obm.c:177:9: error: too many arguments to function 'ObmInitialize'; expected 0, have 1 177 | ObmInitialize (obm); | ^~~~~~~~~~~~~ ~~~ Obm.h:16:6: note: declared here 16 | void ObmInitialize (/* obm */); | ^~~~~~~~~~~~~ Obm.c:179:13: error: too many arguments to function 'obmDestroyObject'; expected 0, have 2 179 | obmDestroyObject (obm, obm->head); | ^~~~~~~~~~~~~~~~ ~~~ ObmP.h:515:14: note: declared here 515 | extern void obmDestroyObject(); | ^~~~~~~~~~~~~~~~ Obm.c:183:13: error: too many arguments to function 'obmRemoveCallback'; expected 0, have 2 183 | obmRemoveCallback (&obm->callback_list, obm->callback_list); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ ObmP.h:513:14: note: declared here 513 | extern void obmRemoveCallback(); | ^~~~~~~~~~~~~~~~~ Obm.c:188:14: error: too many arguments to function 'classrec->ClassDestroy'; expected 0, have 2 188 | (*(classrec->ClassDestroy)) (obm, classrec); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ ObmP.h:207:19: note: declared here 207 | ObmMethod ClassDestroy; /* close class record */ | ^~~~~~~~~~~~ Obm.c: In function 'ObmInitialize': Obm.c:201:1: warning: old-style function definition [-Wold-style-definition] 201 | ObmInitialize (obm) | ^~~~~~~~~~~~~ Obm.c:203:1: error: number of arguments doesn't match prototype 203 | { | ^ Obm.h:16:6: error: prototype declaration 16 | void ObmInitialize (/* obm */); | ^~~~~~~~~~~~~ Obm.c:220:20: error: too many arguments to function 'obmFindObject'; expected 0, have 2 220 | if ((obj = obmFindObject (obm, "toplevel"))) { | ^~~~~~~~~~~~~ ~~~ ObmP.h:507:18: note: declared here 507 | extern ObmObject obmFindObject(); | ^~~~~~~~~~~~~ Obm.c:221:13: error: too many arguments to function 'obmUndisplay'; expected 0, have 2 221 | obmUndisplay (obm, obj); | ^~~~~~~~~~~~ ~~~ ObmP.h:517:28: note: declared here 517 | extern void obmDisplay(), obmUndisplay(); | ^~~~~~~~~~~~ Obm.c:222:13: error: too many arguments to function 'obmDestroyObject'; expected 0, have 2 222 | obmDestroyObject (obm, obj); | ^~~~~~~~~~~~~~~~ ~~~ ObmP.h:515:14: note: declared here 515 | extern void obmDestroyObject(); | ^~~~~~~~~~~~~~~~ Obm.c:225:13: error: too many arguments to function 'obmDestroyObject'; expected 0, have 2 225 | obmDestroyObject (obm, obm->head); | ^~~~~~~~~~~~~~~~ ~~~ ObmP.h:515:14: note: declared here 515 | extern void obmDestroyObject(); | ^~~~~~~~~~~~~~~~ Obm.c:230:13: error: too many arguments to function 'freeIcon'; expected 0, have 2 230 | freeIcon (obm, (Icon *) lp->ptr); | ^~~~~~~~ ~~~ ObmP.h:520:14: note: declared here 520 | extern void freeIcon(); | ^~~~~~~~ Obm.c:246:13: error: too many arguments to function 'freeMenu'; expected 0, have 1 246 | freeMenu ((MenuPtr) lp->ptr); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~ ObmP.h:519:14: note: declared here 519 | extern void freeMenu(); | ^~~~~~~~ Obm.c:257:22: error: too many arguments to function 'cb->u.fcn'; expected 0, have 4 257 | (*cb->u.fcn) (cb->client_data, obm->display, NULL, 0); | ~^~~~~~~~~~~ ~~~~~~~~~~~~~~~ ObmP.h:441:21: note: declared here 441 | ObmFunc fcn; | ^~~ Obm.c:278:17: error: too many arguments to function 'obmRemoveCallback'; expected 0, have 2 278 | obmRemoveCallback (&obm->callback_list, cb); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ ObmP.h:513:14: note: declared here 513 | extern void obmRemoveCallback(); | ^~~~~~~~~~~~~~~~~ Obm.c:281:9: error: too many arguments to function 'obmNewObject'; expected 0, have 6 281 | obmNewObject (obm, "server", "Server", NULL, NULL, 0); | ^~~~~~~~~~~~ ~~~ Obm.h:26:6: note: declared here 26 | void obmNewObject(); | ^~~~~~~~~~~~ Obm.c:282:9: error: too many arguments to function 'obmNewObject'; expected 0, have 6 282 | obmNewObject (obm, "client", "Client", NULL, NULL, 0); | ^~~~~~~~~~~~ ~~~ Obm.h:26:6: note: declared here 26 | void obmNewObject(); | ^~~~~~~~~~~~ Obm.c: In function 'ObmActivate': Obm.c:290:1: warning: old-style function definition [-Wold-style-definition] 290 | ObmActivate (obm) | ^~~~~~~~~~~ Obm.c:292:1: error: number of arguments doesn't match prototype 292 | { | ^ Obm.h:17:6: error: prototype declaration 17 | void ObmActivate (/* obm */); | ^~~~~~~~~~~ Obm.c:299:28: error: too many arguments to function 'obmFindObject'; expected 0, have 2 299 | if ((obj = obmFindObject (obm, "toplevel"))) | ^~~~~~~~~~~~~ ~~~ ObmP.h:507:18: note: declared here 507 | extern ObmObject obmFindObject(); | ^~~~~~~~~~~~~ Obm.c:300:21: error: too many arguments to function 'obmDisplay'; expected 0, have 2 300 | obmDisplay (obm, obj); | ^~~~~~~~~~ ~~~ ObmP.h:517:14: note: declared here 517 | extern void obmDisplay(), obmUndisplay(); | ^~~~~~~~~~ Obm.c:304:17: error: too many arguments to function 'obm_call_activate_callbacks'; expected 0, have 2 304 | obm_call_activate_callbacks (obm, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ Obm.c:94:13: note: declared here 94 | static void obm_call_activate_callbacks(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Obm.c:322:13: error: too many arguments to function 'ObmDeliverMsg'; expected 0, have 3 322 | ObmDeliverMsg (obm, "server", defaultUI); | ^~~~~~~~~~~~~ ~~~ Obm.h:22:5: note: declared here 22 | int ObmDeliverMsg (/* obm, object, message */); | ^~~~~~~~~~~~~ Obm.c:326:20: error: too many arguments to function 'obmFindObject'; expected 0, have 2 326 | if ((obj = obmFindObject (obm, "toplevel"))) | ^~~~~~~~~~~~~ ~~~ ObmP.h:507:18: note: declared here 507 | extern ObmObject obmFindObject(); | ^~~~~~~~~~~~~ Obm.c:327:13: error: too many arguments to function 'obmDisplay'; expected 0, have 2 327 | obmDisplay (obm, obj); | ^~~~~~~~~~ ~~~ ObmP.h:517:14: note: declared here 517 | extern void obmDisplay(), obmUndisplay(); | ^~~~~~~~~~ Obm.c:333:9: error: too many arguments to function 'obm_call_activate_callbacks'; expected 0, have 2 333 | obm_call_activate_callbacks (obm, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ Obm.c:94:13: note: declared here 94 | static void obm_call_activate_callbacks(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Obm.c: In function 'ObmDeactivate': Obm.c:344:1: warning: old-style function definition [-Wold-style-definition] 344 | ObmDeactivate (obm, unmap) | ^~~~~~~~~~~~~ Obm.c:347:1: error: number of arguments doesn't match prototype 347 | { | ^ Obm.h:18:6: error: prototype declaration 18 | void ObmDeactivate (/* obm, unmap */); | ^~~~~~~~~~~~~ Obm.c:361:9: error: too many arguments to function 'obm_call_activate_callbacks'; expected 0, have 2 361 | obm_call_activate_callbacks (obm, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ Obm.c:94:13: note: declared here 94 | static void obm_call_activate_callbacks(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Obm.c:364:22: error: too many arguments to function 'obmFindObject'; expected 0, have 2 364 | if ((obj = obmFindObject (obm, "toplevel"))) | ^~~~~~~~~~~~~ ~~~ ObmP.h:507:18: note: declared here 507 | extern ObmObject obmFindObject(); | ^~~~~~~~~~~~~ Obm.c:365:17: error: too many arguments to function 'obmUndisplay'; expected 0, have 2 365 | obmUndisplay (obm, obj); | ^~~~~~~~~~~~ ~~~ ObmP.h:517:28: note: declared here 517 | extern void obmDisplay(), obmUndisplay(); | ^~~~~~~~~~~~ Obm.c: In function 'obm_call_activate_callbacks': Obm.c:377:1: warning: old-style function definition [-Wold-style-definition] 377 | obm_call_activate_callbacks (obm, state) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Obm.c:388:18: error: too many arguments to function 'cb->u.fcn'; expected 0, have 3 388 | (*cb->u.fcn) (cb->client_data, obm->toplevel, state); | ~^~~~~~~~~~~ ~~~~~~~~~~~~~~~ ObmP.h:441:21: note: declared here 441 | ObmFunc fcn; | ^~~ Obm.c:406:25: error: too many arguments to function 'Tcl_GetErrorLine'; expected 0, have 1 406 | Tcl_GetErrorLine (obm->tcl), | ^~~~~~~~~~~~~~~~ ~~~~~~~~ ObmP.h:77:5: note: declared here 77 | int Tcl_GetErrorLine(); | ^~~~~~~~~~~~~~~~ Obm.c: In function 'ObmActivated': Obm.c:417:1: warning: old-style function definition [-Wold-style-definition] 417 | ObmActivated (obm) | ^~~~~~~~~~~~ Obm.c:419:1: error: number of arguments doesn't match prototype 419 | { | ^ Obm.h:19:5: error: prototype declaration 19 | int ObmActivated (/* obm */); | ^~~~~~~~~~~~ Obm.c: In function 'ObmStatus': Obm.c:427:1: warning: old-style function definition [-Wold-style-definition] 427 | ObmStatus (obm, app_name, app_class) | ^~~~~~~~~ Obm.c:431:1: error: number of arguments doesn't match prototype 431 | { | ^ Obm.h:20:5: error: prototype declaration 20 | int ObmStatus (/* obm, app_name, app_class */); | ^~~~~~~~~ Obm.c: In function 'ObmGetInterp': Obm.c:451:1: warning: old-style function definition [-Wold-style-definition] 451 | ObmGetInterp (obm) | ^~~~~~~~~~~~ Obm.c:453:1: error: number of arguments doesn't match prototype 453 | { | ^ Obm.h:21:11: error: prototype declaration 21 | XtPointer ObmGetInterp (/* obm, object */); | ^~~~~~~~~~~~ Obm.c: In function 'ObmDeliverMsg': Obm.c:461:1: warning: old-style function definition [-Wold-style-definition] 461 | ObmDeliverMsg (obm, object, message) | ^~~~~~~~~~~~~ Obm.c:465:1: error: number of arguments doesn't match prototype 465 | { | ^ Obm.h:22:5: error: prototype declaration 22 | int ObmDeliverMsg (/* obm, object, message */); | ^~~~~~~~~~~~~ Obm.c:484:20: error: too many arguments to function 'obmFindObject'; expected 0, have 2 484 | if ((obj = obmFindObject (obm, object))) { | ^~~~~~~~~~~~~ ~~~ ObmP.h:507:18: note: declared here 507 | extern ObmObject obmFindObject(); | ^~~~~~~~~~~~~ Obm.c:486:27: error: too many arguments to function 'evaluate'; expected 0, have 2 486 | status = (*evaluate)(obj, message); | ~^~~~~~~~~~ ~~~ Obm.c:490:33: error: too many arguments to function 'Tcl_GetErrorLine'; expected 0, have 1 490 | object, Tcl_GetErrorLine (obm->tcl), | ^~~~~~~~~~~~~~~~ ~~~~~~~~ ObmP.h:77:5: note: declared here 77 | int Tcl_GetErrorLine(); | ^~~~~~~~~~~~~~~~ Obm.c: In function 'ObmDeliverMsgFromFile': Obm.c:509:1: warning: old-style function definition [-Wold-style-definition] 509 | ObmDeliverMsgFromFile (obm, object, fname) | ^~~~~~~~~~~~~~~~~~~~~ Obm.c:513:1: error: number of arguments doesn't match prototype 513 | { | ^ Obm.h:23:5: error: prototype declaration 23 | int ObmDeliverMsgFromFile (/* obm, object, filename */); | ^~~~~~~~~~~~~~~~~~~~~ Obm.c:529:22: error: too many arguments to function 'ObmDeliverMsg'; expected 0, have 3 529 | status = ObmDeliverMsg (obm, object, message); | ^~~~~~~~~~~~~ ~~~ Obm.c:461:1: note: declared here 461 | ObmDeliverMsg (obm, object, message) | ^~~~~~~~~~~~~ Obm.c: In function 'ObmAddCallback': Obm.c:549:1: warning: old-style function definition [-Wold-style-definition] 549 | ObmAddCallback (obm, callback_type, fcn, client_data) | ^~~~~~~~~~~~~~ Obm.c:554:1: error: number of arguments doesn't match prototype 554 | { | ^ Obm.h:24:6: error: prototype declaration 24 | void ObmAddCallback (/* obm, fcn, callback_type, client_data */); | ^~~~~~~~~~~~~~ Obm.c:557:20: error: too many arguments to function 'obmAddCallback'; expected 0, have 1 557 | if (!(cb = obmAddCallback (&obm->callback_list))) | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ ObmP.h:510:21: note: declared here 510 | extern ObmCallback obmAddCallback(); | ^~~~~~~~~~~~~~ Obm.c: In function 'ObmRemoveCallback': Obm.c:570:1: warning: old-style function definition [-Wold-style-definition] 570 | ObmRemoveCallback (obm, callback) | ^~~~~~~~~~~~~~~~~ Obm.c:573:1: error: number of arguments doesn't match prototype 573 | { | ^ Obm.h:25:6: error: prototype declaration 25 | void ObmRemoveCallback (/* obm, callback_id */); | ^~~~~~~~~~~~~~~~~ Obm.c:574:9: error: too many arguments to function 'obmRemoveCallback'; expected 0, have 2 574 | obmRemoveCallback (&obm->callback_list, callback); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ ObmP.h:513:14: note: declared here 513 | extern void obmRemoveCallback(); | ^~~~~~~~~~~~~~~~~ Obm.c: In function 'obmFindObject': Obm.c:589:1: warning: old-style function definition [-Wold-style-definition] 589 | obmFindObject (obm, object) | ^~~~~~~~~~~~~ Obm.c:592:1: error: number of arguments doesn't match prototype 592 | { | ^ ObmP.h:507:18: error: prototype declaration 507 | extern ObmObject obmFindObject(); | ^~~~~~~~~~~~~ Obm.c:627:17: error: too many arguments to function 'obm_nameToObjectList'; expected 0, have 5 627 | if (obm_nameToObjectList (obm, name, pobjs, &nobjs, objs) == 0) | ^~~~~~~~~~~~~~~~~~~~ ~~~ ObmP.h:518:12: note: declared here 518 | extern int obm_nameToObjectList (); | ^~~~~~~~~~~~~~~~~~~~ Obm.c: In function 'obm_nameToObjectList': Obm.c:646:1: warning: old-style function definition [-Wold-style-definition] 646 | obm_nameToObjectList (obm, object, pobjs, nobjs, objs) | ^~~~~~~~~~~~~~~~~~~~ Obm.c:652:1: error: number of arguments doesn't match prototype 652 | { | ^ ObmP.h:518:12: error: prototype declaration 518 | extern int obm_nameToObjectList (); | ^~~~~~~~~~~~~~~~~~~~ Obm.c: In function 'obmNewObject': Obm.c:694:1: warning: old-style function definition [-Wold-style-definition] 694 | obmNewObject (obm, name, class, parent, args, nargs) | ^~~~~~~~~~~~ Obm.c:701:1: error: number of arguments doesn't match prototype 701 | { | ^ Obm.h:26:6: error: prototype declaration 26 | void obmNewObject(); | ^~~~~~~~~~~~ Obm.c:711:16: error: too many arguments to function 'obmFindObject'; expected 0, have 2 711 | pobj = obmFindObject (obm, parent); | ^~~~~~~~~~~~~ ~~~ Obm.c:589:1: note: declared here 589 | obmFindObject (obm, object) | ^~~~~~~~~~~~~ Obm.c:716:26: error: too many arguments to function 'obmGetClassrec'; expected 0, have 1 716 | if (!(classrec = obmGetClassrec (class))) { | ^~~~~~~~~~~~~~ ~~~~~ ObmP.h:508:21: note: declared here 508 | extern ObjClassRec obmGetClassrec(); | ^~~~~~~~~~~~~~ Obm.c:724:19: error: too many arguments to function 'classrec->Create'; expected 0, have 6 724 | newobj = (*(classrec->Create)) (obm, | ~^~~~~~~~~~~~~~~~~~~~ ~~~ ObmP.h:208:23: note: declared here 208 | ObmCreateFunc Create; /* create proc */ | ^~~~~~ Obm.c:760:25: error: too many arguments to function 'obmFindObject'; expected 0, have 2 760 | if ((pobj = obmFindObject (obm, parent)) == NULL) { | ^~~~~~~~~~~~~ ~~~ Obm.c:589:1: note: declared here 589 | obmFindObject (obm, object) | ^~~~~~~~~~~~~ Obm.c: In function 'obmDestroyObject': Obm.c:781:1: warning: old-style function definition [-Wold-style-definition] 781 | obmDestroyObject (obm, object) | ^~~~~~~~~~~~~~~~ Obm.c:784:1: error: number of arguments doesn't match prototype 784 | { | ^ ObmP.h:515:14: error: prototype declaration 515 | extern void obmDestroyObject(); | ^~~~~~~~~~~~~~~~ Obm.c:814:10: error: too many arguments to function 'object->core.classrec->Destroy'; expected 0, have 1 814 | (*(object->core.classrec->Destroy)) (object); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ ObmP.h:209:19: note: declared here 209 | ObmMethod Destroy; /* destroy proc */ | ^~~~~~~ Obm.c:822:17: error: too many arguments to function 'obmDestroyObject'; expected 0, have 2 822 | obmDestroyObject (obm, cp->children[0]); | ^~~~~~~~~~~~~~~~ ~~~ Obm.c:781:1: note: declared here 781 | obmDestroyObject (obm, object) | ^~~~~~~~~~~~~~~~ Obm.c:875:10: error: too many arguments to function 'object->core.classrec->Destroy'; expected 0, have 1 875 | (*(object->core.classrec->Destroy)) (object); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ ObmP.h:209:19: note: declared here 209 | ObmMethod Destroy; /* destroy proc */ | ^~~~~~~ Obm.c: In function 'obmDisplay': Obm.c:884:1: warning: old-style function definition [-Wold-style-definition] 884 | obmDisplay (obm, obj) | ^~~~~~~~~~ Obm.c:887:1: error: number of arguments doesn't match prototype 887 | { | ^ ObmP.h:517:14: error: prototype declaration 517 | extern void obmDisplay(), obmUndisplay(); | ^~~~~~~~~~ Obm.c:888:29: error: too many arguments to function 'widgetGetPointer'; expected 0, have 1 888 | register Widget w = widgetGetPointer (obj); | ^~~~~~~~~~~~~~~~ ~~~ ObmP.h:509:16: note: declared here 509 | extern Widget widgetGetPointer(); | ^~~~~~~~~~~~~~~~ Obm.c:896:17: error: too many arguments to function 'obmDisplay'; expected 0, have 2 896 | obmDisplay (obm, child); | ^~~~~~~~~~ ~~~ Obm.c:884:1: note: declared here 884 | obmDisplay (obm, obj) | ^~~~~~~~~~ Obm.c: In function 'obmUndisplay': Obm.c:913:1: warning: old-style function definition [-Wold-style-definition] 913 | obmUndisplay (obm, obj) | ^~~~~~~~~~~~ Obm.c:916:1: error: number of arguments doesn't match prototype 916 | { | ^ ObmP.h:517:28: error: prototype declaration 517 | extern void obmDisplay(), obmUndisplay(); | ^~~~~~~~~~~~ Obm.c:919:29: error: too many arguments to function 'widgetGetPointer'; expected 0, have 1 919 | register Widget w = widgetGetPointer (obj); | ^~~~~~~~~~~~~~~~ ~~~ ObmP.h:509:16: note: declared here 509 | extern Widget widgetGetPointer(); | ^~~~~~~~~~~~~~~~ Obm.c:926:17: error: too many arguments to function 'obmUndisplay'; expected 0, have 2 926 | obmUndisplay (obm, child); | ^~~~~~~~~~~~ ~~~ Obm.c:913:1: note: declared here 913 | obmUndisplay (obm, obj) | ^~~~~~~~~~~~ Obm.c:931:22: error: too many arguments to function 'get_geometry'; expected 0, have 4 931 | if ((s = get_geometry (obm->display, obm->screen, XtWindow(w), 1))) | ^~~~~~~~~~~~ ~~~~~~~~~~~~ ObmP.h:525:15: note: declared here 525 | extern char *get_geometry(); | ^~~~~~~~~~~~ Obm.c: In function 'obmGetClassrec': Obm.c:950:1: warning: old-style function definition [-Wold-style-definition] 950 | obmGetClassrec (classname) | ^~~~~~~~~~~~~~ Obm.c:952:1: error: number of arguments doesn't match prototype 952 | { | ^ ObmP.h:508:21: error: prototype declaration 508 | extern ObjClassRec obmGetClassrec(); | ^~~~~~~~~~~~~~ Obm.c: In function 'obmGenericClassDestroy': Obm.c:969:1: warning: old-style function definition [-Wold-style-definition] 969 | obmGenericClassDestroy (obm, classrec) | ^~~~~~~~~~~~~~~~~~~~~~ Obm.c:972:1: error: number of arguments doesn't match prototype 972 | { | ^ ObmP.h:516:14: error: prototype declaration 516 | extern void obmGenericClassDestroy(); | ^~~~~~~~~~~~~~~~~~~~~~ Obm.c: In function 'obmClass': Obm.c:979:1: warning: old-style function definition [-Wold-style-definition] 979 | obmClass (classrec, flag1, flag2) | ^~~~~~~~ Obm.c:982:1: error: number of arguments doesn't match prototype 982 | { | ^ ObmP.h:506:12: error: prototype declaration 506 | extern int obmClass(); | ^~~~~~~~ Obm.c: In function 'obmAddCallback': Obm.c:990:1: warning: old-style function definition [-Wold-style-definition] 990 | obmAddCallback (callback_list) | ^~~~~~~~~~~~~~ Obm.c:992:1: error: number of arguments doesn't match prototype 992 | { | ^ ObmP.h:510:21: error: prototype declaration 510 | extern ObmCallback obmAddCallback(); | ^~~~~~~~~~~~~~ Obm.c: In function 'obmRemoveCallback': Obm.c:1014:1: warning: old-style function definition [-Wold-style-definition] 1014 | obmRemoveCallback (callback_list, callback) | ^~~~~~~~~~~~~~~~~ Obm.c:1017:1: error: number of arguments doesn't match prototype 1017 | { | ^ ObmP.h:513:14: error: prototype declaration 513 | extern void obmRemoveCallback(); | ^~~~~~~~~~~~~~~~~ Obm.c: In function 'obmClientCommand': Obm.c:1044:1: warning: old-style function definition [-Wold-style-definition] 1044 | obmClientCommand (tcl, commmand) | ^~~~~~~~~~~~~~~~ Obm.c:1047:1: error: number of arguments doesn't match prototype 1047 | { | ^ ObmP.h:505:5: error: prototype declaration 505 | int obmClientCommand (); | ^~~~~~~~~~~~~~~~ make[1]: *** [: Obm.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/x11iraf-2.1-build/x11iraf-2.1/obm' make: *** [Makefile:11: obm/libobm.a] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.TdgzPa (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.TdgzPa (%build) I: [iurt_root_command] ERROR: chroot