Re: Failure with autogen.sh when building libnftnl

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

 



> On Aug 19, 2017, at 3:16 PM, J Doe <general@xxxxxxxxxxxxxxxxx> wrote:
> 
> Hello,
> 
> I am currently attempting to build libnftnl as per the instructions on the wiki [1]
> 
> $ git clone git://git.netfilter.org/libnftnl
> $ cd libnftnl
> $ sh autogen.sh
> 
> autogen fails with the following error code:
> 
> configure.ac.28: error: possibly undefined macro: AC_DISABLE_STATIC
>   If this token and others are legitimate, please use m4_pattern_allow.
>   See the Autoconf documentation.
> autoreconf: /user/bin/autoconf failed with exit status: 1
> 
> What am I currently doing wrong ?
> 
> Thanks,
> - J
> 
> Sources:
> [1] wiki.nftables.org/wiki-nftables/index.php/Building_and_installing_nftables_from_sources

Hello,

As an update to this e-mail - it turns out I did not have a complete set of build tools.  Ubuntu Server 16.04.03 LTS does not install them by default.

$ sudo apt-get install bison flex binutils build-essential autoconf libtool pkg-config

Then I install from packages the two dependencies that nftables requires.

$ sudo apt-get install libgmp-dev libreadline-dev

Then I proceed with building the libmnl and libnftnl libraries as per the wiki instructions.

Lastly I had to update the path to the libraries

$ LD_LIBRARY_PATH=/usr/local/lib
$ export LD_LIBRARY_PATH

Running nft now shows the correct version.

$ nft -v
nftables v0.7 (Scrooge McDuck)

Regards,

- J


--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux