summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël PORTAY <gael.portay@savoirfairelinux.com>2017-11-28 15:44:37 (GMT)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-31 12:47:12 (GMT)
commit9aaec9767663ff111b8efa4f5968277d58bfcee9 (patch)
tree448a6189fe68fc4a1727973627cd531eeceb9d9f
parentb0748bd1baf60461425ec124fd4f3be68f2dd4d6 (diff)
downloadbuildroot-9aaec9767663ff111b8efa4f5968277d58bfcee9.tar.gz
buildroot-9aaec9767663ff111b8efa4f5968277d58bfcee9.tar.bz2
netcat-openbsd: depends on linux-headers >= 3.12
This debian fork of netcat includes the kernel UAPI inet6 header. This header conflicts with the existing libc inet header and causes redefinition of structures when they are both included. The compiler raises the following error: /home/buildroot/build/instance-0/output/host/x86_64-buildroot-linux-gnu/sysroot/usr/include/linux/in6.h:30:8: error: redefinition of 'struct in6_addr' struct in6_addr { >From version 3.12 of linux, the kernel UAPI header has mechanisms in libc-compat.h to prevent such situations (see __UAPI_DEF_SOCKADDR_IN6 macros). Unfortunately the build is broken when toolchains do not satisfy at least the linux headers condition (>= 3.12). The package now depends on the toolchain headers at least 3.12. Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com> Reviewed-by: Baruch Siach <baruch@tkos.co.il> [Thomas: update Config.in comment about the 3.12 headers dependency.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/netcat-openbsd/Config.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/netcat-openbsd/Config.in b/package/netcat-openbsd/Config.in
index 46d3a50..4734ff9 100644
--- a/package/netcat-openbsd/Config.in
+++ b/package/netcat-openbsd/Config.in
@@ -4,6 +4,7 @@ config BR2_PACKAGE_NETCAT_OPENBSD
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_TOOLCHAIN_USES_GLIBC
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
select BR2_PACKAGE_LIBBSD
help
A simple Unix utility which reads and writes data across
@@ -20,7 +21,8 @@ config BR2_PACKAGE_NETCAT_OPENBSD
https://packages.debian.org/sid/netcat-openbsd
-comment "netcat-openbsd needs a glibc toolchain w/ threads"
+comment "netcat-openbsd needs a glibc toolchain w/ threads, headers >= 3.12"
depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
- depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_USES_GLIBC
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_USES_GLIBC || \
+ !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS