* Package: games-arcade/njam-1.25 * Repository: gentoo * Maintainer: games@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * Applying njam-1.25-gcc45.patch ... [ ok ] checking for a BSD-compatible install... /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking whether make sets $(MAKE)... yes checking for working aclocal-1.4... missing checking for working autoconf... found checking for working automake-1.4... missing checking for working autoheader... found checking for working makeinfo... found checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes checking for a BSD-compatible install... /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c checking whether make sets $(MAKE)... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for strings.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for sdl-config... yes checking for SDL_Init in -lSDL... yes checking SDL/SDL.h usability... yes checking SDL/SDL.h presence... yes checking for SDL/SDL.h... yes checking for IMG_Load in -lSDL_image... yes checking for Mix_OpenAudio in -lSDL_mixer... yes checking for SDLNet_TCP_Open in -lSDL_net... yes njam version 0.1.25 configured successfully. Using '/usr/games' for installation. Using '/usr/share/games' for installation libraries. Using 'x86_64-pc-linux-gnu-g++' for C++ compiler. Building with '-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT' for C++ compiler flags. Building with '-lSDL -lpthread -lSDL_image -lSDL_mixer -lSDL_net' for linker flags. configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing default-1 commands make: Circular aclocal.m4 <- aclocal.m4 dependency dropped. make all-recursive make[1]: Entering directory '/var/tmp/portage/games-arcade/njam-1.25/work/njam-1.25-src' make[1]: Circular aclocal.m4 <- aclocal.m4 dependency dropped. Making all in src make[2]: Entering directory '/var/tmp/portage/games-arcade/njam-1.25/work/njam-1.25-src/src' make[2]: Circular defaults.h <- Makefile dependency dropped. echo '// This file is generated from makefile. Do not edit!' > defaults.h echo '#define DEFAULT_PREFIX "/usr/games"' >> defaults.h echo '#define DEFAULT_LIBDIR "/usr/share/games"' >> defaults.h echo '#define PACKAGE "njam"' >> defaults.h cd .. \ && CONFIG_FILES=src/Makefile CONFIG_HEADERS= /bin/sh ./config.status config.status: creating src/Makefile config.status: executing default-1 commands make[2]: Circular defaults.h <- Makefile dependency dropped. x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -march=native -O2 -pipe -Wformat -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c njam.cpp njam.cpp: In member function ‘bool NjamEngine::Init(bool, bool, bool)’: njam.cpp:339:35: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(linux_sdl_driver, "x11\0");  ^ njam.cpp:342:48: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(linux_sdl_driver, "%s\0", driver_name);  ^ njam.cpp:347:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] putenv("SDL_VIDEODRIVER=dga");  ^ njam.cpp:571:60: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(Filename, "skins/Back%03d.bmp\0", m_NumberOfSkins);  ^ njam.cpp:586:46: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(Filename, "skins/Back%03d.bmp\0", i);  ^ njam.cpp:663:56: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(TopTenScores[i].name, "%s\0", DefaultNames[i]);  ^ njam.cpp: In member function ‘void NjamEngine::Start()’: njam.cpp:959:104: warning: embedded ‘\0’ in format [-Wformat-contains-nul] d %5d\0", TopTenScores[i].name, TopTenScores[i].level, TopTenScores[i].points);  ^ njam.cpp: In function ‘int main(int, char**)’: njam.cpp:105:13: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result] chdir(path);  ^ njam.cpp: In member function ‘void NjamEngine::DoScript()’: njam.cpp:284:39: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(buffer, 79, script_file);  ^ njam.cpp: In member function ‘bool NjamEngine::Init(bool, bool, bool)’: njam.cpp:624:23: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(buff, 20, fp);  ^ njam.cpp:676:23: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(buff, 40, fp);  ^ x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -march=native -O2 -pipe -Wformat -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c njamgame.cpp njamgame.cpp: In member function ‘void NjamEngine::StartGame(GameType)’: njamgame.cpp:231:25: error: format not a string literal and no format arguments [-Werror=format-security] printf(SDL_GetError());  ^ njamgame.cpp: In member function ‘void NjamEngine::RenderGameScreen()’: njamgame.cpp:530:52: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(buff, "%d\0", p->GamePoints);  ^ njamgame.cpp:584:48: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(buff, "%d\0", p->Juice / 20);  ^ njamgame.cpp:601:56: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(buff, "LEVEL: %02d\0", m_CurrentMap + 1);  ^ njamgame.cpp:607:59: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(buff, "PTS: %4d\0", m_Player[0].GamePoints);  ^ njamgame.cpp:611:39: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(buff, "%2.0f FPS\0", m_fps);  ^ njamgame.cpp: In member function ‘void NjamEngine::DrawGameStats()’: njamgame.cpp:1545:60: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(points, " (%3d)\0", m_Player[i].MapPoints);  ^ njamgame.cpp:1547:87: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(points, "%01d (%3d)\0", m_Player[i].GamePoints, m_Player[i].MapPoints);  ^ njamgame.cpp:1552:63: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(points, "%4d\0", m_Player[i].stats.data[j]);  ^ njamgame.cpp:1559:57: warning: embedded ‘\0’ in format [-Wformat-contains-nul] sprintf(points, "POINTS: %d\0", m_Player[0].GamePoints);  ^ cc1plus: some warnings being treated as errors Makefile:262: recipe for target 'njamgame.o' failed make[2]: *** [njamgame.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/games-arcade/njam-1.25/work/njam-1.25-src/src' Makefile:154: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/games-arcade/njam-1.25/work/njam-1.25-src' Makefile:304: recipe for target 'all-recursive-am' failed make: *** [all-recursive-am] Error 2 * ERROR: games-arcade/njam-1.25::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-arcade/njam-1.25::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-arcade/njam-1.25::gentoo'`. * The complete build log is located at '/var/log/portage/games-arcade:njam-1.25:20150304-040659.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-arcade/njam-1.25/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-arcade/njam-1.25/temp/environment'. * Working directory: '/var/tmp/portage/games-arcade/njam-1.25/work/njam-1.25-src' * S: '/var/tmp/portage/games-arcade/njam-1.25/work/njam-1.25-src'