![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| error: field has incomplete type | boyanov | High Level Programming | 4 | 08-10-2007 01:15 AM |
| array type has incomplete element type | jaganadh | High Level Programming | 1 | 07-24-2007 12:54 AM |
| Unknown File Type error | rohitsz | SUN Solaris | 3 | 07-15-2007 02:57 PM |
| Accesing structure member:Error:dereferencing pointer to incomplete type | amit4g | High Level Programming | 3 | 05-07-2007 05:32 AM |
| Error : ANSI C++ forbids 'xx' declaration with no type | zing | High Level Programming | 2 | 06-26-2003 07:56 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
error: field `fatx_i' has incomplete type
I'm trying to compile a 2.4.26 kernel but I have to apply two patches to it.
The patches are: linux-2.4.26-xbox.patch openMosix-2.4.26-1 This is the reason that it doesn't compile. There is only one error but I'm not familiar with C or C++(Unfortunately only Java and some lower-level languages ---I applied the xbox patch second--- here's my output: Code:
Gentoo linux # make bzImage
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.4.26/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.26/include/linux/capability.h:17,
from /usr/src/linux-2.4.26/include/linux/binfmts.h:5,
from /usr/src/linux-2.4.26/include/linux/sched.h:9,
from /usr/src/linux-2.4.26/include/linux/mm.h:4,
from /usr/src/linux-2.4.26/include/linux/slab.h:14,
from /usr/src/linux-2.4.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.26/include/linux/fs.h:526: error: field `fatx_i' has incomplete type
make: *** [init/main.o] Error 1
Code:
union {
struct minix_inode_info minix_i;
struct ext2_inode_info ext2_i;
struct ext3_inode_info ext3_i;
struct hpfs_inode_info hpfs_i;
struct ntfs_inode_info ntfs_i;
struct msdos_inode_info msdos_i;
struct umsdos_inode_info umsdos_i;
struct iso_inode_info isofs_i;
struct nfs_inode_info nfs_i;
struct sysv_inode_info sysv_i;
struct affs_inode_info affs_i;
struct ufs_inode_info ufs_i;
struct efs_inode_info efs_i;
struct romfs_inode_info romfs_i;
struct shmem_inode_info shmem_i;
struct coda_inode_info coda_i;
struct smb_inode_info smbfs_i;
struct hfs_inode_info hfs_i;
struct adfs_inode_info adfs_i;
struct qnx4_inode_info qnx4_i;
struct reiserfs_inode_info reiserfs_i;
struct bfs_inode_info bfs_i;
struct udf_inode_info udf_i;
struct ncp_inode_info ncpfs_i;
struct proc_inode_info proc_i;
struct socket socket_i;
struct usbdev_inode_info usbdev_i;
struct jffs2_inode_info jffs2_i;
---526--- struct fatx_inode_info fatx_i; ---LINE 526---
void *generic_ip;
#ifdef CONFIG_MOSIX
struct remote_inode_info remote_i;
#endif /* CONFIG_MOSIX */
} u;
#ifdef CONFIG_MOSIX
uint64_t i_unique;
#endif /* CONFIG_MOSIX */
};
Can anyone help me or need more info? Thanks, Lateralus01 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Do the patches conflict? The cause of the error is likely that "struct fatx_inode_info" is not defined, or the file where it is defined is not pulled in correctly.
Last edited by era; 07-21-2008 at 11:23 PM. Reason: Typo; inode, not node |
|
#3
|
|||
|
|||
|
Sounds like its defined somewhere, but one of the fields in that structure are not defined. Grep for the definition of fatx_inode_info to investigate farther.
|
|||
| Google The UNIX and Linux Forums |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|