Estou tentando compilar os drivers na minha máquina e estou recebendo os seguintes erros:
~/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,
from /home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:30:
include/linux/skbuff.h:729:2: note: previous definition of ‘PKT_HASH_TYPE_NONE’ was here
PKT_HASH_TYPE_NONE, /* Undefined type */
^
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:4057:2: error: redeclaration of enumerator ‘PKT_HASH_TYPE_L2’
PKT_HASH_TYPE_L2,
^
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:730:2: note: previous definition of ‘PKT_HASH_TYPE_L2’ was here
PKT_HASH_TYPE_L2, /* Input: src_MAC, dest_MAC */
^
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:4058:2: error: redeclaration of enumerator ‘PKT_HASH_TYPE_L3’
PKT_HASH_TYPE_L3,
^
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:731:2: note: previous definition of ‘PKT_HASH_TYPE_L3’ was here
PKT_HASH_TYPE_L3, /* Input: src_IP, dst_IP */
^
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:4059:2: error: redeclaration of enumerator ‘PKT_HASH_TYPE_L4’
PKT_HASH_TYPE_L4,
^
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:732:2: note: previous definition of ‘PKT_HASH_TYPE_L4’ was here
PKT_HASH_TYPE_L4, /* Input: src_IP, dst_IP, src_port, dst_port */
^
/home/nandan/ixgbe-3.21.2/src/ixgbe_main.c: In function ‘ixgbe_get_stats64’:
/home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:6673:5: error: implicit declaration of function ‘u64_stats_fetch_begin_bh’ [-Werror=implicit-function-declaration]
start = u64_stats_fetch_begin_bh(&ring->syncp);
^
/home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:6676:4: error: implicit declaration of function ‘u64_stats_fetch_retry_bh’ [-Werror=implicit-function-declaration]
} while (u64_stats_fetch_retry_bh(&ring->syncp, start));
^
/home/nandan/ixgbe-3.21.2/src/ixgbe_main.c: In function ‘ixgbe_select_queue’:
/home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:8084:3: error: implicit declaration of function ‘__netdev_pick_tx’ [-Werror=implicit-function-declaration]
return __netdev_pick_tx(dev, skb);
^
/home/nandan/ixgbe-3.21.2/src/ixgbe_main.c: At top level:
/home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:8887:2: warning: initialization from incompatible pointer type [enabled by default]
.ndo_select_queue = ixgbe_select_queue,
^
/home/nandan/ixgbe-3.21.2/src/ixgbe_main.c:8887:2: warning: (near initialization for ‘ixgbe_netdev_ops.ndo_select_queue’) [enabled by default]
cc1: some warnings being treated as errors
make[2]: *** [/home/nandan/ixgbe-3.21.2/src/ixgbe_main.o] Error 1
make[1]: *** [_module_/home/nandan/ixgbe-3.21.2/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.13.0-46-generic'
make: *** [default] Error 2
alguém pode me ajudar a consertar isso?