building nftables: ‘nfnl_nft_set_init’ undeclared

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

 



Hi!

I'm building a enviroment where I can paly around with nftables.

Building libnl-nft I encountered the same problem as described here:

http://osdir.com/ml/general/2009-04/msg03933.html

I "resolved" that error by commenting these lines out (nft_data.c):

 22 enum nft_data_types {
 23         NFT_DATA_VALUE,
 24         NFT_DATA_VERDICT,
 25 };

Stepping to the next task, building nftables, I get the following errors:

  CC		src/netlink_linearize.c
src/netlink_linearize.c: In function ‘netlink_gen_map’:
src/netlink_linearize.c:126: error: ‘nfnl_nft_set_init’ undeclared
(first use in this function)
src/netlink_linearize.c:126: error: (Each undeclared identifier is
reported only once
src/netlink_linearize.c:126: error: for each function it appears in.)
cc1: warnings being treated as errors
src/netlink_linearize.c:127: error: implicit declaration of function
‘nfnl_nft_set_set_flags’
src/netlink_linearize.c:128: error: implicit declaration of function
‘nfnl_nft_set_set_sreg’
src/netlink_linearize.c:129: error: implicit declaration of function
‘nfnl_nft_set_set_klen’
src/netlink_linearize.c:130: error: implicit declaration of function
‘nfnl_nft_set_set_dreg’
src/netlink_linearize.c:131: error: implicit declaration of function
‘nfnl_nft_set_set_dlen’
src/netlink_linearize.c:156: error: implicit declaration of function
‘nfnl_nft_set_add_mapping’
src/netlink_linearize.c: In function ‘netlink_gen_lookup’:
src/netlink_linearize.c:180: error: ‘nfnl_nft_set_init’ undeclared
(first use in this function)
src/netlink_linearize.c:196: error: implicit declaration of function
‘nfnl_nft_set_add_elem’
make[1]: *** [src/netlink_linearize.o] Error 1
make: *** [src] Error 2

I was not able to resolve this errors.

I'm using the latest version from git:
git://git.netfilter.org/nftables.git

Any help would be appreciated!
Christoph

Attachment: signature.asc
Description: OpenPGP digital signature


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

  Powered by Linux