Bug 235209 - sys-libs/libcap-2.11 - first install fails - _makenames.c:10:28: error: sys/capability.h: No such file or directory
Bug#: 235209 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: zimous@matfyz.cz
Component: Library
URL: 
Summary: sys-libs/libcap-2.11 - first install fails - _makenames.c:10:28: error: sys/capability.h: No such file or directory
Keywords:  
Status Whiteboard: 
Opened: 2008-08-19 18:16 0000
Description:   Opened: 2008-08-19 18:16 0000
First install (not reinstall or upgrade) of libcap-2.11 fails due to missing
header "sys/capability.h":

...
_makenames.c:10:28: error: sys/capability.h: No such file or directory
_makenames.c:25: error: invalid application of 'sizeof' to incomplete type
'struct __user_cap_data_struct' 
make[1]: *** [_makenames] Error 1
make[1]: Leaving directory
`/var/build/paludis/sys-libs-libcap-2.11/work/libcap-2.11/libcap'
make: *** [all] Error 2
...

The missing header is part of libcap itself and hence is missing when
installing for the first time. See also the URL pointing to sourcemage
bugzilla.

A simple workaround is to install libcap-2.10 and then upgrade.

------- Comment #1 From zimous 2008-08-19 18:18:12 0000 -------
Created an attachment (id=163313) [details]
Full log

------- Comment #2 From Jeroen Roovers 2008-08-19 21:25:34 0000 -------
Please post your `emerge --info' too.

------- Comment #3 From SpanKY 2008-08-19 22:12:59 0000 -------
just a simple typo in the build patch ... dont know why sourcemage matters
since we arent using their code base

http://sources.gentoo.org/sys-libs/libcap/files/2.11/0001-Make-fixes.patch?r1=1.1&r2=1.2