From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [BUG] mlx5 build failure on Debian testing Date: Wed, 11 Jul 2018 14:07:49 -0700 Message-ID: <20180711140749.0d975323@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: yskoh@mellanox.com, shahafs@mellanox.com, matan@mellanox.com Return-path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id 7F4821B4CD for ; Wed, 11 Jul 2018 23:07:53 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id c21-v6so14566899pfn.8 for ; Wed, 11 Jul 2018 14:07:53 -0700 (PDT) Content-Disposition: inline List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" I am seeing a build failure of MLX5 driver on Debian testing (buster) with dpdk.org master branch. This is using libibverbs-dev version 19.0-1 The failure is: mlx5_glue.h:94:11: error: =E2=80=98struct ibv_counter_set_init_attr=E2=80= =99 declared inside parameter list will not be visible outside of this defi= nition or declaration [-Werror] struct ibv_counter_set_init_attr *init_attr); ^~~~~~~~~~~~~~~~~~~~~~~~~ It looks like this is being caused because HAVE_IBV_DEVICE_COUNTERS_SET_SUP= PORT is not set, but the header file does not have the counter stuff. The Makefile is generating this mlx5 autoconf file by looking for "enum IBV= _FLOW_SPEC_ACTION_COUNT" in /usr/include/infiniband/verbs.h. This enum is present, but counters are= not. $ grep IBV_FLOW_SPEC_ACTION /usr/include/infiniband/verbs.h=20 IBV_FLOW_SPEC_ACTION_TAG =3D 0x1000, IBV_FLOW_SPEC_ACTION_DROP =3D 0x1001, IBV_FLOW_SPEC_ACTION_HANDLE =3D 0x1002, IBV_FLOW_SPEC_ACTION_COUNT =3D 0x1003,