Skip to contentSkip to conversation

include/asm-sparc/ptrace.h is broken

DISCUSSION Felix von Leitner 2 participants 2 messages May 31, 2001 – Jun 1, 2001

lore
Share & tools
lore
#0 lore raw

on line 76, it includes <asm/asm_offsets.h>, which does not exist.

This is critical because this include file does not work when used from a libc. ptrace.h is from 1997 on my 2.4.5 kernel, so this is not something that broke recently.

My suggestion is to remove the offending line altogether or at least protect it with #ifdef __KERNEL__.

Felix

#1 lore raw
Quoted 8 lines · Felix von Leitner

on line 76, it includes <asm/asm_offsets.h>, which does not exist.

This is critical because this include file does not work when used from a libc. ptrace.h is from 1997 on my 2.4.5 kernel, so this is not something that broke recently.

My suggestion is to remove the offending line altogether or at least protect it with #ifdef __KERNEL__.

Just like other headers in the kernel (such as linux/autoconfig.h) they do not exist until the kernel is configured and built.

include asm-sparc{,64}/asm_offsets.h is built at kernel build time.

Later,
David S. Miller
[email protected]