Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing capability.h while make all #24

Open
Hedgezzz opened this issue Mar 28, 2019 · 1 comment
Open

missing capability.h while make all #24

Hedgezzz opened this issue Mar 28, 2019 · 1 comment

Comments

@Hedgezzz
Copy link

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Linux SCXI-FIXT91 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

make all
cc -I include -Wall -Werror -pthread -c src/skbuff.c -o build/skbuff.o
In file included from src/skbuff.c:1:0:
include/syshead.h:27:28: fatal error: sys/capability.h: No such file or directory
#include <sys/capability.h>
^
compilation terminated.
make: *** [build/skbuff.o] Error 1

Nov 14 2017 level-ip-master

@Hedgezzz Hedgezzz changed the title missing capability.h missing capability.h while make all Mar 28, 2019
@saminiir
Copy link
Owner

Thanks for reporting this. I'm not too familiar with CentOS, but it seems that you need to install libcap header files with:

sudo yum install libcap-devel

https://zpjiang.me/2017/11/20/Build-iputils-from-CentOS/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants