From: Giorgio <giorgio.nicole@arcor.de>
To: netfilter-devel@vger.kernel.org
Cc: Marco Berizzi <pupilla@hotmail.com>
Subject: Re: nftables error compile current git
Date: Thu, 20 Nov 2014 22:43:22 +0100 [thread overview]
Message-ID: <546E607A.6040209@arcor.de> (raw)
In-Reply-To: <DUB126-W94B8412C0BC21B1B7E1475B2760@phx.gbl>
[-- Attachment #1: Type: text/plain, Size: 4310 bytes --]
On 11/20/2014 09:07 AM, Marco Berizzi wrote:
> giorgio.nicole@arcor.de wrote:
>
>> Hi,
>>
>> to debug such problems you should try issuing:
>>
>> # make V=1 all
>>
>> to see the actual command line executed by make;
>> also very helpfull is the file 'config.log' produced by
>> the configure script.
>
> Hi Giorgio,
>
> Here is the output from make V=1 all
>
> gcc
> -DHAVE_CONFIG_H -I. -I.. -I../include
> -DDEFAULT_INCLUDE_PATH="\"/usr/etc\"" -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -Wdeclaration-after-statement -Wsign-compare -Winit-self
> -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute
> -Wcast-align -Wundef -Wbad-function-cast -Wno-missing-prototypes
> -Wno-missing-declarations -Wno-implicit-function-declaration
> -Wno-nested-externs -Wno-undef -Wno-redundant-decls -g -O2 -MT scanner.o
> -MD -MP -MF $depbase.Tpo -c -o scanner.o scanner.c &&\
> mv -f $depbase.Tpo $depbase.Po
> scanner.c: In function 'nft_lex':
> scanner.c:1956:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
> for ( yyl = 0; yyl < yyleng; ++yyl )
> ^
> scanner.c: In function 'nft__scan_bytes':
> scanner.c:4091:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
> for ( i = 0; i < _yybytes_len; ++i )
> ^
> depbase=`echo parser_bison.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> gcc
> -DHAVE_CONFIG_H -I. -I.. -I../include
> -DDEFAULT_INCLUDE_PATH="\"/usr/etc\"" -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -Wdeclaration-after-statement -Wsign-compare -Winit-self
> -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute
> -Wcast-align -Wundef -Wbad-function-cast -Wno-missing-prototypes
> -Wno-missing-declarations -Wno-implicit-function-declaration
> -Wno-nested-externs -Wno-undef -Wno-redundant-decls -g -O2 -MT
> parser_bison.o -MD -MP -MF $depbase.Tpo -c -o parser_bison.o
> parser_bison.c &&\
> mv -f $depbase.Tpo $depbase.Po
> gcc
> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
> -Wdeclaration-after-statement -Wsign-compare -Winit-self
> -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute
> -Wcast-align -Wundef -Wbad-function-cast -g -O2 -o nft main.o rule.o
> statement.o datatype.o expression.o evaluate.o proto.o payload.o
> exthdr.o meta.o ct.o netlink.o netlink_linearize.o netlink_delinearize.o
> segtree.o rbtree.o gmputil.o utils.o erec.o mnl.o scanner.o
> parser_bison.o -lmnl -lnftnl -lgmp
> mnl.o: In function `mnl_batch_begin':
> /tmp/NFTABLES/nftables/src/mnl.c:199: undefined reference to `nft_batch_begin'
> mnl.o: In function `mnl_batch_end':
> /tmp/NFTABLES/nftables/src/mnl.c:207: undefined reference to `nft_batch_end'
> mnl.o: In function `mnl_nft_setelem_add':
> /tmp/NFTABLES/nftables/src/mnl.c:877: undefined reference to `nft_set_elems_nlmsg_build_payload_iter'
> mnl.o: In function `mnl_nft_setelem_batch_add':
> /tmp/NFTABLES/nftables/src/mnl.c:925: undefined reference to `nft_set_elems_nlmsg_build_payload_iter'
> collect2: error: ld returned 1 exit status
> make[3]: *** [nft] Error 1
> make[3]: Leaving directory `/tmp/NFTABLES/nftables/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/tmp/NFTABLES/nftables/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/NFTABLES/nftables'
> make: *** [all] Error 2
>
> Attached the config.log
>
>
Hi,
the command line and the config.log seems OK.
You probably need to update your installed libnftnl. I had a look in the
repo. and saw your undefined functions were added recently to the lib
with the following commit on 13.08.2014:
common: add batching interfaces
This patch adds the following new interfaces:
int nft_batch_is_supported(void);
void nft_batch_begin(char *buf, uint32_t seq);
void nft_batch_end(char *buf, uint32_t seq);
Quite likely this is going to be reused by third party applications
requiring to put things in the batch. We already have potential clients
for this code in nft and iptables-compat.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
giorgio
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 246 bytes --]
next prev parent reply other threads:[~2014-11-20 21:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 14:11 nftables error compile current git Marco Berizzi
2014-11-19 20:33 ` Giorgio
2014-11-20 8:07 ` Marco Berizzi
2014-11-20 21:43 ` Giorgio [this message]
2014-11-21 13:01 ` Marco Berizzi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=546E607A.6040209@arcor.de \
--to=giorgio.nicole@arcor.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pupilla@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).