From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/suricata: fix static build
Date: Tue, 7 May 2024 09:12:29 +0200 [thread overview]
Message-ID: <20240507091229.11ebe7d4@windsurf> (raw)
In-Reply-To: <20240506202304.509499-1-fontaine.fabrice@gmail.com>
On Mon, 6 May 2024 22:23:04 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following static build failure raised since bump to version
> version 6.0.14 in commit ce17f93e828a07292e03653be04a49480250f23f and
> https://github.com/OISF/suricata/commit/31ba4fd1522dd0d7f933767b9205c67a4e726fe5:
>
> configure:22378: checking for pcap_open_dead in -lpcap
> configure:22407: /home/buildroot/autobuild/run/instance-3/output-1/host/bin/x86_64-linux-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g0 -static -std=c11 -march=native -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -static -rdynamic conftest.c -lpcap -ljansson -lpthread -lyaml -lpcre -latomic -lz >&5
> /home/buildroot/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/12.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: /home/buildroot/autobuild/run/instance-3/output-1/host/x86_64-buildroot-linux-musl/sysroot/usr/lib/../lib64/libpcap.a(pcap-linux.o): in function `nl80211_init':
> pcap-linux.c:(.text+0xc34): undefined reference to `nl_socket_alloc'
>
> [...]
>
> checking for pcap_open_dead in -lpcap... no
>
> Fixes: ce17f93e828a07292e03653be04a49480250f23f
> - http://autobuild.buildroot.org/results/9e25c2508bd4100d2d1d3180e79060d762361213
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> .../0002-configure.ac-fix-static-build.patch | 52 +++++++++++++++++++
> package/suricata/suricata.mk | 1 +
> 2 files changed, 53 insertions(+)
> create mode 100644 package/suricata/0002-configure.ac-fix-static-build.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-05-07 7:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 20:23 [Buildroot] [PATCH 1/1] package/suricata: fix static build Fabrice Fontaine
2024-05-07 7:12 ` Thomas Petazzoni via buildroot [this message]
2024-05-27 14:43 ` 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=20240507091229.11ebe7d4@windsurf \
--to=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/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