tcpdump mailing list archives

Re: Fix FreeBSD capsicum build on FreeBSD 10.1


From: Loganaden Velvindron <logan () elandsys com>
Date: Sat, 6 Dec 2014 23:44:26 -0800

On Sat, Dec 06, 2014 at 11:41:51PM -0800, Guy Harris wrote:

On Dec 6, 2014, at 9:19 PM, Loganaden Velvindron <logan () elandsys com> wrote:

Here's the config.log output:

configure:4540: checking for cap_rights_init
configure:4540: cc -o conftest -g -O2   conftest.c  >&5
/tmp/conftest-942ee0.o: In function `main':
/root/tcpdump/tcpdump-4.6.2/conftest.c:66: undefined reference to `cap_rights_init'
cc: error: linker command failed with exit code 1 (use -v to see invocation)

So, in FreeBSD 10.1, is cap_rights_init() a function in libc, or is it a macro that calls a function with a different 
name? The linker seems to be indicating that it's not present in the standard library.

According to the man page, it's part of the standard libc:

CAP_RIGHTS_INIT(3)     FreeBSD Library Functions Manual     CAP_RIGHTS_INIT(3)

NAME
     cap_rights_init, cap_rights_set, cap_rights_clear, cap_rights_is_set,
     cap_rights_is_valid, cap_rights_merge, cap_rights_remove,
     cap_rights_contains -- manage cap_rights_t structure

LIBRARY
     Standard C Library (libc, -lc)




_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: