From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afs6l-0005Lq-6P for qemu-devel@nongnu.org; Tue, 15 Mar 2016 12:46:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afs6h-0006so-U9 for qemu-devel@nongnu.org; Tue, 15 Mar 2016 12:46:11 -0400 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:37800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afs6h-0006sk-N7 for qemu-devel@nongnu.org; Tue, 15 Mar 2016 12:46:07 -0400 Received: by mail-wm0-x22b.google.com with SMTP id p65so35374483wmp.0 for ; Tue, 15 Mar 2016 09:46:07 -0700 (PDT) References: From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: Date: Tue, 15 Mar 2016 16:46:05 +0000 Message-ID: <87fuvradv6.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] some error when compile qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?B?6auY5by6?= Cc: qemu-devel@nongnu.org 高强 writes: > Hi,alls > > I compile qemu on ubuntu 12.04,when "make",some error appears.the > error: Start by ensuring you have all your build dependencies installed. On Ubuntu: apt-get build-dep qemu > > migration/rdma.c: 在函数‘qemu_rdma_dump_id’中: > migration/rdma.c:738:21: 错误: ‘struct ibv_port_attr’没有名为‘link_layer’的成员 > migration/rdma.c:739:22: 错误: ‘struct ibv_port_attr’没有名为‘link_layer’的成员 > migration/rdma.c:739:37: 错误: ‘IBV_LINK_LAYER_INFINIBAND’未声明(在此函数内第一次使用) > migration/rdma.c:739:37: 附注: 每个未声明的标识符在其出现的函数内只报告一次 > migration/rdma.c:740:24: 错误: ‘struct ibv_port_attr’没有名为‘link_layer’的成员 > migration/rdma.c:740:39: 错误: ‘IBV_LINK_LAYER_ETHERNET’未声明(在此函数内第一次使用) > migration/rdma.c: 在函数‘qemu_rdma_broken_ipv6_kernel’中: > migration/rdma.c:839:26: 错误: ‘struct ibv_port_attr’没有名为‘link_layer’的成员 > migration/rdma.c:839:41: 错误: ‘IBV_LINK_LAYER_INFINIBAND’未声明(在此函数内第一次使用) > migration/rdma.c:841:33: 错误: ‘struct ibv_port_attr’没有名为‘link_layer’的成员 > migration/rdma.c:841:48: 错误: ‘IBV_LINK_LAYER_ETHERNET’未声明(在此函数内第一次使用) > migration/rdma.c:880:18: 错误: ‘struct ibv_port_attr’没有名为‘link_layer’的成员 > make: *** [migration/rdma.o] 错误 1 > > look at the source code,maybe some head file is lossed,anybody knows how to > deal with it? > > Thanks -- Alex Bennée