Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/gnushogi.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1642661663.288224/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mxdcafmg:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mxdcafmg:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '9025e59e66d54e5a92c91d4ea0ebb9ad', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1642661663.288224/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mxdcafmg:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/gnushogi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1642636800 Wrote: /builddir/build/SRPMS/gnushogi-1.5-0.15.git5bb0b5b.fc36.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/gnushogi.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1642661663.288224/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mxdcafmg:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mxdcafmg:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f4a0d56070fa4cc2839e085d8c97e575', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1642661663.288224/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mxdcafmg:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/gnushogi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1642636800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZhayDG + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74 + /usr/bin/gzip -dc /builddir/build/SOURCES/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + ./autogen.sh configure.ac:70: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:70: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:70: the top level configure.ac:75: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:75: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:75: the top level configure.ac:86: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:86: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:86: the top level configure.ac:98: warning: The macro `AC_TYPE_SIGNAL' is obsolete. configure.ac:98: You should run autoupdate. ./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from... configure.ac:98: the top level configure.ac:16: installing './compile' configure.ac:17: installing './config.guess' configure.ac:17: installing './config.sub' configure.ac:9: installing './install-sh' configure.ac:9: installing './missing' Makefile.am: installing './INSTALL' doc/Makefile.am:23: installing 'doc/texinfo.tex' gnushogi/Makefile.am: installing './depcomp' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no configure: C compiler checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking build system type... x86_64-pc-linux-gnu configure: libs checking for clrtoeol in -lcurses... yes checking for pow in -lm... yes checking for tgoto in -ltermcap... yes configure: header files checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/time.h... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for sys/wait.h that is POSIX.1 compatible... yes checking for fcntl.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/file.h... yes checking for sys/ioctl.h... yes checking for sys/param.h... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for errno.h... yes checking for _Bool... yes checking for stdbool.h that conforms to C99... yes configure: typedefs checking for an ANSI C-conforming const... yes checking for _Bool... (cached) yes checking for stdbool.h that conforms to C99... (cached) yes checking for inline... inline checking for pid_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h configure: compiler characteristics checking size of long... 8 configure: library functions checking how to run the C preprocessor... gcc -E checking whether gcc needs -traditional... no checking return type of signal handlers... void checking for gettimeofday... yes checking for memset... yes checking for pow... yes checking for strchr... yes checking for strerror... yes checking for strrchr... yes checking for strstr... yes checking for strtol... yes checking for memcpy... yes checking for bcopy... yes checking for setvbuf... yes checking for setlinebuf... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating gnushogi/Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing depfiles commands make: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' if [ "xpat2inc" = "x" ]; then \ echo "gnushogi-pattern.inc needs rebuilding, which can only be done when NOT cross-compiling"; \ exit 1; \ fi make pat2inc make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -g -O2 -MT pat2inc.o -MD -MP -MF .deps/pat2inc.Tpo -c -o pat2inc.o pat2inc.c mv -f .deps/pat2inc.Tpo .deps/pat2inc.Po gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -g -O2 -MT makepattern.o -MD -MP -MF .deps/makepattern.Tpo -c -o makepattern.o makepattern.c mv -f .deps/makepattern.Tpo .deps/makepattern.Po gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -g -O2 -MT globals.o -MD -MP -MF .deps/globals.Tpo -c -o globals.o globals.c mv -f .deps/globals.Tpo .deps/globals.Po gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -g -O2 -MT init-common.o -MD -MP -MF .deps/init-common.Tpo -c -o init-common.o init-common.c mv -f .deps/init-common.Tpo .deps/init-common.Po gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -g -O2 -MT pattern-common.o -MD -MP -MF .deps/pattern-common.Tpo -c -o pattern-common.o pattern-common.c mv -f .deps/pattern-common.Tpo .deps/pattern-common.Po gcc -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -g -O2 -o pat2inc pat2inc.o makepattern.o globals.o init-common.o pattern-common.o -lcurses -ltermcap -lm make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' ./pat2inc ../misc/gnushogi.pat gnushogi-pattern.inc Pattern: 2102 bytes for 14 sequences with 128 patterns. if [ "xpat2inc" = "x" ]; then \ echo "gnuminishogi-pattern.inc needs rebuilding, which can only be done when NOT cross-compiling"; \ exit 1; \ fi make pat2inc make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' make[1]: 'pat2inc' is up to date. make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' ./pat2inc ../misc/gnuminishogi.pat gnuminishogi-pattern.inc Pattern: 7 bytes for 1 sequences with 1 patterns. : make: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' Making distclean in gnushogi make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' test -z "gnushogi gnuminishogi" || rm -f gnushogi gnuminishogi test -z "pat2inc sizetest" || rm -f pat2inc sizetest rm -f *.o rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f ./.deps/globals.Po rm -f ./.deps/gnuminishogi-attacks.Po rm -f ./.deps/gnuminishogi-book.Po rm -f ./.deps/gnuminishogi-commondsp.Po rm -f ./.deps/gnuminishogi-cursesdsp.Po rm -f ./.deps/gnuminishogi-eval.Po rm -f ./.deps/gnuminishogi-genmove.Po rm -f ./.deps/gnuminishogi-globals.Po rm -f ./.deps/gnuminishogi-init-common.Po rm -f ./.deps/gnuminishogi-init.Po rm -f ./.deps/gnuminishogi-main.Po rm -f ./.deps/gnuminishogi-pattern-common.Po rm -f ./.deps/gnuminishogi-pattern.Po rm -f ./.deps/gnuminishogi-rawdsp.Po rm -f ./.deps/gnuminishogi-search.Po rm -f ./.deps/gnuminishogi-tcontrl.Po rm -f ./.deps/gnuminishogi-util.Po rm -f ./.deps/gnushogi-attacks.Po rm -f ./.deps/gnushogi-book.Po rm -f ./.deps/gnushogi-commondsp.Po rm -f ./.deps/gnushogi-cursesdsp.Po rm -f ./.deps/gnushogi-eval.Po rm -f ./.deps/gnushogi-genmove.Po rm -f ./.deps/gnushogi-globals.Po rm -f ./.deps/gnushogi-init-common.Po rm -f ./.deps/gnushogi-init.Po rm -f ./.deps/gnushogi-main.Po rm -f ./.deps/gnushogi-pattern-common.Po rm -f ./.deps/gnushogi-pattern.Po rm -f ./.deps/gnushogi-rawdsp.Po rm -f ./.deps/gnushogi-search.Po rm -f ./.deps/gnushogi-tcontrl.Po rm -f ./.deps/gnushogi-util.Po rm -f ./.deps/init-common.Po rm -f ./.deps/makepattern.Po rm -f ./.deps/pat2inc.Po rm -f ./.deps/pattern-common.Po rm -f ./.deps/sizetest.Po rm -f Makefile make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' Making distclean in doc make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/doc' test -z "gnushogi.dvi gnushogi.pdf gnushogi.ps gnushogi.html" \ || rm -rf gnushogi.dvi gnushogi.pdf gnushogi.ps gnushogi.html rm -rf gnushogi.t2d gnushogi.t2p test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f Makefile make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/doc' make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f config.h stamp-h1 rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f cscope.out cscope.in.out cscope.po.out cscope.files make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -f Makefile You may now run ./configure + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.dQB8wU + umask 022 + cd /builddir/build/BUILD + '[' -f /builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld ']' + '[' -f /usr/lib/rpm/generate-rpm-note.sh ']' + /usr/lib/rpm/generate-rpm-note.sh gnushogi 1.5-0.15.git5bb0b5b.fc36 x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74 + '[' -f /builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld ']' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2022-01-20 06:57:16.574726095 +0000 +++ ./configure 2022-01-20 06:57:19.454738443 +0000 @@ -1981,7 +1981,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no configure: C compiler checking for x86_64-redhat-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking build system type... x86_64-redhat-linux-gnu configure: libs checking for clrtoeol in -lcurses... yes checking for pow in -lm... yes checking for tgoto in -ltermcap... yes configure: header files checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/time.h... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for sys/wait.h that is POSIX.1 compatible... yes checking for fcntl.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/file.h... yes checking for sys/ioctl.h... yes checking for sys/param.h... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for errno.h... yes checking for _Bool... yes checking for stdbool.h that conforms to C99... yes configure: typedefs checking for an ANSI C-conforming const... yes checking for _Bool... (cached) yes checking for stdbool.h that conforms to C99... (cached) yes checking for inline... inline checking for pid_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h configure: compiler characteristics checking size of long... 8 configure: library functions checking how to run the C preprocessor... gcc -E checking whether gcc needs -traditional... no checking return type of signal handlers... void checking for gettimeofday... yes checking for memset... yes checking for pow... yes checking for strchr... yes checking for strerror... yes checking for strrchr... yes checking for strstr... yes checking for strtol... yes checking for memcpy... yes checking for bcopy... yes checking for setvbuf... yes checking for setlinebuf... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating gnushogi/Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing depfiles commands + make -j2 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' Making all in gnushogi make[2]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' make all-am make[3]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-main.o `test -f 'main.c' || echo './'`main.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-attacks.o `test -f 'attacks.c' || echo './'`attacks.c main.c: In function 'main': main.c:242:21: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 242 | fread(&n, sizeof(struct fileentry), 1, hashfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-book.o `test -f 'book.c' || echo './'`book.c book.c: In function 'OpeningBook': book.c:922:17: warning: decrement of a boolean expression [-Wbool-operation] 922 | Book--; | ^~ book.c:962:17: warning: decrement of a boolean expression [-Wbool-operation] 962 | Book--; | ^~ book.c:996:17: warning: decrement of a boolean expression [-Wbool-operation] 996 | Book--; | ^~ book.c:1039:17: warning: decrement of a boolean expression [-Wbool-operation] 1039 | Book--; | ^~ book.c:1048:9: warning: decrement of a boolean expression [-Wbool-operation] 1048 | Book--; | ^~ book.c: In function 'WriteData': book.c:603:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 603 | write(gfd, (char *)&DATA, sizeof_gdxdata); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ book.c: In function 'WriteAdmin': book.c:594:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 594 | write(gfd, (char *)&ADMIN, sizeof_gdxadmin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-commondsp.o `test -f 'commondsp.c' || echo './'`commondsp.c commondsp.c: In function 'parser': commondsp.c:402:34: warning: '?:' using integer constants in boolean context [-Wint-in-bool-context] 402 | p = (f[5] == '+') ? 0x80 : 0; | ~~~~~~~~~~~~~~~~~~~~~^~~ commondsp.c: In function 'InputCommand': commondsp.c:1728:29: warning: '?:' using integer constants in boolean context [-Wint-in-bool-context] 1728 | Book = Book ? 0 : BOOKFAIL; commondsp.c: In function 'GetXGame': commondsp.c:843:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 843 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:853:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 853 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:855:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 855 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:859:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 859 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:910:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 910 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c: In function 'GetGame': commondsp.c:468:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 468 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:486:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 486 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:487:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 487 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:495:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 495 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:502:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 502 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:509:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 509 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:513:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 513 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:563:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 563 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:564:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 564 | fgets(fname, 256, fd); /* 9 8 7 ... */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:565:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 565 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:566:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 566 | fgets(fname, 256, fd); /* p l n ... */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:571:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 571 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:597:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 597 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:598:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 598 | fgets(fname, 256, fd); /* move score ... */ | ^~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-eval.o `test -f 'eval.c' || echo './'`eval.c eval.c: In function 'KingScan': eval.c:1138:60: warning: comparison of constant '2' with boolean expression is always false [-Wbool-compare] 1138 | else if ((Captured[c2][p] && color[u]) == neutral) | ^~ commondsp.c: In function 'ListGame': commondsp.c:1151:30: warning: '%s' directive writing up to 247 bytes into a region of size between 2 and 253 [-Wformat-overflow=] 1151 | sprintf(fname, "CL.%s%s-%s%s%s%c", | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ 1152 | dbuf + 4, dbuf + 8, dbuf + 11, dbuf + 14, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1153 | dbuf + 17, ColorStr[computer][0]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:894, from gnushogi.h:137, from commondsp.c:38: In function 'sprintf', inlined from 'ListGame' at commondsp.c:1151:9: /usr/include/bits/stdio2.h:38:10: note: '__sprintf_chk' output between 6 and 1227 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-genmove.o `test -f 'genmove.c' || echo './'`genmove.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-init.o `test -f 'init.c' || echo './'`init.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-pattern.o `test -f 'pattern.c' || echo './'`pattern.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-rawdsp.o `test -f 'rawdsp.c' || echo './'`rawdsp.c rawdsp.c: In function 'Raw_SetupBoard': rawdsp.c:459:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 459 | fgets(s, 80, stdin); /* skip "setup" command */ | ^~~~~~~~~~~~~~~~~~~ rawdsp.c:463:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 463 | fgets(s, 80, stdin); | ^~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_doRequestInputString': rawdsp.c:150:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 150 | scanf(fmt, buffer); | ^~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_SelectLevel': rawdsp.c:706:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 706 | fgets(T, NO_SQUARES + 1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_SetContempt': rawdsp.c:804:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 804 | scanf("%hd", &contempt); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_EditBoard': rawdsp.c:364:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 364 | scanf("%s", s); | ^~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_DoDebug': rawdsp.c:848:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 848 | scanf("%s", s); | ^~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeXwindow': rawdsp.c:812:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 812 | scanf("%hd", &xwndw); | ^~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeSearchDepth': rawdsp.c:783:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 783 | fgets(buf, 80+1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeHashDepth': rawdsp.c:794:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 794 | scanf("%hd", &HashDepth); | ^~~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c:796:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 796 | scanf("%hd", &HashMoveLimit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeBetaWindow': rawdsp.c:672:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 672 | scanf("%hd", &WBwindow); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c:674:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 674 | scanf("%hd", &BBwindow); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeAlphaWindow': rawdsp.c:662:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 662 | scanf("%hd", &WAwindow); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c:664:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 664 | scanf("%hd", &BAwindow); | ^~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-search.o `test -f 'search.c' || echo './'`search.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-tcontrl.o `test -f 'tcontrl.c' || echo './'`tcontrl.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-util.o `test -f 'util.c' || echo './'`util.c util.c: In function 'ProbeFTable': util.c:352:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 352 | fread(&t, sizeof(struct fileentry), 1, hashfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-globals.o `test -f 'globals.c' || echo './'`globals.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-init-common.o `test -f 'init-common.c' || echo './'`init-common.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-pattern-common.o `test -f 'pattern-common.c' || echo './'`pattern-common.c gcc -DHAVE_CONFIG_H -I. -I.. -DHASHFILE=\"/usr/lib64/gnushogi/gnushogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnushogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnushogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnushogi-cursesdsp.o `test -f 'cursesdsp.c' || echo './'`cursesdsp.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-main.o `test -f 'main.c' || echo './'`main.c main.c: In function 'main': main.c:242:21: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 242 | fread(&n, sizeof(struct fileentry), 1, hashfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-attacks.o `test -f 'attacks.c' || echo './'`attacks.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-book.o `test -f 'book.c' || echo './'`book.c book.c: In function 'OpeningBook': book.c:922:17: warning: decrement of a boolean expression [-Wbool-operation] 922 | Book--; | ^~ book.c:962:17: warning: decrement of a boolean expression [-Wbool-operation] 962 | Book--; | ^~ book.c:996:17: warning: decrement of a boolean expression [-Wbool-operation] 996 | Book--; | ^~ book.c:1039:17: warning: decrement of a boolean expression [-Wbool-operation] 1039 | Book--; | ^~ book.c:1048:9: warning: decrement of a boolean expression [-Wbool-operation] 1048 | Book--; | ^~ book.c: In function 'WriteData': book.c:603:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 603 | write(gfd, (char *)&DATA, sizeof_gdxdata); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ book.c: In function 'WriteAdmin': book.c:594:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 594 | write(gfd, (char *)&ADMIN, sizeof_gdxadmin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-commondsp.o `test -f 'commondsp.c' || echo './'`commondsp.c commondsp.c: In function 'parser': commondsp.c:402:34: warning: '?:' using integer constants in boolean context [-Wint-in-bool-context] 402 | p = (f[5] == '+') ? 0x80 : 0; | ~~~~~~~~~~~~~~~~~~~~~^~~ gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-eval.o `test -f 'eval.c' || echo './'`eval.c commondsp.c: In function 'InputCommand': commondsp.c:1728:29: warning: '?:' using integer constants in boolean context [-Wint-in-bool-context] 1728 | Book = Book ? 0 : BOOKFAIL; commondsp.c: In function 'GetXGame': commondsp.c:843:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 843 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:853:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 853 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:855:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 855 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:859:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 859 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:910:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 910 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c: In function 'GetGame': commondsp.c:468:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 468 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:486:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 486 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:487:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 487 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:495:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 495 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:502:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 502 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:509:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 509 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:513:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 513 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:563:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 563 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:564:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 564 | fgets(fname, 256, fd); /* 9 8 7 ... */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:565:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 565 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:566:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 566 | fgets(fname, 256, fd); /* p l n ... */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:571:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 571 | fgets(fname, 256, fd); | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:597:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 597 | fgets(fname, 256, fd); /* empty */ | ^~~~~~~~~~~~~~~~~~~~~ commondsp.c:598:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 598 | fgets(fname, 256, fd); /* move score ... */ | ^~~~~~~~~~~~~~~~~~~~~ eval.c: In function 'KingScan': eval.c:1138:60: warning: comparison of constant '2' with boolean expression is always false [-Wbool-compare] 1138 | else if ((Captured[c2][p] && color[u]) == neutral) | ^~ commondsp.c: In function 'ListGame': commondsp.c:1151:30: warning: '%s' directive writing up to 247 bytes into a region of size between 2 and 253 [-Wformat-overflow=] 1151 | sprintf(fname, "CL.%s%s-%s%s%s%c", | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ 1152 | dbuf + 4, dbuf + 8, dbuf + 11, dbuf + 14, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1153 | dbuf + 17, ColorStr[computer][0]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:894, from gnushogi.h:137, from commondsp.c:38: In function 'sprintf', inlined from 'ListGame' at commondsp.c:1151:9: /usr/include/bits/stdio2.h:38:10: note: '__sprintf_chk' output between 6 and 1227 bytes into a destination of size 256 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-genmove.o `test -f 'genmove.c' || echo './'`genmove.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-init.o `test -f 'init.c' || echo './'`init.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-pattern.o `test -f 'pattern.c' || echo './'`pattern.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-rawdsp.o `test -f 'rawdsp.c' || echo './'`rawdsp.c rawdsp.c: In function 'Raw_SetupBoard': rawdsp.c:459:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 459 | fgets(s, 80, stdin); /* skip "setup" command */ | ^~~~~~~~~~~~~~~~~~~ rawdsp.c:463:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 463 | fgets(s, 80, stdin); | ^~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_doRequestInputString': rawdsp.c:150:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 150 | scanf(fmt, buffer); | ^~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_SelectLevel': rawdsp.c:706:13: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 706 | fgets(T, NO_SQUARES + 1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_SetContempt': rawdsp.c:804:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 804 | scanf("%hd", &contempt); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_EditBoard': rawdsp.c:364:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 364 | scanf("%s", s); | ^~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_DoDebug': rawdsp.c:848:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 848 | scanf("%s", s); | ^~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeXwindow': rawdsp.c:812:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 812 | scanf("%hd", &xwndw); | ^~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeSearchDepth': rawdsp.c:783:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 783 | fgets(buf, 80+1, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeHashDepth': rawdsp.c:794:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 794 | scanf("%hd", &HashDepth); | ^~~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c:796:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 796 | scanf("%hd", &HashMoveLimit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeBetaWindow': rawdsp.c:672:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 672 | scanf("%hd", &WBwindow); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c:674:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 674 | scanf("%hd", &BBwindow); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c: In function 'Raw_ChangeAlphaWindow': rawdsp.c:662:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 662 | scanf("%hd", &WAwindow); | ^~~~~~~~~~~~~~~~~~~~~~~ rawdsp.c:664:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 664 | scanf("%hd", &BAwindow); | ^~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-search.o `test -f 'search.c' || echo './'`search.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-tcontrl.o `test -f 'tcontrl.c' || echo './'`tcontrl.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-util.o `test -f 'util.c' || echo './'`util.c util.c: In function 'ProbeFTable': util.c:352:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 352 | fread(&t, sizeof(struct fileentry), 1, hashfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-globals.o `test -f 'globals.c' || echo './'`globals.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-init-common.o `test -f 'init-common.c' || echo './'`init-common.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-pattern-common.o `test -f 'pattern-common.c' || echo './'`pattern-common.c gcc -DHAVE_CONFIG_H -I. -I.. -DMINISHOGI -DHASHFILE=\"/usr/lib64/gnushogi/gnuminishogi.hsh\" -DBOOK=\"/usr/lib64/gnushogi/gnuminishogi.tbk\" -DBINBOOK=\"/usr/lib64/gnushogi/gnuminishogi.bbk\" -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o gnuminishogi-cursesdsp.o `test -f 'cursesdsp.c' || echo './'`cursesdsp.c gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o pat2inc.o pat2inc.c gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o makepattern.o makepattern.c gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o globals.o globals.c gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o init-common.o init-common.c gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o pattern-common.o pattern-common.c gcc -DHAVE_CONFIG_H -I. -I.. -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o sizetest.o sizetest.c gcc -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld -o gnushogi gnushogi-main.o gnushogi-attacks.o gnushogi-book.o gnushogi-commondsp.o gnushogi-eval.o gnushogi-genmove.o gnushogi-init.o gnushogi-pattern.o gnushogi-rawdsp.o gnushogi-search.o gnushogi-tcontrl.o gnushogi-util.o gnushogi-globals.o gnushogi-init-common.o gnushogi-pattern-common.o gnushogi-cursesdsp.o -lcurses -ltermcap -lm eval.c:2379:20: warning: type of 'bookflag' does not match original declaration [-Wlto-type-mismatch] 2379 | extern int bookflag; | ^ search.c:124:6: note: type '_Bool' should match type 'int' 124 | bool bookflag = false; | ^ search.c:124:6: note: 'bookflag' was previously declared here search.c:124:6: note: code may be misoptimized unless '-fno-strict-aliasing' is used gcc -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld -o pat2inc pat2inc.o makepattern.o globals.o init-common.o pattern-common.o -lcurses -ltermcap -lm gcc -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld -o sizetest sizetest.o -ltermcap -lm gcc -fsigned-char -funroll-loops -Wall -Wno-implicit-int -Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld -o gnuminishogi gnuminishogi-main.o gnuminishogi-attacks.o gnuminishogi-book.o gnuminishogi-commondsp.o gnuminishogi-eval.o gnuminishogi-genmove.o gnuminishogi-init.o gnuminishogi-pattern.o gnuminishogi-rawdsp.o gnuminishogi-search.o gnuminishogi-tcontrl.o gnuminishogi-util.o gnuminishogi-globals.o gnuminishogi-init-common.o gnuminishogi-pattern-common.o gnuminishogi-cursesdsp.o -lcurses -ltermcap -lm make[3]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' make[2]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' Making all in doc make[2]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/doc' restore=: && backupdir=".am$$" && \ am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \ rm -rf $backupdir && mkdir $backupdir && \ if (/bin/sh '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/missing' makeinfo --version) >/dev/null 2>&1; then \ for f in gnushogi.info gnushogi.info-[0-9] gnushogi.info-[0-9][0-9] gnushogi.i[0-9] gnushogi.i[0-9][0-9]; do \ if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$am__cwd"; \ if /bin/sh '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/missing' makeinfo -I . \ -o gnushogi.info gnushogi.texi; \ then \ rc=0; \ CDPATH="${ZSH_VERSION+.}:" && cd .; \ else \ rc=$?; \ CDPATH="${ZSH_VERSION+.}:" && cd . && \ $restore $backupdir/* `echo "./gnushogi.info" | sed 's|[^/]*$||'`; \ fi; \ rm -rf $backupdir; exit $rc make[2]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/doc' make[2]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' make[2]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' + make -C gnushogi gnushogi.bbk make: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' rm -f gnushogi.bbk cat ../misc/gnushogi.tbk > _tmp_t echo quit | ./gnushogi -R -b _tmp_t -B gnushogi.bbk -S 8000 -P 40 3 0 Black 0:00 White 0:00 L N S G K G S N L - R - - - - - B - P P P P P P P P P - - - - - - - - - - - - - - - - - - - - - - - - - - - p p p p p p p p p - b - - - - - r - l n s g k g s n l black white creating bookfile gnushogi.bbk 192000 8000 1000 rec 52 openings processed 2000 rec 113 openings processed 3000 rec 210 openings processed 4000 rec 324 openings processed 5000 rec 452 openings processed Book used 5668(8000). Your move is? rm _tmp_t make: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.hlNV46 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 ++ dirname /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 + '[' -f /builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld ']' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/.package_note-gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 'INSTALL=/usr/bin/install -p' Making install in gnushogi make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' /usr/bin/make install-am make[2]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' make[3]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/bin' /usr/bin/install -p gnushogi gnuminishogi '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/bin' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/lib64/gnushogi' /usr/bin/install -p -m 644 ../misc/gnushogi.tbk '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/lib64/gnushogi' make[3]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' make[2]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/gnushogi' Making install in doc make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/doc' make[2]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/doc' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi' /usr/bin/install -p -m 644 BOOKFILES shogi.rules tutorial1.gam tutorial2.gam '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/info' /usr/bin/install -p -m 644 ./gnushogi.info '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/info' install-info --info-dir='/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/info' '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/info/gnushogi.info' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/man/man6' /usr/bin/install -p -m 644 gnushogi.6 '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/man/man6' make[2]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/doc' make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74/doc' make[1]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' make[2]: Entering directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi' /usr/bin/install -p -m 644 CONTRIB '/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi' make[2]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' make[1]: Leaving directory '/builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74' + rm -f /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/info/dir + cp gnushogi/gnushogi.bbk /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/lib64/gnushogi + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 1.5-0.15.git5bb0b5b.fc36 --unique-debug-suffix -1.5-0.15.git5bb0b5b.fc36.x86_64 --unique-debug-src-base gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74 extracting debug info from /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/bin/gnuminishogi extracting debug info from /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/bin/gnushogi original debug info size: 1104kB, size after compression: 992kB /usr/bin/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. 816 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.6mqMmG + umask 022 + cd /builddir/build/BUILD + cd gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74 + DOCDIR=/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi + cp -pr AUTHORS /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi + cp -pr ChangeLog /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi + cp -pr NEWS /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi + cp -pr README /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi + cp -pr TODO /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/doc/gnushogi + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.d296vf + umask 022 + cd /builddir/build/BUILD + cd gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74 + LICENSEDIR=/builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/licenses/gnushogi + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/licenses/gnushogi + cp -pr COPYING /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64/usr/share/licenses/gnushogi + RPM_EC=0 ++ jobs -p + exit 0 warning: File listed twice: /usr/share/doc/gnushogi Provides: gnushogi = 1.5-0.15.git5bb0b5b.fc36 gnushogi(x86-64) = 1.5-0.15.git5bb0b5b.fc36 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh info Requires(preun): /bin/sh info Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.29)(64bit) libncurses.so.6()(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Recommends: xboard Processing files: gnushogi-debugsource-1.5-0.15.git5bb0b5b.fc36.x86_64 Provides: gnushogi-debugsource = 1.5-0.15.git5bb0b5b.fc36 gnushogi-debugsource(x86-64) = 1.5-0.15.git5bb0b5b.fc36 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: gnushogi-debuginfo-1.5-0.15.git5bb0b5b.fc36.x86_64 Provides: debuginfo(build-id) = 59d71b284be4891dae4eed6301468a5c393ace01 debuginfo(build-id) = d42b70c44d307941f878856be058e6f69761fbb9 gnushogi-debuginfo = 1.5-0.15.git5bb0b5b.fc36 gnushogi-debuginfo(x86-64) = 1.5-0.15.git5bb0b5b.fc36 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: gnushogi-debugsource(x86-64) = 1.5-0.15.git5bb0b5b.fc36 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 Wrote: /builddir/build/RPMS/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64.rpm Wrote: /builddir/build/RPMS/gnushogi-debuginfo-1.5-0.15.git5bb0b5b.fc36.x86_64.rpm Wrote: /builddir/build/RPMS/gnushogi-debugsource-1.5-0.15.git5bb0b5b.fc36.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.nIWX7d + umask 022 + cd /builddir/build/BUILD + cd gnushogi-5bb0b5b2f6953b3250e965c7ecaf108215751a74 + /usr/bin/rm -rf /builddir/build/BUILDROOT/gnushogi-1.5-0.15.git5bb0b5b.fc36.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0