[xtables-addons] Problem with compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!
I try to compile xtables-addons-2.10 and latest snapshot from git on Centos 7.2, kernel version is 3.10.0-327.3.1.el7.x86_64
and both build are failed.

Could you advice - how to build xtables ?

Thank you!


make errors:
/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c: In function ‘tarpit_tcp4’:
/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:295:3: warning: passing argument 3 of ‘NF_HOOK’ from incompatible pointer type [enabled by default]
   skb_dst(nskb)->dev, dst_output);
   ^
In file included from include/uapi/linux/netfilter_ipv6.h:11:0,
                 from include/linux/netfilter_ipv6.h:10,
                 from /root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:45:
include/linux/netfilter.h:245:1: note: expected ‘struct sock *’ but argument is of type ‘struct sk_buff *’
 NF_HOOK(uint8_t pf, unsigned int hook, struct sock *sk, struct sk_buff *skb,
 ^
/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:295:3: warning: passing argument 6 of ‘NF_HOOK’ from incompatible pointer type [enabled by default]
   skb_dst(nskb)->dev, dst_output);
   ^
In file included from include/uapi/linux/netfilter_ipv6.h:11:0,
                 from include/linux/netfilter_ipv6.h:10,
                 from /root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:45:
include/linux/netfilter.h:245:1: note: expected ‘struct net_device *’ but argument is of type ‘int (*)(struct sk_buff *)’
 NF_HOOK(uint8_t pf, unsigned int hook, struct sock *sk, struct sk_buff *skb,
 ^
/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:295:3: error: too few arguments to function ‘NF_HOOK’
   skb_dst(nskb)->dev, dst_output);
   ^
In file included from include/uapi/linux/netfilter_ipv6.h:11:0,
                 from include/linux/netfilter_ipv6.h:10,
                 from /root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:45:
include/linux/netfilter.h:245:1: note: declared here
 NF_HOOK(uint8_t pf, unsigned int hook, struct sock *sk, struct sk_buff *skb,
 ^
/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c: In function ‘tarpit_tcp6’:
/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:418:10: warning: passing argument 3 of ‘NF_HOOK’ from incompatible pointer type [enabled by default]
          skb_dst(nskb)->dev, dst_output);
          ^
In file included from include/uapi/linux/netfilter_ipv6.h:11:0,
                 from include/linux/netfilter_ipv6.h:10,
                 from /root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:45:
include/linux/netfilter.h:245:1: note: expected ‘struct sock *’ but argument is of type ‘struct sk_buff *’
 NF_HOOK(uint8_t pf, unsigned int hook, struct sock *sk, struct sk_buff *skb,
 ^
/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:418:10: warning: passing argument 6 of ‘NF_HOOK’ from incompatible pointer type [enabled by default]
          skb_dst(nskb)->dev, dst_output);
          ^
In file included from include/uapi/linux/netfilter_ipv6.h:11:0,
                 from include/linux/netfilter_ipv6.h:10,
                 from /root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:45:
include/linux/netfilter.h:245:1: note: expected ‘struct net_device *’ but argument is of type ‘int (*)(struct sk_buff *)’
 NF_HOOK(uint8_t pf, unsigned int hook, struct sock *sk, struct sk_buff *skb,
 ^
/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:418:10: error: too few arguments to function ‘NF_HOOK’
          skb_dst(nskb)->dev, dst_output);
          ^
In file included from include/uapi/linux/netfilter_ipv6.h:11:0,
                 from include/linux/netfilter_ipv6.h:10,
                 from /root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.c:45:
include/linux/netfilter.h:245:1: note: declared here
 NF_HOOK(uint8_t pf, unsigned int hook, struct sock *sk, struct sk_buff *skb,
 ^
make[4]: *** [/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions/xt_TARPIT.o] Error 1
make[3]: *** [_module_/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions] Error 2
make[3]: Leaving directory `/usr/src/kernels/3.10.0-327.3.1.el7.x86_64'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/xtables-addons-xtables-addons-5038e160f81efb815d61929b1f55d002a15ffa76'
make: *** [all] Error 2


------
Romaneev Vasily
Мобильный: +7-987-636-62-67
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux