[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z91QshzKRlmPdpv7@orbyte.nwl.cc>
Date: Fri, 21 Mar 2025 12:42:42 +0100
From: Phil Sutter <phil@....cc>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: "Jason A. Donenfeld" <Jason@...c4.com>, 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
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.
Cheers, Phil
Powered by blists - more mailing lists