Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235209 - sys-libs/libcap-2.11 - first install fails - _makenames.c:10:28: error: sys/capability.h: No such file or directory
Summary: sys-libs/libcap-2.11 - first install fails - _makenames.c:10:28: error: sys/c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-19 18:16 UTC by Petr Zima
Modified: 2008-08-19 22:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Full log (paludis.log,3.91 KB, text/plain)
2008-08-19 18:18 UTC, Petr Zima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Zima 2008-08-19 18:16:44 UTC
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 Petr Zima 2008-08-19 18:18:12 UTC
Created attachment 163313 [details]
Full log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-19 21:25:34 UTC
Please post your `emerge --info' too.
Comment 3 SpanKY gentoo-dev 2008-08-19 22:12:59 UTC
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