Hi Stéphane,

On Thu, Jul 04, 2019 at 08:48:50PM +0200, Stéphane Veyret wrote:
> Le mer. 3 juil. 2019 à 01:12, Pablo Neira Ayuso <pa...@netfilter.org> a écrit 
> :
> > Please, make sure you run ./configure with --with-json.
> 
> I'm sorry, but I don't manage to compile it anymore.
> 
> I took latest versions of kernel/lib/nft and merged my modifications
> to nft. But when I try to compile nft, even if the configure goes
> well, the make fails. The message is that it needs libnftnl > 1.1.3
> whereas configure only requires version 1.1.1, and the lib creates a
> package with version 1.1.2.

Make sure you install a fresh libnftnl from git.netfilter.org.

> If I cheat (and update the libnftnl.pc
> file by hand), then make fails later, when compiling libnftables.c
> with the following messages :
> libnftables.c:112:14: warning: data definition has no type or storage class
>  EXPORT_SYMBOL(nft_ctx_add_include_path);
>               ^
> libnftables.c:112:15: warning: type defaults to ‘int’ in declaration
> of « nft_ctx_add_include_path » [-Wimplicit-int]
>  EXPORT_SYMBOL(nft_ctx_add_include_path);
>                ^~~~~~~~~~~~~~~~~~~~~~~~
> libnftables.c:112:15: error: « nft_ctx_add_include_path » redeclared
> as different kind of symbol
> In file included from libnftables.c:9:
> ../include/nftables/libnftables.h:76:5: note: previous definition of «
> nft_ctx_add_include_path » was here
>  int nft_ctx_add_include_path(struct nft_ctx *ctx, const char *path);
>      ^~~~~~~~~~~~~~~~~~~~~~~~
> libnftables.c:113:5: warning: no previous prototype for function «
> nft_ctx_add_include_path » [-Wmissing-prototypes]
>  int nft_ctx_add_include_path(struct nft_ctx *ctx, const char *path)
>      ^~~~~~~~~~~~~~~~~~~~~~~~
> 
> Does someone have a clue ?

>From the nftables tree, after pulling latest changes from
git.netfilter.org, run:

        autoreconf -fi

before ./configure.

Reply via email to