From: Arnout Vandecappelle Date: Sat, 4 Nov 2017 23:25:57 +0100 Subject: [Buildroot] [PATCH 1/1] package/libressl: needs MMU In-Reply-To: <20170725093230.17956ffc@windsurf.lan> References: <20170723200844.13004-1-bernd.kuhls@t-online.de> <20170724180723.4786fad5@windsurf.lan> <20170724210702.GM12791@waldemar-brodkorb.de> <20170725093230.17956ffc@windsurf.lan> Message-ID: <2f141bf5-ccdb-ecff-88d8-17e59e724e90@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 25-07-17 09:32, Thomas Petazzoni wrote: > Hello, > > On Mon, 24 Jul 2017 23:07:03 +0200, Waldemar Brodkorb wrote: > >>> On this one, I'd like to have the feedback from Waldemar. Indeed, >>> libressl is not using fork(), but __register_atfork(), which uClibc >>> does not implement, and I've not found why it doesn't exist for noMMU >>> platforms. >> >> From the comment in the header: >> "Register handlers to execute before and after `fork'" >> >> As this is a feature only available when fork() is there, this isn't >> available for noMMU platforms. > > Well, there could have been a dummy __register_atfork(), which does > nothing on noMMU. Indeed, you can imagine a library registering a > callback using __register_atfork(), but not using itself the fork() > system call. Such a library would be OK for a noMMU platform. > >> It was added in this commit: >> https://github.com/libressl-portable/portable/commit/32d9eeeecf4e951e1566d5f4a42b36ea37b60f35 >> >> But I think the commit log isn't correct, as pthread_atfork can be >> used for glibc, musl and uClibc-ng. (for glibc -lpthread must be >> added) >> >> One possible solution might be, to check for __register_atfork, if >> it does not exist, fallback to pthread_atfork, if it does not exist >> provide a pthread_atfork dummy (noMMU case). > > This should be doable without too much effort I believe. But someone has to do it :-) Note that the autobuilders no longer complain about this since libressl is now a choice, so it never gets built. But the problem still persists. Anyway, the patch no longer applies as-is, so I've marked as Changes Requested. Regards, Arnout -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF