D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/moleinvasion-0.4-11.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.D0dEzE + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf moleinvasion-0.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/MoleInvasion-0.4.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd moleinvasion-0.4 + rm -rf /home/pterjan/rpmbuild/BUILD/moleinvasion-0.4-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/moleinvasion-0.4-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/moleinvasions-fix-build.diff + /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.lbD5JH + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd moleinvasion-0.4 + '[' 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 + make -C src make: Entering directory '/home/pterjan/rpmbuild/BUILD/moleinvasion-0.4/src' gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o graphics.o graphics.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o font.o font.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o list.o list.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o sprite.o sprite.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o events.o events.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o editor_texts.o editor_texts.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o Splayer.o Splayer.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o Sother.o Sother.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o background.o background.c background.c: In function 'readAllBacks': background.c:148:62: warning: '_' directive output may be truncated writing 1 byte into a region of size between 0 and 254 [-Wformat-truncation=] 148 | { snprintf(buffer,sizeof(buffer),"%s/%s_%d.png",dir,name,seq); | ^ background.c:148:56: note: directive argument in the range [0, 255] 148 | { snprintf(buffer,sizeof(buffer),"%s/%s_%d.png",dir,name,seq); | ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from graphics.h:11, from sprite.h:11, from background.h:11, from background.c:9: In function 'snprintf', inlined from 'readAllBacks' at background.c:148:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 8 or more bytes (assuming 264) into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o video.o video.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o tool.o tool.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o mixer.o mixer.c mixer.c: In function 'giveRandomFile': mixer.c:47:64: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=] 47 | snprintf(buff,sizeof(buff),"%s/%s",dir,myfile->d_name); | ^~ In file included from /usr/include/stdio.h:980, from mixer.h:11, from mixer.c:9: In function 'snprintf', inlined from 'giveRandomFile' at mixer.c:47:5: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o level_file.o level_file.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o level.o level.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o worldmap.o worldmap.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o edit_keys.o edit_keys.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o menu.o menu.c gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o MoleInvasion.o MoleInvasion.c MoleInvasion.c: In function 'main': MoleInvasion.c:70:17: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 70 | chdir("../"); | ^~~~~~~~~~~~ gcc graphics.o font.o list.o sprite.o events.o editor_texts.o Splayer.o Sother.o background.o video.o tool.o mixer.o level_file.o level.o worldmap.o edit_keys.o menu.o MoleInvasion.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -L/usr/lib64 -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf -ldl -lGL -o ../lin/moleinvasion gcc -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 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o editor.o editor.c editor.c: In function 'perform_mouse_motion': editor.c:101:6: error: type of 'mousex' defaults to 'int' [-Wimplicit-int] 101 | void perform_mouse_motion(mousex,mousey) | ^~~~~~~~~~~~~~~~~~~~ editor.c:101:6: error: type of 'mousey' defaults to 'int' [-Wimplicit-int] editor.c: In function 'perform_mouse_add': editor.c:137:6: error: type of 'mousex' defaults to 'int' [-Wimplicit-int] 137 | void perform_mouse_add(mousex,mousey) | ^~~~~~~~~~~~~~~~~ editor.c:137:6: error: type of 'mousey' defaults to 'int' [-Wimplicit-int] editor.c: In function 'perform_mouse_del': editor.c:177:6: error: type of 'mousex' defaults to 'int' [-Wimplicit-int] 177 | void perform_mouse_del(mousex,mousey) | ^~~~~~~~~~~~~~~~~ editor.c:177:6: error: type of 'mousey' defaults to 'int' [-Wimplicit-int] editor.c: In function 'main': editor.c:368:17: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 368 | chdir("../"); | ^~~~~~~~~~~~ make: *** [: editor.o] Error 1 make: Leaving directory '/home/pterjan/rpmbuild/BUILD/moleinvasion-0.4/src' error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.lbD5JH (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.lbD5JH (%build) I: [iurt_root_command] ERROR: chroot