[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compile module problem....



hi all
 
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:
debian gcc:2.95.2
redhat gcc:egcs-2.91.66
 
what's the problem whit me  ??
 
Regards
 
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,
                 from chardev.c:21:
/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
n
/usr/include/linux/hpfs_fs_i.h:12: parse error before `:'
In file included from /usr/include/linux/fs.h:268,
                 from chardev.c:21:
/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
ion
In file included from /usr/include/linux/fs.h:269,
                 from chardev.c:21:
/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'

.
(omit)
.
 
chardev.c: In function `strnlen':
/usr/include/asm/string.h:392: warning: `__res' might be used uninitialized in this fu
nction
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.

Reply to: