Re: [Yaffs] Compile error when using yaffs/direct

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: Daniel Gustafsson, yaffs
Subject: Re: [Yaffs] Compile error when using yaffs/direct
I think this got messed up when I changed the
kernel version stuff for Linux as follows:

//#if defined(CONFIG_KERNEL_2_5)
#if defined(__KERNEL__) && (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))

I thought the if defined(__KERNEL__) stuff would have prevented the rest from
executing but it looks like I was wrong.

For a quick fix, you could undo these changes. I will fix these properly ASAP

-- Charles


On Saturday 09 October 2004 02:28, 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
>
> http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs