Summary: | sys-libs/libcap-2.15 (2.16): build fails with kernel headers from 2.6.29 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Johan Hovold <jhovold> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ciklop1979, yarodin |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
include capability.h after wait.h
Remove include-guard defines from capability.h |
Description
Johan Hovold
2009-04-07 13:17:32 UTC
Created attachment 187580 [details, diff]
include capability.h after wait.h
The attached patch makes libcap compile with 2.6.29 headers by including capability.h after wait.h.
We only support the headers included with the package linux-headers, sorry. Ok, but this is likely to break once linux-headers hits 2.6.29... For future reference: Simply including sys/capability.h before sys/wait.h (and likely other system headers) results in In file included from /usr/include/bits/sigcontext.h:28, from /usr/include/signal.h:333, from /usr/include/sys/wait.h:31, from capsh.c:19: /usr/include/asm/sigcontext.h:28: error: expected specifier-qualifier-list before '__u64' /usr/include/asm/sigcontext.h:191: error: expected specifier-qualifier-list before '__u64' In particular, this is not specific to the capsh application, but rather an issue with capability.h triggered by commit e59afe6a21dce7bb3c63ba4f894a3195ae3d5529. I'm attaching a patch which removes the no longer needed user-space include guard defines from capability.h. Created attachment 187677 [details, diff]
Remove include-guard defines from capability.h
Remove the no longer needed include-guard defines from capability.h (the kernel headers have been sanitized in 2.6.29).
usefull for me, thanx not sure why this is INVALID *** Bug 269848 has been marked as a duplicate of this bug. *** http://bugs.gentoo.org/attachment.cgi?id=191326 tihs patch works for me with with GCC 4.3.3 and Linux headers 2.6.29 and libcap 2.16. dropped the workarounds in 2.16-r1 http://sources.gentoo.org/sys-libs/libcap/files/libcap-2.16-drop-linux-workarounds.patch?rev=1.1 |