Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
安装不了无线网卡驱动
Experiences and Insight
2874
views ·
3
replies ·
To
floor
Go
w0511
deepin
2013-07-25 08:09
Author
make[1]: 正在进入目录 `/usr/src/linux-headers-3.8.0-27-generic'
CC [M] /home/hui/下载/rtl8188eu/core/rtw_cmd.o
gcc: 错误: unrecognized command line option ‘-mlittle-endian’
gcc: 错误: unrecognized command line option ‘-mapcs’
gcc: 错误: unrecognized command line option ‘-mno-sched-prolog’
gcc: 错误: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: 附注: valid arguments to ‘-mabi=’ are: ms sysv
make[2]: *** [/home/hui/下载/rtl8188eu/core/rtw_cmd.o] 错误 1
make[1]: *** [_module_/home/hui/下载/rtl8188eu] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.8.0-27-generic'
make: *** [modules] 错误 2
我的系统12.12 64
Reply
Like 0
Favorite
View the author
All Replies
electricface
deepin
2013-07-25 17:33
#1
百度一下错误DeepinScreenshot20130725093137.png
Reply
Like 0
View the author
w0511
deepin
2013-07-28 06:35
#2
我又百度google了好多 大部分说是3.5.X以上的内核这个8188eu的驱动就不行了
好不容易找到一个说是可以解决3.5.x以上内核的方法 又看不大懂
帮我看看 怎么解决 这个是终端的 最新编译驱动的错误信息
make[1]: 正在进入目录 `/usr/src/linux-headers-3.8.0-27-generic'
CC [M] /home/hui/下载/8188eu_USB_linux/driver/rtl8188/rpi-rtl8188eu/core/rtw_cmd.o
In file included from /home/hui/下载/8188eu_USB_linux/driver/rtl8188/rpi-rtl8188eu/core/rtw_cmd.c:23:0:
/home/hui/下载/8188eu_USB_linux/driver/rtl8188/rpi-rtl8188eu/include/osdep_service.h: 在函数‘thread_enter’中:
/home/hui/下载/8188eu_USB_linux/driver/rtl8188/rpi-rtl8188eu/include/osdep_service.h:1397:2: 错误: 隐式声明函数‘daemonize’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/hui/下载/8188eu_USB_linux/driver/rtl8188/rpi-rtl8188eu/core/rtw_cmd.o] 错误 1
make[1]: *** [_module_/home/hui/下载/8188eu_USB_linux/driver/rtl8188/rpi-rtl8188eu] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.8.0-27-generic'
make: *** [modules] 错误 2
然后 找到一个解决这个问题的方法 不知道怎么弄了
但是, 这里才出现问题的关键, 8188eu 在 3.5.x 内核以下版本都没有问题, 3.5.x 以上就出问题了:
error: implicit declaration of function ‘daemonize’ [-Werror=implicit-function-declaration]
这个问题是由于 3.5.x 以上内核去掉了 daemonize 这个函数, 导致无法顺利编译( 当然这是查了N多资料, 搜索了对应的头文件 ),
解决方法很简单, 删掉它就可以了:
diff --git a/include/osdep_service.h b/include/osdep_service.h
index ed2dae5..e9acb0d 100755
--- a/include/osdep_service.h
+++ b/include/osdep_service.h
@@ -1403,7 +1403,7 @@ static __inline void thread_enter(char *name);
static __inline void thread_enter(char *name)
{
#ifdef PLATFORM_LINUX
- daemonize("%s", name);
+ //daemonize("%s", name);
allow_signal(SIGTERM);
#endif
#ifdef PLATFORM_FREEBSD
这个是人家微博上的东西 地址是http://yafeilee.me/?page=2
Reply
Like 0
View the author
wxg4640088
deepin
2015-03-18 22:53
#3
楼主,我也碰到这个编译问题,请问按照你给的删掉这段代码就可以了吗?那我晚上回去试试;
usb无线网卡比较折腾我。
Reply
Like 0
View the author
Please
sign
in first
New Thread
Popular Ranking
Change
Deepin from 23.1 to 25
Anyone Get OBS to work?
Setup keyboard
Large-Scale Community Testing Report - Critical Technical Issues
Updating 25 Beta to 25 Release
Deepin 25 release - upgrading?
Popular Events
More
CC [M] /home/hui/下载/rtl8188eu/core/rtw_cmd.o
gcc: 错误: unrecognized command line option ‘-mlittle-endian’
gcc: 错误: unrecognized command line option ‘-mapcs’
gcc: 错误: unrecognized command line option ‘-mno-sched-prolog’
gcc: 错误: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: 附注: valid arguments to ‘-mabi=’ are: ms sysv
make[2]: *** [/home/hui/下载/rtl8188eu/core/rtw_cmd.o] 错误 1
make[1]: *** [_module_/home/hui/下载/rtl8188eu] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.8.0-27-generic'
make: *** [modules] 错误 2
我的系统12.12 64