From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/libnetfilter_conntrack: add libmnl to Libs.Private
Date: Thu, 05 Nov 2020 20:15:15 +0200 [thread overview]
Message-ID: <87eel7r7po.fsf@tarshish> (raw)
In-Reply-To: <20200412122107.1071258-1-fontaine.fabrice@gmail.com>
Hi Fabrice, all,
On Sun, Apr 12 2020, Fabrice Fontaine wrote:
> This will fix a static build failure with dnsmasq on latest
> libnetfilter_conntrack
>
> Fixes:
> - http://autobuild.buildroot.org/results/3fdc2cba20162eb86eaa5c49a056fb40fb18a392
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...ntrack.pc.in-add-LIBMNL_LIBS-to-Libs.patch | 38 +++++++++++++++++++
> 1 file changed, 38 insertions(+)
> create mode 100644 package/libnetfilter_conntrack/0001-libnetfilter_conntrack.pc.in-add-LIBMNL_LIBS-to-Libs.patch
>
> diff --git a/package/libnetfilter_conntrack/0001-libnetfilter_conntrack.pc.in-add-LIBMNL_LIBS-to-Libs.patch b/package/libnetfilter_conntrack/0001-libnetfilter_conntrack.pc.in-add-LIBMNL_LIBS-to-Libs.patch
> new file mode 100644
> index 0000000000..921837df07
> --- /dev/null
> +++ b/package/libnetfilter_conntrack/0001-libnetfilter_conntrack.pc.in-add-LIBMNL_LIBS-to-Libs.patch
> @@ -0,0 +1,38 @@
> +From 93bbd7e56cefc8488a61892b3bf5df63a175d20d Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sun, 12 Apr 2020 14:05:15 +0200
> +Subject: [PATCH] libnetfilter_conntrack.pc.in: add LIBMNL_LIBS to Libs.Private
> +
> +Since version 1.0.8 and commit
> +c1c0f16c1fedb46547c2e104beeaaeac5933b214, libnetfilter_conntrack depends
> +on libmnl so add it to Libs.Private.
> +
> +Otherwise, applications such as dnsmasq will fail to link on:
> +
> +/home/buildroot/autobuild/instance-0/output-1/host/bin/arm-linux-gcc -Wl,-elf2flt -static -o dnsmasq cache.o rfc1035.o util.o option.o forward.o network.o dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o helper.o tftp.o log.o conntrack.o dhcp6.o rfc3315.o dhcp-common.o outpacket.o radv.o slaac.o auth.o ipset.o domain.o dnssec.o blockdata.o tables.o loop.o inotify.o poll.o rrfilter.o edns0.o arp.o crypto.o dump.o ubus.o metrics.o -L/home/buildroot/autobuild/instance-0/output-1/host/bin/../arm-buildroot-uclinux-uclibcgnueabi/sysroot/usr/lib -lnetfilter_conntrack -L/home/buildroot/autobuild/instance-0/output-1/host/bin/../arm-buildroot-uclinux-uclibcgnueabi/sysroot/usr/lib -lnfnetlink
> +/home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: /home/buildroot/autobuild/instance-0/output-1/host/bin/../arm-buildroot-uclinux-uclibcgnueabi/sysroot/usr/lib/libnetfilter_conntrack.a(api.o): in function `nfct_fill_hdr.constprop.4':
> +api.c:(.text+0x34): undefined reference to `mnl_nlmsg_put_header'
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/3fdc2cba20162eb86eaa5c49a056fb40fb18a392
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: sent to Pablo Neira Ayuso <pablo@netfilter.org>]
This patch is now upstream commit e94172f09e4d.
Tested-by: Baruch Siach <baruch@tkos.co.il>
Thanks,
baruch
> +---
> + libnetfilter_conntrack.pc.in | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/libnetfilter_conntrack.pc.in b/libnetfilter_conntrack.pc.in
> +index 857f993..fbd7132 100644
> +--- a/libnetfilter_conntrack.pc.in
> ++++ b/libnetfilter_conntrack.pc.in
> +@@ -12,5 +12,5 @@ Version: @VERSION@
> + Requires: libnfnetlink
> + Conflicts:
> + Libs: -L${libdir} -lnetfilter_conntrack
> +-Libs.private: @LIBNFNETLINK_LIBS@
> ++Libs.private: @LIBNFNETLINK_LIBS@ @LIBMNL_LIBS@
> + Cflags: -I${includedir}
> +--
> +2.25.1
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
next prev parent reply other threads:[~2020-11-05 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-12 12:21 [Buildroot] [PATCH 1/1] package/libnetfilter_conntrack: add libmnl to Libs.Private Fabrice Fontaine
2020-11-05 18:15 ` Baruch Siach [this message]
2020-11-11 10:53 ` Peter Korsgaard
2020-11-14 11:25 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eel7r7po.fsf@tarshish \
--to=baruch@tkos.co.il \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox