nelhage / reptyr

Reparent a running program to a new terminal
MIT License
5.78k stars 216 forks source link

Won't build #26

Closed ghost closed 11 years ago

ghost commented 11 years ago

Cloned db4fa12621406454f01e9c849180eb7aef5a875b hit make and reptyr wont' compile.

cc -Wall -Werror -D_GNU_SOURCE -g   -c -o reptyr.o reptyr.c
cc -Wall -Werror -D_GNU_SOURCE -g   -c -o ptrace.o ptrace.c
In file included from ptrace.h:23:0,
                 from ptrace.c:37:
/usr/include/linux/ptrace.h:58:8: error: redefinition of ‘struct ptrace_peeksiginfo_args’
 struct ptrace_peeksiginfo_args {
        ^
In file included from ptrace.c:22:0:
/usr/include/sys/ptrace.h:191:8: note: originally defined here
 struct ptrace_peeksiginfo_args
        ^
make: *** [ptrace.o] Error 1
ghost commented 11 years ago

Building b408a3133766e970e6e2f375dbb7fe048e18b27e works for me. The db4fa12621406454f01e9c849180eb7aef5a875b breaks compiling for me. My glibc is 2.18.

ghost commented 11 years ago

Great! Now it works perfectly. Thanks!