Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906662 - net-vpn/openconnect-9.11: error: unknown type name 'json_value'; did you mean 'si_value'?
Summary: net-vpn/openconnect-9.11: error: unknown type name 'json_value'; did you mean...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
: 906663 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-05-18 07:36 UTC by Johannes Penßel
Modified: 2023-05-20 02:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (file_906662.txt,54.49 KB, text/plain)
2023-05-18 07:36 UTC, Johannes Penßel
Details
emerge --info (file_906662.txt,8.21 KB, text/plain)
2023-05-18 07:37 UTC, Johannes Penßel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Penßel 2023-05-18 07:36:00 UTC
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"
Comment 1 Johannes Penßel 2023-05-18 07:36:39 UTC
Created attachment 861872 [details]
build log
Comment 2 Johannes Penßel 2023-05-18 07:37:22 UTC
Created attachment 861873 [details]
emerge --info
Comment 3 Mike Gilbert gentoo-dev 2023-05-18 14:35:40 UTC
*** Bug 906663 has been marked as a duplicate of this bug. ***
Comment 4 Mike Gilbert gentoo-dev 2023-05-18 14:56:20 UTC
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.
Comment 5 Mike Gilbert gentoo-dev 2023-05-18 15:08:22 UTC
Can you please show the output of "emerge -pv1O net-libs/gnutls net-libs/libproxy"?

I want to see versions and USE flags.
Comment 6 Mike Gilbert gentoo-dev 2023-05-18 19:31:01 UTC
I managed to reproduce the issue with the "libproxy" USE flag enabled and sys-apps/util-linux[cryptsetup] installed.
Comment 7 Johannes Penßel 2023-05-18 19:51:19 UTC
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.
Comment 8 David Woodhouse 2023-05-19 07:53:48 UTC
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 :)
Comment 9 Mike Gilbert gentoo-dev 2023-05-19 14:32:45 UTC
(In reply to David Woodhouse from comment #8)

I think I've addressed this on the openconnect merge request.
Comment 10 Larry the Git Cow gentoo-dev 2023-05-20 02:17:54 UTC
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(-)