+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/vodovod.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JfJvSv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf vodovod + /usr/bin/gzip -dc /builddir/build/SOURCES/vodovod-1.10r22-src.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd vodovod + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (vodovod-1.10r22-locales.patch):' Patch #0 (vodovod-1.10r22-locales.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile patching file allmenus.cpp patching file po/cs.po patching file po/en.po patching file po/sk.po patching file po/sr.po patching file po/sv.po patching file po/vodovod.pot patching file po/zh.po + echo 'Patch #1 (vodovod-1.10r22-format-string.patch):' Patch #1 (vodovod-1.10r22-format-string.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file njamfont.cpp + rm data/font1.ttf + sed -i -e 's|data/font1.ttf|../fonts/dejavu/DejaVuSansMono.ttf|' allmenus.cpp main.cpp game.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.xSSYOC + umask 022 + cd /builddir/build/BUILD + cd vodovod + make PREFIX=/usr HIGHSCOREDIR=/var/games -j4 CXX=g++ 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" game.cpp -o game.o g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" map.cpp -o map.o g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" resource.cpp -o resource.o g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" main.cpp -o main.o In file included from allmenus.h:24:0, from main.cpp:33: effects.h: In constructor 'TextEffect::TextEffect(NjamFont*, int, int, const string&, int)': effects.h:65:17: warning: 'TextEffect::textM' will be initialized after [-Wreorder] std::string textM; ^~~~~ effects.h:63:9: warning: 'int TextEffect::repeatM' [-Wreorder] int repeatM; ^~~~~~~ effects.h:67:5: warning: when initialized here [-Wreorder] TextEffect(NjamFont *f, int xpos, int ypos, const std::string& text, int repeat = 0) ^~~~~~~~~~ effects.h: In constructor 'ScrollEffect::ScrollEffect(NjamFont*, int, int, const string&)': effects.h:77:17: warning: 'ScrollEffect::textM' will be initialized after [-Wreorder] std::string textM; ^~~~~ effects.h:75:12: warning: 'double ScrollEffect::xoffset' [-Wreorder] double xoffset; ^~~~~~~ effects.h:79:5: warning: when initialized here [-Wreorder] ScrollEffect(NjamFont *f, int xpos, int ypos, const std::string& text) ^~~~~~~~~~~~ map.cpp: In destructor 'Map::~Map()': map.cpp:324:25: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete fieldsM[i]; ^ map.cpp: In member function 'void Map::Setup(int, int)': map.cpp:340:25: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete fieldsM[i]; ^ map.cpp:350:31: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete (fieldsM[f]); ^ map.cpp:359:31: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete (fieldsM[f]); ^ map.cpp:370:31: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete (fieldsM[f]); ^ map.cpp:384:31: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete (fieldsM[f]); ^ map.cpp:398:44: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete fieldsM[x+y*widthM+f]; ^ map.cpp: In member function 'bool Map::PutShape(Shape*)': map.cpp:510:16: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete s; ^ map.cpp: In member function 'int Map::AdvanceFlow()': map.cpp:542:16: warning: enumeration value 'dNone' not handled in switch [-Wswitch] switch (d) ^ map.cpp:542:16: warning: enumeration value 'dFull' not handled in switch [-Wswitch] resource.cpp: In destructor 'ResourceManager::~ResourceManager()': resource.cpp:150:103: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type '_Mix_Music*' [-Wformat=] fprintf(stderr, _("Freeing music resource: %s (0x%08x)..."), (*it).first.c_str(), (*it).second); ~~~~~~~~~~~~^ In file included from game.h:27:0, from game.cpp:28: effects.h: In constructor 'TextEffect::TextEffect(NjamFont*, int, int, const string&, int)': effects.h:65:17: warning: 'TextEffect::textM' will be initialized after [-Wreorder] std::string textM; ^~~~~ effects.h:63:9: warning: 'int TextEffect::repeatM' [-Wreorder] int repeatM; ^~~~~~~ effects.h:67:5: warning: when initialized here [-Wreorder] TextEffect(NjamFont *f, int xpos, int ypos, const std::string& text, int repeat = 0) ^~~~~~~~~~ effects.h: In constructor 'ScrollEffect::ScrollEffect(NjamFont*, int, int, const string&)': effects.h:77:17: warning: 'ScrollEffect::textM' will be initialized after [-Wreorder] std::string textM; ^~~~~ effects.h:75:12: warning: 'double ScrollEffect::xoffset' [-Wreorder] double xoffset; ^~~~~~~ effects.h:79:5: warning: when initialized here [-Wreorder] ScrollEffect(NjamFont *f, int xpos, int ypos, const std::string& text) ^~~~~~~~~~~~ game.cpp: In member function 'void Game::ClearQueue()': game.cpp:48:16: warning: deleting object of polymorphic class type 'Shape' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete s; ^ g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" allmenus.cpp -o allmenus.o g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" njamfont.cpp -o njamfont.o g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" sutils.cpp -o sutils.o g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" menu.cpp -o menu.o sutils.cpp:53:0: warning: ignoring #pragma warn [-Wunknown-pragmas] #pragma warn -ccc sutils.cpp:54:0: warning: ignoring #pragma warn [-Wunknown-pragmas] #pragma warn -rch sutils.cpp:59:0: warning: ignoring #pragma warn [-Wunknown-pragmas] #pragma warn +ccc sutils.cpp:60:0: warning: ignoring #pragma warn [-Wunknown-pragmas] #pragma warn +rch sutils.cpp:79:0: warning: ignoring #pragma warn [-Wunknown-pragmas] #pragma warn -ccc sutils.cpp:80:0: warning: ignoring #pragma warn [-Wunknown-pragmas] #pragma warn -rch sutils.cpp:91:0: warning: ignoring #pragma warn [-Wunknown-pragmas] #pragma warn +ccc sutils.cpp:92:0: warning: ignoring #pragma warn [-Wunknown-pragmas] #pragma warn +rch In file included from game.h:27:0, from allmenus.cpp:25: effects.h: In constructor 'TextEffect::TextEffect(NjamFont*, int, int, const string&, int)': effects.h:65:17: warning: 'TextEffect::textM' will be initialized after [-Wreorder] std::string textM; ^~~~~ effects.h:63:9: warning: 'int TextEffect::repeatM' [-Wreorder] int repeatM; ^~~~~~~ effects.h:67:5: warning: when initialized here [-Wreorder] TextEffect(NjamFont *f, int xpos, int ypos, const std::string& text, int repeat = 0) ^~~~~~~~~~ effects.h: In constructor 'ScrollEffect::ScrollEffect(NjamFont*, int, int, const string&)': effects.h:77:17: warning: 'ScrollEffect::textM' will be initialized after [-Wreorder] std::string textM; ^~~~~ effects.h:75:12: warning: 'double ScrollEffect::xoffset' [-Wreorder] double xoffset; ^~~~~~~ effects.h:79:5: warning: when initialized here [-Wreorder] ScrollEffect(NjamFont *f, int xpos, int ypos, const std::string& text) ^~~~~~~~~~~~ sutils.cpp: In function 'bool RGB2OneColor(SDL_Surface*, Uint8, Uint8, Uint8)': sutils.cpp:152:9: warning: unused variable 'x' [-Wunused-variable] int x, y; ^ sutils.cpp:152:12: warning: unused variable 'y' [-Wunused-variable] int x, y; ^ sutils.cpp: In function 'bool SurfaceEffect(SDL_Surface*, SDL_Rect&, tEffect)': sutils.cpp:250:9: warning: unused variable 'x' [-Wunused-variable] int x, y; ^ sutils.cpp:250:12: warning: unused variable 'y' [-Wunused-variable] int x, y; ^ sutils.cpp: In function 'void InitVideo(bool)': sutils.cpp:373:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i 499 && key == getKey(taUp)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ menu.cpp:53:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (key == SDLK_DOWN || key > 499 && key == getKey(taDown)) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ menu.cpp:55:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (firstIsTitleM && indicator < 1 || !firstIsTitleM && indicator < 0) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ menu.cpp:61:66: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ((key == SDLK_RETURN || key == SDLK_KP_ENTER || key > 499 && key == getKey(taDrop))) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ sutils.cpp: In function 'bool SurfaceEffect(SDL_Surface*, SDL_Rect&, tEffect)': sutils.cpp:272:21: warning: 'color' may be used uninitialized in this function [-Wmaybe-uninitialized] putpixel(surface, x, y, color); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" effects.cpp -o effects.o g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" config.cpp -o config.o hiscore.cpp: In constructor 'HiScores::HiScores()': hiscore.cpp:71:18: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(buff, 80, fp); ~~~~~^~~~~~~~~~~~~~ g++ -c `sdl-config --cflags` -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DPACKAGE=\"vodovod\" -DDATADIR=\"/usr/share/vodovod\" -DHIGHSCOREDIR=\"/var/games\" -DLOCALEDIR=\"/usr/share/locale\" keys.cpp -o keys.o In file included from effects.cpp:27:0: effects.h: In constructor 'TextEffect::TextEffect(NjamFont*, int, int, const string&, int)': effects.h:65:17: warning: 'TextEffect::textM' will be initialized after [-Wreorder] std::string textM; ^~~~~ effects.h:63:9: warning: 'int TextEffect::repeatM' [-Wreorder] int repeatM; ^~~~~~~ effects.h:67:5: warning: when initialized here [-Wreorder] TextEffect(NjamFont *f, int xpos, int ypos, const std::string& text, int repeat = 0) ^~~~~~~~~~ effects.h: In constructor 'ScrollEffect::ScrollEffect(NjamFont*, int, int, const string&)': effects.h:77:17: warning: 'ScrollEffect::textM' will be initialized after [-Wreorder] std::string textM; ^~~~~ effects.h:75:12: warning: 'double ScrollEffect::xoffset' [-Wreorder] double xoffset; ^~~~~~~ effects.h:79:5: warning: when initialized here [-Wreorder] ScrollEffect(NjamFont *f, int xpos, int ypos, const std::string& text) ^~~~~~~~~~~~ effects.cpp: In destructor 'Effects::~Effects()': effects.cpp:34:20: warning: deleting object of abstract class type 'SpecialEffect' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor] delete (*it); ^ effects.cpp: In member function 'void Effects::removeEffect(SpecialEffect*)': effects.cpp:51:20: warning: deleting object of abstract class type 'SpecialEffect' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor] delete p; ^ effects.cpp: In member function 'void Effects::Render()': effects.cpp:66:20: warning: deleting object of abstract class type 'SpecialEffect' which has non-virtual destructor will cause undefined behavior [-Wdelete-non-virtual-dtor] delete p; ^ Translating cs .......................... done. config.cpp: In constructor 'Config::Config()': config.cpp:145:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i