I already faced this problem a while ago, with Debian (2.0, back then). I
think there is a #define that isn't correctly used somewhere in the system
headers, but the exact location and name I forgot. I think it was
KERNEL_[something]. Try to find it by looking at #includes' #includes' in
fs.h, and force it to a correct definition.
EL
At 01:56 2000-11-23 +0500, you wrote:
>I have tried this message to the list a couple of times, but it doesn't
>seem to make it through. Hopefully the third time's the charm...
>
>------------------------
>
>Hello everyone,
>
>This sounds like a great project, and I hope I can contribute.
>
>I hope this question has not already been asked (I browsed through the
>archives
>but didn't see it). I am trying to build plex86 under Debian 2.2 and I
>am getting
>many many errors when compiling host-linux.c:
>
>It starts like this:
>
>/usr/include/linux/hpfs_fs_i.h:5: parse error before `ino_t'
>/usr/include/linux/hpfs_fs_i.h:5: warning: no semicolon at end of struct
>or union
>/usr/include/linux/hpfs_fs_i.h:12: parse error before `:'
>In file included from /usr/include/linux/fs.h:264,
> from host-linux.c:30:
>/usr/include/linux/msdos_fs_i.h:36: parse error before `off_t'
>/usr/include/linux/msdos_fs_i.h:36: warning: no semicolon at end of
>struct or union
>In file included from /usr/include/linux/fs.h:265,
> from host-linux.c:30:
>
>And continues, ending with:
>
>host-linux.c: At top level:
>host-linux.c:694: parse error before `off_t'
>host-linux.c:700: warning: function declaration isn't a prototype
>host-linux.c: In function `plex86_read_procmem':
>host-linux.c:703: `buf' undeclared (first use in this function)
>host-linux.c: In function `host_idle':
>host-linux.c:908: dereferencing pointer to incomplete type
>host-linux.c: At top level:
>/usr/include/linux/coda.h:261: storage size of `va_atime' isn't known
>/usr/include/linux/coda.h:262: storage size of `va_mtime' isn't known
>/usr/include/linux/coda.h:263: storage size of `va_ctime' isn't known
>/usr/include/linux/coda.h:563: storage size of `attr' isn't known
>/usr/include/linux/fs.h:422: storage size of `f_owner' isn't known
>/usr/include/linux/sched.h:288: storage size of `times' isn't known
>host-linux.c:145: storage size of `plex86_fops' isn't known
>make[1]: *** [host-linux.o] Error 1
>make[1]: Leaving directory `/home/derek/plex86/kernel'
>make: *** [all] Error 2
>
>At first glance, it seems that perhaps there is one problem
>somewhere in fs.h (which I know is not a piece of plex86)
>that perhaps leads to the rest. Any advice?
>
>Thanks,
>
>Derek