-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Не могу собрать с --enable-natevents #187
Comments
|
так после |
да .. собрало, но natevents нету |
|
проблема в том что грузится модуль впереди паровоза :) сети, если выгрузить и загрузить подхватывает natevents |
По идее, модуль пытается загрузить |
ядро 5.4.163. Centos7 Такую проблему уже тут писали англоязычные. |
I've got similar problem on debian 9 (kernel 4.9) |
`[root@shluz8x16 ipt-netflow]# ./configure --enable-natevents --disable-snmp-agent --ipt-src=/home/temp/iptables-1.8.7/
Module version: 2.6-7-g6a55739
Kernel version: 5.4.163-1.IMQ.el7.x86_64 (uname)
Kernel sources: /lib/modules/5.4.163-1.IMQ.el7.x86_64/build (found)
Checking for presence of include/linux/netfilter.h... Yes
netfilter.h uses CONFIG_NF_NAT_NEEDED... No
Checking for presence of include/linux/llist.h... Yes
Checking for presence of include/linux/grsecurity.h... No
Iptables binary version: 1.8.7 (legacy) (detected from /usr/sbin/iptables)
pkg-config for version 1.8.7 (legacy) exists: No
Check for working gcc: Yes (gcc)
Checking for presence of xtables.h... Yes
User specified source directory: /home/temp/iptables-1.8.7/
Found iptables sources at /home/temp/iptables-1.8.7/
Checking iptables sources version: 1.8.7 (legacy) (ok)
Iptables include flags: -I/home/temp/iptables-1.8.7//include (from source)
Iptables module path: /lib64/xtables/ (from libxtables.so, from binary)
Checking for DKMS... Yes.
Creating Makefile.. done.
If you need some options enabled run ./configure --help
Now run: make all install
[root@shluz8x16 ipt-netflow]# make all install
./gen_compat_def > compat_def.h-
Test function xt_family linux/netfilter_ipv4/ip_tables.h declared
Test struct timeval linux/ktime.h declared
Test struct proc_ops linux/proc_fs.h undeclared
Test function synchronize_sched linux/rcupdate.h undeclared
Test function nf_bridge_info_get linux/netfilter_bridge.h declared
Test struct vlan_dev_priv linux/if_vlan.h declared
Test function put_unaligned_be24 asm/unaligned.h undeclared
Test function totalram_pages linux/mm.h declared
Test symbol totalram_pages linux/mm.h declared
Test member nf_ct_event_notifier.ct_event net/netfilter/nf_conntrack_ecache.h undeclared
mv compat_def.h- compat_def.h
Compiling 2.6-7-g6a55739 for kernel 5.4.163-1.IMQ.el7.x86_64
make -C /lib/modules/5.4.163-1.IMQ.el7.x86_64/build M=/home/ipt-netflow modules
make[1]: Entering directory '/usr/src/kernels/5.4.163-1.IMQ.el7.x86_64'
CC [M] /home/ipt-netflow/ipt_NETFLOW.o
/home/ipt-netflow/ipt_NETFLOW.c: In function ‘netflow_conntrack_event’:
/home/ipt-netflow/ipt_NETFLOW.c:4622:36: warning: passing argument 2 of ‘notifier->fcn’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
4622 | ret = notifier->ct_event(events, item);
| ^~~~
/home/ipt-netflow/ipt_NETFLOW.c:4622:36: note: expected ‘struct nf_ct_event *’ but argument is of type ‘const struct nf_ct_event ’
/home/ipt-netflow/ipt_NETFLOW.c: At top level:
/home/ipt-netflow/ipt_NETFLOW.c:4687:14: error: initialization of ‘int ()(unsigned int, struct nf_ct_event )’ from incompatible pointer type ‘int ()(const unsigned int, const struct nf_ct_event *)’ [-Werror=incompatible-pointer-types]
4687 | .ct_event = netflow_conntrack_event
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/ipt-netflow/ipt_NETFLOW.c:4687:14: note: (near initialization for ‘ctnl_notifier.fcn’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:262: /home/ipt-netflow/ipt_NETFLOW.o] Error 1
make[1]: *** [Makefile:1734: /home/ipt-netflow] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.4.163-1.IMQ.el7.x86_64'
make: *** [Makefile:27: ipt_NETFLOW.ko] Error 2`
Не могу собрать с --enable-natevents ядро 5.4.163. Centos7
CONFIG_NF_CONNTRACK_EVENTS=y - было
CONFIG_NF_NAT_NEEDED=y - не было - добавил.
не помогло. - при компиляции убирает CONFIG_NF_NAT_NEEDED=y - как я понял она уже с 5.2 деприкейт
The text was updated successfully, but these errors were encountered: