Try gcc -Wl,--no-as-needed -lcap test.c
or gcc test.c -lcap
.
Hope this helps!
Dec 3, 2015 ... Running make I get the following error: $ make -e [GO-GET] ... fatal error: sys/ capability.h: No such file or directory #include <sys/capability.h> ...
If you encounter the error sys/acl.h: No such file or directory, it is because the required ACL package is not installed on your system. On Debian or Ubuntu, ...
with gcc -lcap test.c which gives me the following error: ... Try gcc -Wl,--no-as- needed -lcap test.c or gcc test.c -lcap . Hope this ... I'm working on Ubuntu 10.04 and I had the same problem ( sys/capability.h not present on the file system ). ... which populates the /usr/include/sys folder with the capability.h file.
2018年6月9日 ... userns_functions.c:25:28: fatal error: sys/capability.h: No such file or directory compilation terminated. Makefile:17: recipe for target '../libtlpi.a' ...
If you encounter the error sys/capability.h: No such file or directory, it is because a required package is not installed on your system. On Debian or Ubuntu, ...
2018年4月23日 ... 也就是说,编译程序有了这个软件包,才知道头... 关于fatal error: sys/capability.h: No such file or directory · C君传.
Jul 13, 2020 ... Also, the error below came up after I solved this issue . ... fatal error: sys/capability .h: No such file or directory #include <sys/capability.h> ...
vdr.c:35:28: fatal error: sys/capability.h: No such file or directory. Solution, in this case for SUSE 11.3 yast -i libcap-devel.
Apr 20, 2020 ... Because of that the lxd-tools package that contains “lxc-to-lxd” is not installed (or I cannot ... fatal error: sys/capability.h: No such file or directory
May 23, 2018 ... buildtools/bin:$PATH waf build Waf: Entering directory ... fatal error: sys/capability .h: No such file or directory compilation terminated.