Hello All,
There is a big error while compiling the mkyaffs2image.
Could anyone help me ? Thank you in advance ☺
[brightness@localhost utils]$ pwd
/home/brightness/TQ2440/yaffs2-7862c13/utils
[brightness@localhost utils]$ make
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’
make: *** [mkyaffsimage.o] Error 1Best Regards,
Bi Mingliang (EXT:2783-7314)