Why compilation of TIPC module fails ?
Issue
- Downloaded the source RPM from Red Hat and tried compiling the module, but I get the following error
- I am trying to compile the kernel module for TIPC.
[root@localhost linux-3.10.0-229.4.2.el7.x86_64]# make modules SUBDIRS=net/tipc
WARNING: Symbol version dump /root/rpmbuild/BUILD/kernel-3.10.0-229.4.2.el7/linux-3.10.0-229.4.2.el7.x86_64/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] net/tipc/netlink.o
net/tipc/netlink.c: In function âtipc_netlink_startâ:
net/tipc/netlink.c:91:20: error: macro "genl_register_family_with_ops" passed 3 arguments, but takes just 2
&tipc_genl_ops, 1);
^
net/tipc/netlink.c:90:8: error: âgenl_register_family_with_opsâ undeclared (first use in this function)
res = genl_register_family_with_ops(&tipc_genl_family,
^
net/tipc/netlink.c:90:8: note: each undeclared identifier is reported only once for each function it appears in
net/tipc/netlink.c: At top level:
net/tipc/netlink.c:79:24: warning: âtipc_genl_opsâ defined but not used [-Wunused-variable]
static struct genl_ops tipc_genl_ops = {
^
make[1]: *** [net/tipc/netlink.o] Error 1
make: *** [_module_net/tipc] Error 2
Environment
- Red Hat Enterprise Linux 7
- TIPC
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
