netmap compile error!

许志峰 zhifengxucs at gmail.com
Sat Jan 16 10:09:30 UTC 2016


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 at server02 LINUX]# ./configure
--kernel-sources=/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 := /root/linux-3.10/drivers/net/ethernet/intel/ixgbe
ixgbe-patch := patches/diff--ixgbe--30a00--30d00
ixgbe-dst := ixgbe
igb-src := /root/linux-3.10/drivers/net/ethernet/intel/igb
igb-patch := patches/diff--igb--30800--30f00
igb-dst := igb
e1000e-src := /root/linux-3.10/drivers/net/ethernet/intel/e1000e
e1000e-patch := patches/diff--e1000e--30900--99999
e1000e-dst := e1000e
e1000-src := /root/linux-3.10/drivers/net/ethernet/intel/e1000
e1000-patch := patches/diff--e1000--20620--31200
e1000-dst := e1000
veth.c-src := /root/linux-3.10/drivers/net/veth.c
veth.c-patch := patches/diff--veth.c--30900--30f00
veth.c-dst := veth.c
forcedeth.c-src := /root/linux-3.10/drivers/net/ethernet/nvidia/forcedeth.c
forcedeth.c-patch := patches/diff--forcedeth.c--20626--99999
forcedeth.c-dst := forcedeth.c
virtio_net.c-src := /root/linux-3.10/drivers/net/virtio_net.c
virtio_net.c-patch := patches/diff--virtio_net.c--30900--30b00
virtio_net.c-dst := virtio_net.c
[root at server02 LINUX]#

[root at server02 LINUX]# make -j 16
make -C /lib/modules/3.10.0-229.el7.x86_64/build M=/root/netmap/LINUX
EXTRA_CFLAGS='-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=m CONFIG_VIRTIO_NET=m CONFIG_FORCEDETH=m
CONFIG_VETH=m CONFIG_E1000=m CONFIG_E1000E=m CONFIG_IGB=m
CONFIG_IXGBE=m  O_DRIVERS="e1000/ e1000e/ forcedeth.o igb/ ixgbe/
veth.o virtio_net.o" \
    NETMAP_DRIVER_SUFFIX=
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 ‘veth_newlink’:
/root/netmap/LINUX/veth.c:320:5: error: ‘ifla_policy’ undeclared
(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 at 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 at server02 LINUX]#

I googled this problem but got nothing. How should I fix this?

Thanks a lot!


More information about the freebsd-net mailing list