-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Labels
Description
[k0ste@WorkStation tmp]$ git clone git@github.com:aabc/ipt-netflow.git
Cloning into 'ipt-netflow'...
remote: Counting objects: 1146, done.
remote: Total 1146 (delta 0), reused 0 (delta 0), pack-reused 1146
Receiving objects: 100% (1146/1146), 1.05 MiB | 828.00 KiB/s, done.
Resolving deltas: 100% (754/754), done.
[k0ste@WorkStation ipt-netflow]$ ./configure
Kernel version: 4.10.1-1-ARCH (uname)
Kernel sources: /lib/modules/4.10.1-1-ARCH/build (found)
Checking for presence of include/linux/llist.h... Yes
Checking for presence of include/linux/grsecurity.h... No
Iptables binary version: 1.6.1 (detected from /usr/bin/iptables)
pkg-config for version 1.6.1 exists: Yes
Check for working gcc: Yes
Checking for presence of xtables.h... Yes
Iptables include flags: (pkg-config)
Iptables module path: /usr/lib/iptables (pkg-config)
Searching for net-snmp-config... Yes /usr/bin/net-snmp-config
Searching for net-snmp agent... No.
Assuming you don't want net-snmp agent support.
Otherwise install net-snmp (www.net-snmp.org)
Checking for DKMS... Yes.
Creating Makefile.. done.
If you need some options enabled run ./configure --help
Now run: make all install
[k0ste@WorkStation ipt-netflow]$ makeCompiling for kernel 4.10.1-1-ARCH
make -C /lib/modules/4.10.1-1-ARCH/build M=/tmp/ipt-netflow modules CONFIG_DEBUG_INFO=y
make[1]: Entering directory '/usr/lib/modules/4.10.1-1-ARCH/build'
CC [M] /tmp/ipt-netflow/ipt_NETFLOW.o
In file included from /tmp/ipt-netflow/ipt_NETFLOW.c:76:0:
/tmp/ipt-netflow/ipt_NETFLOW.c: In function ‘netflow_sendmsg’:
/tmp/ipt-netflow/ipt_NETFLOW.h:417:53: error: request for member ‘tv64’ in something not a structure or union
if (!(__get_cpu_var(ipt_netflow_stat)).count.first.tv64) \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:2011:3: note: in expansion of macro ‘NETFLOW_STAT_TS’
NETFLOW_STAT_TS(lost);
^~~~~~~~~~~~~~~
/tmp/ipt-netflow/ipt_NETFLOW.c: In function ‘netflow_export_flow_tpl’:
/tmp/ipt-netflow/ipt_NETFLOW.h:417:53: error: request for member ‘tv64’ in something not a structure or union
if (!(__get_cpu_var(ipt_netflow_stat)).count.first.tv64) \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3703:3: note: in expansion of macro ‘NETFLOW_STAT_TS’
NETFLOW_STAT_TS(lost);
^~~~~~~~~~~~~~~
/tmp/ipt-netflow/ipt_NETFLOW.c: In function ‘netflow_export_stats’:
/tmp/ipt-netflow/ipt_NETFLOW.c:3866:15: error: request for member ‘tv64’ in something not a structure or union
t.drop.first.tv64 = min_not_zero(t.drop.first.tv64, st->drop.first.tv64);
^
In file included from ./include/linux/list.h:8:0,
from ./include/linux/module.h:9,
from /tmp/ipt-netflow/ipt_NETFLOW.c:21:
/tmp/ipt-netflow/ipt_NETFLOW.c:3866:48: error: request for member ‘tv64’ in something not a structure or union
t.drop.first.tv64 = min_not_zero(t.drop.first.tv64, st->drop.first.tv64);
^
./include/linux/kernel.h:779:9: note: in definition of macro ‘min_not_zero’
typeof(x) __x = (x); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3866:48: error: request for member ‘tv64’ in something not a structure or union
t.drop.first.tv64 = min_not_zero(t.drop.first.tv64, st->drop.first.tv64);
^
./include/linux/kernel.h:779:19: note: in definition of macro ‘min_not_zero’
typeof(x) __x = (x); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3866:69: error: request for member ‘tv64’ in something not a structure or union
t.drop.first.tv64 = min_not_zero(t.drop.first.tv64, st->drop.first.tv64);
^
./include/linux/kernel.h:780:9: note: in definition of macro ‘min_not_zero’
typeof(y) __y = (y); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3866:69: error: request for member ‘tv64’ in something not a structure or union
t.drop.first.tv64 = min_not_zero(t.drop.first.tv64, st->drop.first.tv64);
^
./include/linux/kernel.h:780:19: note: in definition of macro ‘min_not_zero’
typeof(y) __y = (y); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:14: error: request for member ‘tv64’ in something not a structure or union
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^
In file included from ./include/linux/list.h:8:0,
from ./include/linux/module.h:9,
from /tmp/ipt-netflow/ipt_NETFLOW.c:21:
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:38: error: request for member ‘tv64’ in something not a structure or union
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^
./include/linux/kernel.h:761:2: note: in definition of macro ‘__max’
t1 max1 = (x); \
^~
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:23: note: in expansion of macro ‘max’
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^~~
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:38: error: request for member ‘tv64’ in something not a structure or union
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^
./include/linux/kernel.h:761:13: note: in definition of macro ‘__max’
t1 max1 = (x); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:23: note: in expansion of macro ‘max’
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^~~
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:58: error: request for member ‘tv64’ in something not a structure or union
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^
./include/linux/kernel.h:762:2: note: in definition of macro ‘__max’
t2 max2 = (y); \
^~
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:23: note: in expansion of macro ‘max’
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^~~
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:58: error: request for member ‘tv64’ in something not a structure or union
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^
./include/linux/kernel.h:762:13: note: in definition of macro ‘__max’
t2 max2 = (y); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3867:23: note: in expansion of macro ‘max’
t.drop.last.tv64 = max(t.drop.last.tv64, st->drop.last.tv64);
^~~
/tmp/ipt-netflow/ipt_NETFLOW.c:3868:15: error: request for member ‘tv64’ in something not a structure or union
t.lost.first.tv64 = min_not_zero(t.lost.first.tv64, st->lost.first.tv64);
^
In file included from ./include/linux/list.h:8:0,
from ./include/linux/module.h:9,
from /tmp/ipt-netflow/ipt_NETFLOW.c:21:
/tmp/ipt-netflow/ipt_NETFLOW.c:3868:48: error: request for member ‘tv64’ in something not a structure or union
t.lost.first.tv64 = min_not_zero(t.lost.first.tv64, st->lost.first.tv64);
^
./include/linux/kernel.h:779:9: note: in definition of macro ‘min_not_zero’
typeof(x) __x = (x); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3868:48: error: request for member ‘tv64’ in something not a structure or union
t.lost.first.tv64 = min_not_zero(t.lost.first.tv64, st->lost.first.tv64);
^
./include/linux/kernel.h:779:19: note: in definition of macro ‘min_not_zero’
typeof(x) __x = (x); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3868:69: error: request for member ‘tv64’ in something not a structure or union
t.lost.first.tv64 = min_not_zero(t.lost.first.tv64, st->lost.first.tv64);
^
./include/linux/kernel.h:780:9: note: in definition of macro ‘min_not_zero’
typeof(y) __y = (y); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3868:69: error: request for member ‘tv64’ in something not a structure or union
t.lost.first.tv64 = min_not_zero(t.lost.first.tv64, st->lost.first.tv64);
^
./include/linux/kernel.h:780:19: note: in definition of macro ‘min_not_zero’
typeof(y) __y = (y); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:14: error: request for member ‘tv64’ in something not a structure or union
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^
In file included from ./include/linux/list.h:8:0,
from ./include/linux/module.h:9,
from /tmp/ipt-netflow/ipt_NETFLOW.c:21:
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:38: error: request for member ‘tv64’ in something not a structure or union
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^
./include/linux/kernel.h:761:2: note: in definition of macro ‘__max’
t1 max1 = (x); \
^~
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:23: note: in expansion of macro ‘max’
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^~~
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:38: error: request for member ‘tv64’ in something not a structure or union
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^
./include/linux/kernel.h:761:13: note: in definition of macro ‘__max’
t1 max1 = (x); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:23: note: in expansion of macro ‘max’
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^~~
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:58: error: request for member ‘tv64’ in something not a structure or union
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^
./include/linux/kernel.h:762:2: note: in definition of macro ‘__max’
t2 max2 = (y); \
^~
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:23: note: in expansion of macro ‘max’
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^~~
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:58: error: request for member ‘tv64’ in something not a structure or union
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^
./include/linux/kernel.h:762:13: note: in definition of macro ‘__max’
t2 max2 = (y); \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:3869:23: note: in expansion of macro ‘max’
t.lost.last.tv64 = max(t.lost.last.tv64, st->lost.last.tv64);
^~~
/tmp/ipt-netflow/ipt_NETFLOW.c: In function ‘netflow_target’:
/tmp/ipt-netflow/ipt_NETFLOW.c:4812:24: error: ‘const struct xt_action_param’ has no member named ‘family’
const int family = par->family;
^~
In file included from /tmp/ipt-netflow/ipt_NETFLOW.c:76:0:
/tmp/ipt-netflow/ipt_NETFLOW.h:417:53: error: request for member ‘tv64’ in something not a structure or union
if (!(__get_cpu_var(ipt_netflow_stat)).count.first.tv64) \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:4840:3: note: in expansion of macro ‘NETFLOW_STAT_TS’
NETFLOW_STAT_TS(drop);
^~~~~~~~~~~~~~~
/tmp/ipt-netflow/ipt_NETFLOW.c:4784:20: error: ‘const struct xt_action_param’ has no member named ‘in’
# define if_in par->in
^
/tmp/ipt-netflow/ipt_NETFLOW.c:4851:16: note: in expansion of macro ‘if_in’
tuple.i_ifc = if_in? if_in->ifindex : -1;
^~~~~
/tmp/ipt-netflow/ipt_NETFLOW.c:4784:20: error: ‘const struct xt_action_param’ has no member named ‘in’
# define if_in par->in
^
/tmp/ipt-netflow/ipt_NETFLOW.c:4851:23: note: in expansion of macro ‘if_in’
tuple.i_ifc = if_in? if_in->ifindex : -1;
^~~~~
In file included from /tmp/ipt-netflow/ipt_NETFLOW.c:76:0:
/tmp/ipt-netflow/ipt_NETFLOW.h:417:53: error: request for member ‘tv64’ in something not a structure or union
if (!(__get_cpu_var(ipt_netflow_stat)).count.first.tv64) \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:5088:4: note: in expansion of macro ‘NETFLOW_STAT_TS’
NETFLOW_STAT_TS(drop);
^~~~~~~~~~~~~~~
/tmp/ipt-netflow/ipt_NETFLOW.h:417:53: error: request for member ‘tv64’ in something not a structure or union
if (!(__get_cpu_var(ipt_netflow_stat)).count.first.tv64) \
^
/tmp/ipt-netflow/ipt_NETFLOW.c:5097:4: note: in expansion of macro ‘NETFLOW_STAT_TS’
NETFLOW_STAT_TS(drop);
^~~~~~~~~~~~~~~
/tmp/ipt-netflow/ipt_NETFLOW.c:4785:20: error: ‘const struct xt_action_param’ has no member named ‘out’
# define if_out par->out
^
/tmp/ipt-netflow/ipt_NETFLOW.c:5110:15: note: in expansion of macro ‘if_out’
nf->o_ifc = if_out? if_out->ifindex : -1;
^~~~~~
/tmp/ipt-netflow/ipt_NETFLOW.c:4785:20: error: ‘const struct xt_action_param’ has no member named ‘out’
# define if_out par->out
^
/tmp/ipt-netflow/ipt_NETFLOW.c:5110:23: note: in expansion of macro ‘if_out’
nf->o_ifc = if_out? if_out->ifindex : -1;
^~~~~~
make[2]: *** [scripts/Makefile.build:301: /tmp/ipt-netflow/ipt_NETFLOW.o] Error 1
make[1]: *** [Makefile:1490: _module_/tmp/ipt-netflow] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.10.1-1-ARCH/build'
make: *** [Makefile:25: ipt_NETFLOW.ko] Error 2