* Package: games-strategy/xbattleai-1.2.2-r2 * Repository: gentoo * Maintainer: games@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking xbattleai-1.2.2.tgz to /var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/work >>> Source unpacked in /var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/work >>> Preparing source in /var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/work/xbattleai-1.2.2 ... * Applying xbattleai-1.2.2-sandbox.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/work/xbattleai-1.2.2 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 loading cache ./config.cache checking for gawk... (cached) gawk checking for gcc... (cached) gcc checking whether the C compiler (gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed) works... yes checking whether the C compiler (gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for a BSD compatible install... (cached) /usr/bin/install -c checking how to run the C preprocessor... (cached) gcc -E checking for AIX... no checking for POSIXized ISC... no checking for minix/config.h... (cached) no checking whether gcc needs -traditional... (cached) no checking for working const... (cached) yes checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for dnet_ntoa in -ldnet... (cached) no checking for dnet_ntoa in -ldnet_stub... (cached) no checking for gethostbyname... (cached) yes checking for connect... (cached) yes checking for remove... (cached) yes checking for shmat... (cached) yes checking for IceConnectionNumber in -lICE... (cached) yes checking for pow in -lm... (cached) yes checking for gethostbyname in -lnsl... (cached) yes checking for socket in -lsocket... (cached) no checking for inet_aton in -lresolv... (cached) yes checking for pthread_create in -lpthread... (cached) yes checking for XOpenDisplay in -lX11... (cached) yes checking for ptsname in -lpt... (cached) no checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes checking for sys/types.h... (cached) yes checking for sys/select.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for memory.h... (cached) yes checking for unistd.h... (cached) yes checking for malloc.h... (cached) yes checking for sys/socket.h... (cached) yes checking for netinet/in.h... (cached) yes checking for sys/param.h... (cached) yes checking for netdb.h... (cached) yes checking for time.h... (cached) yes checking for sys/time.h... (cached) yes checking for pthread.h... (cached) yes checking for setjmp.h... (cached) yes checking for malloc.h... (cached) yes checking for fcntl.h... (cached) yes checking for sys/stat.h... (cached) yes checking for linux/soundcard.h... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for size_t... (cached) yes checking for size_t... (cached) yes checking for gettimeofday... (cached) yes checking for select... (cached) yes checking for socket... (cached) yes checking for strdup... (cached) yes checking for strstr... (cached) yes checking for strtol... (cached) yes checking for strchr... (cached) yes checking for memcpy... (cached) yes checking for getenv... (cached) yes checking for pow... (cached) yes checking for exp... (cached) yes checking for gethostbyname... (cached) yes checking for pthread_create... (cached) yes checking for getpid... (cached) yes creating ./config.status creating Makefile creating config.h config.h is unchanged >>> Source configured. >>> Compiling source in /var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/work/xbattleai-1.2.2 ... make -j 1 The config.h header is out of date; rewriting... ./config.status creating Makefile creating config.h config.h is unchanged gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c command.c -o command.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c draw.c -o draw.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c edit.c -o edit.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c error.c -o error.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c init.c -o init.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c load.c -o load.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c main.c -o main.o main.c: In function ‘server_init’: main.c:1446:5: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(boarddata,1,len,fp); ^~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c parse.c -o parse.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c replay.c -o replay.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c shape.c -o shape.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c shape_diamond.c -o shape_diamond.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c shape_hex.c -o shape_hex.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c shape_octagon.c -o shape_octagon.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c shape_square.c -o shape_square.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c shape_triangle.c -o shape_triangle.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c update.c -o update.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c utils.c -o utils.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c window.c -o window.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c ai.c -o ai.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c ai1.c -o ai1.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c ai2.c -o ai2.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c file.c -o file.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c victory.c -o victory.o victory.c: In function ‘victory_check’: victory.c:282:32: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] if(winner_string != NULL && strlen(winner_string)>0) { ^~~~~~ victory.c:282:32: warning: incompatible implicit declaration of built-in function ‘strlen’ victory.c:282:32: note: include ‘’ or provide a declaration of ‘strlen’ gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c int.c -o int.o gcc -O2 -pipe -march=native -I/usr/X11R6/include -DHAVE_CONFIG_H -DWITH_HILLS_AND_FOREST -DWITH_BASE_SIDE -DWITH_AI2_LEARNING -DWITH_SOUND -DDEFAULT_XBO_DIR=\"/usr/share/xbattle/xbos\" -DDEFAULT_XBT_DIR=\"/usr/share/xbattle/xbts\" -DDEFAULT_XBA_DIR=\"/usr/share/xbattle/xbas\" -DDEFAULT_SND_DIR=\"/usr/share/xbattle/snd\" -c sound.c -o sound.o sound.c: In function ‘snd_init’: sound.c:116:3: warning: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration] ioctl(dsp,SNDCTL_DSP_RESET,NULL); ^~~~~ sound.c: In function ‘snd_loop’: sound.c:169:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result] write(dsp,data,len*sizeof(short)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -pipe -march=native -I/usr/X11R6/include -Wl,-O1 -Wl,--as-needed ./command.o ./draw.o ./edit.o ./error.o ./init.o ./load.o ./main.o ./parse.o ./replay.o ./shape.o ./shape_diamond.o ./shape_hex.o ./shape_octagon.o ./shape_square.o ./shape_triangle.o ./update.o ./utils.o ./window.o ./ai.o ./ai1.o ./ai2.o ./file.o ./victory.o ./int.o ./sound.o -lX11 -lpthread -lresolv -lnsl -lm -L/usr/X11R6/lib -o xbattle /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnsl collect2: error: ld returned 1 exit status make: *** [Makefile:194: xbattle] Error 1 * ERROR: games-strategy/xbattleai-1.2.2-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-strategy/xbattleai-1.2.2-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-strategy/xbattleai-1.2.2-r2::gentoo'`. * The complete build log is located at '/var/log/portage/games-strategy:xbattleai-1.2.2-r2:20180309-162005.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/temp/environment'. * Working directory: '/var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/work/xbattleai-1.2.2' * S: '/var/tmp/portage/games-strategy/xbattleai-1.2.2-r2/work/xbattleai-1.2.2'