BtbN / gentoo-overlay

0 stars 0 forks source link

Unable to compile with dco USE flag enabled #1

Open Cerberios opened 1 year ago

Cerberios commented 1 year ago

Hello there! Trying to compile net-vpn/openvpn3-20:0 with USE dco. Getting bunch of errors like:

In file included from src/netcfg/netcfg-dco.hpp:17, from src/netcfg/netcfg-device.hpp:41, from src/netcfg/netcfg.hpp:34, from src/netcfg/openvpn3-service-netcfg.cpp:34: ./openvpn3-core/openvpn/tun/linux/client/genl.hpp: In member function ‘void openvpn::GeNL<ReadHandler>::send_data(int, const void*, size_t)’: ./openvpn3-core/openvpn/tun/linux/client/genl.hpp:204:31: error: ‘OVPN_CMD_PACKET’ was not declared in this scope; did you mean ‘OVPN_CMD_UNSPEC’? 204 | auto msg_ptr = create_msg(OVPN_CMD_PACKET); | ^~~~~~~~~~~~~~~ | OVPN_CMD_UNSPEC

BtbN commented 1 year ago

Probably got the wrong version of the dco module? It recently got split into the original 0.1 version and v2. Haven't looked at openvpn3 in a while, since I don't see its merit over just openvpn.

Cerberios commented 1 year ago

Thank You for answer! Seems version OK, I got it from your repo.

net-vpn/ovpn-dco Available versions: (~)0.1.20230206 (~)0.2.20230323 *9999l {debug dist-kernel} Installed versions: 0.2.20230323(04:51:00 PM 04/25/2023)(-debug -dist-kernel) Homepage: https://github.com/OpenVPN/ovpn-dco Description: OpenVPN Data Channel Offload in the linux kernel

modinfo /lib/modules/6.1.25-gentoo/updates/ovpn-dco-v2.ko.zst filename: /lib/modules/6.1.25-gentoo/updates/ovpn-dco-v2.ko.zst alias: net-pf-16-proto-16-family-ovpn-dco-v2 alias: rtnl-link-ovpn-dco version: 0.2.20230323 license: GPL author: (C) 2020-2023 OpenVPN, Inc. description: OpenVPN data channel offload (ovpn-dco) srcversion: E1A3C2891FF7B0EAD6BAC5D depends: ipv6 retpoline: Y name: ovpn_dco_v2 vermagic: 6.1.25-gentoo SMP preempt mod_unload modversions

BtbN commented 1 year ago

That's v2, yes. It might not be compatible with v2.