当前位置: 技术问答>linux和unix
编译 3com网卡驱动遇到地问题
来源: 互联网 发布时间:2014-11-28
本文导语: 网卡型号3C905B 驱动下载地址:http://support.3com.com/infodeli/tools/nic/linuxdownloads.htm red hat 7.1,核心2.4.2-2 按照附带安装说明:“gcc -c 3c90x.c -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -I/lib/modules/$(uname -r)/build/include...
网卡型号3C905B
驱动下载地址:http://support.3com.com/infodeli/tools/nic/linuxdownloads.htm
red hat 7.1,核心2.4.2-2
按照附带安装说明:“gcc -c 3c90x.c -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer
-I/lib/modules/$(uname -r)/build/include
-fno-strength-reduce -pipe -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=486
-DMODULE -D__KERNEL__ -DMODVERSIONS”
编译后出现如下错误:
/usr/include/linux/modversions.h:1:2
#Error Modules should never use Kernel-headers system headers
/usr/include/linux/modversions.h:2:2
but headers from an appropriate kernel source
驱动下载地址:http://support.3com.com/infodeli/tools/nic/linuxdownloads.htm
red hat 7.1,核心2.4.2-2
按照附带安装说明:“gcc -c 3c90x.c -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer
-I/lib/modules/$(uname -r)/build/include
-fno-strength-reduce -pipe -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=486
-DMODULE -D__KERNEL__ -DMODVERSIONS”
编译后出现如下错误:
/usr/include/linux/modversions.h:1:2
#Error Modules should never use Kernel-headers system headers
/usr/include/linux/modversions.h:2:2
but headers from an appropriate kernel source
|
1你更改内核了。
2你安装的双网卡。
2你安装的双网卡。