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

make failed #32

Open
micktsai opened this issue Sep 6, 2021 · 3 comments
Open

make failed #32

micktsai opened this issue Sep 6, 2021 · 3 comments

Comments

@micktsai
Copy link

micktsai commented Sep 6, 2021

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:10: fatal error: sys/capability.h: No such file or directory
#include <sys/capability.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:15: recipe for target 'build/skbuff.o' failed
make: *** [build/skbuff.o] Error 1

how to fix this error?
I just do make all on my Vbox with linux Ubuntu 18.04

@AliasT
Copy link

AliasT commented Oct 7, 2021

install libcap-dev

@edte
Copy link

edte commented May 26, 2023

same problem here, I got many errors,just like:

  1. the comparison will always evaluate as ‘false’ for the address of ‘recv_wait’ will never be NULL
  2. taking address of packed member of may result in an unaligned pointer value
  3. ..

I solved these problems by doing this in the makefile:

  1. remove -Werror
  2. add -Wno-address-of-packed-member

@AiQiYang
Copy link

Same problem, now solved.
You need to install libcap-dev:

sudo apt-get update
sudo apt-get install libcap-dev

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

4 participants