Hello Kali users.

I'm new on this forum so go easy on me ;).
I am a complete newbie to Kali Linux and the Linux OS as well.

I have bought a Panda PAU07 wireless adapter to use with Kali Linux in Virtualbox on my Macbook Air.
My problem is when I'm going to install the driver for the WiFi adapter. The driver is RT2870 (LinuxDriver4Fedora_v2.5.0.3) and I got it with a CD in the box. I followed every step and it went fine until the part where you run the "make" file. When i ran the make file i got a ton of errors and I have troubleshooted for weeks now without result.

This is the error: (I couldn't post the whole code without getting "access denied" from the server for some reason)

cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-kali4-common/scripts/Makefile.build:298: recipe for target '/root/LinuxDriver4Fedora_v2.5.0.3/os/linux/../../sta/sta_cfg.o' failed
make[4]: *** [/root/LinuxDriver4Fedora_v2.5.0.3/os/linux/../../sta/sta_cfg.o] Error 1
/usr/src/linux-headers-4.9.0-kali4-common/Makefile:1507: recipe for target '_module_/root/LinuxDriver4Fedora_v2.5.0.3/os/linux' failed
make[3]: *** [_module_/root/LinuxDriver4Fedora_v2.5.0.3/os/linux] Error 2
Makefile:150: 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.9.0-kali4-amd64'
Makefile:356: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2