Skip to content

make failed #32

Open
Open

Description

@micktsai

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

Activity

  1. UndefinedChai commented on Oct 7, 2021

    @UndefinedChai

    install libcap-dev

  2. edte commented on May 26, 2023

    @edte

    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
  3. AiQiYang commented on Nov 22, 2024

    @AiQiYang

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions