D: [iurt_root_command] chroot warning: line 20: It's not recommended to have unversioned Obsoletes: Obsoletes: Ri-li warning: %make is deprecated, use %make_build instead warning: Macro expanded in comment on line 142: %{_gamesdatadir}/%{oname}/*.ebuild Installing /home/pterjan/rpmbuild/SRPMS/ri-li-2.0.1-15.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3x8KDt + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf Ri-li-2.0.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/Ri-li-2.0.1.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd Ri-li-2.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (ri-li_makefile.in.patch):' Patch #0 (ri-li_makefile.in.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile.in + echo 'Patch #1 (ri-li_makefile.am.patch):' Patch #1 (ri-li_makefile.am.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile.am + echo 'Patch #2 (ri-li-2.0.1-gcc43.patch):' Patch #2 (ri-li-2.0.1-gcc43.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file src/audio.cc patching file src/ecran.cc patching file src/editeur.cc patching file src/jeux.cc patching file src/loco.cc patching file src/main.cc patching file src/menu.cc patching file src/mouse.cc patching file src/sprite.cc patching file src/tableau.cc patching file src/utils.cc + dos2unix README COPYING AUTHORS NEWS COPYING.Music dos2unix: converting file README to Unix format... dos2unix: converting file COPYING to Unix format... dos2unix: converting file AUTHORS to Unix format... dos2unix: converting file NEWS to Unix format... dos2unix: converting file COPYING.Music to Unix format... + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ujOnDE + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd Ri-li-2.0.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -fi autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:5: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from... configure.in:5: the top level configure.in:8: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.in:8: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.in:8: the top level configure.in:25: warning: The macro `AC_HEADER_STDC' is obsolete. configure.in:25: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.in:25: the top level autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:5: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:5: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:13: installing './compile' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name 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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-mageia-linux-gnu-g++... no checking for x86_64-mageia-linux-gnu-c++... no checking for x86_64-mageia-linux-gnu-gpp... no checking for x86_64-mageia-linux-gnu-aCC... no checking for x86_64-mageia-linux-gnu-CC... no checking for x86_64-mageia-linux-gnu-cxx... no checking for x86_64-mageia-linux-gnu-cc++... no checking for x86_64-mageia-linux-gnu-cl.exe... no checking for x86_64-mageia-linux-gnu-FCC... no checking for x86_64-mageia-linux-gnu-KCC... no checking for x86_64-mageia-linux-gnu-RCC... no checking for x86_64-mageia-linux-gnu-xlC_r... no checking for x86_64-mageia-linux-gnu-xlC... no checking for x86_64-mageia-linux-gnu-clang++... no checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking whether make supports the include directive... yes (GNU style) checking dependency style of g++... none checking for x86_64-mageia-linux-gnu-gcc... no checking for gcc... gcc checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for SDL_Init in -lSDL... yes checking for Mix_OpenAudio in -lSDL_mixer... yes checking for pthread_create in -lpthread... yes checking for sqrt in -lm... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for math.h... yes checking for SDL/SDL.h... yes checking for pthread.h... yes checking for SDL/SDL_mixer.h... yes checking for sqrt... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating data/Makefile config.status: creating Sounds/Makefile config.status: creating gentoo/Makefile config.status: creating config.h config.status: executing depfiles commands + /usr/bin/make -O -j16 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o tableau.o tableau.cc tableau.cc: In member function 'bool Tableau::Save()': tableau.cc:90:9: error: ordered comparison of pointer with integer zero ('unsigned char*' and 'int') 90 | if(Buf<=0) return false; | ~~~^~~ make[2]: *** [Makefile:385: tableau.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o mouse.o mouse.cc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o main.o main.cc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o audio.o audio.cc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o utils.o utils.cc utils.cc: In function 'long int ChargeFichier(const char*, unsigned char*&)': utils.cc:118:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 118 | fread(Po,1,(unsigned int)Compt,file); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o sprite.o sprite.cc sprite.cc:42:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 42 | static char* OrdreTexte="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-!?*+<>%$()&;"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sprite.cc:43:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | static char* OrdreTexte2="abcdefghijklmnopqrstuvwxyz0123456789,_|?*+<>%$[]&;"; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sprite.cc: In member function 'bool Sprite::Load(unsigned char*, long int&)': sprite.cc:354:16: error: ordered comparison of pointer with integer zero ('SDL_Surface*' and 'long int') 354 | if(Image[i]<=NULL) { | ^ sprite.cc: In member function 'bool Sprite::Nouveau(int, int)': sprite.cc:488:14: error: ordered comparison of pointer with integer zero ('SDL_Surface*' and 'long int') 488 | if(Image[0]<=NULL) { | ^ make[2]: *** [Makefile:385: sprite.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o ecran.o ecran.cc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o editeur.o editeur.cc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o jeux.o jeux.cc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o loco.o loco.cc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' g++ -DHAVE_CONFIG_H -I. -I.. -DDATA_DIR="\"/usr/share/games/Ri-li\"" -Wno-deprecated -DLINUX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o menu.o menu.cc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Ri-li-2.0.1/src' make[1]: *** [Makefile:410: all-recursive] Error 1 make: *** [Makefile:330: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ujOnDE (%build) RPM build warnings: line 20: It's not recommended to have unversioned Obsoletes: Obsoletes: Ri-li %make is deprecated, use %make_build instead Macro expanded in comment on line 142: %{_gamesdatadir}/%{oname}/*.ebuild RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ujOnDE (%build) I: [iurt_root_command] ERROR: chroot