Skip to contentSkip to conversation

e2fsprogs conflict with asm-sparc64/types.h

DISCUSSION Tom "spot" Callaway 2 participants 2 messages Sep 22, 2007 – Sep 23, 2007

lore
Share & tools
lore
#0 lore raw

When building e2fsprogs, it checks to see if long long is valid on the platform, and detects that it is for sparc64. Thus, it defines:

#define __S64_TYPEDEF __signed__ long long
#define __U64_TYPEDEF unsigned long long

Unfortunately, that conflicts with asm-sparc64/types.h, which says only "long", not "long long" for these typedefs.

Is the kernel wrong? Or is e2fsprogs?

Thanks in advance,

~spot

#1 lore raw

From: "Tom \"spot\" Callaway" <[email protected]>
Date: Sat, 22 Sep 2007 17:21:08 -0400

Quoted 10 lines

When building e2fsprogs, it checks to see if long long is valid on the platform, and detects that it is for sparc64. Thus, it defines:

#define __S64_TYPEDEF __signed__ long long
#define __U64_TYPEDEF unsigned long long

Unfortunately, that conflicts with asm-sparc64/types.h, which says only "long", not "long long" for these typedefs.

Is the kernel wrong? Or is e2fsprogs?

The kernel is right.

Several other 64-bit platforms happen to choose to use "long long" for the 64-bit types, but this is absolutely not universal and is a per-platform decision to make.