Author: Meeta Mishra Date: 2007-05-17 10:14 UTC To: yaffs Subject: [Yaffs] mkyaffs utility
Hi,
I'm using linux version 2.6.10 (from MontaVista).
I've started working on YAFFS recently. Actually I wanted to how to use
makeyaffs utility (to build yaffs image for Nand). I took the source
from cvs and tried "make" in utils folder but got following errors.
I've put the utils folder inside linux/fs/yaffs and have changed the
Makefile in utils folder to include the path for mtd/Mtd-user.h.
It will be very great if someone can tell me how to fix these errors. Is
this the right way to create makeyaffs utility?
Regards,
Meeta
$ make
gcc -c -I/usr/include -I.. -O2 -Wall -DCONFIG_YAFFS_UTIL -Wshadow
-Wpointer-arit
h -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
-Wmissing-prototype
s -Wredundant-decls -Wnested-externs -Winline
-I/cygdrive/d/proj_chaplin/idtv/os
/mvlinux/2_6_10/include mkyaffs.c -o mkyaffs.o
mkyaffs.c: In function `main':
mkyaffs.c:151: warning: implicit declaration of function `_IOR'
mkyaffs.c:151: error: parse error before "struct"
mkyaffs.c:88: warning: unused variable `addr'
mkyaffs.c:89: warning: unused variable `offset'
mkyaffs.c:96: warning: unused variable `oob'
mkyaffs.c:97: warning: unused variable `meminfo'
mkyaffs.c:98: warning: unused variable `erase'
mkyaffs.c:99: warning: unused variable `oobsel'
mkyaffs.c: At top level:
mkyaffs.c:158: warning: type defaults to `int' in declaration of
`oobsel'
mkyaffs.c:158: error: `usemtdecc' undeclared here (not in a function)
mkyaffs.c:158: warning: data definition has no type or storage class
mkyaffs.c:159: error: parse error before "if"
mkyaffs.c:161: warning: type defaults to `int' in declaration of `close'
mkyaffs.c:161: warning: parameter names (without types) in function
declaration
mkyaffs.c:161: warning: redundant redeclaration of `close' in same scope
/usr/include/sys/unistd.h:27: warning: previous declaration of `close'
mkyaffs.c:161: warning: data definition has no type or storage class
mkyaffs.c:162: error: parse error before numeric constant
mkyaffs.c:162: warning: type defaults to `int' in declaration of `exit'
mkyaffs.c:162: warning: function declaration isn't a prototype
mkyaffs.c:162: error: conflicting types for `exit'
.
.
.
/usr/include/sys/unistd.h:126: warning: previous declaration of `write'
mkyaffs.c:234: warning: data definition has no type or storage class
mkyaffs.c:246: error: parse error before string constant
mkyaffs.c:246: warning: type defaults to `int' in declaration of
`printf'
mkyaffs.c:246: warning: function declaration isn't a prototype
mkyaffs.c:246: warning: redundant redeclaration of `printf' in same
scope
mkyaffs.c:206: warning: previous declaration of `printf'
mkyaffs.c:246: warning: data definition has no type or storage class
mkyaffs.c:247: warning: type defaults to `int' in declaration of `close'
mkyaffs.c:247: warning: parameter names (without types) in function
declaration
mkyaffs.c:247: warning: redundant redeclaration of `close' in same scope
mkyaffs.c:210: warning: previous declaration of `close'
mkyaffs.c:247: warning: data definition has no type or storage class
mkyaffs.c:248: error: parse error before "return"
make: *** [mkyaffs.o] Error 1