LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1052|回复: 2

在编译linux-2.4。x时出现如下错误

[复制链接]
发表于 2008-12-5 21:25:40 | 显示全部楼层 |阅读模式
在编译内核的时候出现如下错误:
In file included from fs/coda/psdev.c:45:
include/linux/coda.h:248: parse error before `u_quad_t'
include/linux/coda.h:248: warning: no semicolon at end of struct or union
include/linux/coda.h:256: parse error before `va_bytes'
include/linux/coda.h:256: warning: type defaults to `int' in declaration of `va_bytes'
include/linux/coda.h:256: warning: data definition has no type or storage class
include/linux/coda.h:257: parse error before `va_filerev'
include/linux/coda.h:257: warning: type defaults to `int' in declaration of `va_filerev'
include/linux/coda.h:257: warning: data definition has no type or storage class
include/linux/coda.h:434: field `attr' has incomplete type
include/linux/coda.h:442: field `attr' has incomplete type
include/linux/coda.h:484: field `attr' has incomplete type
include/linux/coda.h:493: field `attr' has incomplete type
include/linux/coda.h:538: field `attr' has incomplete type
include/linux/coda.h:545: field `attr' has incomplete type
include/linux/coda.h:565: field `attr' has incomplete type
为什么会出现这种问题,请高手赐教
发表于 2008-12-7 15:58:56 | 显示全部楼层
这个地方  u_quad_t 应该有问题。
可能是没有include相应的头文件,导致某些新定义的数据类型(typedef后的那种) 找不到定义的地方。

最好贴出代码来。
回复 支持 反对

使用道具 举报

发表于 2008-12-7 16:00:54 | 显示全部楼层
psdev.c 45行前后的最好也贴出来。
回复 支持 反对

使用道具 举报

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

本版积分规则

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