From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4176 Path: news.gmane.org!not-for-mail From: Paul Schutte Newsgroups: gmane.linux.lib.musl.general Subject: netinet/if_ether.h and linux/if_ether.h Date: Sat, 2 Nov 2013 13:18:41 +0000 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bb0435c8b319d04ea318525 X-Trace: ger.gmane.org 1383398329 14369 80.91.229.3 (2 Nov 2013 13:18:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Nov 2013 13:18:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4180-gllmg-musl=m.gmane.org@lists.openwall.com Sat Nov 02 14:18:55 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Vcb6M-0002Yo-TS for gllmg-musl@plane.gmane.org; Sat, 02 Nov 2013 14:18:54 +0100 Original-Received: (qmail 32516 invoked by uid 550); 2 Nov 2013 13:18:53 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32508 invoked from network); 2 Nov 2013 13:18:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Roa9vU1UHxPSgrV7AEt3q0nSYxA1L99uhdyjhFubMoQ=; b=zmoHQ0DKsLycbL6c2TB9VCcsltXY7hGUhzA+5YxOD8G0YULnxX/YT3Ps2Kp1fdtXiY Kwzz5PA36Oq4kSW67XQ5zaqCuZO3uj/AmtNiDHVZ+cCFdb0sDiy4HbYSepqCUARhbvrp PPjMrP+TIdtaTaS7mzrv/W1unloBdY+RxVKfjLZC0pHImS6WX+wHhXyZHIaNcqaddvd7 HKQsB6SGChMGHEQi+am76fPbVy4pz08R4RJ8oDUV9c8kw/LZk2vFxozp2asA1FQnKVwY luDOIpcWP3QoG8ZtjIOlaYpHNCJ/AdN7UESy/Oh+dNy4zaIV2mZbLnTbdRObJ6fTRHyk mpbQ== X-Received: by 10.194.94.137 with SMTP id dc9mr6181530wjb.38.1383398321629; Sat, 02 Nov 2013 06:18:41 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:4176 Archived-At: --047d7bb0435c8b319d04ea318525 Content-Type: text/plain; charset=ISO-8859-1 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 #endif #ifdef HAVE_LINUX_IF_TUN_H #include <--- 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 --047d7bb0435c8b319d04ea318525 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I am trying to compile openvpn agai= nst musl and I get the following:

In file inc= luded from /usr/include/linux/if_tun.h:20:0,
=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0from syshead.h:222,
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0from base64.c:40:
/usr/in= clude/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 probl= em as they include=A0linux/if_ether.h from=A0netinet/if_ether.h. For musl I= realize that would mean a dependency on kernel-headers.


Openvpn uses the following:

<= /div>
#if defined(HAVE_NETINET_IF_ETHER_H)
#includ= e <netinet/if_ether.h>
#endif

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


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

Regards
Paul
--047d7bb0435c8b319d04ea318525--