-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi,
I tried building this so I could run capsh. However, I get this error:
$ make
===> src (all)
Warning: Object directory not changed from original /tmp/libcapsicum/src
cc -O2 -pipe -Wall -Werror -I /tmp/libcapsicum/src -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wmissing-variable-declarations -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -c libcapsicum.c -o libcapsicum.o
libcapsicum.c:48:11: error: implicit declaration of function 'cap_new' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
fd_cap = cap_new(fd, rights);
^
1 error generated.
*** Error code 1
Stop.
make[1]: stopped in /tmp/libcapsicum/src
*** Error code 1
Stop.
make: stopped in /tmp/libcapsicum
I've not immediately been able to come up with a workaround for it.
Given the age of the project, I'm guessing you built it around GCC and not clang, is the difference there?
Thank you,
Teran
PS: What exactly is capsh?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels