-
Notifications
You must be signed in to change notification settings - Fork 381
Open
Description
When trying to compile it on a Raspberry Pi 4B with musl I get:
clang -O3 -pipe -flto -mcpu=cortex-a72+crc -mtune=cortex-a72 -fvectorize -fomit-frame-pointer -fstack-protector-strong -D_FORTIFY_SOURCE=2 -ftrivial-auto-var-init=zero -fsanitize-trap=signed-integer-overflow,unsigned-integer-overflow -fstack-clash-protection -fPIE -fPIC -fno-semantic-interposition -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -D_GNU_SOURCE -DNO_ANDROID_BACKEND -DUSE_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8 -DHAVE_STRLCPY -DHAVE_REALLOCARRAY -c -o sestatus.o sestatus.c
selinux_restorecon.c:441:16: error: variable has incomplete type 'struct stat64'
441 | struct stat64 sb;
| ^
selinux_restorecon.c:441:9: note: forward declaration of 'struct stat64'
441 | struct stat64 sb;
| ^
selinux_restorecon.c:455:10: error: call to undeclared function 'lstat64'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
455 | ret = lstat64(fl->file, &sb);
| ^
selinux_restorecon.c:455:10: note: did you mean 'lstat'?
/usr/include/sys/stat.h:82:5: note: 'lstat' declared here
82 | int lstat(const char *__restrict, struct stat *__restrict);
| ^
clang -O3 -pipe -flto -mcpu=cortex-a72+crc -mtune=cortex-a72 -fvectorize -fomit-frame-pointer -fstack-protector-strong -D_FORTIFY_SOURCE=2 -ftrivial-auto-var-init=zero -fsanitize-trap=signed-integer-overflow,unsigned-integer-overflow -fstack-clash-protection -fPIE -fPIC -fno-semantic-interposition -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../include -D_GNU_SOURCE -DNO_ANDROID_BACKEND -DUSE_PCRE2 -DPCRE2_CODE_UNIT_WIDTH=8 -DHAVE_STRLCPY -DHAVE_REALLOCARRAY -c -o setenforce.o setenforce.c
2 errors generated.
make[1]: *** [Makefile:178: selinux_restorecon.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/sys-libs/libselinux-3.8.1/work/libselinux-3.8.1-.arm64/src'
make: *** [Makefile:54: all] Error 1
zyxhere
Metadata
Metadata
Assignees
Labels
No labels