kohler / click

The Click modular router: fast modular packet processing and analysis
Other
740 stars 321 forks source link

Failed to compile the kernel module #394

Closed daehyeok-kim closed 6 years ago

daehyeok-kim commented 6 years ago

On Ubuntu 16.04 with kernel 4.4.0-116-generic, I tried to compile the click kernel module with the following command: ./configure --enable-linuxmodule --with-linux=/usr/src/linux-headers-4.4.0-116-generic --with-linux-map=/boot && sudo make install

I got the following compile error: /extra_disk/click/linuxmodule/../elements/linuxmodule/fromhost.cc:143:50: error: macro "alloc_netdev" requires 4 arguments, but only 3 given net_device *dev = alloc_netdev(0, name, setup);

It looks like fromhost.cc follows the macro (alloc_netdev) definition in old versions of the kernel. Is there any patch for this issue?

Thanks!

stevelorenz commented 6 years ago

@daehyeok-kim Hello, I have the same issue to compile click kernel module. Could you give me some information to solve this issue? Thanks in advance for the help.