[Buildroot] [PATCH 1/1] libbsd: needs __register_atfork

Peter Korsgaard peter at korsgaard.com
Thu Nov 29 20:38:51 UTC 2018


>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice at gmail.com> writes:

 > 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()

I guess that is inherent to nommu as there is no fork() to get notified
about.


 > so add a dependency on !(BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU)
 > on libbsd and minizip

Ok, fine by me. If someone wants to use any of these on nommu then
fixing libbsd to simply drop this call for those cases looks fairly
simple.

Committed, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list