Created attachment 545112 [details] build log These are the errors: redis-check-aof.c: In function 'consumeNewline.part.0': redis-check-aof.c:37:20: warning: '%s' directive writing up to 1023 bytes into a region of size 1004 [-Wformat-overflow=] sprintf(error, "0x%16llx: %s", (long long)epos, __buf); \ ^~~~~~~~~~~~~~ ~~~~~ redis-check-aof.c:45:9: note: in expansion of macro 'ERROR' ERROR("Expected \\r\\n, got: %02x%02x",buf[0],buf[1]); ^~~~~ In file included from /usr/include/stdio.h:862, from rio.h:35, from server.h:36, from redis-check-aof.c:31: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 21 and 1044 bytes into a destination of size 1024 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ redis-check-aof.c: In function 'readLong': redis-check-aof.c:37:20: warning: '%s' directive writing up to 1023 bytes into a region of size 1004 [-Wformat-overflow=] sprintf(error, "0x%16llx: %s", (long long)epos, __buf); \ ^~~~~~~~~~~~~~ ~~~~~ redis-check-aof.c:58:9: note: in expansion of macro 'ERROR' ERROR("Expected prefix '%c', got: '%c'",prefix,buf[0]); ^~~~~ In file included from /usr/include/stdio.h:862, from rio.h:35, from server.h:36, from redis-check-aof.c:31: /usr/include/bits/stdio2.h:33:10: note: '__builtin___sprintf_chk' output between 21 and 1044 bytes into a destination of size 1024
Please attach your emerge --info output.
Created attachment 545154 [details] emerge info
Seems like the reason is that I accidentally removed -lm from linking flags, can you please test with https://raw.githubusercontent.com/gentoo/gentoo/159e0c2bca9bc8b1ba4f6134097faaef7d3e5b25/dev-db/redis/files/redis-5.0-sharedlua.patch?
Yes. The updated patch worked.
Thanks for testing out.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9638f65d0442ee6ceb72fbf845e645bcffa7a1be commit 9638f65d0442ee6ceb72fbf845e645bcffa7a1be Author: Tomas Mozes <hydrapolic@gmail.com> AuthorDate: 2018-08-27 05:30:39 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2018-09-05 21:19:53 +0000 dev-db/redis: re-add -lm for luajit Closes: https://bugs.gentoo.org/664648 Package-Manager: Portage-2.3.45, Repoman-2.3.10 (cherry picked from commit 159e0c2bca9bc8b1ba4f6134097faaef7d3e5b25) Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Fixes: https://github.com/gentoo/gentoo/pull/9706 dev-db/redis/files/redis-5.0-sharedlua.patch | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)