[PATCH] vlan: fix musl libc conflict with Linux kernel headers

Jörg Krause joerg.krause at embedded.rocks
Sat Mar 26 08:15:43 PDT 2016


On Fr, 2016-03-25 at 17:04 +0200, Jouni Malinen wrote:
> On Tue, Mar 08, 2016 at 09:42:30PM +0100, Jörg Krause wrote:
> > 
> > Due to both <netinet/in.h> (in "utils/includes.h") and
> > <linux/in6.h> (in
> > <linux/if_bridge.h>) being included, the in6_addr is being
> > redefined: once from
> > the C library headers and once from the Linux kernel headers. This
> > causes some
> > build failures with for example the musl C library:
> > 
> > In file included from /usr/include/linux/if_bridge.h:18,
> >                  from ../src/ap/vlan_init.c:17:
> > /usr/include/linux/in6.h:32: error: redefinition of 'struct
> > in6_addr'
> What is this /usr/include/linux/if_bridge.h file and why does it
> include
> linux/in6.h? That may be there in the kernel distribution, but at
> least
> /usr/include/linux/if_bridge.h from linux-libc-dev on Ubuntu is a
> cleaned up version that does not include linux/in6.h. Why would this
> be
> different for musl? Shouldn't this be fixed in the kernel headers
> instead?

It's not different for musl. It is in the header file from the UAPI: ht
tp://lxr.free-electrons.com/source/include/uapi/linux/if_bridge.h?v=4.3
.

Best regards
Jörg Krause



More information about the Hostap mailing list