免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1899 | 回复: 3
打印 上一主题 下一主题

[系统管理] 网卡升级出现错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-03-04 18:13 |只看该作者 |倒序浏览
编译安装netxtreme2-6.2.23.tar.gz时make出现以下错误:
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:995: error: redefinition of ‘skb_checksum_none_assert’
include/linux/skbuff.h:1827: error: previous definition of ‘skb_checksum_none_assert’ was here
In file included from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1009:1: error: "PCI_VPD_LRDT_ID_STRING" redefined
In file included from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:34:
include/linux/pci.h:1041:1: error: this is the location of the previous definition
In file included from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1011:1: error: "PCI_VPD_LRDT_RO_DATA" redefined
In file included from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:34:
include/linux/pci.h:1042:1: error: this is the location of the previous definition
In file included from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1013:1: error: "PCI_VPD_LRDT_RW_DATA" redefined
In file included from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:34:
include/linux/pci.h:1043:1: error: this is the location of the previous definition
In file included from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1019:1: error: "PCI_VPD_SRDT_END" redefined
In file included from /tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:34:
include/linux/pci.h:1048:1: error: this is the location of the previous definition
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1033: error: conflicting types for ‘pci_vpd_lrdt_size’
include/linux/pci.h:1070: error: previous definition of ‘pci_vpd_lrdt_size’ was here
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1038: error: conflicting types for ‘pci_vpd_srdt_size’
include/linux/pci.h:1081: error: previous definition of ‘pci_vpd_srdt_size’ was here
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1044: error: conflicting types for ‘pci_vpd_find_tag’
include/linux/pci.h:1106: error: previous declaration of ‘pci_vpd_find_tag’ was here
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1078: error: conflicting types for ‘pci_vpd_info_field_size’
include/linux/pci.h:1092: error: previous definition of ‘pci_vpd_info_field_size’ was here
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1086: error: conflicting types for ‘pci_vpd_find_info_keyword’
include/linux/pci.h:1119: error: previous declaration of ‘pci_vpd_find_info_keyword’ was here
/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1125: error: redefinition of ‘vlan_get_protocol’
include/linux/if_vlan.h:425: error: previous definition of ‘vlan_get_protocol’ was here
make[3]: *** [/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.o] Error 1
make[2]: *** [_module_/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-308.el5-x86_64'
make[1]: *** [bnx2x.o] Error 2
make[1]: Leaving directory `/tools/tarbag/netxtreme2-6.2.23/bnx2x-1.62.15/src'
make: *** [l2build] Error 2


求解!!!!!!

论坛徽章:
0
2 [报告]
发表于 2013-03-05 09:15 |只看该作者
回复 1# aricwong


   在线等大牛帮助。。。。

论坛徽章:
0
3 [报告]
发表于 2013-03-05 15:51 |只看该作者
本帖最后由 llzqq 于 2013-03-05 15:54 编辑

我的一个笔记:

# driver download url:http://www.broadcom.com/support/ethernet_nic/netxtremeii.php
# Broadcom's NetXtreme II 1 Gigabit Ethernet controllers:5706, 5708, 5709, 5716
#
# cd
# yum groupinstall "Development Tools"
# yum -y install rpm-build kernel-devel
# unzip linux-7.4.21.zip
# cd Server/Linux/Driver/
# rpm -ivh netxtreme2-7.4.21-1.src.rpm
# cd /usr/src/redhat/
# rpmbuild -bb SPECS/netxtreme2.spec
.....
.....
+ exit 0

# rpm -ivh RPMS/x86_64/netxtreme2-7.4.21-1.x86_64.rpm
# modinfo bnx2
version:        2.2.3e

# depmod -a
# rmmod bnx2 && modprobe bnx2 && service network restart

论坛徽章:
0
4 [报告]
发表于 2013-03-05 17:29 |只看该作者
回复 3# llzqq


    非常感谢, 我试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP