[Bug 1110] New: Build failure if --with-xtables
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Tue Jan 3 22:54:04 CET 2017
https://bugzilla.netfilter.org/show_bug.cgi?id=1110
Bug ID: 1110
Summary: Build failure if --with-xtables
Product: nftables
Version: unspecified
Hardware: x86_64
OS: other
Status: NEW
Severity: normal
Priority: P5
Component: iptables over nftable
Assignee: pablo at netfilter.org
Reporter: robby at rlworkman.net
On Slackware -current (post 14.2) with iptables-1.6.0, libmnl-1.0.3,
libnftnl-1.0.7, and nftables-0.7, this fails to build:
make all-recursive
make[1]: Entering directory '/root/tmp/nftables-0.7'
Making all in src
make[2]: Entering directory '/root/tmp/nftables-0.7/src'
make all-am
make[3]: Entering directory '/root/tmp/nftables-0.7/src'
CC xt.o
xt.c: In function ‘xt_stmt_xlate’:
xt.c:31:24: warning: implicit declaration of function ‘xt_xlate_alloc’
[-Wimplicit-function-declaration]
struct xt_xlate *xl = xt_xlate_alloc(10240);
^
xt.c:31:24: warning: initialization makes pointer from integer without a cast
[-Wint-conversion]
xt.c:37:28: error: ‘struct xtables_match’ has no member named ‘xlate’
} else if (stmt->xt.match->xlate) {
^
xt.c:38:11: error: variable ‘params’ has initializer but incomplete type
struct xt_xlate_mt_params params = {
^
xt.c:39:5: error: unknown field ‘ip’ specified in initializer
.ip = stmt->xt.entry,
^
xt.c:39:12: warning: excess elements in struct initializer
.ip = stmt->xt.entry,
^
xt.c:39:12: note: (near initialization for ‘params’)
xt.c:40:5: error: unknown field ‘match’ specified in initializer
.match = stmt->xt.match->m,
^
xt.c:40:15: warning: excess elements in struct initializer
.match = stmt->xt.match->m,
^
xt.c:40:15: note: (near initialization for ‘params’)
xt.c:41:5: error: unknown field ‘numeric’ specified in initializer
.numeric = 0,
^
xt.c:41:23: warning: excess elements in struct initializer
.numeric = 0,
^
xt.c:41:23: note: (near initialization for ‘params’)
xt.c:38:30: error: storage size of ‘params’ isn’t known
struct xt_xlate_mt_params params = {
^
xt.c:44:18: error: ‘struct xtables_match’ has no member named ‘xlate’
stmt->xt.match->xlate(xl, ¶ms);
^
xt.c:45:17: warning: implicit declaration of function ‘xt_xlate_get’
[-Wimplicit-function-declaration]
printf("%s", xt_xlate_get(xl));
^
xt.c:45:11: warning: format ‘%s’ expects argument of type ‘char *’, but
argument 2 has type ‘int’ [-Wformat=]
printf("%s", xt_xlate_get(xl));
^
xt.c:38:30: warning: unused variable ‘params’ [-Wunused-variable]
struct xt_xlate_mt_params params = {
^
xt.c:56:29: error: ‘struct xtables_target’ has no member named ‘xlate’
} else if (stmt->xt.target->xlate) {
^
xt.c:57:11: error: variable ‘params’ has initializer but incomplete type
struct xt_xlate_tg_params params = {
^
xt.c:58:5: error: unknown field ‘ip’ specified in initializer
.ip = stmt->xt.entry,
^
xt.c:58:12: warning: excess elements in struct initializer
.ip = stmt->xt.entry,
^
xt.c:58:12: note: (near initialization for ‘params’)
xt.c:59:5: error: unknown field ‘target’ specified in initializer
.target = stmt->xt.target->t,
^
xt.c:59:16: warning: excess elements in struct initializer
.target = stmt->xt.target->t,
^
xt.c:59:16: note: (near initialization for ‘params’)
xt.c:60:5: error: unknown field ‘numeric’ specified in initializer
.numeric = 0,
^
xt.c:60:23: warning: excess elements in struct initializer
.numeric = 0,
^
xt.c:60:23: note: (near initialization for ‘params’)
xt.c:57:30: error: storage size of ‘params’ isn’t known
struct xt_xlate_tg_params params = {
^
xt.c:63:19: error: ‘struct xtables_target’ has no member named ‘xlate’
stmt->xt.target->xlate(xl, ¶ms);
^
xt.c:64:11: warning: format ‘%s’ expects argument of type ‘char *’, but
argument 2 has type ‘int’ [-Wformat=]
printf("%s", xt_xlate_get(xl));
^
xt.c:57:30: warning: unused variable ‘params’ [-Wunused-variable]
struct xt_xlate_tg_params params = {
^
xt.c:74:2: warning: implicit declaration of function ‘xt_xlate_free’
[-Wimplicit-function-declaration]
xt_xlate_free(xl);
^
make[3]: *** [Makefile:455: xt.o] Error 1
make[3]: Leaving directory '/root/tmp/nftables-0.7/src'
make[2]: *** [Makefile:332: all] Error 2
make[2]: Leaving directory '/root/tmp/nftables-0.7/src'
make[1]: *** [Makefile:386: all-recursive] Error 1
make[1]: Leaving directory '/root/tmp/nftables-0.7'
make: *** [Makefile:326: all] Error 2
For the sake of clarity, it builds fine if I --with-xtables is not passed to
configure.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20170103/65f65a65/attachment-0001.html>
More information about the netfilter-buglog
mailing list