Re: nftables error compile current git

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

 



On 11/20/2014 09:07 AM, Marco Berizzi wrote:
> giorgio.nicole@xxxxxxxx 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@xxxxxxxxxxxxx>

giorgio


Attachment: signature.asc
Description: OpenPGP digital signature


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

  Powered by Linux