Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1627778

Re: [PATCH v2 0/3] uapi glibc compat: fix musl libc compatibility

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/3] uapi glibc compat: fix musl libc compatibility
Date 2017-04-20 22:10 +0200
Message-ID <tyqyR-4WM-5@gated-at.bofh.it> (permalink)
References <txIxP-2AU-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Tue, 18 Apr 2017 23:00:33 +0200

> The code from libc-compat.h depends on some glibc specific defines and 
> causes compile problems with the musl libc. These patches remove some 
> of the glibc dependencies. With these patches the LEDE (OpenWrt) base 
> user space applications can be build with unmodified kernel headers and 
> musl libc.
> 
> This was compile tested with the user space from LEDE (OpenWrt) with 
> musl 1.1.16, glibc 2.25 and uClibc-ng 1.0.22.
> 
> Changes since v1:
>  - fix typo in commit message
>  - combine two changes

I think I have to put the brakes on this patch series, after much
consideration.

It does not scale if we continually add a hodge-podge of different
ifdef tests to the UAPI headers in order to prevent mutliple
definitions.

We will add that IFF_ECHO ifdef for MUSL libc today, and for another
libc we will add another such hack.  And so on and so forth...

Instead, LIBC implementation must adopt the ifdef protections which
have standard names and are being adopted by GLIBC and hopefully
others.

So please instead adjust the musl headers so that they interact
properly with the framework we've designed specifically for this
purpose.

Thank you.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] uapi glibc compat: fix musl libc compatibility Hauke Mehrtens <hauke@hauke-m.de> - 2017-04-18 23:10 +0200
  Re: [PATCH v2 0/3] uapi glibc compat: fix musl libc compatibility David Miller <davem@davemloft.net> - 2017-04-20 22:10 +0200
    Re: [PATCH v2 0/3] uapi glibc compat: fix musl libc compatibility David Woodhouse <dwmw2@infradead.org> - 2017-04-20 22:20 +0200
      Re: [PATCH v2 0/3] uapi glibc compat: fix musl libc compatibility David Miller <davem@davemloft.net> - 2017-04-20 22:40 +0200
        Re: [PATCH v2 0/3] uapi glibc compat: fix musl libc compatibility Hauke Mehrtens <hauke@hauke-m.de> - 2017-04-21 15:20 +0200
          Re: [PATCH v2 0/3] uapi glibc compat: fix musl libc compatibility David Woodhouse <dwmw2@infradead.org> - 2017-04-21 15:20 +0200
          Re: [musl] Re: [PATCH v2 0/3] uapi glibc compat: fix musl libc  compatibility Rich Felker <dalias@libc.org> - 2017-04-21 20:50 +0200

csiph-web