免费注册 查看新帖 |

Chinaunix

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

asm是什么东西?编译的时候说找不到?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-06 22:25 |只看该作者 |倒序浏览
我的笔记本最近安装了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 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-05-07 11:29 |只看该作者
安装内核头文件

论坛徽章:
0
3 [报告]
发表于 2009-05-07 20:15 |只看该作者
asm=汇编。

论坛徽章:
0
4 [报告]
发表于 2009-05-07 20:32 |只看该作者
那我应该怎么做呢?是不是要安装什么东西呀?

论坛徽章:
0
5 [报告]
发表于 2009-05-08 17:59 |只看该作者
大家帮个忙好吗,这个问题困拢我好久了。

论坛徽章:
0
6 [报告]
发表于 2009-05-09 12:25 |只看该作者

回复 #1 阿布的心 的帖子

使用的linux是什么发行版本的

论坛徽章:
0
7 [报告]
发表于 2009-05-11 19:19 |只看该作者
用的是red hat9.0版本的

论坛徽章:
0
8 [报告]
发表于 2009-05-12 18:44 |只看该作者
有谁知道吗?帮下忙好吗。。。。

论坛徽章:
0
9 [报告]
发表于 2009-05-12 19:11 |只看该作者
[1] 编译驱动就是在编译内核模块,所以你需要kernel-source或者是kernel-headers,redhat9的光盘上应该有
[2] 你下载的驱动有可能和redhat9.0不兼容。
[3] redhat 9.0实在是太老了,如果没有特殊需求,建议你用fedora或者Ubuntu

论坛徽章:
0
10 [报告]
发表于 2009-05-12 20:05 |只看该作者
这样啊,谢谢啊,哈哈,我先试试
不过我也是刚学linux的,不知道哪个适合点,还以为redhat9.0很新呢。听说fedora不是免费的又很专业所以不敢用。
Ubuntu就没听说过了 像我这样的适合学什么样的版本呀?
我的内模是2.4.20-8的,编译的时候和这个有关系吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP