kumquat-buildroot/package/netsniff-ng/Config.in
Fabrice Fontaine a969e0f63c package/netsniff-ng: needs NPTL
netsniff-ng unconditionally uses pthread_spin_lock since its addition in
commit 500d287b07 and
1a9fbac03c
resulting in the following build failure:

/home/autobuild/autobuild/instance-1/output-1/per-package/netsniff-ng/host/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/10.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: netsniff-ng/tprintf.o: in function `tprintf_flush':
tprintf.c:(.text+0x42c): undefined reference to `pthread_spin_lock'

Fixes:
 - http://autobuild.buildroot.org/results/ceadbdea8cc35bfd7d601a6d4b18137f81f61406

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-08-15 15:47:13 +02:00

35 lines
1020 B
Plaintext

config BR2_PACKAGE_NETSNIFF_NG
bool "netsniff-ng"
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # pthread_spin_lock
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
select BR2_PACKAGE_LIBPCAP
select BR2_PACKAGE_LIBNETFILTER_CONNTRACK
select BR2_PACKAGE_LIBURCU
help
netsniff-ng is a free, performant Linux network analyzer and
networking toolkit. If you will, the Swiss army knife for
network packets.
http://netsniff-ng.org
if BR2_PACKAGE_NETSNIFF_NG
config BR2_PACKAGE_NETSNIFF_NG_MAUSEZAHN
bool "mausezahn"
default y
# Build with uClibc fails due to missing ceill()
depends on !BR2_TOOLCHAIN_USES_UCLIBC
select BR2_PACKAGE_LIBCLI
select BR2_PACKAGE_LIBNET
comment "mausezahn needs glibc or musl toolchain"
depends on BR2_TOOLCHAIN_USES_UCLIBC
endif
comment "netsniff-ng needs a toolchain w/ NPTL, headers >= 3.0"
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0