D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/iraf-2.17-3.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tVXjb4 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf iraf-2.17 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/iraf-2.17.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd iraf-2.17 + rm -rf /home/pterjan/rpmbuild/BUILD/iraf-2.17-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/iraf-2.17-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Use-system-libraries-when-possible.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Create-a-global-login.cl-in-etc.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Adjust-version-number-and-motd.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Remove-architecture-dependency-in-the-names-of-bin-subdir.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Propagate-CFLAGS-and-debug-flag-to-xc.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Skip-source-dependent-tests.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Write-default-iraf-host-tmp-variables-back-to-environment.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Fix-defterm-imdif-and-cachedir-in-mkiraf.sh.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Ensure-reproducible-build.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.XkSBsW + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd iraf-2.17 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export CC=gcc + CC=gcc ++ pwd + export iraf=/home/pterjan/rpmbuild/BUILD/iraf-2.17/ + iraf=/home/pterjan/rpmbuild/BUILD/iraf-2.17/ + export host=/home/pterjan/rpmbuild/BUILD/iraf-2.17/unix/ + host=/home/pterjan/rpmbuild/BUILD/iraf-2.17/unix/ + export BUILD_TMP=/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild + BUILD_TMP=/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild + export HOME=/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild + HOME=/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild ++ ./unix/hlib/irafarch.sh + export IRAFARCH=linux64 + IRAFARCH=linux64 + mkdir -p /home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild + mkdir -p /home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/bin + mkdir -p /home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/lib + sed s/__VERSION__/2.17/ -i unix/hlib/zzsetenv.def ++ date -uR + sed 's/__DATE__/Sun, 31 Mar 2024 15:48:54 +0000/' -i unix/hlib/zzsetenv.def + ./install --term xterm --bindir /home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/bin --cache /home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/cache --imdir /home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/imdir Initializing /home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/.iraf directory .....   ==================================== IRAF v2.16 Installation ==================================== (B Welcome to the IRAF installation script. This script will first prompt you for several needed path names. Once the installation is complete, you will be allowed to do some minimal system configuration. For each prompt: hit (B to accept the default value, 'q'(B to quit, or 'help'(B or '?'(B to print an explanation of the prompt. ======================================================================== ===================== Query for System Settings ====================== ======================================================================== (B ======================================================================== ===================== Verifying System Settings ====================== ======================================================================== (B Hostname = (Bmageia OS version = (BLinux 6.4.7-server-3.mga9 Architecture = (Blinux64 HSI arch = (Blinux64 Old iraf root = (B/usr/lib/iraf New iraf root = (B/home/pterjan/rpmbuild/BUILD/iraf-2.17 Old imdir = (B${HOME}/.iraf/imdir New imdir = (B/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/imdir Old cache = (B${HOME}/.iraf/cache New cache = (B/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/cache Local bin dir = (B/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/bin Proceed with installation? (B (yes): ======================================================================== ========================= Begin Installation ========================= ======================================================================== (B Checking for existing commands directory... [  OK (B ]  Editing Paths ------------- (BEditing the user login/rc files ... [  OK (B ] Editing iraf/imdir/cache paths into system files ... [  OK (B ] Creating root imdir at $HOME/.iraf/imdir ... [  OK (B ] Creating root cache at $HOME/.iraf/cach ... [  OK (B ]  Creating File Links ------------------- (BCreating symlink ... [  OK (B ] Marking system architecture ... [  OK (B ] Creating iraf command links in local bin dir ... [  OK (B ] [  OK (B ]  Creating Graphics Device Files ------------------------------ (BCreating $HOME/.imtoolrc link ... [  OK (B ] [  OK (B ]  Initializing Login Files ------------------------ (BCreating global login.cl and uparm directory .... [ FAIL(B ] ======================================================================== Congratulations! (BIRAF has been successfully installed on this system. ======================================================================== (B To begin using IRAF you can simply type % source ~/.login (B % cl (B From any directory to use the global login files created in the /home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/.iraf (Bdirectory. If you wish to have a login.cl/uparm that is specific to a particular directory, you will need to type % mkiraf(B # create a login.cl file (needed once) % cl (B # start IRAF Additional user information can be found at the iraf community web site:  https://iraf-community.github.io (B Please create an issue on https://github.com/iraf-community/iraf/issues in case of problems. ======================================================================== ================ Installation Completed With No Errors =============== ======================================================================== (B + cp unix/f2c/libf2c/f2c.h include/ + ./util/mkarch linux64 Archs='linux64' Making architecture: linux64 Clean 'linux64' host directories .... Clean src directories .... Clean 'linux64' bin directories .... Cleaning spool files .... + export PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin:/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/bin + PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin:/home/pterjan/rpmbuild/BUILD/iraf-2.17//irafbuild/bin + bin=/home/pterjan/rpmbuild/BUILD/iraf-2.17/bin/ + noaobin=/home/pterjan/rpmbuild/BUILD/iraf-2.17//noao/bin/ + /usr/bin/make sysgen Building the IRAF v2.16 software tree Sun Mar 31 15:48:55 UTC 2024 (util/mksysgen) Clean 'linux64' host directories .... Clean src directories .... Clean 'linux64' bin directories .... Cleaning spool files .... + set -e + sh -x setarch.sh ++ ls -d bin + '[' bin = bin ']' + rm -rf bin + ln -s bin.linux64 bin + echo '----------------------- OS -----------------------------' ----------------------- OS ----------------------------- + echo + + + echo + + + cd os + sh -x mkpkg.sh + set -e + echo '--------------------- OS ----------------------' --------------------- OS ---------------------- + gcc -c -I/home/pterjan/rpmbuild/BUILD/iraf-2.17/include -DNOVOS -Wall zsvjmp.S gmttolst.c irafpath.c prwait.c zalloc.c zawset.c zcall.c zdojmp.c zfacss.c zfaloc.c zfchdr.c zfdele.c zfgcwd.c zfinfo.c zfiobf.c zfioks.c zfiolp.c zfiomt.c zfiond.c zfiopl.c zfiopr.c zfiosf.c zfiotx.c zfioty.c zflink.c zfmkcp.c zfmkdr.c zfnbrk.c zfpath.c zfpoll.c zfprot.c zfrmdr.c zfrnam.c zfsubd.c zfunc.c zfutim.c zfxdir.c zgcmdl.c zghost.c zglobl.c zgmtco.c zgtenv.c zgtime.c zgtpid.c zintpr.c zlocpr.c zlocva.c zmain.c zmaloc.c zmfree.c zopdir.c zopdpr.c zoscmd.c zpanic.c zraloc.c zshlib.c zttyio.c zwmsec.c zxwhen.c zzdbg.c zzepro.c zzexit.c zzpstr.c zzsetk.c zzstrt.c alloc.c getproc.c zfiobf.c: In function 'vm_connect': zfiobf.c:772:17: error: passing argument 1 of 'zopnnd_' from incompatible pointer type [-Wincompatible-pointer-types] 772 | ZOPNND (osfn, &acmode, &fd); | ^~~~ | | | char * zfiobf.c:759:35: note: expected 'short int *' but argument is of type 'char *' 759 | extern int ZOPNND(PKCHAR *pk_osfn, XINT *mode, XINT *chan); zfioks.c: In function 'ks_getlogin': zfioks.c:1530:42: warning: expression does not compute the number of elements in this array; element type is 'struct __jmp_buf_tag', not 'int' [-Wsizeof-array-div] 1530 | for (i=0; i < sizeof(jmpbuf)/sizeof(int); i++) | ^ zfioks.c:1530:42: note: add parentheses around the second 'sizeof' to silence this warning zfioks.c:1525:21: note: array 'jmpbuf' declared here 1525 | jmp_buf jmpbuf; | ^~~~~~ zfioks.c: In function 'ks_sysname': zfioks.c:1624:17: error: passing argument 1 of 'zgtenv_' from incompatible pointer type [-Wincompatible-pointer-types] 1624 | ZGTENV ("iraf", irafdir, &x_maxch, &x_nchars); | ^~~~~~ | | | char * zfioks.c:1621:37: note: expected 'short int *' but argument is of type 'char *' 1621 | extern int ZGTENV(PKCHAR *envvar, PKCHAR *outstr, XINT *maxch, XINT *status); zgmtco.c: In function 'zgmtco_': zgmtco.c:22:30: warning: unused variable 'ltime' [-Wunused-variable] 22 | time_t gmt_to_lst(), ltime; | ^~~~~ zgtenv.c: In function '_ev_loadcache': zgtenv.c:106:31: warning: unused variable 'hpath' [-Wunused-variable] 106 | static char *home, hpath[SZ_PATHNAME+1], *rpath, *lpath; | ^~~~~ zgtenv.c:106:25: warning: unused variable 'home' [-Wunused-variable] 106 | static char *home, hpath[SZ_PATHNAME+1], *rpath, *lpath; | ^~~~ In file included from /home/pterjan/rpmbuild/BUILD/iraf-2.17/include/iraf.h:98, from zmain.c:18: zmain.c: In function 'main': /home/pterjan/rpmbuild/BUILD/iraf-2.17/include/iraf/knames.h:111:25: error: passing argument 1 of 'zlocpr_' from incompatible pointer type [-Wincompatible-pointer-types] 111 | #define ZGETTY zgetty_ | ^~~~~~~ | | | int (*)(long int *, short int *, long int *, long int *) zmain.c:99:17: note: in expansion of macro 'ZGETTY' 99 | ZLOCPR (ZGETTY, &driver); | ^~~~~~ zmain.c:71:33: note: expected 'PFI' {aka 'long int (*)()'} but argument is of type 'int (*)(long int *, short int *, long int *, long int *)' 71 | extern int ZLOCPR(PFI proc, XINT *o_epa ); | ~~~~^~~~ /home/pterjan/rpmbuild/BUILD/iraf-2.17/include/iraf/knames.h:29:25: error: passing argument 1 of 'zlocpr_' from incompatible pointer type [-Wincompatible-pointer-types] 29 | #define ZARDPR zardpr_ | ^~~~~~~ | | | int (*)(long int *, short int *, long int *, long int *) zmain.c:128:25: note: in expansion of macro 'ZARDPR' 128 | ZLOCPR (ZARDPR, &driver); | ^~~~~~ zmain.c:71:33: note: expected 'PFI' {aka 'long int (*)()'} but argument is of type 'int (*)(long int *, short int *, long int *, long int *)' 71 | extern int ZLOCPR(PFI proc, XINT *o_epa ); | ~~~~^~~~ /home/pterjan/rpmbuild/BUILD/iraf-2.17/include/iraf/knames.h:110:25: error: passing argument 1 of 'zlocpr_' from incompatible pointer type [-Wincompatible-pointer-types] 110 | #define ZGETTX zgettx_ | ^~~~~~~ | | | int (*)(long int *, short int *, long int *, long int *) zmain.c:148:25: note: in expansion of macro 'ZGETTX' 148 | ZLOCPR (ZGETTX, &driver); | ^~~~~~ zmain.c:71:33: note: expected 'PFI' {aka 'long int (*)()'} but argument is of type 'int (*)(long int *, short int *, long int *, long int *)' 71 | extern int ZLOCPR(PFI proc, XINT *o_epa ); | ~~~~^~~~ zmain.c:197:41: error: passing argument 8 of 'irafmn_' from incompatible pointer type [-Wincompatible-pointer-types] 197 | &driver, &devtype, &prtype, osfn_bkgfile, &jobcode, SYSRUK,ONENTRY); | ^~~~~~~~~~~~ | | | char * zmain.c:73:136: note: expected 'short int *' but argument is of type 'char *' 73 | extern int IRAF_MAIN(XCHAR *acmd, XINT *ainchn, XINT *aoutcn, XINT *aerrcn, XINT *adrivr, XINT *adevte, XINT *prtype, XCHAR *bkgfie, XINT *jobcoe, zopdir.c: In function 'zopdir_': zopdir.c:111:18: error: passing argument 1 of 'd_qsort' from incompatible pointer type [-Wincompatible-pointer-types] 111 | d_qsort (soff, nentries, sizeof(int), d_compar); | ^~~~ | | | int * zopdir.c:41:28: note: expected 'char *' but argument is of type 'int *' 41 | static void d_qsort(char *base, int n, int size, int (*compar) (char *a, char *b)); | ~~~~~~^~~~ getproc.c: In function 'uid_executing': getproc.c:24:36: warning: '%s' directive writing up to 255 bytes into a region of size 250 [-Wformat-overflow=] 24 | sprintf (fname, "/proc/%s", direntp->d_name); | ^~ getproc.c:24:13: note: 'sprintf' output between 7 and 262 bytes into a destination of size 256 24 | sprintf (fname, "/proc/%s", direntp->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:17: sysgen] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.XkSBsW (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.XkSBsW (%build) I: [iurt_root_command] ERROR: chroot