libbsd: needs __register_atfork
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 28 Nov 2018 17:05:10 +0000 (18:05 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 29 Nov 2018 20:35:38 +0000 (21:35 +0100)
The following error is raised by minizip:

[100%] Linking C executable minizip
/home/peko/autobuild/instance-0/output/host/m68k-buildroot-uclinux-uclibc/sysroot/usr/lib/libbsd.a(arc4random.o):
In function `_rs_init.part.1':
arc4random.c:(.text+0xaa): undefined reference to `__register_atfork'
collect2: error: ld returned 1 exit status

As specified in openssl/Config.in, uClibc on noMMU doesn't provide
__register_atfork() so add a dependency on
!(BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU) on libbsd and minizip

Don't add this dependency to netcat-opensd as it already depends on
glibc
Don't add this dependency to BR2_PACKAGE_BLUEZ_ALSA_HCITOP because
bluez-alsa already depends on BR2_USE_MMU
Concerning fwts, just update comment on BR2_USE_MMU

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/fwts/Config.in
package/libbsd/Config.in
package/minizip/Config.in

index 269f065fd50e2748451ab0ec2ebcd59b20734f69..94ac6063668b88ddc72e2a0f80311953868335a9 100644 (file)
@@ -3,7 +3,7 @@ config BR2_PACKAGE_FWTS
        depends on BR2_i386 || BR2_x86_64 || BR2_aarch64
        depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS # libbsd
        depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c
-       depends on BR2_USE_MMU # libglib2
+       depends on BR2_USE_MMU # libglib2, libbsd
        depends on BR2_USE_WCHAR # libglib2, libbsd
        depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2, libbsd
        depends on BR2_TOOLCHAIN_USES_GLIBC # execinfo.h
index a163ce9b6f5317083aa336e676c3e2774aa5596a..ba5e5cbcfae55c4a0644bdc5d9c3556003a941c4 100644 (file)
@@ -9,6 +9,8 @@ config BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
 config BR2_PACKAGE_LIBBSD
        bool "libbsd"
        depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
+       # uClibc on noMMU doesn't provide __register_atfork()
+       depends on !(BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU)
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_WCHAR
        help
@@ -22,4 +24,5 @@ config BR2_PACKAGE_LIBBSD
 
 comment "libbsd needs a toolchain w/ threads, wchar"
        depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
+       depends on BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU
        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
index 68fa1d71180a935a5acb261fefcbb93d17f85d94..4bc12a0d7e9261796d7416c4f390442ca6a1cef3 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_MINIZIP
        bool "minizip"
        depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
+       depends on !(BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU) # libbsd
        depends on BR2_TOOLCHAIN_HAS_THREADS # libbsd
        depends on BR2_USE_WCHAR # libbsd
        select BR2_PACKAGE_LIBBSD
@@ -19,4 +20,5 @@ config BR2_PACKAGE_MINIZIP_DEMOS
 
 comment "minizip needs a toolchain w/ threads, wchar"
        depends on BR2_PACKAGE_LIBBSD_ARCH_SUPPORTS
+       depends on BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU
        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR