xtables-addons: TEE extension fails to build
Hi. TEE extension fails to build in xtables-addons. It fails with the following error:
CC [M] /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.o
/vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c: In function ‘tee_tg_route4’:
/vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:46:4: error: ‘struct flowi’ has no member named ‘nl_u’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:47:4: error: ‘struct flowi’ has no member named ‘nl_u’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:48:4: error: ‘struct flowi’ has no member named ‘nl_u’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:50:2: warning: passing argument 2 of ‘ip_route_output_key’ from incompatible pointer type include/net/route.h:131:61: note: expected ‘struct flowi4 *’ but argument is of type ‘struct rtable **’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:50:2: error: too many arguments to function ‘ip_route_output_key’ include/net/route.h:131:61: note: declared here
/vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c: In function ‘tee_tg_route6’:
/vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:188:4: error: ‘struct flowi’ has no member named ‘nl_u’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:189:4: error: ‘struct flowi’ has no member named ‘nl_u’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:195:2: warning: passing argument 3 of ‘ip6_route_output’ from incompatible pointer type include/net/ip6_route.h:72:27: note: expected ‘struct flowi6 *’ but argument is of type ‘struct flowi *’
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make[2]: *** [/vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.o] Error 1
make[1]: *** [_module_/vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions] Error 2
make[1]: Leaving directory `/vt/src/linux-2.6.39-gentoo-r3'
make: *** [modules] Error 2
--
Peter.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Peter Volkov
Hi. TEE extension fails to build in xtables-addons. It fails with the following error:
CC [M] /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.o
/vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c: In function ‘tee_tg_route4’:
/vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:46:4: error: ‘struct flowi’ has no member named ‘nl_u’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:47:4: error: ‘struct flowi’ has no member named ‘nl_u’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:48:4: error: ‘struct flowi’ has no member named ‘nl_u’ /vt/portage/tmp/portage/net-firewall/xtables-addons-1.37/work/xtables-addons-1.37/extensions/xt_TEE.c:50:2: warning: passing argument 2 of ‘ip_route_output_key’ from incompatible pointer typeinclude/net/route.h:131:61: note: expected ‘struct flowi4 *’ but argument is of type ‘struct rtable **’
Because the mainline kernel already has xt_TEE (revision 1+) since version 2.6.35, the xt_TEE (revision 0) copy in Xt-a is build-disabled by default. And now I added a big fat #error to emphase on that. :)
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html