[Yaffs] Compile error when using yaffs/direct

Wangfeng Ai beatit@hotmail.com
Sat, 09 Oct 2004 09:28:02 +0800


I had the same case as you. It's very strange.
I got the same error messages when I was compiling yaffs/utils.
But it can be cross-compiled with armv4l-redhat-linux-gcc from mizi.

Daniel Gustafsson wrote:
> When i try to compile yaffs/direct I get strange errrors. I am running the
> original Makefile in yaffs/direct on Linux.
> 
> Some of the errors:
> 
> [gustad@tuxsrv1 work]$ make
> gcc -c -Wall -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_SHORT_NAMES_IN_RAM -g
> dtest.c -o dtest.o
> In file included from yaffscfg.h:12,
>                  from yaffsfs.h:10,
>                  from dtest.c:9:
> yaffs_guts.h:204: warning: no semicolon at end of struct or union
> yaffs_guts.h:204: parse error before '.' token
> yaffs_guts.h:205: parse error before '.' token
> yaffs_guts.h:206: parse error before '.' token
> yaffs_guts.h:229: parse error before '}' token
> yaffs_guts.h:229: warning: type defaults to `int' in declaration of
> `yaffs_ObjectHeader'
> yaffs_guts.h:229: warning: data definition has no type or storage class
> yaffs_guts.h:353: warning: no semicolon at end of struct or union
> yaffs_guts.h:353: parse error before '.' token
> yaffs_guts.h:354: parse error before '.' token
> yaffs_guts.h:355: parse error before '.' token
> yaffs_guts.h:372: parse error before '}' token
> 
> 
> This rows plus some more concerning the same variables is the problem.
> 
> 	__u32 st_atime;  /*  time of last access */
> 	__u32 st_mtime;  /*  time of last modification */
> 	__u32 st_ctime;   /*  time of last change */
> 
> Can somebody help me?
> 
> //Daniel
> 
> 
> _______________________________________________
> yaffs mailing list
> yaffs@stoneboat.aleph1.co.uk
> http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
> 
> .
>