From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: iproute2 won't compile without AF_VSOCK Date: Tue, 19 Jun 2018 08:47:32 -0700 Message-ID: <20180619084732.0de6d75d@xeon-e3> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: David Ahern , netdev To: Steve Wise Return-path: Received: from mail-pg0-f46.google.com ([74.125.83.46]:41610 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966650AbeFSPrg (ORCPT ); Tue, 19 Jun 2018 11:47:36 -0400 Received: by mail-pg0-f46.google.com with SMTP id l65-v6so47486pgl.8 for ; Tue, 19 Jun 2018 08:47:36 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 19 Jun 2018 10:17:45 -0500 Steve Wise wrote: > Hey David, >=20 > I'm trying to compile the latest iproute2 on an RHEL-7.3 distro, and it > fails to compile because AF_VSOCK is not defined.=C2=A0 Should this > functionality be a configure option to disable it on older distros? >=20 >=20 > Thanks, >=20 > Steve. >=20 > ---- >=20 > misc > =C2=A0=C2=A0=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ss.o > ss.c:301:27: error: =E2=80=98AF_VSOCK=E2=80=99 undeclared here (not in a = function) > =C2=A0=C2=A0 .families =3D FAMILY_MASK(AF_VSOCK), > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 ^ > ss.c:252:46: note: in definition of macro =E2=80=98FAMILY_MASK=E2=80=99 > =C2=A0#define FAMILY_MASK(family) ((uint64_t)1 << (family)) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ > ss.c:334:2: error: array index in initializer not of integer type > =C2=A0 [AF_VSOCK] =3D { > =C2=A0 ^ > ss.c:334:2: error: (near initialization for =E2=80=98default_afs=E2=80=99) > make[1]: *** [ss.o] Error 1 > make: *** [all] Error 2 >=20 Probably should just add an #ifdef to takeout that if not present