PDA

View Full Version : Trouble compiling a custom Network driver



mberthold
2014-08-26, 07:58
Hello,

This is my first time using Kali....
I am running a 64-bit Gnome install (installed to the Hardrive) and I am trying to compile and install a custom Network driver for an Intel i210 Network adapter (Link to Git-Repostitory https://github.com/AVnu/Open-AVB).

I had previously compiled and installed the driver running Ubuntu 14.04 on the same machine without any problems.

When I try to run make in the directory where the drivers makefile is located I get this.



max@avb02:~/Doc/Open-AVB/kmod/igb$ make
make -C /lib/modules/3.14-kali1-amd64/build SUBDIRS=/home/max/Doc/Open-AVB/kmod/igb modules
make[1]: Entering directory `/usr/src/linux-headers-3.14-kali1-amd64'
CC [M] /home/max/Doc/Open-AVB/kmod/igb/igb_main.o
/home/max/Doc/Open-AVB/kmod/igb/igb_main.c:2281:5: warning: initialization from incompatible pointer type [enabled by default]
/home/max/Doc/Open-AVB/kmod/igb/igb_main.c:2281:5: warning: (near initialization for ‘igb_netdev_ops.ndo_select_queue’) [enabled by default]
/home/max/Doc/Open-AVB/kmod/igb/igb_main.c: In function ‘igb_del_mac_filter’:
/home/max/Doc/Open-AVB/kmod/igb/igb_main.c:9294:3: error: implicit declaration of function ‘compare_ether_addr’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[4]: *** [/home/max/Doc/Open-AVB/kmod/igb/igb_main.o] Error 1
make[3]: *** [_module_/home/max/Doc/Open-AVB/kmod/igb] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.14-kali1-amd64'
make: *** [default] Error 2


Since it is an Intel machine I find it confusing that there should be a directory called "linux-headers-3.14-kali1-amd64".

Can anyone help me with this? I would be incredibly grateful.

Max