- 论坛徽章:
- 0
|
我的笔记本最近安装了linux,但我的broadcom 440网卡一直驱动不起来,下载后的驱动文件解压后有以下几个文件:
b44.4 b44.c b44.h LICENSE Makefile这五个文件,但make的时候其中有提示出错:
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -I/lib/modules/2.4.20-8/build/include -DOLD_NETIF -DOLD_DMA -DOLD_MALLOC -DNO_DMA_MAPPING_ERROR -O2 -c -o b44.o b44.c
In file included from /usr/include/linux/fs.h:23,
from /usr/include/linux/capability.h:17,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:9,
from /usr/include/linux/delay.h:12,
from b44.c:32:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/delay.h:12,
from b44.c:32:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/delay.h:12,
from b44.c:32:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/delay.h:12,
from b44.c:32:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/delay.h:12,
from b44.c:32:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from b44.c:32:
/usr/include/linux/delay.h:13:23: asm/delay.h: 没有那个文件或目录b44.c:39:25: asm/uaccess.h: 没有那个文件或目录In file included from b44.c:49:
b44.h: At top level:
b44.h:77: warning: `struct net_device' declared inside parameter list
b44.h:77: warning: its scope is only this definition or declaration, which is probably not what you want
b44.h: In function `netdev_priv':
b44.h:79: dereferencing pointer to incomplete type
b44.h: At top level:
b44.h:84: warning: `struct net_device' declared inside parameter list
b44.h: In function `netif_poll_disable':
b44.h:86: `__LINK_STATE_RX_SCHED' undeclared (first use in this function)
b44.h:86: (Each undeclared identifier is reported only once
b44.h:86: for each function it appears in.)
b44.h:86: dereferencing pointer to incomplete type
b44.h:88: `current' undeclared (first use in this function)
b44.h:89: warning: implicit declaration of function `schedule_timeout'
b44.h: At top level:
b44.h:93: warning: `struct net_device' declared inside parameter list
b44.h: In function `netif_poll_enable':
b44.h:95: `__LINK_STATE_RX_SCHED' undeclared (first use in this function)
b44.h:95: dereferencing pointer to incomplete type
b44.h: At top level:
b44.h:98: warning: `struct net_device' declared inside parameter list
b44.h: In function `netif_tx_disable':
b44.h:100: warning: implicit declaration of function `spin_lock_bh'
b44.h:100: dereferencing pointer to incomplete type
b44.h:101: warning: implicit declaration of function `netif_stop_queue'
b44.h:102: warning: implicit declaration of function `spin_unlock_bh'
b44.h:102: dereferencing pointer to incomplete type
b44.h: At top level:
b44.h:108: warning: `struct sk_buff' declared inside parameter list
b44.h:480: parse error before "DECLARE_PCI_UNMAP_ADDR"
b44.h:480: warning: no semicolon at end of struct or union
b44.h:545: parse error before "spinlock_t"
b44.h:545: warning: no semicolon at end of struct or union
b44.h:601: parse error before '}' token
b44.c:119: elements of array `b44_pci_tbl' have incomplete type
b44.c:120: warning: excess elements in struct initializer
b44.c:120: warning: (near initialization for `b44_pci_tbl[0]')
b44.c:120: warning: excess elements in struct initializer
b44.c:120: warning: (near initialization for `b44_pci_tbl[0]')
b44.c:121: `PCI_ANY_ID' undeclared here (not in a function)
b44.c:121: warning: excess elements in struct initializer
b44.c:121: warning: (near initialization for `b44_pci_tbl[0]')
b44.c:121: `PCI_ANY_ID' undeclared here (not in a function)
b44.c:121: warning: excess elements in struct initializer
b44.c:121: warning: (near initialization for `b44_pci_tbl[0]')
b44.c:121: warning: excess elements in struct initializer
b44.c:121: warning: (near initialization for `b44_pci_tbl[0]')
b44.c:121: warning: excess elements in struct initializer
b44.c:121: warning: (near initialization for `b44_pci_tbl[0]')
b44.c:121: warning: excess elements in struct initializer
b44.c:121: warning: (near initialization for `b44_pci_tbl[0]')
b44.c:122: warning: excess elements in struct initializer
b44.c:122: warning: (near initialization for `b44_pci_tbl[1]')
b44.c:122: warning: excess elements in struct initializer
b44.c:122: warning: (near initialization for `b44_pci_tbl[1]')
b44.c:123: `PCI_ANY_ID' undeclared here (not in a function)
b44.c:123: warning: excess elements in struct initializer
b44.c:123: warning: (near initialization for `b44_pci_tbl[1]')
b44.c:123: `PCI_ANY_ID' undeclared here (not in a function)
b44.c:123: warning: excess elements in struct initializer
b44.c:123: warning: (near initialization for `b44_pci_tbl[1]')
b44.c:123: warning: excess elements in struct initializer
b44.c:123: warning: (near initialization for `b44_pci_tbl[1]')
b44.c:123: warning: excess elements in struct initializer
b44.c:123: warning: (near initialization for `b44_pci_tbl[1]')
b44.c:123: warning: excess elements in struct initializer
b44.c:123: warning: (near initialization for `b44_pci_tbl[1]')
b44.c:124: warning: excess elements in struct initializer
b44.c:124: warning: (near initialization for `b44_pci_tbl[2]')
b44.c:124: warning: excess elements in struct initializer
b44.c:124: warning: (near initialization for `b44_pci_tbl[2]')
b44.c:125: `PCI_ANY_ID' undeclared here (not in a function)
b44.c:125: warning: excess elements in struct initializer
b44.c:125: warning: (near initialization for `b44_pci_tbl[2]')
b44.c:125: `PCI_ANY_ID' undeclared here (not in a function)
b44.c:125: warning: excess elements in struct initializer
b44.c:125: warning: (near initialization for `b44_pci_tbl[2]')
b44.c:125: warning: excess elements in struct initializer
b44.c:125: warning: (near initialization for `b44_pci_tbl[2]')
b44.c:125: warning: excess elements in struct initializer
b44.c:125: warning: (near initialization for `b44_pci_tbl[2]')
b44.c:125: warning: excess elements in struct initializer
b44.c:125: warning: (near initialization for `b44_pci_tbl[2]')
b44.c:129: sizeof applied to an incomplete type
b44.c:151: `ETH_GSTRING_LEN' undeclared here (not in a function)
b44.c:151: confused by earlier errors, bailing out
make: *** [b44.o] Error 1
按照提示 在编译linux/delay.h的时候asm/delay.h和asm/uaccess.h找不到,而我在系统里根本找不到asm的目录。 是不是缺少了什么东西,我在网上也找了,还是没头绪,哪位能帮帮我啊,谢谢啦
[ 本帖最后由 阿布的心 于 2009-5-6 22:26 编辑 ] |
|