Skip to content

Build error on FreeBSD 10.2 #5

@ghost

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?

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