D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/moleinvasion-0.4-9.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.HCw56n + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf moleinvasion-0.4 + /usr/bin/bzip2 -dc /home/iurt/rpmbuild/SOURCES/MoleInvasion-0.4.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd moleinvasion-0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/moleinvasions-fix-build.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.xMwAel + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd moleinvasion-0.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + 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 -Wl,--enable-new-dtags' + export LDFLAGS + make -C src make: Entering directory '/home/iurt/rpmbuild/BUILD/moleinvasion-0.4/src' cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o graphics.o graphics.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o font.o font.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o list.o list.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o sprite.o sprite.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o events.o events.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -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 cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o Splayer.o Splayer.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o Sother.o Sother.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -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:42: 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:36: note: using the range [-2147483648, 2147483647] for directive argument 148 | { snprintf(buffer,sizeof(buffer),"%s/%s_%d.png",dir,name,seq); | ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from graphics.h:11, from sprite.h:11, from background.h:11, from background.c:9: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 8 or more bytes (assuming 262) into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o video.o video.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o tool.o tool.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -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:36: 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:867, from mixer.h:11, from mixer.c:9: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -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 cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o level.o level.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o worldmap.o worldmap.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -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 cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_OPENGL -DDATADIR='"/usr/share/games/moleinvasion"' -c -o menu.o menu.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -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:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 70 | chdir("../"); | ^~~~~~~~~~~~ cc 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,-O1 -Wl,--build-id -Wl,--enable-new-dtags -L/usr/lib64 -lSDL -lSDL_image -lSDL_mixer -lSDL_ttf -ldl -lGL -o ../lin/moleinvasion /usr/bin/ld: level.o:/home/iurt/rpmbuild/BUILD/moleinvasion-0.4/src/worldmap.h:37: multiple definition of `static_world_datas'; Splayer.o:/home/iurt/rpmbuild/BUILD/moleinvasion-0.4/src/worldmap.h:37: first defined here /usr/bin/ld: MoleInvasion.o:/home/iurt/rpmbuild/BUILD/moleinvasion-0.4/src/worldmap.h:37: multiple definition of `static_world_datas'; Splayer.o:/home/iurt/rpmbuild/BUILD/moleinvasion-0.4/src/worldmap.h:37: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:72: ../lin/moleinvasion] Error 1 make: Leaving directory '/home/iurt/rpmbuild/BUILD/moleinvasion-0.4/src' error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.xMwAel (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.xMwAel (%build) I: [iurt_root_command] ERROR: chroot