当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 在编译mkyaffs2image过程中出现错误,如何解决?
帖子发表于 : 2012-03-09 17:27 
头像

注册: 2007-11-26 22:40
帖子: 132
送出感谢: 0 次
接收感谢: 0 次
在yaffs2/utils目录下make,出现好多error
代码:
ln -s ../yaffs_packedtags2.c yaffs_packedtags2.c
ln -s ../yaffs_ecc.c yaffs_ecc.c
ln -s ../yaffs_ecc.h yaffs_ecc.h
ln -s ../yaffs_guts.h yaffs_guts.h
ln -s ../yaffs_packedtags2.h yaffs_packedtags2.h
ln -s ../yaffs_trace.h yaffs_trace.h
ln -s ../direct/yaffs_hweight.c yaffs_hweight.c
ln -s ../direct/yportenv.h yportenv.h
ln -s ../direct/yaffs_hweight.h yaffs_hweight.h
ln -s ../direct/yaffs_list.h yaffs_list.h
gcc -c -O2 -Wall -DCONFIG_YAFFS_UTIL -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline mkyaffsimage.c -o mkyaffsimage.o
mkyaffsimage.c:51: warning: redundant redeclaration of ‘n_obj’
mkyaffsimage.c:48: note: previous definition of ‘n_obj’ was here
mkyaffsimage.c: In function ‘write_chunk’:
mkyaffsimage.c:231: warning: declaration of ‘obj_id’ shadows a global declaration
mkyaffsimage.c:49: warning: shadowed declaration is here
mkyaffsimage.c: In function ‘object_header_little_to_big_endian’:
mkyaffsimage.c:286: error: ‘struct yaffs_obj_hdr’ has no member named ‘file_size’
mkyaffsimage.c:286: error: ‘struct yaffs_obj_hdr’ has no member named ‘file_size’
mkyaffsimage.c:286: error: ‘struct yaffs_obj_hdr’ has no member named ‘file_size’
mkyaffsimage.c:286: error: ‘struct yaffs_obj_hdr’ has no member named ‘file_size’
mkyaffsimage.c:286: error: ‘struct yaffs_obj_hdr’ has no member named ‘file_size’
mkyaffsimage.c: In function ‘write_object_header’:
mkyaffsimage.c:307: warning: declaration of ‘obj_id’ shadows a global declaration
mkyaffsimage.c:49: warning: shadowed declaration is here
mkyaffsimage.c:337: error: ‘struct yaffs_obj_hdr’ has no member named ‘file_size’
mkyaffsimage.c: In function ‘process_directory’:
mkyaffsimage.c:421: warning: ignoring return value of ‘readlink’, declared with attribute warn_unused_result
make: *** [mkyaffsimage.o] Error 1


_________________
我本将心向明月,奈何明月照渠沟


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译