PDA

View Full Version : Makefile error while trying to install drivers for Alfa Networks AWUS036AC on VBox



TeDDoX
2017-12-21, 03:13
Hi there guys,

I've been reading the forums for a while now and I'm truly grateful for all the support you're giving!

I just took the first step deciding to move from Ubuntu to Kali Linux and I'm having trouble installing the drivers for my USB wifi-adapter (Alfa Networks AWUS036AC). My version is 2017.3 and I'm trying to compile and install the official drivers you get from the official webpage. I am running a VirtualBox host on Windows 10 and The setup is obviously going to be used for learning penetration testing. I did install the VirtualBox expansion package to get USB 3.0 passthrough.

Since, I've tried using both the sh install.sh (and just running the entire script) file in the main directory and the make withing the driver folder. Both turn out bad; Either via makefile errors or something else.

I'm pretty new to these complications, but I guess there's something I forgot here.

This is the code I get from install.sh:

cc1: some warnings being treated as errors
/usr/src/linux-headers-4.14.0-kali1-common/scripts/Makefile.build:319: recipe for target '/root/AWUS036AC_036EAC_ACH_linux_v4.3.8_12175.20140902/driver/rtl8812AU_linux_v4.3.8_12175.20140902/core/rtw_cmd.o' failed
make[4]: *** [/root/AWUS036AC_036EAC_ACH_linux_v4.3.8_12175.20140902/driver/rtl8812AU_linux_v4.3.8_12175.20140902/core/rtw_cmd.o] Error 1
/usr/src/linux-headers-4.14.0-kali1-common/Makefile:1520: recipe for target '_module_/root/AWUS036AC_036EAC_ACH_linux_v4.3.8_12175.20140902/driver/rtl8812AU_linux_v4.3.8_12175.20140902' failed
make[3]: *** [_module_/root/AWUS036AC_036EAC_ACH_linux_v4.3.8_12175.20140902/driver/rtl8812AU_linux_v4.3.8_12175.20140902] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.14.0-kali1-amd64'
Makefile:1456: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################

This is what I get when I run the make command in the Driver folder:

cc1: some warnings being treated as errors
/usr/src/linux-headers-4.14.0-kali1-common/scripts/Makefile.build:319: recipe for target '/root/AWUS036AC_036EAC_ACH_linux_v4.3.8_12175.20140902/driver/rtl8812AU_linux_v4.3.8_12175.20140902/core/rtw_cmd.o' failed
make[4]: *** [/root/AWUS036AC_036EAC_ACH_linux_v4.3.8_12175.20140902/driver/rtl8812AU_linux_v4.3.8_12175.20140902/core/rtw_cmd.o] Error 1
/usr/src/linux-headers-4.14.0-kali1-common/Makefile:1520: recipe for target '_module_/root/AWUS036AC_036EAC_ACH_linux_v4.3.8_12175.20140902/driver/rtl8812AU_linux_v4.3.8_12175.20140902' failed
make[3]: *** [_module_/root/AWUS036AC_036EAC_ACH_linux_v4.3.8_12175.20140902/driver/rtl8812AU_linux_v4.3.8_12175.20140902] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.14.0-kali1-amd64'
Makefile:1456: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################

P.S. I tried attaching the tarball here, but couldn't get it to work. Sry

Thanks in advance,
T

TeDDoX
2017-12-21, 17:32
Additional information from "dmesg" comes here: I'm not sure what to make of it. Can't really tell if the driver is correctly installed. Please help out!



[ 2.064650] usb 1-2: new high-speed USB device number 3 using xhci_hcd
[ 2.398955] usb 1-2: New USB device found, idVendor=0bda, idProduct=8812
[ 2.398956] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.398957] usb 1-2: Product: 802.11n NIC
[ 2.398958] usb 1-2: Manufacturer: Realtek
[ 2.398958] usb 1-2: SerialNumber: 123456
[ 3.808346] floppy0: no floppy controllers found
[ 3.808378] work still pending
[ 3.839129] PM: Starting manual resume from disk
[ 3.839329] PM: Image not found (code -22)
[ 4.156137] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 4.412077] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 4.426972] systemd[1]: systemd 235 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN default-hierarchy=hybrid)