rtl8187-Linux-Driver
rtl8187-Linux-Driver copied to clipboard
ERROR Need Help !!!
hi there,
Could anyone help on this issue?? Appreciate help
OS - Kali Linux
oot@kali:~/Downloads/rtl8187-Linux-Driver-master# sudo make make[1]: Entering directory '/usr/src/linux-headers-4.16.0-kali2-amd64' CC [M] /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.o /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c: In function ‘rtl8180_proc_module_init’: /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:427:18: error: implicit declaration of function ‘create_proc_entry’; did you mean ‘remove_proc_entry’? [-Werror=implicit-function-declaration] rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, init_net.proc_net); ^~~~~~~~~~~~~~~~~ remove_proc_entry /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:427:17: warning: assignment to ‘struct proc_dir_entry *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, init_net.proc_net); ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c: In function ‘rtl8180_proc_init_one’: /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:461:19: warning: assignment to ‘struct proc_dir_entry ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] priv->dir_dev = create_proc_entry(dev->name, ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:479:9: error: implicit declaration of function ‘create_proc_read_entry’; did you mean ‘remove_proc_entry’? [-Werror=implicit-function-declaration] e = create_proc_read_entry("stats-rx", S_IFREG | S_IRUGO, ^~~~~~~~~~~~~~~~~~~~~~ remove_proc_entry /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:479:7: warning: assignment to ‘struct proc_dir_entry ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] e = create_proc_read_entry("stats-rx", S_IFREG | S_IRUGO, ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:489:7: warning: assignment to ‘struct proc_dir_entry ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] e = create_proc_read_entry("stats-tx", S_IFREG | S_IRUGO, ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:518:7: warning: assignment to ‘struct proc_dir_entry ’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] e = create_proc_read_entry("registers", S_IFREG | S_IRUGO, ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c: In function ‘rtl8180_tx’: /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:1382:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] u8 seg = ((u32)txbuf % 4); ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c: In function ‘rtl8187_usb_initendpoints’: /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:1588:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] seg_size = (u32)ptrcontext->transfer_buffer % 4; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c: In function ‘rtl8180_init’: /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2572:5: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration] init_timer(&priv->gpio_polling_timer); ^~~~~~~~~~ init_timers /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2573:29: error: ‘struct timer_list’ has no member named ‘data’ priv->gpio_polling_timer.data = (unsigned long)dev; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2574:39: error: assignment to ‘void ()(struct timer_list )’ from incompatible pointer type ‘void ()(long unsigned int)’ [-Werror=incompatible-pointer-types] priv->gpio_polling_timer.function = gpio_change_polling; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2578:32: error: ‘struct timer_list’ has no member named ‘data’ priv->rateadapter_timer.data = (unsigned long)dev; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2579:42: error: assignment to ‘void ()(struct timer_list )’ from incompatible pointer type ‘void ()(long unsigned int)’ [-Werror=incompatible-pointer-types] priv->rateadapter_timer.function = timer_rate_adaptive; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2583:26: error: ‘struct timer_list’ has no member named ‘data’ priv->watch_dog_timer.data = (unsigned long)dev; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2584:36: error: assignment to ‘void ()(struct timer_list )’ from incompatible pointer type ‘void ()(long unsigned int)’ [-Werror=incompatible-pointer-types] priv->watch_dog_timer.function = watch_dog_adaptive; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2594:19: error: ‘struct timer_list’ has no member named ‘data’ priv->ps_timer.data = (unsigned long)dev; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:2595:29: error: assignment to ‘void ()(struct timer_list )’ from incompatible pointer type ‘void ()(long unsigned int)’ [-Werror=incompatible-pointer-types] priv->ps_timer.function = timer_hw_wakeup_wq; ^ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c: In function ‘rtl8180_down’: /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:3261:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (!netif_queue_stopped(dev)) ^~ /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.c:3264:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ priv->ieee80211->wpa_ie_len = 0; ^~~~ cc1: some warnings being treated as errors make[4]: *** [/usr/src/linux-headers-4.16.0-kali2-common/scripts/Makefile.build:330: /root/Downloads/rtl8187-Linux-Driver-master/rtl8187/r8187_core.o] Error 1 make[3]: *** [/usr/src/linux-headers-4.16.0-kali2-common/Makefile:1578: module/root/Downloads/rtl8187-Linux-Driver-master/rtl8187] Error 2 make[2]: *** [Makefile:146: sub-make] Error 2 make[1]: *** [Makefile:8: all] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.16.0-kali2-amd64' make: *** [Makefile:14: all] Error 2
Additional Info
root@kali:~/Downloads/rtl8187-Linux-Driver-master# make install kernel/drivers/net/wireless/realtek/rtl818x/rtl8187/rtl8187.ko: kernel/drivers/misc/eeprom/eeprom_93cx6.ko kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/net/rfkill/rfkill.ko kernel/drivers/usb/core/usbcore.ko kernel/drivers/usb/common/usb-common.ko kernel/drivers/net/wireless/realtek/rtl818x/rtl8187/rtl8187.ko: kernel/drivers/misc/eeprom/eeprom_93cx6.ko kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/net/rfkill/rfkill.ko kernel/drivers/usb/core/usbcore.ko kernel/drivers/usb/common/usb-common.ko cp: cannot create regular file '/etc/acpi/events/': No such file or directory make: *** [Makefile:24: install] Error 1 root@kali:~/Downloads/rtl8187-Linux-Driver-master#
root@kali:~# wget https://github.com/Dekadencee/rtl8187-Linux-Driver/archive/master.zip --2018-08-17 01:31:37-- https://github.com/Dekadencee/rtl8187-Linux-Driver/archive/master.zip Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112 Connecting to github.com (github.com)|192.30.253.113|:443... failed: No route to host. Connecting to github.com (github.com)|192.30.253.112|:443... failed: No route to host.