Summary: | some programm can't be built with kernel 2.6.10-std26-up-alt1 headers | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | tszyn <sanja> |
Component: | kernel-headers-std26-up | Assignee: | Sergey Vlasov <vsu> |
Status: | CLOSED NOTABUG | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P2 | ||
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
tszyn
2005-01-16 18:00:53 MSK
reassign In general, including kernel headers from userspace is wrong - headers from the glibc-kernheaders package should be used for compilation. #include <asm/atomic.h> should not be used in userspace for several reasons: 1) On some architectures the atomic operations from <asm/atomic.h> are not available in user mode: e.g., see sparc, sparc64 - atomic_* functions are not implemented as inlines; on some other architectures the required instructions are privileged - see http://mailman.uclinux.org/pipermail/uclinux-dev/2004-January/023757.html . 2) Even on i386 the result of compilation depends on the kernel configuration: if the kernel was not configured as SMP, the lock prefix before instruction is omitted, therefore the compiled code will not be SMP-safe, creating subtle bugs. |