D: [iurt_root_command] chroot warning: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/playmidi-2.5-22.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.eiGxTC + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf playmidi-2.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/playmidi-2.5.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd playmidi-2.4 + rm -rf /home/pterjan/rpmbuild/BUILD/playmidi-2.4-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/playmidi-2.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (playmidi-2.3-hertz.patch):' Patch #0 (playmidi-2.3-hertz.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .consthertz --fuzz=0 patching file playevents.c Hunk #2 succeeded at 153 (offset -1 lines). + echo 'Patch #1 (playmidi-2.3-awe2.patch):' Patch #1 (playmidi-2.3-awe2.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .awe2 --fuzz=0 patching file playmidi.h-dist + echo 'Patch #2 (playmidi-2.4-lib64.patch):' Patch #2 (playmidi-2.4-lib64.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .lib64 --fuzz=0 patching file Makefile + echo 'Patch #3 (playmidi-2.4-midimap.patch):' Patch #3 (playmidi-2.4-midimap.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .midimap --fuzz=0 patching file playmidi.h-dist + echo 'Patch #4 (playmidi-2.4-CAN-2005-0020.patch):' Patch #4 (playmidi-2.4-CAN-2005-0020.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .can-2005-0020 --fuzz=0 patching file playmidi.c + echo 'Patch #5 (playmidi-2.5-fix-str-fmt.patch):' Patch #5 (playmidi-2.5-fix-str-fmt.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .strfmt --fuzz=0 patching file io_xaw.c + echo 'Patch #6 (playmidi-2.5-fix-overlinking.patch):' Patch #6 (playmidi-2.5-fix-overlinking.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .overlinking --fuzz=0 patching file Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2XMVkm + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd playmidi-2.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ./Configure Playmidi Quick Config Utility, Copyright (C)1996 Nathan I. Laredo This is free software with ABSOLUTELY NO WARRANTY. For details, please see the file COPYING included with the Playmidi distribution. What type of device do you want to make the default? 1. External midi synth, Ensoniq Soundscape, TB Maui, waveblaster cards 2. Yamaha 2-op FM 3. Yamaha 4-op FM 4. Gravis Ultrasound 5. SB AWE32 Synth (default = 1) --> Now creating playmidi.h with your defaults...Done. + PATH=.:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin + /usr/bin/make 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' LIB=lib64 playmidi Bad or missing .depend running 'make depend clean' /usr/bin/make depend clean make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/playmidi-2.4' for i in *.c; do cc -E -M -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include/ncurses -I/usr/X11R6/include -DNARROWPROTO -I/usr/local/include -DVOXWARE_CONTROLLER_7_WORKING -I/usr/lib/oss/include/sys $i; done >.depend io_gtk.c:19:10: fatal error: gtk/gtk.h: No such file or directory 19 | #include | ^~~~~~~~~~~ compilation terminated. io_svgalib.c:17:10: fatal error: vga.h: No such file or directory 17 | #include | ^~~~~~~ compilation terminated. rm -f *.o playmidi splaymidi xplaymidi a.out toy seq2mid beat make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/playmidi-2.4' Successful. Trying to make again cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o playmidi.o playmidi.c playmidi.c: In function 'main': playmidi.c:468:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 468 | fgets(temp, sizeof(temp), mfd); /* skip 1st line */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ playmidi.c:469:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 469 | fgets(temp, sizeof(temp), mfd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ playmidi.c:481:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 481 | fread(filebuf, 1, info.st_size, mfd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o readmidi.o readmidi.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o playevents.o playevents.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o patchload.o patchload.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o emumidi.o emumidi.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -I/usr/include/ncurses -c io_ncurses.c -o io_ncurses.o io_ncurses.c: In function 'showevent': io_ncurses.c:257:26: error: type defaults to 'int' in declaration of 'val' [-Wimplicit-int] 257 | register val = (VEL << 7) | NOTE; | ^~~ make: *** [Makefile:71: io_ncurses.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.2XMVkm (%build) RPM build warnings: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.2XMVkm (%build) I: [iurt_root_command] ERROR: chroot