From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11807 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: SIOCGSTAMPNS definition missing Date: Sun, 13 Aug 2017 13:23:23 -0400 Message-ID: <20170813172323.GR1627@brightrain.aerifal.cx> References: <20170812005338.GP1627@brightrain.aerifal.cx> <20170813160301.GG15263@port70.net> <20170813163515.GH15263@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1502645026 27848 195.159.176.226 (13 Aug 2017 17:23:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2017 17:23:46 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-11820-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 13 19:23:37 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 1dgwbs-0006Te-IG for gllmg-musl@m.gmane.org; Sun, 13 Aug 2017 19:23:32 +0200 Original-Received: (qmail 14254 invoked by uid 550); 13 Aug 2017 17:23:36 -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 14230 invoked from network); 13 Aug 2017 17:23:36 -0000 Content-Disposition: inline In-Reply-To: <20170813163515.GH15263@port70.net> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:11807 Archived-At: On Sun, Aug 13, 2017 at 06:35:15PM +0200, Szabolcs Nagy wrote: > * Szabolcs Nagy [2017-08-13 18:03:01 +0200]: > > > * Rich Felker [2017-08-11 20:53:38 -0400]: > > > On Tue, Aug 01, 2017 at 10:08:02AM +0000, yamabiko@onenetbeyond.org wrote: > > > > Hello, > > > > when I tried to compile qemu on a Gentoo musl based system it > > > > complained about "SIOCGSTAMPNS" being undeclared. Using > > > > "-DSIOCGSTAMPNS=0x8907" as CFLAG worked as a workaround. So it looks > > > > like the definition it's missing from some header file (ioctl.h?) > > > > See https://forums.gentoo.org/viewtopic-t-1066924.html for more info > > > > > > Thanks for the report. > > > > > > Has anyone else looked at this yet? It probably needs per-arch > > > additions to the bits/ioctl.h headers. > > > > > > > it seems to be defined in asm/sockios.h which > > is included via sys/socket.h in glibc i think so > > musl should put it into sys/socket.h if anywhere. > > it seems i proposed the sockios stuff to be removed > from ioctl.h, but that was not applied: > > http://www.openwall.com/lists/musl/2016/07/03/22 > > i think those sockios macros should be moved from > ioctl.h to socket.h and the SIOCGSTAMPNS should > be added to them. (or we can add the macro now > to ioctl.h and move them later) They're not in the reserved namespace for socket.h, and unless there's a strong legacy-compat argument for having them in socket.h, I think it's rather undesirable to put them there even under default ("BSD") feature profile since in practice almost everything uses the default. If almost nothing has broken so far from not having them in socket.h, that suggests to me that putting them there is probably undesirable. > one issue is that the mips macros are currently > wrong (don't match the kernel uapi definitions). Uhg. Rich