when i complie a module source "chardev.c" in debian 2.2r2 it show me a lot of error message
but it's ok when I complie the same file in Redhat 6.1
Is it because gcc version??
the gcc version:
what's the problem whit me ??
and it's the error messages:
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -c chardev.c
In file included from /usr/include/linux/fs.h:266,
/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:268,
/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 uni
In file included from /usr/include/linux/fs.h:269,
/usr/include/linux/umsdos_fs_i.h:62: field `msdos_info' has incomplete type
/usr/include/linux/umsdos_fs_i.h:69: parse error before `off_t'
chardev.c: In function `strnlen':
/usr/include/asm/string.h:392: warning: `__res' might be used uninitialized in this fu
chardev.c: At top level:
/usr/include/linux/sched.h:288: storage size of `times' isn't known
make: *** [chardev.o] Error 1
thanks a lot.