package/trinity: needs headers >= 3.4
PATCH 1/1 package/trinity: needs headers >= 3.4
IPV6_UNICAST_IF was added with kernel 3.4:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/linux/in6.h?id=refs/tags/v3.4.112
To prove this compare with kernel 3.3:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/linux/in6.h?h=linux-3.3.y
The trinity package contains some compat code in
https://github.com/kernelslacker/trinity/blob/master/include/compat.h
but it does not trigger for IPV6_UNICAST_IF
https://github.com/kernelslacker/trinity/blob/master/include/compat.h#L662
Instead of hacking compat.h to death just depend on headers >= 3.4.
Fixes a build errornet/proto-ipv6.c: At top level:net/proto-ipv6.c:157:12: error: ?IPV6_UNICAST_IF? undeclared here (not in a function)
{ .name = IPV6_UNICAST_IF, },
not yet caught by autobuilders using this defconfig:
http://autobuild.buildroot.net/results/394/394e22be0ef986463e97b3040dad8f978262732c/
--- package/trinity/Config.in | 8 ++++++++ 1 file changed, 8 insertions(+)
package/trinity/Config.in +8 -0
@@ -4,7 +4,15 @@ config BR2_PACKAGE_TRINITY depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \ BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 || \ BR2_powerpc64le || BR2_sparc || BR2_x86_64 + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # IPV6_UNICAST_IF help A Linux System call fuzz tester http://codemonkey.org.uk/projects/trinity/ + +comment "trinity needs a toolchain w/ headers >= 3.4" + depends on BR2_USE_MMU + depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \ + BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 || \ + BR2_powerpc64le || BR2_sparc || BR2_x86_64 + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
Signature · 1 line
2.9.3
PATCH 1/1 package/trinity: needs headers >= 3.4
Hello,
Quoted 19 lines · Bernd Kuhls
IPV6_UNICAST_IFwas added with kernel 3.4:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/linux/in6.h?id=refs/tags/v3.4.112To prove this compare with kernel 3.3:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/include/linux/in6.h?h=linux-3.3.yThe trinity package contains some compat code in
https://github.com/kernelslacker/trinity/blob/master/include/compat.hbut it does not trigger for
IPV6_UNICAST_IF
https://github.com/kernelslacker/trinity/blob/master/include/compat.h#L662Instead of hacking
compat.hto death just depend on headers >= 3.4.Fixes a build error
net/proto-ipv6.c: At top level:net/proto-ipv6.c:157:12: error: ?IPV6_UNICAST_IF? undeclared here (not in a function)
{ .name =IPV6_UNICAST_IF, },
Quoted 7 lines
not yet caught by autobuilders using this defconfig:
http://autobuild.buildroot.net/results/394/394e22be0ef986463e97b3040dad8f978262732c/Signed-off-by Bernd Kuhls <[email protected]>--- package/trinity/Config.in | 8 ++++++++ 1 file changed, 8 insertions(+)
I've applied, after adding a previous commit that introduces a BR2_PACKAGE_TRINITY_ARCH_SUPPORTS variable to avoid duplicating the architecture dependency.
Note however that this defconfig, which uses uClibc and 3.10 kernel headers, also fails to build after this commit:
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2016.08-613-ge98b4dd.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_4_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_TRINITY=y
# BR2_TARGET_ROOTFS_TAR is not set
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com