net-vpn/openconnect-9.11 fails to build with the following error message: In file included from auth-juniper.c:25: openconnect-internal.h:1654:59: error: unknown type name 'json_value'; did you mean 'si_value'? 1654 | void dump_json(struct openconnect_info *vpninfo, int lvl, json_value *value); $ emerge -pvq openconnect [ebuild U ] net-vpn/openconnect-9.11 [9.10] USE="gnutls gssapi libproxy lz4 nls verify-sig -doc -pskc (-selinux) -smartcard -stoken -test"
Created attachment 861872 [details] build log
Created attachment 861873 [details] emerge --info
*** Bug 906663 has been marked as a duplicate of this bug. ***
I am unable to reproduce this. It looks like a pkgconfig file in some dependency is causing "-I/usr/include/json-c" to be added to the compiler commands. /usr/include/json-c/json.h conflicts with /usr/include/json-parser/json.h.
Can you please show the output of "emerge -pv1O net-libs/gnutls net-libs/libproxy"? I want to see versions and USE flags.
I managed to reproduce the issue with the "libproxy" USE flag enabled and sys-apps/util-linux[cryptsetup] installed.
Sorry for the late answer. In case it's still useful for anything, here is the output: [ebuild R ] net-libs/gnutls-3.8.0:0/30.30::gentoo USE="brotli cxx idn nls openssl pkcs11 seccomp tls-heartbeat verify-sig zlib zstd -dane -doc -examples -sslv2 -sslv3 -static-libs -test -test-full -tools" 0 KiB [ebuild R ] net-libs/libproxy-0.5.0::gentoo USE="duktape gnome introspection vala -gtk-doc -kde -test" 0 KiB with USE=libproxy disabled, the package builds successfully on my system as well.
Can you please show the output of `pkg-config --cflags libproxy-1.0` ? And indeed the whole contents of the `libproxy-1.0.pc` file? I don't really see why libproxy should be adding *anything* but its own directory containing libproxy.h to the include path. Further ranting at https://gitlab.com/openconnect/openconnect/-/merge_requests/476#note_1397129468 :)
(In reply to David Woodhouse from comment #8) I think I've addressed this on the openconnect merge request.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcd2a5a59bca9b11abdb5a7b56d8efe966ff3928 commit dcd2a5a59bca9b11abdb5a7b56d8efe966ff3928 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-05-20 02:14:37 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-05-20 02:17:22 +0000 net-vpn/openconnect: fix build failure Closes: https://bugs.gentoo.org/906662 Signed-off-by: Mike Gilbert <floppym@gentoo.org> .../files/openconnect-9.11-json-cflags.patch | 57 ++++++++++++++++++++++ net-vpn/openconnect/openconnect-9.11.ebuild | 11 +++-- 2 files changed, 63 insertions(+), 5 deletions(-)