From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11914 Path: news.gmane.org!.POSTED!not-for-mail From: =?ISO-8859-1?Q?J=F6rg?= Krause Newsgroups: gmane.linux.lib.musl.general Subject: Re: Missing include of in sched.h? Date: Fri, 08 Sep 2017 11:26:38 +0200 Organization: Embedded Rocks Message-ID: <1504862798.18993.3.camel@embedded.rocks> References: <1504856816.12460.7.camel@embedded.rocks> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1504862831 6013 195.159.176.226 (8 Sep 2017 09:27:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2017 09:27:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11927-gllmg-musl=m.gmane.org@lists.openwall.com Fri Sep 08 11:26:56 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dqFYn-0000dL-JB for gllmg-musl@m.gmane.org; Fri, 08 Sep 2017 11:26:49 +0200 Original-Received: (qmail 6010 invoked by uid 550); 8 Sep 2017 09:26:54 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5988 invoked from network); 8 Sep 2017 09:26:53 -0000 In-Reply-To: <1504856816.12460.7.camel@embedded.rocks> X-Mailer: Evolution 3.24.5 Xref: news.gmane.org gmane.linux.lib.musl.general:11914 Archived-At: On Fri, 2017-09-08 at 09:46 +0200, Jörg Krause wrote: > Hi, > > latest Boost 1.65.1 fails to compile with a musl toolchain [1]. > > The issue is that Boost uses the `CPU_ZERO` macro which expands to > `memset()` [2]. > > The Linux Programmer's Manual state that memset() is defined in > string.h [3]. > > Therefore, shouldn't shed.h include string.h? > > [1] https://github.com/boostorg/fiber/pull/142 > [2] https://git.musl-libc.org/cgit/musl/tree/include/sched.h#n110 > [3] http://man7.org/linux/man-pages/man3/memset.3.html On second thought, the forward declaration for memset() is missing [4]. Note, that there is a forward declaration for memcpy(), but it is never used in sched.h. [4] https://github.com/boostorg/fiber/pull/142#issuecomment-328043778 Best regards, Jörg Krause