Hello,
EDIT: temporary fixed it with adding #include <stdio.h> in _caps_output.gperf and modifiy __cap_lookup_name (register const char *str, register size_t len) to __cap_lookup_name (register const char *str, unsigned int len)
When building libcap I get the following error:
QuoteDisplay More
/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/toolchain/bin/host-gcc -O2 -Wall -pipe -I/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/toolchain/include -Wno-format-security -fPIC -I/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/libcap-2.25/.x86_64-pc-linux-gnu/libcap/../libcap/include/uapi -I/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/libcap-2.25/.x86_64-pc-linux-gnu/libcap/../libcap/include -include _caps_output.gperf -c cap_text.c -o cap_text.o
/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/toolchain/bin/host-gcc -O2 -Wall -pipe -I/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/toolchain/include -Wno-format-security -fPIC -I/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/libcap-2.25/.x86_64-pc-linux-gnu/libcap/../libcap/include/uapi -I/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/libcap-2.25/.x86_64-pc-linux-gnu/libcap/../libcap/include -c cap_file.c -o cap_file.o
.c -o cap_file.o
In file included from <command-line>:32:0:
./_caps_output.gperf:71:80: error: unknown type name 'size_t'
gperf_case_strncmp (register const char *s1, register const char *s2, register size_t n)
^~~~~~
./_caps_output.gperf:96:53: error: unknown type name 'size_t'
__cap_hash_name (register const char *str, register size_t len)
^~~~~~
./_caps_output.gperf:200:55: error: unknown type name 'size_t'
__cap_lookup_name (register const char *str, register size_t len)
^~~~~~
./_caps_output.gperf:200:1: error: conflicting types for '__cap_lookup_name'
__cap_lookup_name (register const char *str, register size_t len)
^~~~~~~~~~~~~~~~~
In file included from <command-line>:32:0:
./_caps_output.gperf:33:29: note: previous declaration of '__cap_lookup_name' was here
const struct __cap_token_s *__cap_lookup_name(const char *, unsigned int);
^~~~~~~~~~~~~~~~~
Makefile:63: recipe for target 'cap_text.o' failed
make[1]: *** [cap_text.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/dummys/works/toolz/admin/rasplex/build_rasplex_openPHT/OpenPHT-Embedded/build.RasPlex-RPi2.arm-7.0-devel/libcap-2.25/.x86_64-pc-linux-gnu/libcap'
make: *** [Makefile:12: image] Error 2