In file included from test/tokeniser2.c:15: test/tokeniser2.c: In function ‘main’: test/tokeniser2.c:51:10: error: implicit declaration of function ‘is_error’; did you mean ‘mc_error’? [-Werror=implicit-function-declaration] assert(!is_error(json)); ^~~~~~~~ test/testutils.h:31:13: note: in definition of macro ‘assert’ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_test_20190113-225948 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-8.2.0 * Available Python interpreters, in order of preference: [1] python3.7 [2] python3.6 [3] python2.7 (fallback) [4] pypy (fallback) Available Rust versions: [1] rust-1.31.1 * [2] rust-bin-1.32.0 emerge -qpvO net-libs/libhubbub [ebuild N ] net-libs/libhubbub-0.3.5-r1 USE="test -doc"
Created attachment 562128 [details] emerge-info.txt
Created attachment 562130 [details] emerge-history.txt
Created attachment 562132 [details] environment
Created attachment 562134 [details] etc.portage.tbz2
Created attachment 562136 [details] net-libs:libhubbub-0.3.5-r1:20190119-002336.log
Created attachment 562138 [details] temp.tbz2
While this error at least hinting at real problem -Werror causes other failures on ppc64: test/tokeniser3.c: In function 'main': test/tokeniser3.c:49:10: error: implicit declaration of function 'is_error'; did you mean 'mc_error'? [-Werror=implicit-function-declaration] assert(!is_error(json)); ^~~~~~~~ test/testutils.h:31:13: note: in definition of macro 'assert' ((void) ((expr) || (__assert2 (#expr, __func__, __FILE__, __LINE__), 0))) ^~~~ test/tokeniser3.c:49:10: error: nested extern declaration of 'is_error' [-Werror=nested-externs] assert(!is_error(json)); ^~~~~~~~
There are two problems here. First, the -Werror flag, but also, the undeclared is_error() macro, which is a regression from json-c's 0.13 release[1] Fixing both. [1]: https://github.com/json-c/json-c/issues/304
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09c796445b6028ac922090727d4eba85fca06e1e commit 09c796445b6028ac922090727d4eba85fca06e1e Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2019-01-25 20:53:46 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2019-01-25 20:55:05 +0000 net-libs/libhubbub: fix test failure Closes: https://bugs.gentoo.org/675836 Signed-off-by: Virgil Dupras <vdupras@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 net-libs/libhubbub/libhubbub-0.3.5-r1.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)