From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11806 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: SIOCGSTAMPNS definition missing Date: Sun, 13 Aug 2017 18:35:15 +0200 Message-ID: <20170813163515.GH15263@port70.net> References: <20170812005338.GP1627@brightrain.aerifal.cx> <20170813160301.GG15263@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 1502642128 3783 195.159.176.226 (13 Aug 2017 16:35:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 13 Aug 2017 16:35:28 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-11819-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 13 18:35:23 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 1dgvrH-0000jL-Jd for gllmg-musl@m.gmane.org; Sun, 13 Aug 2017 18:35:23 +0200 Original-Received: (qmail 3765 invoked by uid 550); 13 Aug 2017 16:35:28 -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 3747 invoked from network); 13 Aug 2017 16:35:27 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20170813160301.GG15263@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:11806 Archived-At: * 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) one issue is that the mips macros are currently wrong (don't match the kernel uapi definitions).