[SOLVED] compiling problem on cento 7

Compilation and installation questions and stories
Post Reply
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

[SOLVED] compiling problem on cento 7

Post by hashbang »

HI
I get this error while compiling

/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1855:9: error: ‘GENL_ID_GENERATE’ undeclared here (not in a function)
.id = GENL_ID_GENERATE,
^
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1875:2: warning: initialization from incompatible pointer type [enabled by default]
.ndo_get_stats64 = ipoe_stats64,
^
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1875:2: warning: (near initialization for ‘ipoe_netdev_ops.<anonymous>.ndo_get_stats64’) [enabled by default]
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c: In function ‘ipoe_init’:
/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1911:2: error: implicit declaration of function ‘genl_register_family_with_ops_groups’ [-Werror=implicit-function-declaration]
err = genl_register_family_with_ops_groups(&ipoe_nl_family, ipoe_nl_ops, ipoe_nl_mcgs);
^
cc1: some warnings being treated as errors
make[4]: *** [/opt/accel-ppp-code/build/drivers/ipoe/driver/ipoe.o] Error 1
make[3]: *** [_module_/opt/accel-ppp-code/build/drivers/ipoe/driver] Error 2
make[2]: *** [drivers/ipoe/driver/ipoe.ko] Error 2
make[1]: *** [drivers/ipoe/CMakeFiles/ipoe_drv.dir/all] Error 2
make: *** [all] Error 2
Plz help
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: [SOLVED] compiling problem on cento 7

Post by hashbang »

went through installation instructions and installed kernel from elrepo. rpm package generated successfuly
thnks
nullbyte
Posts: 4
Joined: 19 Nov 2020, 13:08

Re: [SOLVED] compiling problem on cento 7

Post by nullbyte »

Hi everyone,
Still now, centos7 IPoE had some compilation issue with non mainline-kernel. I know this is a very old topic, but for posterity I forked accel-ppp and applied some patches in a centos7 branch.
Here: https://github.com/lion24/accel-ppp/tree/centos7.

This is mainly due to netlink API changes that were backported in older kernel making some preprocessing instructions incorrect. There's probably more to fix but at least I got it working on my side..

Cheers.
Post Reply