急等,网卡安装问题,请高手帮菜鸟一把
我的硬件系统是hp的6320笔记本,集成了broadcom 的netlink 5788千兆网卡,在redhat 9.0,内核2.4.20-8下安装从broadcom官方网站下载的驱动,按照安装说明在执行第二步时出现错误信息,不知道那里出错了,错误信息如下,希望大侠门指点。小子在这谢谢了。网卡驱动地址:http://www.broadcom.com/support/ethe...ic/netlink.php
# rpmbuild -bb SPECS/tg3.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.45616
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf tg3-3.66d
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/tg3-3.66d.tar.bz2
+ tar -xvvf -
drwxr-xr-x root/root 0 2006-09-02 04:01:59 tg3-3.66d/
-rw-r--r-- root/root 350313 2006-09-02 04:01:59 tg3-3.66d/tg3.c
-rw-r--r-- root/root 95111 2006-09-02 04:01:59 tg3-3.66d/tg3.h
-rw-r--r-- root/root 3440 2006-09-02 04:01:59 tg3-3.66d/tg3.4
-rw-r--r-- root/root 15153 2006-09-02 04:01:59 tg3-3.66d/LICENSE
-rw-r--r-- root/root 9652 2006-09-02 04:01:59 tg3-3.66d/README.TXT
-rw-r--r-- root/root 96067 2006-09-02 04:01:59 tg3-3.66d/ChangeLog
-rw-r--r-- root/root 2714 2006-09-02 04:01:59 tg3-3.66d/Makefile
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd tg3-3.66d
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.45616
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd tg3-3.66d
+ LANG=C
+ export LANG
+ value=
+ '[' -z '' ']'
++ uname -r
+ KVER=2.4.20-8smp
+ make KVER=2.4.20-8smp
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -I/lib/modules/2.4.20-8smp/build/include -DRED_HAT_LINUX_KERNEL -DOLD_NETIF -O2 -c -o tg3.o tg3.c
tg3.c:181: `PCI_DEVICE_ID_TIGON3_5705' undeclared here (not in a function)
tg3.c:181: initializer element is not constant
tg3.c:181: (near initialization for `tg3_pci_tbl.device')
tg3.c:182: initializer element is not constant
tg3.c:182: (near initialization for `tg3_pci_tbl')
tg3.c:183: `PCI_DEVICE_ID_TIGON3_5705_2' undeclared here (not in a function)
tg3.c:183: initializer element is not constant
tg3.c:183: (near initialization for `tg3_pci_tbl.device')
tg3.c:184: initializer element is not constant
tg3.c:184: (near initialization for `tg3_pci_tbl')
tg3.c:185: `PCI_DEVICE_ID_TIGON3_5705M' undeclared here (not in a function)
tg3.c:185: initializer element is not constant
tg3.c:185: (near initialization for `tg3_pci_tbl.device')
tg3.c:186: initializer element is not constant
tg3.c:186: (near initialization for `tg3_pci_tbl')
tg3.c:187: `PCI_DEVICE_ID_TIGON3_5705M_2' undeclared here (not in a function)
tg3.c:187: initializer element is not constant
tg3.c:187: (near initialization for `tg3_pci_tbl.device')
tg3.c:188: initializer element is not constant
tg3.c:188: (near initialization for `tg3_pci_tbl')
tg3.c:190: initializer element is not constant
tg3.c:190: (near initialization for `tg3_pci_tbl')
tg3.c:192: initializer element is not constant
tg3.c:192: (near initialization for `tg3_pci_tbl')
tg3.c:194: initializer element is not constant
tg3.c:194: (near initialization for `tg3_pci_tbl')
tg3.c:196: initializer element is not constant
tg3.c:196: (near initialization for `tg3_pci_tbl')
tg3.c:198: initializer element is not constant
tg3.c:198: (near initialization for `tg3_pci_tbl')
tg3.c:199: `PCI_DEVICE_ID_TIGON3_5782' undeclared here (not in a function)
tg3.c:199: initializer element is not constant
tg3.c:199: (near initialization for `tg3_pci_tbl.device')
tg3.c:200: initializer element is not constant
tg3.c:200: (near initialization for `tg3_pci_tbl')
tg3.c:201: `PCI_DEVICE_ID_TIGON3_5788' undeclared here (not in a function)
tg3.c:201: initializer element is not constant
tg3.c:201: (near initialization for `tg3_pci_tbl.device')
tg3.c:202: initializer element is not constant
tg3.c:202: (near initialization for `tg3_pci_tbl')
tg3.c:204: initializer element is not constant
tg3.c:204: (near initialization for `tg3_pci_tbl')
tg3.c:205: `PCI_DEVICE_ID_TIGON3_5901' undeclared here (not in a function)
tg3.c:205: initializer element is not constant
tg3.c:205: (near initialization for `tg3_pci_tbl.device')
tg3.c:206: initializer element is not constant
tg3.c:206: (near initialization for `tg3_pci_tbl')
tg3.c:207: `PCI_DEVICE_ID_TIGON3_5901_2' undeclared here (not in a function)
tg3.c:207: initializer element is not constant
tg3.c:207: (near initialization for `tg3_pci_tbl.device')
tg3.c:208: initializer element is not constant
tg3.c:208: (near initialization for `tg3_pci_tbl')
tg3.c:210: initializer element is not constant
tg3.c:210: (near initialization for `tg3_pci_tbl')
tg3.c:212: initializer element is not constant
tg3.c:212: (near initialization for `tg3_pci_tbl')
tg3.c:214: initializer element is not constant
tg3.c:214: (near initialization for `tg3_pci_tbl')
tg3.c:216: initializer element is not constant
tg3.c:216: (near initialization for `tg3_pci_tbl')
tg3.c:218: initializer element is not constant
tg3.c:218: (near initialization for `tg3_pci_tbl')
tg3.c:220: initializer element is not constant
tg3.c:220: (near initialization for `tg3_pci_tbl')
tg3.c:222: initializer element is not constant
tg3.c:222: (near initialization for `tg3_pci_tbl')
tg3.c:224: initializer element is not constant
tg3.c:224: (near initialization for `tg3_pci_tbl')
tg3.c:226: initializer element is not constant
tg3.c:226: (near initialization for `tg3_pci_tbl')
tg3.c:228: initializer element is not constant
tg3.c:228: (near initialization for `tg3_pci_tbl')
tg3.c:230: initializer element is not constant
tg3.c:230: (near initialization for `tg3_pci_tbl')
tg3.c:232: initializer element is not constant
tg3.c:232: (near initialization for `tg3_pci_tbl')
tg3.c:234: initializer element is not constant
tg3.c:234: (near initialization for `tg3_pci_tbl')
tg3.c:236: initializer element is not constant
tg3.c:236: (near initialization for `tg3_pci_tbl')
tg3.c:238: initializer element is not constant
tg3.c:238: (near initialization for `tg3_pci_tbl')
tg3.c:240: initializer element is not constant
tg3.c:240: (near initialization for `tg3_pci_tbl')
tg3.c:242: initializer element is not constant
tg3.c:242: (near initialization for `tg3_pci_tbl')
tg3.c:244: initializer element is not constant
tg3.c:244: (near initialization for `tg3_pci_tbl')
tg3.c:246: initializer element is not constant
tg3.c:246: (near initialization for `tg3_pci_tbl')
tg3.c:248: initializer element is not constant
tg3.c:248: (near initialization for `tg3_pci_tbl')
tg3.c:250: initializer element is not constant
tg3.c:250: (near initialization for `tg3_pci_tbl')
tg3.c:252: initializer element is not constant
tg3.c:252: (near initialization for `tg3_pci_tbl')
tg3.c:254: initializer element is not constant
tg3.c:254: (near initialization for `tg3_pci_tbl')
tg3.c:256: initializer element is not constant
tg3.c:256: (near initialization for `tg3_pci_tbl')
tg3.c:258: initializer element is not constant
tg3.c:258: (near initialization for `tg3_pci_tbl')
tg3.c:260: initializer element is not constant
tg3.c:260: (near initialization for `tg3_pci_tbl')
tg3.c:262: initializer element is not constant
tg3.c:262: (near initialization for `tg3_pci_tbl')
tg3.c:264: initializer element is not constant
tg3.c:264: (near initialization for `tg3_pci_tbl')
tg3.c:265: `PCI_DEVICE_ID_SYSKONNECT_9DXX' undeclared here (not in a function)
tg3.c:265: initializer element is not constant
tg3.c:265: (near initialization for `tg3_pci_tbl.device')
tg3.c:266: initializer element is not constant
tg3.c:266: (near initialization for `tg3_pci_tbl')
tg3.c:267: `PCI_DEVICE_ID_SYSKONNECT_9MXX' undeclared here (not in a function)
tg3.c:267: initializer element is not constant
tg3.c:267: (near initialization for `tg3_pci_tbl.device')
tg3.c:268: initializer element is not constant
tg3.c:268: (near initialization for `tg3_pci_tbl')
tg3.c:270: initializer element is not constant
tg3.c:270: (near initialization for `tg3_pci_tbl')
tg3.c:271: `PCI_DEVICE_ID_ALTIMA_AC1001' undeclared here (not in a function)
tg3.c:271: initializer element is not constant
tg3.c:271: (near initialization for `tg3_pci_tbl.device')
tg3.c:272: initializer element is not constant
tg3.c:272: (near initialization for `tg3_pci_tbl')
tg3.c:273: `PCI_DEVICE_ID_ALTIMA_AC1003' undeclared here (not in a function)
tg3.c:273: initializer element is not constant
tg3.c:273: (near initialization for `tg3_pci_tbl.device')
tg3.c:274: initializer element is not constant
tg3.c:274: (near initialization for `tg3_pci_tbl')
tg3.c:276: initializer element is not constant
tg3.c:276: (near initialization for `tg3_pci_tbl')
tg3.c:278: initializer element is not constant
tg3.c:278: (near initialization for `tg3_pci_tbl')
tg3.c:279: initializer element is not constant
tg3.c:279: (near initialization for `tg3_pci_tbl')
tg3.c: In function `tg3_get_drvinfo':
tg3.c:8006: warning: implicit declaration of function `pci_name'
tg3.c:8006: warning: passing arg 2 of `strcpy' makes pointer from integer without a cast
tg3.c: At top level:
tg3.c:9121: variable `tg3_ethtool_ops' has initializer but incomplete type
tg3.c:9122: unknown field `get_settings' specified in initializer
tg3.c:9122: warning: excess elements in struct initializer
tg3.c:9122: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9123: unknown field `set_settings' specified in initializer
tg3.c:9123: warning: excess elements in struct initializer
tg3.c:9123: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9124: unknown field `get_drvinfo' specified in initializer
tg3.c:9124: warning: excess elements in struct initializer
tg3.c:9124: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9125: unknown field `get_regs_len' specified in initializer
tg3.c:9125: warning: excess elements in struct initializer
tg3.c:9125: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9126: unknown field `get_regs' specified in initializer
tg3.c:9126: warning: excess elements in struct initializer
tg3.c:9126: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9127: unknown field `get_wol' specified in initializer
tg3.c:9127: warning: excess elements in struct initializer
tg3.c:9127: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9128: unknown field `set_wol' specified in initializer
tg3.c:9128: warning: excess elements in struct initializer
tg3.c:9128: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9129: unknown field `get_msglevel' specified in initializer
tg3.c:9129: warning: excess elements in struct initializer
tg3.c:9129: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9130: unknown field `set_msglevel' specified in initializer
tg3.c:9130: warning: excess elements in struct initializer
tg3.c:9130: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9131: unknown field `nway_reset' specified in initializer
tg3.c:9131: warning: excess elements in struct initializer
tg3.c:9131: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9132: unknown field `get_link' specified in initializer
tg3.c:9132: `ethtool_op_get_link' undeclared here (not in a function)
tg3.c:9132: warning: excess elements in struct initializer
tg3.c:9132: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9137: unknown field `get_eeprom' specified in initializer
tg3.c:9137: warning: excess elements in struct initializer
tg3.c:9137: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9140: unknown field `set_eeprom' specified in initializer
tg3.c:9140: warning: excess elements in struct initializer
tg3.c:9140: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9142: unknown field `get_ringparam' specified in initializer
tg3.c:9142: warning: excess elements in struct initializer
tg3.c:9142: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9143: unknown field `set_ringparam' specified in initializer
tg3.c:9143: warning: excess elements in struct initializer
tg3.c:9143: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9144: unknown field `get_pauseparam' specified in initializer
tg3.c:9144: warning: excess elements in struct initializer
tg3.c:9144: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9145: unknown field `set_pauseparam' specified in initializer
tg3.c:9145: warning: excess elements in struct initializer
tg3.c:9145: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9146: unknown field `get_rx_csum' specified in initializer
tg3.c:9146: warning: excess elements in struct initializer
tg3.c:9146: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9147: unknown field `set_rx_csum' specified in initializer
tg3.c:9147: warning: excess elements in struct initializer
tg3.c:9147: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9148: unknown field `get_tx_csum' specified in initializer
tg3.c:9148: `ethtool_op_get_tx_csum' undeclared here (not in a function)
tg3.c:9148: warning: excess elements in struct initializer
tg3.c:9148: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9152: unknown field `get_sg' specified in initializer
tg3.c:9152: `ethtool_op_get_sg' undeclared here (not in a function)
tg3.c:9152: warning: excess elements in struct initializer
tg3.c:9152: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9153: unknown field `set_sg' specified in initializer
tg3.c:9153: `ethtool_op_set_sg' undeclared here (not in a function)
tg3.c:9153: warning: excess elements in struct initializer
tg3.c:9153: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9158: unknown field `self_test_count' specified in initializer
tg3.c:9158: warning: excess elements in struct initializer
tg3.c:9158: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9159: unknown field `self_test' specified in initializer
tg3.c:9159: warning: excess elements in struct initializer
tg3.c:9159: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9160: unknown field `get_strings' specified in initializer
tg3.c:9160: warning: excess elements in struct initializer
tg3.c:9160: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9161: unknown field `phys_id' specified in initializer
tg3.c:9161: warning: excess elements in struct initializer
tg3.c:9161: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9162: unknown field `get_stats_count' specified in initializer
tg3.c:9162: warning: excess elements in struct initializer
tg3.c:9162: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9163: unknown field `get_ethtool_stats' specified in initializer
tg3.c:9163: warning: excess elements in struct initializer
tg3.c:9163: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9164: unknown field `get_coalesce' specified in initializer
tg3.c:9164: warning: excess elements in struct initializer
tg3.c:9164: warning: (near initialization for `tg3_ethtool_ops')
tg3.c:9165: unknown field `set_coalesce' specified in initializer
tg3.c:9165: warning: excess elements in struct initializer
tg3.c:9165: warning: (near initialization for `tg3_ethtool_ops')
tg3.c: In function `tg3_get_invariants':
tg3.c:10676: warning: format argument is not a pointer (arg 2)
tg3.c:10676: warning: format argument is not a pointer (arg 2)
tg3.c:10806: `PCI_DEVICE_ID_TIGON3_5901' undeclared (first use in this function)tg3.c:10806: (Each undeclared identifier is reported only once
tg3.c:10806: for each function it appears in.)
tg3.c:10807: `PCI_DEVICE_ID_TIGON3_5901_2' undeclared (first use in this function)
tg3.c:10817: warning: format argument is not a pointer (arg 2)
tg3.c:10817: warning: format argument is not a pointer (arg 2)
tg3.c: In function `tg3_init_one':
tg3.c:11707: structure has no member named `ethtool_ops'
tg3.c: At top level:
tg3.c:9121: storage size of `tg3_ethtool_ops' isn't known
make: *** Error 1
error: Bad exit status from /var/tmp/rpm-tmp.45616 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.45616 (%build)
#
页:
[1]