mailing list of musl libc
 help / color / mirror / code / Atom feed
* netinet/if_ether.h and linux/if_ether.h
@ 2013-11-02 13:18 Paul Schutte
  2013-11-02 19:07 ` Szabolcs Nagy
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Schutte @ 2013-11-02 13:18 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

Hi,

I am trying to compile openvpn against musl and I get the following:

In file included from /usr/include/linux/if_tun.h:20:0,
                 from syshead.h:222,
                 from base64.c:40:
/usr/include/linux/if_ether.h:127:8: error: redefinition of 'struct ethhdr'
/usr/include/netinet/if_ether.h:93:8: note: originally defined here



Glibc does not have this problem as they include linux/if_ether.h
from netinet/if_ether.h. For musl I realize that would mean a dependency on
kernel-headers.


Openvpn uses the following:

#if defined(HAVE_NETINET_IF_ETHER_H)
#include <netinet/if_ether.h>
#endif

#ifdef HAVE_LINUX_IF_TUN_H
#include <linux/if_tun.h>                   <--- includes linux/if_ether.h
#endif


I can get it to work by just removing the netinet/if_ether.h part, but
maybe it is something worthy of your attention.

Regards
Paul

[-- Attachment #2: Type: text/html, Size: 1321 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-02 19:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-02 13:18 netinet/if_ether.h and linux/if_ether.h Paul Schutte
2013-11-02 19:07 ` Szabolcs Nagy
2013-11-02 19:15   ` Paul Schutte
2013-11-02 19:34   ` Rich Felker

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).