getabook.c: In function ‘getpagelist’: getabook.c:76:80: error: ‘%s’ directive output may be truncated writing up to 10 23 bytes into a region of size 969 [-Werror=format-truncation=] rl, URLMAX, "/gp/search-inside/service-data?method=getBookData&asin=%s", booki) ; ^~ ~~~~~ In file included from /usr/include/stdio.h:862, from getabook.c:2: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output betwee n 56 and 1079 bytes into a destination of size 1024 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ getabook.c: In function ‘getpageurls’: getabook.c:134:48: error: ‘%s’ directive output may be truncated writing up to 1 023 bytes into a region of size 1003 [-Werror=format-truncation=] snprintf(query, URLMAX, "method=goToPage&asin=%s&page=%d", bookid, pagenum); ^~ ~~~~~~ In file included from /usr/include/stdio.h:862, from getabook.c:2: /usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output betwee n 29 and 1062 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 ‘getpagelist’: getgbook.c:46:35: error: ‘%s’ directive output may be truncated writing up to 10 23 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 betwee n 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 10 23 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:35: getabook.o] Error 1 make: *** Waiting for unfinished jobs.... cc1: all warnings being treated as errors make: *** [Makefile:35: 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 '/home/portage/app-text/getxbook-1.2/tem p/build.log'. * The ebuild environment file is located at '/home/portage/app-text/getxbook-1. 2/temp/environment'. * Working directory: '/home/portage/app-text/getxbook-1.2/work/getxbook-1.2' * S: '/home/portage/app-text/getxbook-1.2/work/getxbook-1.2' >>> Failed to emerge app-text/getxbook-1.2