* Package: app-text/getxbook-1.2 * Repository: gentoo * Maintainer: grozin@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking getxbook-1.2.tar.xz to /var/tmp/portage/app-text/getxbook-1.2/work >>> Source unpacked in /var/tmp/portage/app-text/getxbook-1.2/work >>> Preparing source in /var/tmp/portage/app-text/getxbook-1.2/work/getxbook-1.2 ... * Applying getxbook-1.2.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-text/getxbook-1.2/work/getxbook-1.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/app-text/getxbook-1.2/work/getxbook-1.2 ... make -j1 CC getgbook.c x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -std=c99 -pedantic -Wall -Wextra -Werror -g -D_POSIX_C_SOURCE=200112L -DVERSION=\"1.2\" getgbook.c getgbook.c: In function ‘getpagelist’: getgbook.c:46:35: error: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1014 [-Werror=format-truncation=] snprintf(url, URLMAX, "/books?id=%s&printsec=frontcover&redir_esc=y", bookid); ^~ ~~~~~~ In file included from /usr/include/stdio.h:862, from getgbook.c:2: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 43 and 1066 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ getgbook.c: In function ‘getpageurls’: getgbook.c:85:35: error: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1014 [-Werror=format-truncation=] snprintf(url, URLMAX, "/books?id=%s&pg=%s&jscmd=click3&q=subject:a&redir_esc=y", bookid, pagecode); ^~ ~~~~~~ In file included from /usr/include/stdio.h:862, from getgbook.c:2: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 52 or more bytes (assuming 1075) into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile:36: getgbook.o] Error 1 * ERROR: app-text/getxbook-1.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-text/getxbook-1.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-text/getxbook-1.2::gentoo'`. * The complete build log is located at '/var/log/portage/app-text:getxbook-1.2:20180821-185837.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-text/getxbook-1.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/getxbook-1.2/temp/environment'. * Working directory: '/var/tmp/portage/app-text/getxbook-1.2/work/getxbook-1.2' * S: '/var/tmp/portage/app-text/getxbook-1.2/work/getxbook-1.2'