lwfinger / rtl8188eu

Repository for stand-alone RTL8188EU driver.
Other
1.67k stars 592 forks source link

driver source come can not be compiled on the latest CentOS 7.1 #133

Open KuriaQianbase opened 9 years ago

KuriaQianbase commented 9 years ago

I downloaded the latest centOS 7 from www.centos.org (the kernel version is 3.10.0), try to install the rtl8188eu, but it failed. The compiler output is as following: [root@localhost rtl8188eu-4.1.8_9499]# make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.10.0-229.el7.x86_64/build M=/home/qian/software/rtl/rtl8188eu-4.1.8_9499 modules make[1]: Entering directory /usr/src/kernels/3.10.0-229.el7.x86_64' CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_cmd.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_security.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_debug.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_io.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_ioctl_query.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_ioctl_set.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_ieee80211.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_mlme.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_mlme_ext.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_wlan_util.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_pwrctrl.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_rf.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_recv.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_sta_mgt.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_ap.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_xmit.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_p2p.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_br_ext.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_iol.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_led.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_sreset.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_odm.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/core/rtw_efuse.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/hal_intf.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/hal_com.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188e_hal_init.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188e_phycfg.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188e_rf6052.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188e_dm.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188e_rxdesc.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188e_cmd.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/usb_halinit.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188eu_led.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188eu_xmit.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188eu_recv.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/usb_ops_linux.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188e_xmit.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/rtl8188e_sreset.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/odm_debug.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/odm_interface.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/odm_HWConfig.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/odm.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/HalPhyRf.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/HalHWImg8188E_MAC.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/HalHWImg8188E_BB.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/HalHWImg8188E_RF.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/HalPhyRf_8188e.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/odm_RegConfig8188E.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/Hal8188ERateAdaptive.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/odm_RTL8188E.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/HalPwrSeqCmd.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/hal/Hal8188EPwrSeq.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/osdep_service.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/os_intfs.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/usb_intf.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/usb_ops_linux.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_linux.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/xmit_linux.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/mlme_linux.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/recv_linux.o CC [M] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.o /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ibss_indicate_connect’: /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:593:2: warning: passing argument 3 of ‘cfg80211_ibss_joined’ makes pointer from integer without a cast [enabled by default] cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC); ^ In file included from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/include/osdep_service.h:71:0, from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:23: include/net/cfg80211.h:4002:6: note: expected ‘struct ieee80211_channel *’ but argument is of type ‘unsigned int’ void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:593:2: error: too few arguments to function ‘cfg80211_ibss_joined’ cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC); ^ In file included from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/include/osdep_service.h:71:0, from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:23: include/net/cfg80211.h:4002:6: note: declared here void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_disconnect’: /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:736:11: error: ‘struct wireless_dev’ has no member named ‘sme_state’ if(pwdev->sme_state==CFG80211_SME_CONNECTING) ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:736:24: error: ‘CFG80211_SME_CONNECTING’ undeclared (first use in this function) if(pwdev->sme_state==CFG80211_SME_CONNECTING) ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:736:24: note: each undeclared identifier is reported only once for each function it appears in /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:739:16: error: ‘struct wireless_dev’ has no member named ‘sme_state’ else if(pwdev->sme_state==CFG80211_SME_CONNECTED) ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:739:29: error: ‘CFG80211_SME_CONNECTED’ undeclared (first use in this function) else if(pwdev->sme_state==CFG80211_SME_CONNECTED) ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_action_p2p’: /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:3718:2: error: too few arguments to function ‘cfg80211_rx_mgmt’ rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC); ^ In file included from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/include/osdep_service.h:71:0, from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:23: include/net/cfg80211.h:4445:6: note: declared here bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_dbm, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_p2p_action_public’: /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:3758:2: error: too few arguments to function ‘cfg80211_rx_mgmt’ rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC); ^ In file included from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/include/osdep_service.h:71:0, from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:23: include/net/cfg80211.h:4445:6: note: declared here bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_dbm, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_action’: /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:3788:2: error: too few arguments to function ‘cfg80211_rx_mgmt’ rtw_cfg80211_rx_mgmt(adapter, freq, 0, frame, frame_len, GFP_ATOMIC); ^ In file included from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/include/osdep_service.h:71:0, from /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:23: include/net/cfg80211.h:4445:6: note: declared here bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_dbm, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c: At top level: /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4763:2: warning: initialization from incompatible pointer type [enabled by default] .get_station = cfg80211_rtw_get_station, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4763:2: warning: (near initialization for ‘rtw_cfg80211_ops.get_station’) [enabled by default] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4791:2: warning: initialization from incompatible pointer type [enabled by default] .add_station = cfg80211_rtw_add_station, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4791:2: warning: (near initialization for ‘rtw_cfg80211_ops.add_station’) [enabled by default] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4792:2: warning: initialization from incompatible pointer type [enabled by default] .del_station = cfg80211_rtw_del_station, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4792:2: warning: (near initialization for ‘rtw_cfg80211_ops.del_station’) [enabled by default] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4793:2: warning: initialization from incompatible pointer type [enabled by default] .change_station = cfg80211_rtw_change_station, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4793:2: warning: (near initialization for ‘rtw_cfg80211_ops.change_station’) [enabled by default] /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4809:2: warning: initialization from incompatible pointer type [enabled by default] .mgmt_tx = cfg80211_rtw_mgmt_tx, ^ /home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.c:4809:2: warning: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx’) [enabled by default] make[2]: *** [/home/qian/software/rtl/rtl8188eu-4.1.8_9499/os_dep/ioctl_cfg80211.o] Error 1 make[1]: *** [_module_/home/qian/software/rtl/rtl8188eu-4.1.8_9499] Error 2 make[1]: Leaving directory/usr/src/kernels/3.10.0-229.el7.x86_64' make: *\ [modules] Error 2 [root@localhost rtl8188eu-4.1.8_9499]#

And then I tried another 8188eu dirver on github: https://github.com/koaeH/8188eu-kmod. it successed to compile, but I can not see wlan0 when I ran "ifconfig" after install the driver, the network manager of CentOS show there was a usb network and keep connecting.

Could you please give me some suggestion on how to install the usb wireless dirver of 8188eu on CentOS? Thanks!

nguyenvinhlinh commented 8 years ago

@KuriaQianbase , Hi there, it's 2016 August, How did you sould the issue :?