D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/holotz-castle-1.3.14-3.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.x8oKEv + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf holotz-castle-1.3.14 + /usr/bin/xz -dc /home/pterjan/rpmbuild/SOURCES/holotz-castle-1.3.14.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd holotz-castle-1.3.14 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/holotz-castle-1.3.14-deb-spelling.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/holotz-castle-1.3.14-deb-code-fixes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/holotz-castle-1.3.14-mga-makefiles.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.RFtmkV + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd holotz-castle-1.3.14 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make 'MGA_CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' 'MGA_LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' make -C src make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/holotz-castle-1.3.14/src' make -C ../JLib; make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/holotz-castle-1.3.14/JLib' g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JControl.o JLib/Graphics/JControl.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JUI.o JLib/Graphics/JUI.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLAxes.o JLib/Graphics/JGLAxes.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLCamera.o JLib/Graphics/JGLCamera.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLConsole.o JLib/Graphics/JGLConsole.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLGrid.o JLib/Graphics/JGLGrid.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLLight.o JLib/Graphics/JGLLight.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLTexture.o JLib/Graphics/JGLTexture.cpp JLib/Graphics/JGLTexture.cpp: In member function 'u32 JGLTexture::Create(JImage*, bool, s32, s32, s32, s32)': JLib/Graphics/JGLTexture.cpp:149:94: warning: format '%d' expects argument of type 'int', but argument 9 has type 'u8* {aka unsigned char*}' [-Wformat=] internalFormat, image->Width(), image->Height(), border, format, type, image->Pixels()); ~~~~~~~~~~~~~~~^ JLib/Graphics/JGLTexture.cpp:149:94: warning: format '%d' expects a matching 'int' argument [-Wformat=] JLib/Graphics/JGLTexture.cpp:149:94: warning: format '%p' expects a matching 'void*' argument [-Wformat=] g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLVector.o JLib/Graphics/JGLVector.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JControlImage.o JLib/Graphics/JControlImage.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JImage.o JLib/Graphics/JImage.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JImageSprite.o JLib/Graphics/JImageSprite.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JSprite.o JLib/Graphics/JSprite.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JFont.o JLib/Graphics/JFont.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JTextMenu.o JLib/Graphics/JTextMenu.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JImageMenu.o JLib/Graphics/JImageMenu.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLMesh.o JLib/Graphics/JGLMesh.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Graphics/JGLImage.o JLib/Graphics/JGLImage.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JFile.o JLib/Util/JFile.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JGLApp.o JLib/Util/JGLApp.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JObject.o JLib/Util/JObject.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JTextFile.o JLib/Util/JTextFile.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JTextUtil.o JLib/Util/JTextUtil.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JTimer.o JLib/Util/JTimer.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JUtil.o JLib/Util/JUtil.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JApp.o JLib/Util/JApp.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JFS.o JLib/Util/JFS.cpp JLib/Util/JFS.cpp:1247:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix] if (!f.PrintLine("\n"JRES_JFS_EXPORT_END)) ^ JLib/Util/JFS.cpp: In member function 's32 JFS::Open(const char*, bool)': JLib/Util/JFS.cpp:730:8: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] getcwd(str, sizeof(str)); ~~~~~~^~~~~~~~~~~~~~~~~~ JLib/Util/JFS.cpp: In member function 's32 JFS::Create(const char*)': JLib/Util/JFS.cpp:767:8: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] getcwd(str, sizeof(str)); ~~~~~~^~~~~~~~~~~~~~~~~~ JLib/Util/JFS.cpp: In member function 's32 JFS::Import(const char*, JTree::Node*, bool)': JLib/Util/JFS.cpp:830:8: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] getcwd(str, 256); ~~~~~~^~~~~~~~~~ JLib/Util/JFS.cpp:904:9: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(filename); ~~~~~^~~~~~~~~~ JLib/Util/JFS.cpp:905:10: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] getcwd(str, 256); ~~~~~~^~~~~~~~~~ JLib/Util/JFS.cpp:943:9: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(".."); ~~~~~^~~~~~ JLib/Util/JFS.cpp:944:10: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] getcwd(str, 256); ~~~~~~^~~~~~~~~~ JLib/Util/JFS.cpp: In member function 's32 JFS::Export()': JLib/Util/JFS.cpp:1035:7: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(dirName); ~~~~~^~~~~~~~~ JLib/Util/JFS.cpp:1048:9: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(".."); ~~~~~^~~~~~ JLib/Util/JFS.cpp:1155:8: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(".."); ~~~~~^~~~~~ JLib/Util/JFS.cpp:1161:7: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(".."); ~~~~~^~~~~~ JLib/Util/JFS.cpp:1164:7: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(".."); ~~~~~^~~~~~ g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JThread.o JLib/Util/JThread.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Util/JRW.o JLib/Util/JRW.cpp g++ -I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `sdl-config --cflags` -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o JLib/Math/J2DPolygon.o JLib/Math/J2DPolygon.cpp g++ -shared -fPIC -o libJLib.so JLib/Graphics/JControl.o JLib/Graphics/JUI.o JLib/Graphics/JGLAxes.o JLib/Graphics/JGLCamera.o JLib/Graphics/JGLConsole.o JLib/Graphics/JGLGrid.o JLib/Graphics/JGLLight.o JLib/Graphics/JGLTexture.o JLib/Graphics/JGLVector.o JLib/Graphics/JControlImage.o JLib/Graphics/JImage.o JLib/Graphics/JImageSprite.o JLib/Graphics/JSprite.o JLib/Graphics/JFont.o JLib/Graphics/JTextMenu.o JLib/Graphics/JImageMenu.o JLib/Graphics/JGLMesh.o JLib/Graphics/JGLImage.o JLib/Util/JFile.o JLib/Util/JGLApp.o JLib/Util/JObject.o JLib/Util/JTextFile.o JLib/Util/JTextUtil.o JLib/Util/JTimer.o JLib/Util/JUtil.o JLib/Util/JApp.o JLib/Util/JFS.o JLib/Util/JThread.o JLib/Util/JRW.o JLib/Math/J2DPolygon.o \ && ar rvus libJLib.a JLib/Graphics/JControl.o JLib/Graphics/JUI.o JLib/Graphics/JGLAxes.o JLib/Graphics/JGLCamera.o JLib/Graphics/JGLConsole.o JLib/Graphics/JGLGrid.o JLib/Graphics/JGLLight.o JLib/Graphics/JGLTexture.o JLib/Graphics/JGLVector.o JLib/Graphics/JControlImage.o JLib/Graphics/JImage.o JLib/Graphics/JImageSprite.o JLib/Graphics/JSprite.o JLib/Graphics/JFont.o JLib/Graphics/JTextMenu.o JLib/Graphics/JImageMenu.o JLib/Graphics/JGLMesh.o JLib/Graphics/JGLImage.o JLib/Util/JFile.o JLib/Util/JGLApp.o JLib/Util/JObject.o JLib/Util/JTextFile.o JLib/Util/JTextUtil.o JLib/Util/JTimer.o JLib/Util/JUtil.o JLib/Util/JApp.o JLib/Util/JFS.o JLib/Util/JThread.o JLib/Util/JRW.o JLib/Math/J2DPolygon.o \ ar: creating libJLib.a a - JLib/Graphics/JControl.o a - JLib/Graphics/JUI.o a - JLib/Graphics/JGLAxes.o a - JLib/Graphics/JGLCamera.o a - JLib/Graphics/JGLConsole.o a - JLib/Graphics/JGLGrid.o a - JLib/Graphics/JGLLight.o a - JLib/Graphics/JGLTexture.o a - JLib/Graphics/JGLVector.o a - JLib/Graphics/JControlImage.o a - JLib/Graphics/JImage.o a - JLib/Graphics/JImageSprite.o a - JLib/Graphics/JSprite.o a - JLib/Graphics/JFont.o a - JLib/Graphics/JTextMenu.o a - JLib/Graphics/JImageMenu.o a - JLib/Graphics/JGLMesh.o a - JLib/Graphics/JGLImage.o a - JLib/Util/JFile.o a - JLib/Util/JGLApp.o a - JLib/Util/JObject.o a - JLib/Util/JTextFile.o a - JLib/Util/JTextUtil.o a - JLib/Util/JTimer.o a - JLib/Util/JUtil.o a - JLib/Util/JApp.o a - JLib/Util/JFS.o a - JLib/Util/JThread.o a - JLib/Util/JRW.o a - JLib/Math/J2DPolygon.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/holotz-castle-1.3.14/JLib' g++ -fno-strict-aliasing -I. -I../JLib `sdl-config --cflags` -O3 -Wall -Werror -Wshadow -ffast-math -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHC_DATA_DIR=\"/usr/share/games/holotz-castle/game/\" -DHCED_DATA_DIR=\"/usr/share/games/holotz-castle/editor/\" HCUtil.cpp -o HCUtil.o g++ -fno-strict-aliasing -I. -I../JLib `sdl-config --cflags` -O3 -Wall -Werror -Wshadow -ffast-math -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHC_DATA_DIR=\"/usr/share/games/holotz-castle/game/\" -DHCED_DATA_DIR=\"/usr/share/games/holotz-castle/editor/\" HCTimer.cpp -o HCTimer.o g++ -fno-strict-aliasing -I. -I../JLib `sdl-config --cflags` -O3 -Wall -Werror -Wshadow -ffast-math -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHC_DATA_DIR=\"/usr/share/games/holotz-castle/game/\" -DHCED_DATA_DIR=\"/usr/share/games/holotz-castle/editor/\" HCLoadSaveSlot.cpp -o HCLoadSaveSlot.o g++ -fno-strict-aliasing -I. -I../JLib `sdl-config --cflags` -O3 -Wall -Werror -Wshadow -ffast-math -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHC_DATA_DIR=\"/usr/share/games/holotz-castle/game/\" -DHCED_DATA_DIR=\"/usr/share/games/holotz-castle/editor/\" HCPlaylist.cpp -o HCPlaylist.o g++ -fno-strict-aliasing -I. -I../JLib `sdl-config --cflags` -O3 -Wall -Werror -Wshadow -ffast-math -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHC_DATA_DIR=\"/usr/share/games/holotz-castle/game/\" -DHCED_DATA_DIR=\"/usr/share/games/holotz-castle/editor/\" HCPreferences.cpp -o HCPreferences.o g++ -fno-strict-aliasing -I. -I../JLib `sdl-config --cflags` -O3 -Wall -Werror -Wshadow -ffast-math -c -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DHC_DATA_DIR=\"/usr/share/games/holotz-castle/game/\" -DHCED_DATA_DIR=\"/usr/share/games/holotz-castle/editor/\" HCTheme.cpp -o HCTheme.o HCTheme.cpp: In member function 'bool HCTheme::LoadFloors()': HCTheme.cpp:72:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadFloors() ^~~~~~~ HCTheme.cpp:72:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadContFloors()': HCTheme.cpp:115:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadContFloors() ^~~~~~~ HCTheme.cpp:115:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadBreaks()': HCTheme.cpp:186:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadBreaks() ^~~~~~~ HCTheme.cpp:186:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadBars()': HCTheme.cpp:236:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadBars() ^~~~~~~ HCTheme.cpp:236:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadLadders()': HCTheme.cpp:278:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadLadders() ^~~~~~~ HCTheme.cpp:278:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadObjects()': HCTheme.cpp:327:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadObjects() ^~~~~~~ HCTheme.cpp:327:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadRopes()': HCTheme.cpp:376:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadRopes() ^~~~~~~ HCTheme.cpp:376:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadChar(const char*, JImageSprite**&, s32&)': HCTheme.cpp:425:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadChar(const char *directory, JImageSprite ** &sprArr, s32 &num) ^~~~~~~ HCTheme.cpp:425:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadDialogs()': HCTheme.cpp:517:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadDialogs() ^~~~~~~ HCTheme.cpp:517:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ HCTheme.cpp: In member function 'bool HCTheme::LoadNarratives()': HCTheme.cpp:577:6: error: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Werror=format-overflow=] bool HCTheme::LoadNarratives() ^~~~~~~ HCTheme.cpp:577:6: note: directive argument in the range [1, 2147483647] In file included from /usr/include/stdio.h:862:0, from ../JLib/JLib/Util/JFile.h:36, from ./HCTheme.h:35, from HCTheme.cpp:31: /usr/include/bits/stdio2.h:34:43: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 5 __bos (__s), __fmt, __va_arg_pack ()); ^ cc1plus: all warnings being treated as errors make[1]: *** [Makefile:54: HCTheme.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/holotz-castle-1.3.14/src' make: *** [Makefile:7: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.RFtmkV (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.RFtmkV (%build) I: [iurt_root_command] ERROR: chroot