为 Ubuntu 13.04 (Raring Ringtail) 编译 Edimax EW-7811UN 的 RTL8192CU 驱动程序

为 Ubuntu 13.04 (Raring Ringtail) 编译 Edimax EW-7811UN 的 RTL8192CU 驱动程序

昨天,我升级到了 Ubuntu Raring 13.04,无法再从 Realtek 网站编译最新的 RTL8192CU 驱动程序(3.4.4_4749-2012/11/12)。

Raring Ringtail 在内核 3.8.0-1-generic 下运行,似乎与当前的 Realtek 驱动程序不兼容。

不幸的是,解决这些编译器错误有点超出我的能力,任何帮助都将不胜感激。

/tmp/rtl8192c$ sudo make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.8.0-1-generic/build M=/tmp/rtl8192c  modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-1-generic'
  CC [M]  /tmp/rtl8192c/core/rtw_cmd.o
In file included from /tmp/rtl8192c/core/rtw_cmd.c:23:0:
/tmp/rtl8192c/include/osdep_service.h: In function ‘thread_enter’:
/tmp/rtl8192c/include/osdep_service.h:575:2: error: implicit declaration of function ‘daemonize’ [-Werror=implicit-function-declaration]
In file included from /tmp/rtl8192c/include/drv_types.h:69:0,
                 from /tmp/rtl8192c/core/rtw_cmd.c:24:
/tmp/rtl8192c/include/rtw_recv.h: In function ‘rxmem_to_recvframe’:
/tmp/rtl8192c/include/rtw_recv.h:626:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/tmp/rtl8192c/include/rtw_recv.h:626:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cc1: some warnings being treated as errors
make[2]: *** [/tmp/rtl8192c/core/rtw_cmd.o] Error 1
make[1]: *** [_module_/tmp/rtl8192c] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-1-generic'
make: *** [modules] Error 2

相关内容