From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai47n-0000hA-Us for qemu-devel@nongnu.org; Mon, 21 Mar 2016 14:00:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai47j-0002GB-VR for qemu-devel@nongnu.org; Mon, 21 Mar 2016 14:00:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai47j-0002G5-Pa for qemu-devel@nongnu.org; Mon, 21 Mar 2016 14:00:15 -0400 References: From: John Snow Message-ID: <56F036AE.5050408@redhat.com> Date: Mon, 21 Mar 2016 14:00:14 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] (no subject) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yunqiang Gao , "qemu-devel@nongnu.org" On 03/21/2016 04:44 AM, Yunqiang Gao wrote: > Hi,alls, >=20 > I compile qemu on ubuntu 12.04,when "make",some error appears.the erro= r: >=20 > migration/rdma.c: In function =E2=80=98qemu_rdma_dump_id=E2=80=99: > migration/rdma.c:738:21: error: =E2=80=98struct ibv_port_attr=E2=80=99 = has no member > named =E2=80=98link_layer=E2=80=99 > migration/rdma.c:739:22: error: =E2=80=98struct ibv_port_attr=E2=80=99 = has no member > named =E2=80=98link_layer=E2=80=99 > migration/rdma.c:739:37: error: =E2=80=98IBV_LINK_LAYER_INFINIBAND=E2=80= =99 undeclared > (first use in this function) > migration/rdma.c:739:37: note: each undeclared identifier is reported > only once for each function it appears in > migration/rdma.c:740:24: error: =E2=80=98struct ibv_port_attr=E2=80=99 = has no member > named =E2=80=98link_layer=E2=80=99 > migration/rdma.c:740:39: error: =E2=80=98IBV_LINK_LAYER_ETHERNET=E2=80=99= undeclared > (first use in this function) > migration/rdma.c: In function =E2=80=98qemu_rdma_broken_ipv6_kernel=E2=80= =99: > migration/rdma.c:839:26: error: =E2=80=98struct ibv_port_attr=E2=80=99 = has no member > named =E2=80=98link_layer=E2=80=99 > migration/rdma.c:839:41: error: =E2=80=98IBV_LINK_LAYER_INFINIBAND=E2=80= =99 undeclared > (first use in this function) > migration/rdma.c:841:33: error: =E2=80=98struct ibv_port_attr=E2=80=99 = has no member > named =E2=80=98link_layer=E2=80=99 > migration/rdma.c:841:48: error: =E2=80=98IBV_LINK_LAYER_ETHERNET=E2=80=99= undeclared > (first use in this function) > migration/rdma.c:880:18: error: =E2=80=98struct ibv_port_attr=E2=80=99 = has no member > named =E2=80=98link_layer=E2=80=99 > make: *** [migration/rdma.o] Error 1 >=20 > I have do that: apt-get build-dep qemu. >=20 > when I install Recommended additional packages,two packages can't be > installed,these are libseccomp-dev,libvdeplug-dev. > errpr information: > Reading package lists... Done > Building dependency tree =20 > Reading state information... Done > E: Unable to locate package libvdeplug-dev >=20 > my linux kernel is 4.4.1. >=20 > Could anybody know how to deal with it? >=20 > Thanks! >=20 If you don't need the RDMA feature, you could always just --disable-rdma for now to see if you can get QEMU to build. Looks like one of your libraries is outdated, for me 'IBV_LINK_LAYER_INFINIBAND' is defined in /usr/include/infiniband/verbs.h; provided by libibverbs-devel-1.1.8-3.fc22.x86_64. Maybe your libibverbs is too old. --js