Skip to contentSkip to conversation

2.5.25 -- Build error -- fs/ntfs/layout.h:299: unnamed fields of type other than struct or union are not allowed

DISCUSSION Miles Lane 2 participants 2 messages Jul 8, 2002

lore
Share & tools
lore

Miles Lane

author
#0 lore raw

gcc -Wp,-MD,./.aops.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DMODULE -DNTFS_VERSION=\"2.0.14\" -DDEBUG -DKBUILD_BASENAME=aops -c -o aops.o aops.c
In file included from inode.h:29,

                from debug.h:30,
                from ntfs.h:40,
                from aops.c:30:

layout.h:299: unnamed fields of type other than struct or union are not allowed layout.h:1449: unnamed fields of type other than struct or union are not allowed layout.h:1465: unnamed fields of type other than struct or union are not allowed layout.h:1714: unnamed fields of type other than struct or union are not allowed layout.h:1891: unnamed fields of type other than struct or union are not allowed layout.h:2051: unnamed fields of type other than struct or union are not allowed layout.h:2063: unnamed fields of type other than struct or union are not allowed make[2]: *** [aops.o] Error 1
make[2]: Leaving directory `/usr/src/linux/fs/ntfs'

CONFIG_QUOTA=y
CONFIG_QFMT_V1=m
CONFIG_QFMT_V2=m
CONFIG_QUOTACTL=y
CONFIG_AUTOFS4_FS=y
CONFIG_EXT3_FS=y
CONFIG_FAT_FS=m
CONFIG_VFAT_FS=m
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_NTFS_FS=m
CONFIG_NTFS_DEBUG=y

#1 lore raw

You are using gcc-3.1. Upgrade to a newer / downgrade to an older version or enable the work around I have posted before. (edit fs/ntfs/types.h and add your compiler version to the #if __GNUC__... line at the top)

Your gcc is broken is the summary.

Best regards,

Anton

Quoted 38 lines · Miles Lane

gcc -Wp,-MD,./.aops.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall

(quoted diff) +0 -4
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 
-march=athlon  -nostdinc -iwithprefix include -DMODULE 
-DNTFS_VERSION=\"2.0.14\" -DDEBUG  -DKBUILD_BASENAME=aops   -c -o aops.o aops.c

In file included from inode.h:29,

                from debug.h:30,
                from ntfs.h:40,
                from aops.c:30:

layout.h:299: unnamed fields of type other than struct or union are not allowed layout.h:1449: unnamed fields of type other than struct or union are not allowed layout.h:1465: unnamed fields of type other than struct or union are not allowed layout.h:1714: unnamed fields of type other than struct or union are not allowed layout.h:1891: unnamed fields of type other than struct or union are not allowed layout.h:2051: unnamed fields of type other than struct or union are not allowed layout.h:2063: unnamed fields of type other than struct or union are not allowed make[2]: *** [aops.o] Error 1
make[2]: Leaving directory `/usr/src/linux/fs/ntfs'

CONFIG_QUOTA=y
CONFIG_QFMT_V1=m
CONFIG_QFMT_V2=m
CONFIG_QUOTACTL=y
CONFIG_AUTOFS4_FS=y
CONFIG_EXT3_FS=y
CONFIG_FAT_FS=m
CONFIG_VFAT_FS=m
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_NTFS_FS=m
CONFIG_NTFS_DEBUG=y

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 5 lines
  "I've not lost my mind. It's backed up on tape somewhere." - Unknown
-- 
Anton Altaparmakov <aia21 at cantab.net> (replace at with @)
Linux NTFS Maintainer / IRC: #ntfs on irc.openprojects.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/