The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-02-2008
Registered User
 

Join Date: Jul 2008
Posts: 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 realize this error could lead to more errors when fixed but I'd really need some help here and it might be worth a shot.

---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
Here's the code around those lines in the file /usr/src/linux-2.4.26/include/linux/fs.h:
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 */
};
I don't know if this is useful or not but fatx is a filesystem for xbox's. It makes sense that I would run into an error somewhere around here because fatx was definitely applied by the xbox patch and the CONFIG_MOSIX parts were definitely applied by the mosix patch.

Can anyone help me or need more info?

Thanks,
Lateralus01
Reply With Quote
Forum Sponsor
  #2  
Old 07-21-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
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
Reply With Quote
  #3  
Old 07-21-2008
Registered User
 

Join Date: Jun 2008
Posts: 28
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0