From: Isaac Dunham <ibid.ag@gmail.com>
To: musl@lists.openwall.com
Cc: Denys Vlasenko <vda.linux@googlemail.com>,
Aboriginal Linux <aboriginal@lists.landley.net>
Subject: Re: Re: musl and kernel headers [was Re: system-images 1.4.2: od is broken; bzip2 is missing]
Date: Tue, 13 Oct 2015 14:55:34 -0700 [thread overview]
Message-ID: <20151013215533.GA2073@newbook> (raw)
In-Reply-To: <20151013151048.GQ8645@brightrain.aerifal.cx>
On Tue, Oct 13, 2015 at 11:10:49AM -0400, Rich Felker wrote:
> On Tue, Oct 13, 2015 at 02:10:24PM +0200, Denys Vlasenko wrote:
> > > The other direction, suppressing kernel headers' definition of the
> > > structs, is what we want to work, but they've restricted their logic
> > > for that to only work when __GLIBC__ is defined. :(
> >
> > Yes, you will have to do by hand the thing which kernel
> > automagically does for glibc - namely, define to 0:
> >
> > >> #undef __UAPI_DEF_SOCKADDR_IN
> > >> /* tell kernel to not define the struct */
> > >> #define __UAPI_DEF_SOCKADDR_IN 0
> > >> #endif
> >
> > > We could do something like this but then we would need to keep up with
> > > the list of all the __UAPI defines we need to suppress unwanted kernel
> > > definitions.
> >
> > Looking at libc-compat.h, this list is at the moment only about
> > 13 defines long:
> >
> > #define __UAPI_DEF_IN_ADDR 0
> > #define __UAPI_DEF_IN_IPPROTO 0
> > #define __UAPI_DEF_IN_PKTINFO 0
> > #define __UAPI_DEF_IP_MREQ 0
> > #define __UAPI_DEF_SOCKADDR_IN 0
> > #define __UAPI_DEF_IN_CLASS 0
> > #define __UAPI_DEF_IN6_ADDR 0
> > #define __UAPI_DEF_SOCKADDR_IN6 0
> > #define __UAPI_DEF_IPV6_MREQ 0
> > #define __UAPI_DEF_IPPROTO_V6 0
> > #define __UAPI_DEF_IPV6_OPTIONS 0
> > #define __UAPI_DEF_IN6_PKTINFO 0
> > #define __UAPI_DEF_IP6_MTUINFO 0
>
> Thanks for making the list! For the time being I don't think it would
> be too objectionable to simply define these in musl. Does anyone else
> have an opinion on it?
I'd like to see it for the time being, though long-term I still assume
that the only real solution would be something like the proposed change
in libc-compat.h:
-#ifdef __GLIBC__
+#if defined(__GLIBC__) || defined(__UAPI_DONTNEED_DEFS)
Thanks,
Isaac Dunham
prev parent reply other threads:[~2015-10-13 21:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAK1hOcNm-rwGdr1_THZoHA-TTxOjpzUU=Lnraqt6mj+JmBdvFw@mail.gmail.com>
[not found] ` <5612925A.4070402@landley.net>
2015-10-06 1:44 ` Rich Felker
2015-10-06 2:24 ` Rob Landley
2015-10-06 11:01 ` Szabolcs Nagy
2015-10-06 14:30 ` Rich Felker
2015-10-06 16:05 ` Denys Vlasenko
2015-10-06 16:09 ` Denys Vlasenko
2015-10-08 16:58 ` Rich Felker
2015-10-09 19:11 ` Denys Vlasenko
2015-10-09 19:46 ` Rich Felker
2015-10-10 4:56 ` Rob Landley
2015-10-13 12:10 ` Denys Vlasenko
2015-10-13 14:16 ` Ruben Winistörfer
2015-10-13 14:53 ` Szabolcs Nagy
2015-10-13 15:05 ` Rich Felker
2015-10-13 18:02 ` Denys Vlasenko
2015-10-13 18:56 ` Rich Felker
2015-10-13 15:10 ` Rich Felker
2015-10-13 21:55 ` Isaac Dunham [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151013215533.GA2073@newbook \
--to=ibid.ag@gmail.com \
--cc=aboriginal@lists.landley.net \
--cc=musl@lists.openwall.com \
--cc=vda.linux@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).