You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.
FROM alpine:3.7
RUN apk add --no-cache alpine-sdk linux-headers bsd-compat-headers libexecinfo-dev talloc-dev protobuf-c-dev
RUN git clone https://github.com/rootless-containers/PRoot.git \
&& cd PRoot \
&& git checkout 081bb63955eb4378e53cf4d0eb0ed0d3222bf66e \
&& cd src \
&& make && mv proot / && make clean
Failing:
make: [GNUmakefile:135: .check_process_vm] Error 1 (ignored)make: [GNUmakefile:135: .check_seccomp_filter] Error 1 (ignored) GEN build.h CC cli/cli.oIn file included from ./cli/cli.h:7:0, from ./cli/cli.c:36:./tracee/tracee.h:150:24: error: field 'restart_how' has incomplete type enum __ptrace_request restart_how; ^~~~~~~~~~~make: *** [GNUmakefile:179: cli/cli.o] Error 1
The text was updated successfully, but these errors were encountered:
enum __ptrace_request on musl seems to be a pretty common issue. Let me see what I can find out.
Update:
#include <sys/wait.h>. Without it, __WALL macro for waitpid() is missing and compile errors pop out.
musl uses int instead. I had to add #define __ptrace_request int just after all includes but before // doesn't always seem to be defined in the headers defines.
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: cli/cli.o: in function `__cyg_profile_func_enter':
cli.c:(.text+0x908): undefined reference to `backtrace_symbols'
/usr/lib/gcc/x86_64-alpine-linux-musl/8.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: tracee/tracee.o: in function `new_child':
tracee.c:(.text+0xabb): undefined reference to `__W_STOPCODE'
Failing:
The text was updated successfully, but these errors were encountered: