Compilation error when including <linux/ext3_fs.h> in SuSE Linux 9.0 (i586)
In a source file (e.g. xxx.c), the following headers are included.
# include <linux/fs.h>
# include <linux/ext3_fs.h>
# include <sys/types.h>
While compiling the source file in SuSE Linux 9.0 (i586), following errors are displayed:
---------------------------------------
In file included from /usr/include/linux/ext3_fs.h:20,
from xxx.c:33:
/usr/include/linux/ext3_fs_i.h:80: error: field `i_orphan' has incomplete type
/usr/include/linux/ext3_fs_i.h:109: error: field `truncate_sem' has incomplete type
/usr/include/linux/ext3_fs_i.h:110: error: field `vfs_inode' has incomplete type
In file included from /usr/include/linux/ext3_fs.h:21,
from xxx.c:33:
/usr/include/linux/ext3_fs_sb.h:52: error: parse error before "u32"
/usr/include/linux/ext3_fs_sb.h:55: error: parse error before '*' token
/usr/include/linux/ext3_fs_sb.h:71: error: parse error before '}' token
In file included from xxx.c:33:
/usr/include/linux/ext3_fs.h:618: error: parse error before "u32"
/usr/include/linux/ext3_fs.h:621: error: parse error before '*' token
/usr/include/linux/ext3_fs.h:622: error: parse error before '}' token
---------------------------------------
The system had the glibc-devel package version 2.3.2-87 (i586) which contain the header file <linux/ext3_fs.h>. The glibc package version is 2.3.2-88 (i686).
I installed the glibc-devel package version 2.3.2-92 (i586) and compiled the source. Still the same error appears.
The compilation is successful in SuSE Linux 8.0 sp3. Can someone please tell what can be the problem in my SuSE Linux 9.0 (i586)? What can be done to resolve the problem?
Thanks in Advance.
Seshasai
|