免费注册 查看新帖 |

Chinaunix

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

[系统管理] 天哪!Broadcom的tg3驱动编译不过 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-01-09 16:53 |只看该作者 |倒序浏览
一台IBM的服务器,网卡是Broadcom BCM5721,从Broadcom官网下载最新驱动tg3-3.124c
Linux版本fedora 15 gcc  版本 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC)
RPM version 4.9.1.3
  
  
解压后有
ChangeLog              tg3-3.124c.tar.gz
README.TXT  tg3-3.124c-1.src.rpm  tg3_sup-3.124c-1.ISO.tar.gz
  
按照说明先从rpm安装
  
rpm -ivh tg3-3.124c-1.src.rpm
  
按照说明进入/usr/src/redhat,结果没有这个目录,find命令也找不到tg3.spec
这是rpm的版本问题?
后来在/root找到rpmbuild
于是cd /root/rpmbuild
rpmbuild -bb SPEC/tg3.spec
一堆输出后就出错了!
  
make[1]: Entering directory `/usr/src/kernels/2.6.43.8-1.fc15.x86_64'
   CC [M]  /root/rpmbuild/BUILD/tg3-3.124c/tg3.o
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c: In function 'tg3_ptp_gettime':
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:6192:2: error: implicit declaration of function 'tg3_full_lock' [-Werror=implicit-function-declaration]
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:6194:2: error: implicit declaration of function 'tg3_full_unlock' [-Werror=implicit-function-declaration]
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c: In function 'tg3_rx':
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:6999:18: error: 'struct tg3' has no member named 'vlgrp'
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:7023:4: error: implicit declaration of function 'vlan_hwaccel_receive_skb' [-Werror=implicit-function-declaration]
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:7023:39: error: 'struct tg3' has no member named 'vlgrp'
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c: At top level:
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:7579:60: warning: conflicting types for 'tg3_full_lock' [enabled by default]
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:7579:60: error: static declaration of 'tg3_full_lock' follows non-static declaration
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:6192:2: note: previous implicit declaration of 'tg3_full_lock' was here
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:7586:60: warning: conflicting types for 'tg3_full_unlock' [enabled by default]
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:7586:60: error: static declaration of 'tg3_full_unlock' follows non-static declaration
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:6194:2: note: previous implicit declaration of 'tg3_full_unlock' was here
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:14534:2: error: unknown field 'get_sg' specified in initializer
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:14534:12: error: 'ethtool_op_get_sg' undeclared here (not in a function)
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:14535:2: error: unknown field 'set_sg' specified in initializer
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:14535:12: error: 'ethtool_op_set_sg' undeclared here (not in a function)
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c: In function 'tg3_set_mtu':
/root/rpmbuild/BUILD/tg3-3.124c/tg3.c:14589:4: error: implicit declaration of function 'ethtool_op_set_tso' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/root/rpmbuild/BUILD/tg3-3.124c/tg3.o] Error 1
make[1]: *** [_module_/root/rpmbuild/BUILD/tg3-3.124c] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.43.8-1.fc15.x86_64'
make: *** [default] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.eT3f2d (%build)
  
  
RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.eT3f2d (%build)
  
好吧,还有个tarball,从它装吧,结果还是编译不过!

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
2 [报告]
发表于 2013-01-09 19:34 |只看该作者
readme能贴出来看下不?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP