Go to file
Baruch Siach 196932cd91 toolchain: workaround musl/kernel headers conflict
Rick Felker suggested[1] this hack as a workaround to musl libc conflict with
kernel headers:

  The problem is linux/libc-compat.h, which should fix this, only works
  on glibc, by design. See:

  #ifndef _LIBC_COMPAT_H
  #define _LIBC_COMPAT_H

  /* We have included glibc headers... */
  #if defined(__GLIBC__)

  /* Coordinate with glibc netinet/in.h header. */
  #if defined(_NETINET_IN_H)

  If you patch it like this:

  -#if defined(__GLIBC__)
  +#if 1

  then it should mostly work but it's still all a big hack. I think
  that's what distros are doing. The problem is that the same header is
  trying to do two different things:

  1. Provide extra linux-kernel-API stuff that's not in the
     libc/userspace headers.

  2. Provide definitions of the standard types and constants for uClibc
     and klibc, which don't have complete libc headers and rely on the
     kernel headers for definitions.

  These two uses really should be separated out into separate headers so
  that the latter only get included explicitly by uClibc and klibc and
  otherwise remain completely unused. But that would require coordinated
  changes/upgrades which are unlikely to happen. :(

Upstream musl still evaluates[2][3] a permanent solution.

With this in place we can revert (at least) commits a167081c5d (bridge-utils:
fix build with musl) and e74d4fc493 (norm: add patch to fix musl build).

[1] http://www.openwall.com/lists/musl/2015/10/08/2
[2] http://git.musl-libc.org/cgit/musl/commit/?id=04983f2272382af92eb8f8838964ff944fbb8258
[3] http://www.openwall.com/lists/musl/2016/11/09/2

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-16 23:17:48 +01:00
arch MIPS: add support for M6201 cores 2016-10-19 23:31:29 +02:00
board configs/olimex_imx233_olinuxino: restore Wifi config 2016-11-11 16:24:22 +01:00
boot boot/uboot: bump to version 2016.11 2016-11-14 22:52:01 +01:00
configs configs/warp7: Bump to U-Boot 2016.11 2016-11-14 22:52:12 +01:00
docs docs/website: update news with 2016.11-rc1 release e-mail link 2016-11-04 10:09:34 +01:00
fs fs/iso9660: drop reference to host-fakeroot 2016-11-03 23:28:01 +01:00
linux linux: add ev3dev extension 2016-11-02 17:52:24 +01:00
package libxmlrpc: bump to 1.39.11 2016-11-16 22:58:49 +01:00
support linux: add ev3dev extension 2016-11-02 17:52:24 +01:00
system
toolchain toolchain: workaround musl/kernel headers conflict 2016-11-16 23:17:48 +01:00
.defconfig
.gitignore
CHANGES CHANGES: mention fakeroot as a removed package 2016-11-03 23:31:53 +01:00
Config.in Config.in: add BR2_HOST_GCC_AT_LEAST_4_5 2016-10-26 21:11:34 +02:00
Config.in.legacy snowball-{hdmiservice, init}: remove packages 2016-11-09 22:54:17 +01:00
COPYING
DEVELOPERS DEVELOPERS: add entry for uhttpd and ustream-ssl 2016-11-05 14:17:20 +01:00
Makefile Makefile: add missing targets to noconfig_targets and nobuild_targets 2016-11-15 22:43:23 +01:00
Makefile.legacy
README

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches