building nftables: ‘nfnl_nft_set_init’ undeclared
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.csrc/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 oncesrc/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
Quoted 7 lines · Christoph A.
Hi!
I'm building a enviroment where I can paly around with nftables.
Building libnl-nft I encountered the same problem as described here:
nfnl_nftset_init was removed in 0917b23733f46c65703545f82cc633836436f13b. nftables was not updated (yet).
The combination of libnl-nft--9e3c81f64856ac0068f63f4d2b8f97c5f091e2e8 + nftables-414fa58ae9f283c35c8510fc31f28ba77bb5fdf5
compiles through though.
Am 18.07.2009 18:54, schrieb Jan Engelhardt:
Quoted 9 lines · Christoph A.
Quoted 7 lines
Hi!
I'm building a enviroment where I can paly around with nftables.
Building libnl-nft I encountered the same problem as described here:
Quoted 7 lines
nfnl_nftset_initwas removed in0917b23733f46c65703545f82cc633836436f13b. nftables was not updated (yet).The combination of libnl-nft--9e3c81f64856ac0068f63f4d2b8f97c5f091e2e8 + nftables-414fa58ae9f283c35c8510fc31f28ba77bb5fdf5
compiles through though.
After resolving the missing limits.h [1], the too new bison version [2] and the configure script telling me that my malloc() version is not GNU compatible, compiling was successfull.
[1] http://osdir.com/ml/catch/2009-03/msg04455.html
[2] http://markmail.org/message/xfay3mxmz4my4rog
thank you and thanks to orb (from #netfilter)
best regards
Christoph