Skip to contentSkip to conversation

compiling futex-2.2

DISCUSSION Chris Friesen 1 participant 2 messages Oct 3, 2003

lore
Share & tools
lore
#0 lore raw

I tried downloading and compiling the futex-2.2 package, and ran into some snags.

The linux/futex.h file uses a number of nonstandard data types but does not itself include any other headers. IN addition, the "u32" data type
is problematic, since it is only defined in the kernel headers if
__KERNEL__ is defined. Perhaps it should be defined as "__u32"?

Also, there is a definition of sys_futex in the package headers that does not match the definition in the latest kernel headers. Any plans to update the package?

Chris

Signature · 4 lines
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: [email protected]
#1 lore raw

Friesen, Christopher [CAR:7Q26:EXCH] wrote:

As an alternate fix I tried wrapping the two function declarations with "ifdef __KERNEL__", and added the missing parm to the syscall in the futex library. This seemed to work, so maybe this would be cleaner?

Chris

Signature · 4 lines
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: [email protected]