D: [iurt_root_command] chroot warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/heroes-0.21-21.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3Q1UIC + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf heroes-0.21 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/heroes-0.21.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd heroes-0.21 + rm -rf /home/pterjan/rpmbuild/BUILD/heroes-0.21-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/heroes-0.21-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /home/pterjan/rpmbuild/BUILD + cd heroes-0.21 + rm -rf /home/pterjan/rpmbuild/BUILD/heroes-0.21-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/heroes-0.21-SPECPARTS + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/heroes-data-1.5.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /home/pterjan/rpmbuild/BUILD + cd heroes-0.21 + rm -rf /home/pterjan/rpmbuild/BUILD/heroes-0.21-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/heroes-0.21-SPECPARTS + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/heroes-sound-tracks-1.0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /home/pterjan/rpmbuild/BUILD + cd heroes-0.21 + rm -rf /home/pterjan/rpmbuild/BUILD/heroes-0.21-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/heroes-0.21-SPECPARTS + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/heroes-sound-effects-1.0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (heroes-0.21-debian-fixes.patch.bz2):' Patch #0 (heroes-0.21-debian-fixes.patch.bz2): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/heroes-0.21-debian-fixes.patch.bz2 patching file ChangeLog patching file src/const.c patching file src/const.h patching file src/heroes.c patching file src/media/sdl/joystick.c patching file src/media/video.h patching file src/menus.c + echo 'Patch #1 (heroes-0.21-fix-build-gcc4.patch.bz2):' Patch #1 (heroes-0.21-fix-build-gcc4.patch.bz2): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/heroes-0.21-fix-build-gcc4.patch.bz2 patching file src/hedlite.c + cat + cat + tar xjfO /home/pterjan/rpmbuild/SOURCES/mansupfr.tar.bz2 pagesdeman/man6/heroes.6 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.QKnLNo + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd heroes-0.21 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fcommon -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=2 -fcommon -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=2 -fcommon -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=2 -fcommon -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 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --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' + 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 + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./tools/config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./tools/config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./tools/config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./tools/config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./tools/config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./tools/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 --bindir=/usr/games --datadir=/usr/share/games --disable-debug --without-ggi --without-gii --with-sdl checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets ${MAKE}... yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking for x86_64-mageia-linux-gnu-gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for style of include used by make... fgrep: warning: fgrep is obsolescent; using grep -F GNU checking dependency style of gcc... none checking for strerror in -lcposix... no checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... egrep: warning: egrep is obsolescent; using grep -E egrep: warning: egrep is obsolescent; using grep -E gcc -E egrep: warning: egrep is obsolescent; using grep -E egrep: warning: egrep is obsolescent; using grep -E checking for gawk... (cached) gawk checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking whether ln -s works... yes checking for gperf... no checking for sin in -lm... yes checking for ANSI C header files... egrep: warning: egrep is obsolescent; using grep -E no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for sdl-config... /usr/bin/sdl-config checking for sdl - version >= 1.0.1... yes checking for SDL_Init... yes checking for SDL_EnableKeyRepeat... yes checking where SDL_keysym.h is located... /usr/include/SDL/SDL_keysym.h checking for allegro-config... no checking for allegro - version >= 3.9.33... no checking for SDL_JoystickOpen... yes checking for Mix_OpenAudio in -lSDL_mixer... yes checking SDL_mixer.h usability... yes checking SDL_mixer.h presence... egrep: warning: egrep is obsolescent; using grep -E yes checking for SDL_mixer.h... yes checking for libmikmod-config... /usr/bin/libmikmod-config checking for LibMikMod - version >= 3.1.7... yes checking for MikMod_Init... yes configure: Selected video-keyboard-mouse library: SDL 1.2.68 configure: Selected sound library: SDL_mixer configure: Selected joystick library: SDL 1.2.68 configure: Selected startup library: SDL_main configure: error: === Compiled programs no longer run whith this setup. Most usually this means one of the library checked for above is not correctly installed (for example it can depens over some other uninstalled library, or been installed in a location which is not looked at by your system). You might want to check the error messages in the file 'config.log'. If you believe this is a bug in Heroes, be sure to send the file 'config.log' with your report to . error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.QKnLNo (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.QKnLNo (%build) I: [iurt_root_command] ERROR: chroot