saminiir / level-ip

A hacker's userspace TCP/IP stack
https://www.saminiir.com
MIT License
2.61k stars 379 forks source link

missing capability.h while make all #24

Open Hedgezzz opened 5 years ago

Hedgezzz commented 5 years ago

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

saminiir commented 5 years ago

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/