QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2530|回复: 36

编译 2.6.0-test5的时候出错

[复制链接]
发表于 2003-9-15 12:43:10 | 显示全部楼层 |阅读模式
在make modules的时候提示
cosa.c 文件 1167 行出错
不知道是什么原因
发表于 2003-9-15 13:02:16 | 显示全部楼层
在ml下编译总是出错,make modules_install时,说是不能安装,缺啥文件。郁闷!!!!
回复

使用道具 举报

 楼主| 发表于 2003-9-15 14:18:58 | 显示全部楼层
我用的是redhat9呀GCC3.3
回复

使用道具 举报

发表于 2003-9-16 04:35:54 | 显示全部楼层
divey, pls tell us the kernel version u use.
favoyun, post u detail original screen msg here.
回复

使用道具 举报

 楼主| 发表于 2003-9-16 08:37:14 | 显示全部楼层
CC [M] drivers/net/wan/cosa.o
drivers/net/wan/cosa.c: In function `cosa_ioctl_common':
drivers/net/wan/cosa.c:1167: parse error before '[' token
drivers/net/wan/cosa.c:1167: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1171: parse error before '[' token
drivers/net/wan/cosa.c:1171: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1175: parse error before '[' token
drivers/net/wan/cosa.c:1175: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1179: parse error before '[' token
drivers/net/wan/cosa.c:1179: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1181: parse error before '[' token
drivers/net/wan/cosa.c:1181: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1187: parse error before '[' token
drivers/net/wan/cosa.c:1187: case label does not reduce to an integer constant
make[3]: *** [drivers/net/wan/cosa.o] Error 1
make[2]: *** [drivers/net/wan] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
这是错误信息
回复

使用道具 举报

发表于 2003-9-17 07:41:16 | 显示全部楼层
u need not it, so do not choose it.
回复

使用道具 举报

发表于 2003-9-19 12:48:13 | 显示全部楼层
CC [M]  drivers/net/wan/cosa.o
drivers/net/wan/cosa.c: In function `cosa_ioctl_common':
drivers/net/wan/cosa.c:1167: parse error before '[' token
drivers/net/wan/cosa.c:1167: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1171: parse error before '[' token
drivers/net/wan/cosa.c:1171: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1175: parse error before '[' token
drivers/net/wan/cosa.c:1175: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1179: parse error before '[' token
drivers/net/wan/cosa.c:1179: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1181: parse error before '[' token
drivers/net/wan/cosa.c:1181: case label does not reduce to an integer constant
drivers/net/wan/cosa.c:1187: parse error before '[' token
drivers/net/wan/cosa.c:1187: case label does not reduce to an integer constant
make[3]: *** [drivers/net/wan/cosa.o] Error 1
make[2]: *** [drivers/net/wan] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
[root@fudaming linux-2.6.0-test5]#


可以用make xconfig去掉然后接着make modules吗?
回复

使用道具 举报

发表于 2003-9-19 12:51:11 | 显示全部楼层
LD [M]  net/8021q/8021q.o
  CC [M]  net/atm/br2684.o
net/atm/br2684.c: In function `br2684_seq_show':
net/atm/br2684.c:735: `pos' undeclared (first use in this function)
net/atm/br2684.c:735: (Each undeclared identifier is reported only once
net/atm/br2684.c:735: for each function it appears in.)
net/atm/br2684.c:736: `buf' undeclared (first use in this function)
make[2]: *** [net/atm/br2684.o] Error 1
make[1]: *** [net/atm] Error 2
make: *** [net] Error 2
[root@fudaming linux-2.6.0-test5]#

啊,又错在这里了。
回复

使用道具 举报

发表于 2003-9-19 12:51:39 | 显示全部楼层
LD [M]  net/8021q/8021q.o
  CC [M]  net/atm/br2684.o
net/atm/br2684.c: In function `br2684_seq_show':
net/atm/br2684.c:735: `pos' undeclared (first use in this function)
net/atm/br2684.c:735: (Each undeclared identifier is reported only once
net/atm/br2684.c:735: for each function it appears in.)
net/atm/br2684.c:736: `buf' undeclared (first use in this function)
make[2]: *** [net/atm/br2684.o] Error 1
make[1]: *** [net/atm] Error 2
make: *** [net] Error 2
[root@fudaming linux-2.6.0-test5]#

啊,又错在这里了。
回复

使用道具 举报

发表于 2003-9-19 13:04:31 | 显示全部楼层
CC [M]  net/atm/br2684.o
net/atm/br2684.c: In function `br2684_seq_show':
net/atm/br2684.c:735: `pos' undeclared (first use in this function)
net/atm/br2684.c:735: (Each undeclared identifier is reported only once
net/atm/br2684.c:735: for each function it appears in.)
net/atm/br2684.c:736: `buf' undeclared (first use in this function)
make[2]: *** [net/atm/br2684.o] Error 1
make[1]: *** [net/atm] Error 2
make: *** [net] Error 2
[root@fudaming linux-2.6.0-test5]# make modules
  CC      scripts/empty.o
  MKELF   scripts/elfconfig.h
  HOSTCC  scripts/file2alias.o
  HOSTCC  scripts/modpost.o
  HOSTLD  scripts/modpost
  SPLIT   include/linux/autoconf.h -> include/config/*
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CC [M]  net/atm/br2684.o
net/atm/br2684.c: In function `br2684_seq_show':
net/atm/br2684.c:735: `pos' undeclared (first use in this function)
net/atm/br2684.c:735: (Each undeclared identifier is reported only once
net/atm/br2684.c:735: for each function it appears in.)
net/atm/br2684.c:736: `buf' undeclared (first use in this function)
make[2]: *** [net/atm/br2684.o] Error 1
make[1]: *** [net/atm] Error 2
make: *** [net] Error 2
[root@fudaming linux-2.6.0-test5]#

我去掉了这个选项还不行,救救我吧。
回复

使用道具 举报

发表于 2003-9-19 13:05:16 | 显示全部楼层
怎么让它不要编译这个呢?
回复

使用道具 举报

发表于 2003-9-19 16:30:27 | 显示全部楼层
[quote:0c3655cd7d="favoyun"]在ml下编译总是出错,make modules_install时,说是不能安装,缺啥文件。郁闷!!!![/quote]

我刚在ml下编译了test5,很正常啊,编译安装都很正常,加上新的modules-tools
回复

使用道具 举报

发表于 2003-9-19 16:43:59 | 显示全部楼层
部长的ml是1.1的吗?

我也改成1.1试试,我很想看看2.6内核的抢占式是怎么回事
回复

使用道具 举报

发表于 2003-9-20 10:03:46 | 显示全部楼层
unselect what is error and most of the time u need not it.
回复

使用道具 举报

发表于 2003-9-22 12:38:52 | 显示全部楼层
[quote:0c760ffe9e="fudaming"]LD [M]  net/8021q/8021q.o
  CC [M]  net/atm/br2684.o
net/atm/br2684.c: In function `br2684_seq_show':
net/atm/br2684.c:735: `pos' undeclared (first use in this function)
net/atm/br2684.c:735: (Each undeclared identifier is reported only once
net/atm/br2684.c:735: for each function it appears in.)
net/atm/br2684.c:736: `buf' undeclared (first use in this function)
make[2]: *** [net/atm/br2684.o] Error 1
make[1]: *** [net/atm] Error 2
make: *** [net] Error 2
[root@fudaming linux-2.6.0-test5]#

啊,又错在这里了。[/quote]
我也在这里出错,我没有在网卡选项里选择ATM呀,可是仍有这个错误!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 10:23 , Processed in 0.086843 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表