IPOE will not compile on Centos 7

Compilation and installation questions and stories
Post Reply
mvangent
Posts: 2
Joined: 11 Aug 2017, 22:06

IPOE will not compile on Centos 7

Post by mvangent » 11 Aug 2017, 22:07

Hello,

I am attempting to build accel-ppp for centos 7 for a new project and it refuses to compile. See below for the error log. I do not see any patches for this, so I would appreciate any and all assistance!

[root@localhost test]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@localhost test]# uname -a
Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost test]# git clone https://git.code.sf.net/p/accel-ppp/code accel-ppp-code
Cloning into 'accel-ppp-code'...
remote: Counting objects: 12299, done.
remote: Compressing objects: 100% (7524/7524), done.
remote: Total 12299 (delta 9407), reused 6223 (delta 4673)
Receiving objects: 100% (12299/12299), 3.89 MiB | 822.00 KiB/s, done.
Resolving deltas: 100% (9407/9407), done.
[root@localhost test]# cd accel-ppp-code/
[root@localhost accel-ppp-code]# mkdir build
[root@localhost accel-ppp-code]# cd build
[root@localhost build]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/accel-ppp -DBUILD_DRIVER=FALSE -DCMAKE_BUILD_TYPE=Debug -DSHAPER=TRUE -DRADIUS=TRUE -DBUILD_IPOE_DRIVER=TRUE -DNETSNMP=TRUE -DLUA=TRUE -DBUILD_VLAN_MON_DRIVER=TRUE ..
--
-- The C compiler identification is GNU 4.8.5
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- 'x86_64'
-- Looking for timerfd_create
-- Looking for timerfd_create - found
-- Found Lua51: /usr/lib64/liblua-5.1.so;/usr/lib64/libm.so (found version "5.1.4")
-- Looking for linux/netfilter/ipset/ip_set.h
-- Looking for linux/netfilter/ipset/ip_set.h - found
-- Looking for setns
-- Looking for setns - found
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

BUILD_DRIVER


-- Build files have been written to: /home/mvangent/test/accel-ppp-code/build
[root@localhost build]# --
bash: --: command not found
[root@localhost build]# make
Scanning dependencies of target triton
[ 1%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/md.c.o
[ 1%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/timer.c.o
[ 2%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/triton.c.o
[ 3%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/conf_file.c.o
[ 4%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/loader.c.o
[ 5%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/log.c.o
[ 6%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/mempool.c.o
[ 7%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/event.c.o
Linking C shared library libtriton.so
[ 7%] Built target triton
Scanning dependencies of target accel-pppd
[ 8%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/memdebug.c.o
[ 9%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/session.c.o
[ 10%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/session_backup.c.o
[ 11%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ifcfg.c.o
[ 12%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/net.c.o
[ 13%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/backup/backup.c.o
[ 14%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp.c.o
[ 14%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_fsm.c.o
[ 15%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_lcp.c.o
[ 16%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_mru.c.o
[ 17%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_magic.c.o
[ 18%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_pcomp.c.o
[ 19%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_accomp.c.o
[ 20%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_auth.c.o
[ 21%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ipcp.c.o
[ 22%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_ipaddr.c.o
[ 22%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_dns.c.o
[ 23%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_wins.c.o
[ 24%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipv6cp_opt_intfid.c.o
[ 25%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ipv6cp.c.o
[ 26%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ccp.c.o
[ 27%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ccp_mppe.c.o
[ 28%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/std_cmd.c.o
[ 29%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/show_sessions.c.o
[ 30%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/telnet.c.o
[ 30%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/tcp.c.o
[ 31%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/cli.c.o
[ 32%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/libnetlink.c.o
[ 33%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/iputils.c.o
[ 34%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/genl.c.o
[ 35%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/ipset.c.o
[ 36%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/pwdb.c.o
[ 37%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ipdb.c.o
[ 37%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/iprange.c.o
[ 38%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/utils.c.o
[ 39%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/rbtree.c.o
[ 40%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/log.c.o
[ 41%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/main.c.o
Linking C executable accel-pppd
[ 41%] Built target accel-pppd
Scanning dependencies of target radius
[ 42%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/stat_accm.c.o
[ 43%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dict.c.o
[ 44%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/req.c.o
[ 45%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/packet.c.o
[ 46%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/auth.c.o
[ 47%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/acct.c.o
[ 47%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/serv.c.o
[ 48%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dm_coa.c.o
[ 49%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/radius.c.o
Linking C shared library libradius.so
[ 49%] Built target radius
Scanning dependencies of target vlan-mon
[ 50%] Building C object accel-pppd/vlan-mon/CMakeFiles/vlan-mon.dir/vlan_mon.c.o
Linking C shared library libvlan-mon.so
[ 50%] Built target vlan-mon
Scanning dependencies of target pptp
[ 51%] Building C object accel-pppd/ctrl/pptp/CMakeFiles/pptp.dir/pptp.c.o
Linking C shared library libpptp.so
[ 51%] Built target pptp
Scanning dependencies of target pppoe
[ 52%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/pppoe.c.o
[ 53%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/mac_filter.c.o
[ 54%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/dpado.c.o
[ 55%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/cli.c.o
[ 55%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/disc.c.o
[ 56%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/tr101.c.o
Linking C shared library libpppoe.so
[ 56%] Built target pppoe
Scanning dependencies of target l2tp
[ 57%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/l2tp.c.o
[ 57%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/dict.c.o
[ 58%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/packet.c.o
Linking C shared library libl2tp.so
[ 58%] Built target l2tp
Scanning dependencies of target ipoe
[ 59%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/ipoe.c.o
[ 60%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/dhcpv4.c.o
[ 61%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/dhcpv4_options.c.o
[ 62%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/ipoe_netlink.c.o
[ 63%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/arp.c.o
[ 64%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/lua.c.o
[ 65%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/lua_lpack.c.o
[ 65%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/lua_bit.c.o
Linking C shared library libipoe.so
[ 65%] Built target ipoe
Scanning dependencies of target auth_chap_md5
[ 66%] Building C object accel-pppd/auth/CMakeFiles/auth_chap_md5.dir/auth_chap_md5.c.o
Linking C shared library libauth_chap_md5.so
[ 66%] Built target auth_chap_md5
Scanning dependencies of target auth_mschap_v1
[ 67%] Building C object accel-pppd/auth/CMakeFiles/auth_mschap_v1.dir/auth_mschap_v1.c.o
Linking C shared library libauth_mschap_v1.so
[ 67%] Built target auth_mschap_v1
Scanning dependencies of target auth_mschap_v2
[ 68%] Building C object accel-pppd/auth/CMakeFiles/auth_mschap_v2.dir/auth_mschap_v2.c.o
Linking C shared library libauth_mschap_v2.so
[ 68%] Built target auth_mschap_v2
Scanning dependencies of target auth_pap
[ 69%] Building C object accel-pppd/auth/CMakeFiles/auth_pap.dir/auth_pap.c.o
Linking C shared library libauth_pap.so
[ 69%] Built target auth_pap
Scanning dependencies of target log_file
[ 70%] Building C object accel-pppd/logs/CMakeFiles/log_file.dir/log_file.c.o
Linking C shared library liblog_file.so
[ 70%] Built target log_file
Scanning dependencies of target log_syslog
[ 71%] Building C object accel-pppd/logs/CMakeFiles/log_syslog.dir/log_syslog.c.o
Linking C shared library liblog_syslog.so
[ 71%] Built target log_syslog
Scanning dependencies of target log_tcp
[ 72%] Building C object accel-pppd/logs/CMakeFiles/log_tcp.dir/log_tcp.c.o
Linking C shared library liblog_tcp.so
[ 72%] Built target log_tcp
Scanning dependencies of target chap-secrets
[ 72%] Building C object accel-pppd/extra/CMakeFiles/chap-secrets.dir/chap-secrets.c.o
Linking C shared library libchap-secrets.so
[ 72%] Built target chap-secrets
Scanning dependencies of target connlimit
[ 73%] Building C object accel-pppd/extra/CMakeFiles/connlimit.dir/connlimit.c.o
Linking C shared library libconnlimit.so
[ 73%] Built target connlimit
Scanning dependencies of target ippool
[ 74%] Building C object accel-pppd/extra/CMakeFiles/ippool.dir/ippool.c.o
Linking C shared library libippool.so
[ 74%] Built target ippool
Scanning dependencies of target ipv6pool
[ 75%] Building C object accel-pppd/extra/CMakeFiles/ipv6pool.dir/ipv6pool.c.o
Linking C shared library libipv6pool.so
[ 75%] Built target ipv6pool
Scanning dependencies of target logwtmp
[ 76%] Building C object accel-pppd/extra/CMakeFiles/logwtmp.dir/logwtmp.c.o
Linking C shared library liblogwtmp.so
[ 76%] Built target logwtmp
Scanning dependencies of target sigchld
[ 77%] Building C object accel-pppd/extra/CMakeFiles/sigchld.dir/sigchld.c.o
Linking C shared library libsigchld.so
[ 77%] Built target sigchld
Scanning dependencies of target pppd_compat
[ 78%] Building C object accel-pppd/extra/CMakeFiles/pppd_compat.dir/pppd_compat.c.o
Linking C shared library libpppd_compat.so
[ 78%] Built target pppd_compat
Scanning dependencies of target net-snmp
[ 79%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/agent.c.o
[ 80%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable.c.o
[ 81%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable_data_access.c.o
[ 81%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable_data_get.c.o
[ 82%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable_data_set.c.o
[ 83%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable_interface.c.o
[ 84%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statCore.c.o
[ 85%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statL2TP.c.o
[ 86%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statPPP.c.o
[ 87%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statPPPOE.c.o
[ 88%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statPPTP.c.o
[ 89%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statIPOE.c.o
[ 89%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/terminate.c.o
[ 90%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/shutdown.c.o
[ 91%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/exec_cli.c.o
Linking C shared library libnet-snmp.so
[ 91%] Built target net-snmp
Scanning dependencies of target ipv6_dhcp
[ 92%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6.c.o
[ 93%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6_packet.c.o
Linking C shared library libipv6_dhcp.so
[ 93%] Built target ipv6_dhcp
Scanning dependencies of target ipv6_nd
[ 94%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_nd.dir/nd.c.o
Linking C shared library libipv6_nd.so
[ 94%] Built target ipv6_nd
Scanning dependencies of target shaper
[ 95%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/shaper.c.o
[ 96%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/limiter.c.o
[ 97%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/leaf_qdisc.c.o
[ 98%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/tc_core.c.o
Linking C shared library libshaper.so
[ 98%] Built target shaper
Scanning dependencies of target accel-cmd
[ 98%] Building C object accel-cmd/CMakeFiles/accel-cmd.dir/accel_cmd.c.o
Linking C executable accel-cmd
[ 98%] Built target accel-cmd
Scanning dependencies of target ipoe_drv
[ 99%] Generating driver/ipoe.ko
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c: In function ‘ipoe_process_queue’:
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:597:53: error: ‘struct genl_multicast_group’ has no member named ‘id’
header = genlmsg_put(report_skb, 0, ipoe_nl_mcg.id, &ipoe_nl_family, 0, IPOE_REP_PKT);
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:626:50: error: ‘struct genl_multicast_group’ has no member named ‘id’
genlmsg_multicast(report_skb, 0, ipoe_nl_mcg.id, GFP_KERNEL);
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:626:6: warning: passing argument 1 of ‘genlmsg_multicast’ from incompatible pointer type [enabled by default]
genlmsg_multicast(report_skb, 0, ipoe_nl_mcg.id, GFP_KERNEL);
^
In file included from /home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:23:0:
include/net/genetlink.h:310:19: note: expected ‘struct genl_family *’ but argument is of type ‘struct sk_buff *’
static inline int genlmsg_multicast(struct genl_family *family,
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:626:6: error: too few arguments to function ‘genlmsg_multicast’
genlmsg_multicast(report_skb, 0, ipoe_nl_mcg.id, GFP_KERNEL);
^
In file included from /home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:23:0:
include/net/genetlink.h:310:19: note: declared here
static inline int genlmsg_multicast(struct genl_family *family,
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:662:47: error: ‘struct genl_multicast_group’ has no member named ‘id’
genlmsg_multicast(report_skb, 0, ipoe_nl_mcg.id, GFP_KERNEL);
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:662:3: warning: passing argument 1 of ‘genlmsg_multicast’ from incompatible pointer type [enabled by default]
genlmsg_multicast(report_skb, 0, ipoe_nl_mcg.id, GFP_KERNEL);
^
In file included from /home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:23:0:
include/net/genetlink.h:310:19: note: expected ‘struct genl_family *’ but argument is of type ‘struct sk_buff *’
static inline int genlmsg_multicast(struct genl_family *family,
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:662:3: error: too few arguments to function ‘genlmsg_multicast’
genlmsg_multicast(report_skb, 0, ipoe_nl_mcg.id, GFP_KERNEL);
^
In file included from /home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:23:0:
include/net/genetlink.h:310:19: note: declared here
static inline int genlmsg_multicast(struct genl_family *family,
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c: In function ‘ipoe_stats64’:
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:915:4: error: implicit declaration of function ‘u64_stats_fetch_begin_bh’ [-Werror=implicit-function-declaration]
start = u64_stats_fetch_begin_bh(&st->sync);
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:918:3: error: implicit declaration of function ‘u64_stats_fetch_retry_bh’ [-Werror=implicit-function-declaration]
} while (u64_stats_fetch_retry_bh(&st->sync, start));
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c: In function ‘ipoe_init’:
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1750:91: error: macro "genl_register_family_with_ops" passed 3 arguments, but takes just 2
err = genl_register_family_with_ops(&ipoe_nl_family, ipoe_nl_ops, ARRAY_SIZE(ipoe_nl_ops));
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1750:8: error: ‘genl_register_family_with_ops’ undeclared (first use in this function)
err = genl_register_family_with_ops(&ipoe_nl_family, ipoe_nl_ops, ARRAY_SIZE(ipoe_nl_ops));
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1750:8: note: each undeclared identifier is reported only once for each function it appears in
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1760:2: error: implicit declaration of function ‘genl_register_mc_group’ [-Werror=implicit-function-declaration]
err = genl_register_mc_group(&ipoe_nl_family, &ipoe_nl_mcg);
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c: In function ‘ipoe_fini’:
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1779:2: error: implicit declaration of function ‘genl_unregister_mc_group’ [-Werror=implicit-function-declaration]
genl_unregister_mc_group(&ipoe_nl_family, &ipoe_nl_mcg);
^
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c: At top level:
/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.c:1632:24: warning: ‘ipoe_nl_ops’ defined but not used [-Wunused-variable]
static struct genl_ops ipoe_nl_ops[] = {
^
cc1: some warnings being treated as errors
make[4]: *** [/home/mvangent/test/accel-ppp-code/build/drivers/ipoe/driver/ipoe.o] Error 1
make[3]: *** [_module_/home/mvangent/test/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
[root@localhost build]#





--
Matthew Van Gent

Dmitry
Администратор
Posts: 774
Joined: 09 Oct 2014, 10:06

Re: IPOE will not compile on Centos 7

Post by Dmitry » 12 Aug 2017, 06:55

centos kernel is mess of various patches
try other distribution like debian

mvangent
Posts: 2
Joined: 11 Aug 2017, 22:06

Re: IPOE will not compile on Centos 7

Post by mvangent » 14 Aug 2017, 04:14

Hello Dmitri,

I have setup a VM with Debain, getting a similar error, see below. Any assistance would be appreciated.

root@debian:/home/mvangent# uname -a
Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux
root@debian:/home/mvangent# cat /etc/issue
Debian GNU/Linux 9 \n \l

root@debian:/home/mvangent# git clone git://git.code.sf.net/p/accel-ppp/code accel-ppp.git
Cloning into 'accel-ppp.git'...
remote: Counting objects: 12299, done.
remote: Compressing objects: 100% (7524/7524), done.
remote: Total 12299 (delta 9406), reused 6223 (delta 4673)
Receiving objects: 100% (12299/12299), 3.89 MiB | 557.00 KiB/s, done.
Resolving deltas: 100% (9406/9406), done.
root@debian:/home/mvangent# cd accel-ppp.git/
root@debian:/home/mvangent/accel-ppp.git# mkdir build
root@debian:/home/mvangent/accel-ppp.git# cd build/
root@debian:/home/mvangent/accel-ppp.git/build# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/accel-ppp -DBUILD_DRIVER=FALSE -DCMAKE_BUILD_TYPE=Debug -DSHAPER=TRUE -DRADIUS=TRUE -DBUILD_IPOE_DRIVER=TRUE -DNETSNMP=TRUE -DLUA=TRUE -DBUILD_VLAN_MON_DRIVER=TRUE ..
-- The C compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 'x86_64'
-- Looking for timerfd_create
-- Looking for timerfd_create - found
-- Found Lua51: /usr/lib/x86_64-linux-gnu/liblua5.1.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.1.5")
-- Looking for linux/netfilter/ipset/ip_set.h
-- Looking for linux/netfilter/ipset/ip_set.h - found
-- Looking for setns
-- Looking for setns - found
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

BUILD_DRIVER


-- Build files have been written to: /home/mvangent/accel-ppp.git/build
root@debian:/home/mvangent/accel-ppp.git/build# make
Scanning dependencies of target triton
[ 1%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/md.c.o
[ 1%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/timer.c.o
[ 2%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/triton.c.o
[ 3%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/conf_file.c.o
[ 4%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/loader.c.o
[ 4%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/log.c.o
[ 5%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/mempool.c.o
[ 6%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/event.c.o
[ 6%] Linking C shared library libtriton.so
[ 6%] Built target triton
Scanning dependencies of target accel-pppd
[ 7%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/memdebug.c.o
[ 7%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/session.c.o
[ 8%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/session_backup.c.o
[ 9%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ifcfg.c.o
[ 10%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/net.c.o
[ 10%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/backup/backup.c.o
[ 11%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp.c.o
[ 12%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_fsm.c.o
[ 12%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_lcp.c.o
/home/mvangent/accel-ppp.git/accel-pppd/ppp/ppp_lcp.c: In function ‘lcp_recv’:
/home/mvangent/accel-ppp.git/accel-pppd/ppp/ppp_lcp.c:820:4: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
/home/mvangent/accel-ppp.git/accel-pppd/ppp/ppp_lcp.c:823:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
ppp_fsm_recv_conf_ack(&lcp->fsm);
^~~~~~~~~~~~~~~~~~~~~
/home/mvangent/accel-ppp.git/accel-pppd/ppp/ppp_lcp.c:834:4: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
/home/mvangent/accel-ppp.git/accel-pppd/ppp/ppp_lcp.c:837:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
ppp_fsm_recv_conf_rej(&lcp->fsm);
^~~~~~~~~~~~~~~~~~~~~
[ 13%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_mru.c.o
[ 14%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_magic.c.o
[ 15%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_pcomp.c.o
[ 15%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_accomp.c.o
[ 16%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_auth.c.o
[ 17%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ipcp.c.o
[ 17%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_ipaddr.c.o
[ 18%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_dns.c.o
[ 19%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_wins.c.o
[ 20%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipv6cp_opt_intfid.c.o
[ 20%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ipv6cp.c.o
[ 21%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ccp.c.o
[ 22%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ccp_mppe.c.o
[ 22%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/std_cmd.c.o
[ 23%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/show_sessions.c.o
[ 24%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/telnet.c.o
[ 25%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/tcp.c.o
[ 25%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/cli.c.o
[ 26%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/libnetlink.c.o
[ 27%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/iputils.c.o
[ 27%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/genl.c.o
[ 28%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/ipset.c.o
[ 29%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/pwdb.c.o
[ 30%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ipdb.c.o
[ 30%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/iprange.c.o
[ 31%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/utils.c.o
[ 32%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/rbtree.c.o
[ 32%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/log.c.o
[ 33%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/main.c.o
/home/mvangent/accel-ppp.git/accel-pppd/main.c: In function ‘close_all_fd’:
/home/mvangent/accel-ppp.git/accel-pppd/main.c:125:3: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
if (readdir_r(dirp, &ent, &res))
^~
In file included from /home/mvangent/accel-ppp.git/accel-pppd/main.c:11:0:
/usr/include/dirent.h:183:12: note: declared here
extern int readdir_r (DIR *__restrict __dirp,
^~~~~~~~~
At top level:
/home/mvangent/accel-ppp.git/accel-pppd/main.c:55:13: warning: ‘ssl_lock’ defined but not used [-Wunused-function]
static void ssl_lock(int mode, int type, const char *file, int line)
^~~~~~~~
/home/mvangent/accel-ppp.git/accel-pppd/main.c:50:22: warning: ‘ssl_thread_id’ defined but not used [-Wunused-function]
static unsigned long ssl_thread_id(void)
^~~~~~~~~~~~~
[ 34%] Linking C executable accel-pppd
[ 34%] Built target accel-pppd
Scanning dependencies of target radius
[ 35%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/stat_accm.c.o
[ 35%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dict.c.o
[ 36%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/req.c.o
[ 37%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/packet.c.o
[ 37%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/auth.c.o
[ 38%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/acct.c.o
[ 39%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/serv.c.o
[ 40%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dm_coa.c.o
[ 40%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/radius.c.o
[ 41%] Linking C shared library libradius.so
[ 41%] Built target radius
Scanning dependencies of target vlan-mon
[ 42%] Building C object accel-pppd/vlan-mon/CMakeFiles/vlan-mon.dir/vlan_mon.c.o
[ 43%] Linking C shared library libvlan-mon.so
[ 43%] Built target vlan-mon
Scanning dependencies of target pptp
[ 44%] Building C object accel-pppd/ctrl/pptp/CMakeFiles/pptp.dir/pptp.c.o
[ 45%] Linking C shared library libpptp.so
[ 45%] Built target pptp
Scanning dependencies of target pppoe
[ 46%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/pppoe.c.o
[ 47%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/mac_filter.c.o
[ 48%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/dpado.c.o
[ 48%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/cli.c.o
[ 49%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/disc.c.o
[ 50%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/tr101.c.o
[ 50%] Linking C shared library libpppoe.so
[ 50%] Built target pppoe
Scanning dependencies of target l2tp
[ 51%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/l2tp.c.o
[ 51%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/dict.c.o
[ 52%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/packet.c.o
[ 53%] Linking C shared library libl2tp.so
[ 53%] Built target l2tp
Scanning dependencies of target ipoe
[ 54%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/ipoe.c.o
[ 55%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/dhcpv4.c.o
[ 56%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/dhcpv4_options.c.o
[ 56%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/ipoe_netlink.c.o
[ 57%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/arp.c.o
[ 58%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/lua.c.o
[ 58%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/lua_lpack.c.o
[ 59%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/lua_bit.c.o
[ 60%] Linking C shared library libipoe.so
[ 60%] Built target ipoe
Scanning dependencies of target auth_mschap_v1
[ 61%] Building C object accel-pppd/auth/CMakeFiles/auth_mschap_v1.dir/auth_mschap_v1.c.o
[ 62%] Linking C shared library libauth_mschap_v1.so
[ 62%] Built target auth_mschap_v1
Scanning dependencies of target auth_chap_md5
[ 63%] Building C object accel-pppd/auth/CMakeFiles/auth_chap_md5.dir/auth_chap_md5.c.o
[ 63%] Linking C shared library libauth_chap_md5.so
[ 63%] Built target auth_chap_md5
Scanning dependencies of target auth_pap
[ 64%] Building C object accel-pppd/auth/CMakeFiles/auth_pap.dir/auth_pap.c.o
[ 65%] Linking C shared library libauth_pap.so
[ 65%] Built target auth_pap
Scanning dependencies of target auth_mschap_v2
[ 65%] Building C object accel-pppd/auth/CMakeFiles/auth_mschap_v2.dir/auth_mschap_v2.c.o
[ 66%] Linking C shared library libauth_mschap_v2.so
[ 66%] Built target auth_mschap_v2
Scanning dependencies of target log_syslog
[ 67%] Building C object accel-pppd/logs/CMakeFiles/log_syslog.dir/log_syslog.c.o
[ 68%] Linking C shared library liblog_syslog.so
[ 68%] Built target log_syslog
Scanning dependencies of target log_tcp
[ 68%] Building C object accel-pppd/logs/CMakeFiles/log_tcp.dir/log_tcp.c.o
[ 69%] Linking C shared library liblog_tcp.so
[ 69%] Built target log_tcp
Scanning dependencies of target log_file
[ 70%] Building C object accel-pppd/logs/CMakeFiles/log_file.dir/log_file.c.o
[ 70%] Linking C shared library liblog_file.so
[ 70%] Built target log_file
Scanning dependencies of target ipv6pool
[ 70%] Building C object accel-pppd/extra/CMakeFiles/ipv6pool.dir/ipv6pool.c.o
[ 71%] Linking C shared library libipv6pool.so
[ 71%] Built target ipv6pool
Scanning dependencies of target sigchld
[ 71%] Building C object accel-pppd/extra/CMakeFiles/sigchld.dir/sigchld.c.o
[ 72%] Linking C shared library libsigchld.so
[ 72%] Built target sigchld
Scanning dependencies of target pppd_compat
[ 73%] Building C object accel-pppd/extra/CMakeFiles/pppd_compat.dir/pppd_compat.c.o
[ 73%] Linking C shared library libpppd_compat.so
[ 73%] Built target pppd_compat
Scanning dependencies of target ippool
[ 73%] Building C object accel-pppd/extra/CMakeFiles/ippool.dir/ippool.c.o
[ 74%] Linking C shared library libippool.so
[ 74%] Built target ippool
Scanning dependencies of target logwtmp
[ 75%] Building C object accel-pppd/extra/CMakeFiles/logwtmp.dir/logwtmp.c.o
[ 76%] Linking C shared library liblogwtmp.so
[ 76%] Built target logwtmp
Scanning dependencies of target chap-secrets
[ 76%] Building C object accel-pppd/extra/CMakeFiles/chap-secrets.dir/chap-secrets.c.o
[ 77%] Linking C shared library libchap-secrets.so
[ 77%] Built target chap-secrets
Scanning dependencies of target connlimit
[ 78%] Building C object accel-pppd/extra/CMakeFiles/connlimit.dir/connlimit.c.o
[ 78%] Linking C shared library libconnlimit.so
[ 78%] Built target connlimit
Scanning dependencies of target net-snmp
[ 78%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/agent.c.o
[ 79%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable.c.o
[ 80%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable_data_access.c.o
[ 80%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable_data_get.c.o
[ 81%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable_data_set.c.o
[ 82%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/sessionTable_interface.c.o
[ 83%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statCore.c.o
[ 83%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statL2TP.c.o
[ 84%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statPPP.c.o
[ 85%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statPPPOE.c.o
[ 85%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statPPTP.c.o
[ 86%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/statIPOE.c.o
[ 87%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/terminate.c.o
[ 88%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/shutdown.c.o
[ 88%] Building C object accel-pppd/extra/net-snmp/CMakeFiles/net-snmp.dir/exec_cli.c.o
[ 89%] Linking C shared library libnet-snmp.so
[ 89%] Built target net-snmp
Scanning dependencies of target ipv6_nd
[ 90%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_nd.dir/nd.c.o
[ 91%] Linking C shared library libipv6_nd.so
[ 91%] Built target ipv6_nd
Scanning dependencies of target ipv6_dhcp
[ 92%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6.c.o
[ 92%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6_packet.c.o
[ 93%] Linking C shared library libipv6_dhcp.so
[ 93%] Built target ipv6_dhcp
Scanning dependencies of target shaper
[ 94%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/shaper.c.o
[ 94%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/limiter.c.o
[ 95%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/leaf_qdisc.c.o
[ 96%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/tc_core.c.o
[ 97%] Linking C shared library libshaper.so
[ 97%] Built target shaper
Scanning dependencies of target accel-cmd
[ 97%] Building C object accel-cmd/CMakeFiles/accel-cmd.dir/accel_cmd.c.o
[ 98%] Linking C executable accel-cmd
[ 98%] Built target accel-cmd
Scanning dependencies of target ipoe_drv
[ 99%] Generating driver/ipoe.ko

WARNING: Symbol version dump ./Module.symvers
is missing; modules will have no dependencies and modversions.

/home/mvangent/accel-ppp.git/build/drivers/ipoe/driver/ipoe.c:40:0: warning: "HASH_BITS" redefined
#define HASH_BITS 0xff

In file included from ./include/linux/netdevice.h:55:0,
from /home/mvangent/accel-ppp.git/build/drivers/ipoe/driver/ipoe.c:7:
./include/linux/hashtable.h:27:0: note: this is the location of the previous definition
#define HASH_BITS(name) ilog2(HASH_SIZE(name))

/bin/sh: 1: ./scripts/recordmcount: not found
scripts/Makefile.build:304: recipe for target '/home/mvangent/accel-ppp.git/build/drivers/ipoe/driver/ipoe.o' failed
make[4]: *** [/home/mvangent/accel-ppp.git/build/drivers/ipoe/driver/ipoe.o] Error 127
Makefile:1507: recipe for target '_module_/home/mvangent/accel-ppp.git/build/drivers/ipoe/driver' failed
make[3]: *** [_module_/home/mvangent/accel-ppp.git/build/drivers/ipoe/driver] Error 2
drivers/ipoe/CMakeFiles/ipoe_drv.dir/build.make:61: recipe for target 'drivers/ipoe/driver/ipoe.ko' failed
make[2]: *** [drivers/ipoe/driver/ipoe.ko] Error 2
CMakeFiles/Makefile2:1451: recipe for target 'drivers/ipoe/CMakeFiles/ipoe_drv.dir/all' failed
make[1]: *** [drivers/ipoe/CMakeFiles/ipoe_drv.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
root@debian:/home/mvangent/accel-ppp.git/build#

Dmitry
Администратор
Posts: 774
Joined: 09 Oct 2014, 10:06

Re: IPOE will not compile on Centos 7

Post by Dmitry » 14 Aug 2017, 07:39

looks like you specified wrong kernel headers
try cmake -DKDIR=/usr/src/linux-headers-4.9.0-xxx-amd64 ..

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest