Date: Sat, 16 Jan 2016 18:09:28 +0800 From: =?UTF-8?B?6K645b+X5bOw?= <zhifengxucs@gmail.com> To: net@freebsd.org Subject: netmap compile error! Message-ID: <CA%2Bkh8pZBjr4tv6Pr2o7Wd97eTsVALEETvFRpFxngd_9ZDNg-%2BA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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 <driver>-src and the <driver>-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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bkh8pZBjr4tv6Pr2o7Wd97eTsVALEETvFRpFxngd_9ZDNg-%2BA>