无法在Ubuntu 14.04上编译INTEL 82599驱动程序

时间:2015-02-25 08:55:52

标签: c linux ubuntu linux-kernel linux-device-driver

我正在尝试在我的机器上编译驱动程序,但是我收到以下错误: ubuntu版本:14.04; 内核版本:3.13.0-46-generic 安装驱动程序适合我的版本。 驱动程序链接:https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=18700&lang=eng&ProdId=3189

~/ixgbe-3.21.2/src$ make install
make -C /lib/modules/3.13.0-46-generic/build SUBDIRS=/home/nandan/ixgbe-3.21.2/src modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-46-generic'
  CC [M]  /home/nandan/ixgbe-3.21.2/src/ixgbe_main.o
In file included from /home/nandan/ixgbe-3.21.2/src/ixgbe_osdep.h:37:0,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe_type.h:65,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe_dcb.h:28,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe.h:47,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:50:
/home/nandan/ixgbe-3.21.2/src/kcompat.h:4055:6: error: nested redefinition of ‘enum pkt_hash_types’
 enum pkt_hash_types {
      ^
/home/nandan/ixgbe-3.21.2/src/kcompat.h:4055:6: error: redeclaration of ‘enum pkt_hash_types’
In file included from include/linux/if_ether.h:23:0,
                 from include/uapi/linux/ethtool.h:17,
                 from include/linux/ethtool.h:16,
                 from include/linux/netdevice.h:42,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:30:
include/linux/skbuff.h:728:6: note: originally defined here
 enum pkt_hash_types {
      ^
In file included from /home/nandan/ixgbe-3.21.2/src/ixgbe_osdep.h:37:0,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe_type.h:65,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe_dcb.h:28,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe.h:47,
                 from /home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:50:
/home/nandan/ixgbe-3.21.2/src/kcompat.h:4056:2: error: redeclaration of enumerator ‘PKT_HASH_TYPE_NONE’
  PKT_HASH_TYPE_NONE,
  ^
In file included from include/linux/if_ether.h:23:0,
                 from include/uapi/linux/ethtool.h:17,
                 from include/linux/ethtool.h:16,
                 from include/linux/netdevice.h:42,

帮我解决这个问题。

0 个答案:

没有答案