From owner-freebsd-net@freebsd.org Sat Jan 16 10:09:30 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04B1CA83746 for ; Sat, 16 Jan 2016 10:09:30 +0000 (UTC) (envelope-from zhifengxucs@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DC4DF1981 for ; Sat, 16 Jan 2016 10:09:29 +0000 (UTC) (envelope-from zhifengxucs@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id D8FC5A83743; Sat, 16 Jan 2016 10:09:29 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BEACCA83741 for ; Sat, 16 Jan 2016 10:09:29 +0000 (UTC) (envelope-from zhifengxucs@gmail.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C5651980 for ; Sat, 16 Jan 2016 10:09:29 +0000 (UTC) (envelope-from zhifengxucs@gmail.com) Received: by mail-ig0-x236.google.com with SMTP id z14so28611605igp.0 for ; Sat, 16 Jan 2016 02:09:29 -0800 (PST) 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=CfEqolTzEViSimbHca77NseRYMEsDDMX3XS8B3OE6qM=; b=pGI5u+HQI1w+jHlzH+dfCscpAvLBheMa5Yo3mSzTUFRkxEOrjm+z9I+AdjWOrtzH7Y xP1zvoPAhccq8Ol0ig2KsfmbCwevxWhhGoqgUo8Q1coBYW8bcfbmYO9Lu42FYrNaGGKO WHKIcrV/Kzy6vRW3cCEkCS3mCJGRo5hUQvIjBsFMGnNcMJHYSaspVa/Idmz1keyjMRoJ O+WsX8RvltslmLKwyQmF21HRLbY1iwWWGI2Gccr1M4JwP+XEryiCSOoJTmlBaFd7OZtm 1P+wrtYn6qmQ0nYFG+NXSaTqhcvNLmCQpxr3CocKZ9753taSPVxGna3BFpp/yS3pddTC qh3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=CfEqolTzEViSimbHca77NseRYMEsDDMX3XS8B3OE6qM=; b=gakL4mRdX64z0vxlxvp58nvz38YTxQP2oT8buUQIqyhjIoVOoeblMojLp9nSAJ9E/F jU7b6xj/XDVoJ8SuxUf6Ip/GJ92DwSmE0km1kNPq9N7+rR4geebFMxBsKs62F98pUhVa qVVkR+NRqctejJMw7HPLKUBp+WD/0KLXNV6R3eIvleBKQ4ijQXGX38M6MwteI2+G8Bhc XrRvtF2uDlD6EDekhzZFXmahoH0n2c2hst7dh+iLGE1H6Y5TMFBl53HCHoCjWEs8BRbh xaFsF2jJOGcVSkpupvU2U+nMzof+8JQvzI/3e5+77faYSMEfAZVcKOXSc+NmpsLtMpIi rlcQ== X-Gm-Message-State: AG10YOQmYDSabA3ky4vZfvcs5vC5oDk7CEiSOLAYZhEOZe72zWZI2JA0vJroRN6nJU1scpMdbE8Fo205XW1j+g== MIME-Version: 1.0 X-Received: by 10.50.79.165 with SMTP id k5mr2942533igx.10.1452938968858; Sat, 16 Jan 2016 02:09:28 -0800 (PST) Received: by 10.107.25.85 with HTTP; Sat, 16 Jan 2016 02:09:28 -0800 (PST) Date: Sat, 16 Jan 2016 18:09:28 +0800 Message-ID: Subject: netmap compile error! From: =?UTF-8?B?6K645b+X5bOw?= To: net@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2016 10:09:30 -0000 Hello all, I have some problem compiling netmap source code. I download the code from https://github.com/luigirizzo/netmap, I am using centos 7.x86_64, and the kernel version is 3.10. I downloaded kernel souce and put it at /home/linux-3.10 [root@server02 LINUX]# ./configure --kernel-sources=3D/root/linux-3.10********************************** WARNING ************************************* 'i40e': no applicable patch found and no override file provided.*** Disabling driver.********************************************************************= ******************************************* WARNING ************************************* 'r8169.c': no applicable patch found and no override file provided.*** Disabling driver.********************************************************************= ********* kernel directory /lib/modules/3.10.0-229.el7.x86_64/build [/usr/src/kernels/3.10.0-229.el7.x86_64] linux version 30a00 [3.10] module file netmap.ko subsystems generic monitor pipe vale kernel sources /root/linux-3.10 requested drivers ixgbe igb e1000e e1000 veth.c forcedeth.c virtio_net.c Contents of the drivers.mak file: Note: only drivers for which both the -src and the -patch variable are set may be used in native mode (assuming we can actually patch the sources). Other NICs will be accessed using the generic driver, at reduced performance. ######################################### configure generated values ######################################### ixgbe-src :=3D /root/linux-3.10/drivers/net/ethernet/intel/ixgbe ixgbe-patch :=3D patches/diff--ixgbe--30a00--30d00 ixgbe-dst :=3D ixgbe igb-src :=3D /root/linux-3.10/drivers/net/ethernet/intel/igb igb-patch :=3D patches/diff--igb--30800--30f00 igb-dst :=3D igb e1000e-src :=3D /root/linux-3.10/drivers/net/ethernet/intel/e1000e e1000e-patch :=3D patches/diff--e1000e--30900--99999 e1000e-dst :=3D e1000e e1000-src :=3D /root/linux-3.10/drivers/net/ethernet/intel/e1000 e1000-patch :=3D patches/diff--e1000--20620--31200 e1000-dst :=3D e1000 veth.c-src :=3D /root/linux-3.10/drivers/net/veth.c veth.c-patch :=3D patches/diff--veth.c--30900--30f00 veth.c-dst :=3D veth.c forcedeth.c-src :=3D /root/linux-3.10/drivers/net/ethernet/nvidia/forcedeth= .c forcedeth.c-patch :=3D patches/diff--forcedeth.c--20626--99999 forcedeth.c-dst :=3D forcedeth.c virtio_net.c-src :=3D /root/linux-3.10/drivers/net/virtio_net.c virtio_net.c-patch :=3D patches/diff--virtio_net.c--30900--30b00 virtio_net.c-dst :=3D virtio_net.c [root@server02 LINUX]# [root@server02 LINUX]# make -j 16 make -C /lib/modules/3.10.0-229.el7.x86_64/build M=3D/root/netmap/LINUX EXTRA_CFLAGS=3D'-I/root/netmap/LINUX -I/root/netmap/LINUX -I/root/netmap/LINUX/../sys -I/root/netmap/LINUX/../sys/dev -DCONFIG_NETMAP -Wno-unused-but-set-variable -DCONFIG_NETMAP_GENERIC -DCONFIG_NETMAP_MONITOR -DCONFIG_NETMAP_PIPE -DCONFIG_NETMAP_VALE' modules CONFIG_NETMAP=3Dm CONFIG_VIRTIO_NET=3Dm CONFIG_FORCEDETH=3Dm CONFIG_VETH=3Dm CONFIG_E1000=3Dm CONFIG_E1000E=3Dm CONFIG_IGB=3Dm CONFIG_IXGBE=3Dm O_DRIVERS=3D"e1000/ e1000e/ forcedeth.o igb/ ixgbe/ veth.o virtio_net.o" \ NETMAP_DRIVER_SUFFIX=3D make[1]: Entering directory `/usr/src/kernels/3.10.0-229.el7.x86_64' LD [M] /root/netmap/LINUX/netmap.o CC [M] /root/netmap/LINUX/veth.o /root/netmap/LINUX/veth.c: In function =E2=80=98veth_newlink=E2=80=99: /root/netmap/LINUX/veth.c:320:5: error: =E2=80=98ifla_policy=E2=80=99 undec= lared (first use in this function) ifla_policy); ^ /root/netmap/LINUX/veth.c:320:5: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [/root/netmap/LINUX/veth.o] Error 1 make[1]: *** [_module_/root/netmap/LINUX] Error 2 make[1]: Leaving directory `/usr/src/kernels/3.10.0-229.el7.x86_64' make: *** [all] Error 2 [root@server02 LINUX]# uname -a Linux server02 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux [root@server02 LINUX]# I googled this problem but got nothing. How should I fix this? Thanks a lot!