On Monday 31 January 2011 12:35 PM, Srinivasa T N wrote:
Hi, I am trying to compile ipt_NETFLOW module for RHEL 6, but the compilation is giving error. Should I run POM or do something before I compile? --------------------------------------------------------------------- root@ltchs20 ipt_netflow-1.6]# ./configure Kernel version: 2.6.32-71.el6.x86_64 Iptables binary version: 1.4.7 (detected from /sbin/iptables) Searching for iptables-1.4.7 sources.. Found iptables sources at ../iptables-1.4.7 Checking iptables sources version: 1.4.7 (ok) Iptables module path: /lib64/xtables (from library) Creating Makefile.. done. Now run: make all install [root@ltchs20 ipt_netflow-1.6]# make all Compiling for kernel 2.6.32-71.el6.x86_64 make -C /lib/modules/2.6.32-71.el6.x86_64/build M=/root/seenu/ipt_netflow-1.6 modules make[1]: Entering directory `/usr/src/kernels/2.6.32-71.el6.x86_64' CC [M] /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.o /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘nf_seq_show’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:263: error: implicit declaration of function ‘HIPQUAD’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:265: warning: too few arguments for format /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘hsize_procctl’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:305: warning: passing argument 5 of ‘proc_dointvec’ from incompatible pointer type include/linux/sysctl.h:985: note: expected ‘loff_t *’ but argument is of type ‘size_t *’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:305: error: too many arguments to function ‘proc_dointvec’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘sndbuf_procctl’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:331: warning: passing argument 5 of ‘proc_dointvec’ from incompatible pointer type include/linux/sysctl.h:985: note: expected ‘loff_t *’ but argument is of type ‘size_t *’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:331: error: too many arguments to function ‘proc_dointvec’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘destination_procctl’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:349: warning: passing argument 5 of ‘proc_dostring’ from incompatible pointer type include/linux/sysctl.h:983: note: expected ‘loff_t *’ but argument is of type ‘size_t *’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:349: error: too many arguments to function ‘proc_dostring’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘aggregation_procctl’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:364: warning: passing argument 5 of ‘proc_dostring’ from incompatible pointer type include/linux/sysctl.h:983: note: expected ‘loff_t *’ but argument is of type ‘size_t *’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:364: error: too many arguments to function ‘proc_dostring’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: At top level: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:409: warning: initialization from incompatible pointer type /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:416: warning: initialization from incompatible pointer type /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:424: warning: initialization from incompatible pointer type /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:432: warning: initialization from incompatible pointer type /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘usock_free’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:535: warning: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘struct socket *’ /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:535: warning: too few arguments for format /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘add_usock’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:580: warning: too few arguments for format /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘add_aggregation’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:693: warning: too few arguments for format /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: At top level: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:1245: warning: initialization from incompatible pointer type /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c: In function ‘ipt_netflow_init’: /root/seenu/ipt_netflow-1.6/ipt_NETFLOW.c:1315: error: ‘struct proc_dir_entry’ has no member named ‘owner’ make[2]: *** [/root/seenu/ipt_netflow-1.6/ipt_NETFLOW.o] Error 1 make[1]: *** [_module_/root/seenu/ipt_netflow-1.6] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.32-71.el6.x86_64' make: *** [ipt_NETFLOW.ko] Error 2 ------------------------------------------------------------------ Regards, Seenu. -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
I compiled NETFLOW-1.7 and it compiled smoothly on my RHEL box. Regards, Seenu. -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html