Debian Burst with Kernel 5.2.14

Compilation and installation questions and stories
Post Reply
mehahn
Posts: 1
Joined: 11 Sep 2019, 20:16

Debian Burst with Kernel 5.2.14

Post by mehahn » 11 Sep 2019, 20:21

Hello, I'm trying to build Accel with the kernel version 5.2.14.

But after run cmake, I'm get errors with make.

Code: Select all

[ 99%] Generating driver/ipoe.ko
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c: In function ‘check_nat_required’:
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:258:10: error: ‘struct rtable’ has no member named ‘rt_gateway’; did you mean ‘rt_genid’?
  if (rt->rt_gateway || (rt->dst.dev != link && rt->dst.dev != skb->dev))
          ^~~~~~~~~~
          rt_genid
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c: At top level:
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1748:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1748:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1748:13: note: (near initialization for ‘ipoe_nl_ops[0].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1754:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1754:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1754:13: note: (near initialization for ‘ipoe_nl_ops[1].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1760:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1760:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1760:13: note: (near initialization for ‘ipoe_nl_ops[2].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1766:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1766:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1766:13: note: (near initialization for ‘ipoe_nl_ops[3].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1772:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1772:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1772:13: note: (near initialization for ‘ipoe_nl_ops[4].done’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1777:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1777:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1777:13: note: (near initialization for ‘ipoe_nl_ops[5].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1783:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1783:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1783:13: note: (near initialization for ‘ipoe_nl_ops[6].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1789:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1789:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1789:13: note: (near initialization for ‘ipoe_nl_ops[7].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1795:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1795:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1795:13: note: (near initialization for ‘ipoe_nl_ops[8].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1801:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1801:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1801:13: note: (near initialization for ‘ipoe_nl_ops[9].start’)
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1807:4: error: ‘struct genl_ops’ has no member named ‘policy’
   .policy = ipoe_nl_policy,
    ^~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1807:13: error: initialization of ‘int (*)(struct netlink_callback *)’ from incompatible pointer type ‘struct nla_policy *’ [-Werror=incompatible-pointer-types]
   .policy = ipoe_nl_policy,
             ^~~~~~~~~~~~~~
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1807:13: note: (near initialization for ‘ipoe_nl_ops[10].start’)
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:285: /opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.o] Error 1
make[3]: *** [Makefile:1597: _module_/opt/accel-ppp-code/build/drivers/ipoe/driver] Error 2
make[2]: *** [drivers/ipoe/CMakeFiles/ipoe_drv.dir/build.make:65: drivers/ipoe/driver/ipoe.ko] Error 2
make[1]: *** [CMakeFiles/Makefile2:1574: drivers/ipoe/CMakeFiles/ipoe_drv.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
The current code on git is compatible with kernel >5?

Sorry but I just found at docs that the requirements are kernel-2.6.25 or later, but later until what?

dimka88
Posts: 588
Joined: 13 Oct 2014, 05:51
Contact:

Re: Debian Burst with Kernel 5.2.14

Post by dimka88 » 13 Sep 2019, 19:17

Hi mehahn, we know about problem with building modules ipoe and vlan_mon on kernel higher than 5.1. we need time for solve this

tj-19
Posts: 12
Joined: 10 Jun 2019, 20:42

Re: Debian Burst with Kernel 5.2.14

Post by tj-19 » 11 Nov 2019, 21:51

Hi,

Is there any timescale for a fix to this bug?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest