Open frankpanduh opened 10 years ago
does anyone know a fix?
I'm not sure, because I don't get those errors. But there are some recent revisions; maybe you should download the latest. Also, you should not run make as root, you should run it from your user account. Then, switch to root to run "make install".
Good luck, Tim
I tried again logged in as user. I think like you said. Got this:
panduh1@panduh420:~/Desktop$ git clone https://github.com/lwfinger/rtl8192du.git
Cloning into 'rtl8192du'...
remote: Reusing existing pack: 6322, done.
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6326 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6326/6326), 11.54 MiB | 680.00 KiB/s, done.
Resolving deltas: 100% (5027/5027), done.
Checking connectivity... done.
panduh1@panduh420:~/Desktop$ cd rtl8192du
panduh1@panduh420:~/Desktop/rtl8192du$ make clean
rm -fr .mod.c .mod .o ..cmd _.ko ~
rm .tmp_versions -fr ; rm Module.symvers -fr
rm -fr Module.markers ; rm -fr modules.order
cd core ; rm -fr .mod.c .mod .o ..cmd .ko
cd hal ; rm -fr .mod.c .mod .o ..cmd .ko
cd os_dep ; rm -fr .mod.c .mod .o ..cmd .ko
panduh1@panduh420:~/Desktop/rtl8192du$ sudo make
[sudo] password for panduh1:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.13.0-32-generic/build M=/home/panduh1/Desktop/rtl8192du modules
make[1]: Entering directory /usr/src/linux-headers-3.13.0-32-generic' CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_cmd.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_security.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_debug.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_io.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_ioctl_set.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_ieee80211.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_mlme.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_mlme_ext.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_wlan_util.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_pwrctrl.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_rf.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_recv.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_sta_mgt.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_ap.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_xmit.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_p2p.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_sreset.o CC [M] /home/panduh1/Desktop/rtl8192du/core/rtw_efuse.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/hal_intf.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/hal_com.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192d_hal_init.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192d_phycfg.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192d_rf6052.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192d_dm.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192d_rxdesc.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192d_cmd.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/usb_halinit.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192du_led.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192du_xmit.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192du_recv.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/Hal8192DUHWImg.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/usb_ops_linux.o CC [M] /home/panduh1/Desktop/rtl8192du/hal/rtl8192d_xmit.o CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/osdep_service.o CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/os_intfs.o /home/panduh1/Desktop/rtl8192du/os_dep/os_intfs.c:874:2: warning: initialization from incompatible pointer type [enabled by default] .ndo_select_queue = rtw_select_queue, ^ /home/panduh1/Desktop/rtl8192du/os_dep/os_intfs.c:874:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default] CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/usb_intf.o CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/usb_ops_linux.o CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_linux.o CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/xmit_linux.o CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/mlme_linux.o CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/recv_linux.o CC [M] /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.o /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c:3556:5: warning: ‘struct cfg80211_mgmt_tx_params’ declared inside parameter list [enabled by default] u64 *cookie) ^ /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c:3556:5: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c: In function ‘cfg80211_rtw_mgmt_tx’: /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c:3567:21: error: dereferencing pointer to incomplete type size_t len = params->len; ^ /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c:3568:41: error: dereferencing pointer to incomplete type struct ieee80211_channel *chan = params->chan; ^ /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c:3569:24: error: dereferencing pointer to incomplete type const u8 *buf = params->buf; ^ /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c: At top level: /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c:3650:2: warning: initialization from incompatible pointer type [enabled by default] .mgmt_tx = cfg80211_rtw_mgmt_tx, ^ /home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.c:3650:2: warning: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx’) [enabled by default] make[2]: *_\* [/home/panduh1/Desktop/rtl8192du/os_dep/ioctl_cfg80211.o] Error 1 make[1]: **\* [_module_/home/panduh1/Desktop/rtl8192du] Error 2 make[1]: Leaving directory
/usr/src/linux-headers-3.13.0-32-generic'
make: *\ [modules] Error 2
Do you think i should try and downgrade the kernel? I'm on xubuntu 14.04 i tired posting this in the ubuntu fourms as well and no luck. wish i would have never updated. =p
The only way that "make clean" can fail is if you did a make as root, and are now trying to "make clean" as a regular user. If that is what happened, then you need to recursively change owner of the files in the git repo. You will have to look that one up.
Some examples of NO-NOs:
sudo make su - ; make
You should NEVER, NEVER run "make" as root, other than "sudo make install" where files need to be written into system areas of the file system.
What branch are you using? Whenever a repo has more than one, you need to specify that. For kernel 3.13, you should be on "master". Branch "kernel-version" is for the latest kernel, which is 3.16-rc6.
I'm Using Xubuntu 14.04 and am on 3.13. I used the archived version and is now working.
First i tired to use "make clean" then "make" but i keep getting the same error. I had the driver installed and working but dunno how to fix it now. =p ------TERMINAL COPY----------: root@panduh420:~/rtl8192du# cd root@panduh420:~# cd rtl8192du root@panduh420:~/rtl8192du# make clean rm -fr .mod.c _.mod .o ..cmd .ko ~ rm .tmp_versions -fr ; rm Module.symvers -fr rm -fr Module.markers ; rm -fr modules.order cd core ; rm -fr .mod.c .mod .o ..cmd .ko cd hal ; rm -fr .mod.c .mod .o ..cmd .ko cd os_dep ; rm -fr .mod.c .mod .o ..cmd .ko root@panduh420:~/rtl8192du# make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.13.0-32-generic/build M=/root/rtl8192du modules make[1]: Entering directory `/usr/src/linux-headers-3.13.0-32-generic' CC [M] /root/rtl8192du/core/rtw_cmd.o CC [M] /root/rtl8192du/core/rtw_security.o CC [M] /root/rtl8192du/core/rtw_debug.o CC [M] /root/rtl8192du/core/rtw_io.o CC [M] /root/rtl8192du/core/rtw_ioctl_set.o CC [M] /root/rtl8192du/core/rtw_ieee80211.o CC [M] /root/rtl8192du/core/rtw_mlme.o CC [M] /root/rtl8192du/core/rtw_mlme_ext.o CC [M] /root/rtl8192du/core/rtw_wlan_util.o CC [M] /root/rtl8192du/core/rtw_pwrctrl.o CC [M] /root/rtl8192du/core/rtw_rf.o CC [M] /root/rtl8192du/core/rtw_recv.o CC [M] /root/rtl8192du/core/rtw_sta_mgt.o CC [M] /root/rtl8192du/core/rtw_ap.o CC [M] /root/rtl8192du/core/rtw_xmit.o CC [M] /root/rtl8192du/core/rtw_p2p.o CC [M] /root/rtl8192du/core/rtw_sreset.o CC [M] /root/rtl8192du/core/rtw_efuse.o CC [M] /root/rtl8192du/hal/hal_intf.o CC [M] /root/rtl8192du/hal/hal_com.o CC [M] /root/rtl8192du/hal/rtl8192d_hal_init.o CC [M] /root/rtl8192du/hal/rtl8192d_phycfg.o CC [M] /root/rtl8192du/hal/rtl8192d_rf6052.o CC [M] /root/rtl8192du/hal/rtl8192d_dm.o CC [M] /root/rtl8192du/hal/rtl8192d_rxdesc.o CC [M] /root/rtl8192du/hal/rtl8192d_cmd.o CC [M] /root/rtl8192du/hal/usb_halinit.o CC [M] /root/rtl8192du/hal/rtl8192du_led.o CC [M] /root/rtl8192du/hal/rtl8192du_xmit.o CC [M] /root/rtl8192du/hal/rtl8192du_recv.o CC [M] /root/rtl8192du/hal/Hal8192DUHWImg.o CC [M] /root/rtl8192du/hal/usb_ops_linux.o CC [M] /root/rtl8192du/hal/rtl8192d_xmit.o CC [M] /root/rtl8192du/os_dep/osdep_service.o CC [M] /root/rtl8192du/os_dep/os_intfs.o /root/rtl8192du/os_dep/os_intfs.c:874:2: warning: initialization from incompatible pointer type [enabled by default] .ndo_select_queue = rtw_select_queue, ^ /root/rtl8192du/os_dep/os_intfs.c:874:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’) [enabled by default] CC [M] /root/rtl8192du/os_dep/usb_intf.o CC [M] /root/rtl8192du/os_dep/usb_ops_linux.o CC [M] /root/rtl8192du/os_dep/ioctl_linux.o CC [M] /root/rtl8192du/os_dep/xmit_linux.o CC [M] /root/rtl8192du/os_dep/mlme_linux.o CC [M] /root/rtl8192du/os_dep/recv_linux.o CC [M] /root/rtl8192du/os_dep/ioctl_cfg80211.o /root/rtl8192du/os_dep/ioctl_cfg80211.c:3556:5: warning: ‘struct cfg80211_mgmt_tx_params’ declared inside parameter list [enabled by default] u64 cookie) ^ /root/rtl8192du/os_dep/ioctl_cfg80211.c:3556:5: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /root/rtl8192du/os_dep/ioctl_cfg80211.c: In function ‘cfg80211_rtw_mgmt_tx’: /root/rtl8192du/os_dep/ioctl_cfg80211.c:3567:21: error: dereferencing pointer to incomplete type size_t len = params->len; ^ /root/rtl8192du/os_dep/ioctl_cfg80211.c:3568:41: error: dereferencing pointer to incomplete type struct ieee80211_channel chan = params->chan; ^ /root/rtl8192du/os_dep/ioctl_cfg80211.c:3569:24: error: dereferencing pointer to incomplete type const u8 buf = params->buf; ^ /root/rtl8192du/os_dep/ioctl_cfg80211.c: At top level: /root/rtl8192du/os_dep/ioctl_cfg80211.c:3650:2: warning: initialization from incompatible pointer type [enabled by default] .mgmt_tx = cfg80211_rtw_mgmt_tx, ^ /root/rtl8192du/os_dep/ioctl_cfg80211.c:3650:2: warning: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx’) [enabled by default] make[2]: * [/root/rtl8192du/os_dep/ioctl_cfg80211.o] Error 1 make[1]: _* [module/root/rtl8192du] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-32-generic' make: *\ [modules] Error 2 root@panduh420:~/rtl8192du#