epiphany-40.0 build fails with implicit declaration of function 'json_object_get_string_member_with_default'
Building epiphany-40.0 with gcc-10.2.0 and:
CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" meson --prefix=/usr/local --localstatedir=/var --libexecdir=/usr/local/lib/epiphany --buildtype=plain -Dlibportal=disabled
..fails with:
../src/webextension/ephy-web-extension.c:455:12: error: implicit declaration of function 'json_object_get_string_member_with_default'; did you mean 'json_object_get_string_member'? [-Werror=implicit-function-declaration]
455 | run_at = json_object_get_string_member_with_default (object, "run_at", "document_idle");
If "-Werror=implicit-function-declaration" is removed, the build fails with:
/usr/local/bin/ld: /tmp/libephymain.so.8UAhmx.ltrans6.ltrans.o: in function `web_extension_add_content_script':
<artificial>:(.text+0x54e0): undefined reference to `json_object_get_string_member_with_default'
/usr/local/bin/ld: <artificial>:(.text+0x5581): undefined reference to `json_object_get_boolean_member_with_default'