- 论坛徽章:
- 0
|
一台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,从它装吧,结果还是编译不过! |
|