[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z96B_VRDHZHPn-2w@fedora>
Date: Sat, 22 Mar 2025 09:25:17 +0000
From: Hangbin Liu <liuhangbin@...il.com>
To: Phil Sutter <phil@....cc>, "Jason A. Donenfeld" <Jason@...c4.com>
Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>,
Shuah Khan <shuah@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Simon Horman <horms@...nel.org>, Florian Westphal <fw@...len.de>,
Petr Mladek <pmladek@...e.com>,
Yoann Congal <yoann.congal@...le.fr>, wireguard@...ts.zx2c4.com,
bpf@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to
using nft for qemu test
On Fri, Mar 21, 2025 at 03:40:20PM +0100, Phil Sutter wrote:
> On Fri, Mar 21, 2025 at 12:45:17PM +0000, Hangbin Liu wrote:
> > On Fri, Mar 21, 2025 at 12:42:42PM +0100, Phil Sutter wrote:
> > > Hi Hangbin,
> > >
> > > On Fri, Mar 21, 2025 at 10:40:25AM +0000, Hangbin Liu wrote:
> > > > Hi Jason, Phil,
> > > > On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld wrote:
> > > > > On Mon, Jan 06, 2025 at 08:10:43AM +0000, Hangbin Liu wrote:
> > > > > > + echo "file /bin/nft $(NFTABLES_PATH)/src/nft 755 0 0" >> $@
> > > > > > + echo "file /lib/libmnl.so.0 $(TOOLCHAIN_PATH)/lib/libmnl.so.0 755 0 0" >> $@
> > > > > > + echo "file /lib/libnftnl.so.11 $(TOOLCHAIN_PATH)/lib/libnftnl.so.11 755 0 0" >> $@
> > > > >
> > > > > Can't these be statically linked into the nft binary?
> > > >
> > > > If I omit these, I will got error like
> > > >
> > > > mnl_attr_put: symbol not found
> > > >
> > > > Even though I set `--enable-static` in nft build.
> > > >
> > > > Do you know what's the reason?
> > >
> > > I was able to have nft linked statically against built libmnl and
> > > libnftnl by passing '--disable-shared --enable-static' to configure
> > > calls of all three build systems. With --enable-shared in library
> > > configure calls, nftables build preferred to link against the DSOs and I
> > > did not find a way to change this.
> >
> > The patch is using
> > "./configure --prefix=/ $(CROSS_COMPILE_FLAG) --enable-static \
> > --disable-shared --disable-debug --disable-man-doc --with-mini-gmp --without-cli"
> > to build nft.
>
> Do you pass that to the configure calls for libnftnl and libmnl, too? I
> didn't find a way to force static linking in nftables build system, so I
> disabled building of shared libmnl/libnftnl libraries.
>
It works after pass that to libnftnl and libmnl.
Thanks
Hangbin
Powered by blists - more mailing lists