红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > SuSE

请教网卡驱动安装问题:SUSE 11,换上TF3239DL的网卡不认,芯片是rtl8139的

发布时间:2014-07-04 15:09:10来源:红联作者:huangyi021
SUSE 11的内核是2.6.x的
驱动只有2.4.x的 里面有8139too.c Makefile readme.txt
Makefile里面有一句
# ----------------------------------------------------------------------------------------------------
# Please specify the include path according to your kernel.
# ----------------------------------------------------------------------------------------------------
NEW_INCLUDE_PATH = /usr/src/linux-2.4.20-8/include/
我把路径修改了
make gcc gcc-c+ kernel-source 都安装了
但是在8139too.c 目录 make的时候 报错
8139too.c:3066: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8139_cleanup_module’
8139too.c:3072: warning: data definition has no type or storage class
8139too.c:3072: warning: type defaults to ‘int’ in declaration of ‘module_init’
8139too.c:3072: warning: parameter names (without types) in function declaration
8139too.c:3073: warning: data definition has no type or storage class
8139too.c:3073: warning: type defaults to ‘int’ in declaration of ‘module_exit’
8139too.c:3073: warning: parameter names (without types) in function declaration
make: *** [8139too] 错误 1
文章评论

共有 0 条评论