FW: ntfs compile problem

Greg Smart (GSmart@tennyson.com.au)
Thu, 7 Jan 1999 13:24:28 +1100


> -----Original Message-----
> From: Greg Smart
> Sent: Thursday, January 07, 1999 9:29 AM
> To: 'linux-kernel@vger.rutgers.edu'
> Subject: ntfs compile problem
>
> hello,
> I've been trying to compile 2.2.0pre4 and the build bombed
> out in the ntfs module. I put in a quick hack and managed to build
> and run with no problems. Here's what I did:
>
> the file .../fs/ntfs/inode.c failed at lines 421 and 423 because
> NTFS_GETS16 and NTFS_GETS32 were not correctly defined.
>
> to fix the problem I modified ntfsendi.h at line 75 and 77
>
> here's the file from line 72 on:
> /* Macros reading signed integers */
> #define NTFS_GETS8(p) ((*(ntfs_u8*)(p)))
> #define NTFS_GETS16(p) ((s16)LE16_TO_CPU(*(short*)(p)))
> #define NTFS_GETS24(p) (NTFS_GETU24(p) < 0x800000 ?
> (int)NTFS_GETU24(p) : (int)(NTFS_GETU24(p) - 0x1000000))
> #define NTFS_GETS32(p) ((s32)LE32_TO_CPU(*(int*)(p)))
> #define NTFS_GETS40(p) (((ntfs_s64)NTFS_GETS32(p)) |
> (((ntfs_s64)NTFS_GETS8(((char*)(p))+4)) << 32))
> #define NTFS_GETS48(p) (((ntfs_s64)NTFS_GETS32(p)) |
> (((ntfs_s64)NTFS_GETS16(((char*)(p))+4)) << 32))
> #define NTFS_GETS56(p) (((ntfs_s64)NTFS_GETS32(p)) |
> (((ntfs_s64)NTFS_GETS24(((char*)(p))+4)) << 32))
> #define NTFS_GETS64(p) ((ntfs_s64)NTFS_GETU64(p))
>
>
> As you can see the problem is to do with the definition of ntfs_s16 and
> ntfs_32, which is in
> ntfstypes.h. My solution here is obviously a kludge, I'm guessing that
> the real solution is
> something to do with configuration. I figured someone would know the best
> way to fix it. :)
>
> P.S. This is the first time I've used this mailing list. If
> this mail is inappropriate then just let me know.
>
> cheers
> Greg Smart
> gsmart@tennyson.com.au

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/