Unable to compile INTEL 82599 driver  ixgbe-4.1.5 on Ubuntu 14.04


    the kernel version in my computer is:

    zhang$ uname -r


    the version of ubuntu in my computer is:

    zhang$ sudo lsb_release -a

    No LSB modules are available.

    Distributor ID:Ubuntu

    Description:Ubuntu 14.04 LTS



    I execute the following command:"sudo apt-get install linux-headers-$(uname -r)" before compile ixgbe

    But print the following error message when i compile ixgbe-4.1.5

    zhang$ make

    make -C /lib/modules/3.13.0-24-generic/build SUBDIRS=/home/zhang/ixgbe-4.1.5/src modules

    make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'

      CC [M]  /home/zhang/ixgbe-4.1.5/src/ixgbe_main.o

    /home/zhang/ixgbe-4.1.5/src/ixgbe_main.c: In function ‘ixgbe_select_queue’:

    /home/zhang/ixgbe-4.1.5/src/ixgbe_main.c:8648:3: error: implicit declaration of function ‘__netdev_pick_tx’ [-Werror=implicit-function-declaration]

       return __netdev_pick_tx(dev, skb);


    /home/zhang/ixgbe-4.1.5/src/ixgbe_main.c: At top level:

    /home/zhang/ixgbe-4.1.5/src/ixgbe_main.c:9506:2: warning: initialization from incompatible pointer type [enabled by default]

      .ndo_select_queue = ixgbe_select_queue,


    /home/zhang/ixgbe-4.1.5/src/ixgbe_main.c:9506:2: warning: (near initialization for ‘ixgbe_netdev_ops.ndo_select_queue’) [enabled by default]

    cc1: some warnings being treated as errors

    make[2]: *** [/home/zhang/ixgbe-4.1.5/src/ixgbe_main.o] Error 1

    make[1]: *** [module/home/zhang/ixgbe-4.1.5/src] Error 2

    make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'

    make: *** [default] Error 2


    Is there anyone knows how to solve this error.