nelhage / reptyr

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

Build fails on CentOS 6 #101

Closed unreturned closed 5 years ago

unreturned commented 5 years ago

OS: CentOS release 6.10 (Final)

bash-4.1$ uname -a
Linux ru.ru 2.6.32-754.14.2.el6.x86_64 #1 SMP Tue May 14 19:35:42 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Error:

bash-4.1$ make
cc -Wall -Werror -D_GNU_SOURCE -g    -c -o reptyr.o reptyr.c
cc -Wall -Werror -D_GNU_SOURCE -g    -c -o reallocarray.o reallocarray.c
cc -Wall -Werror -D_GNU_SOURCE -g    -c -o attach.o attach.c
cc -Wall -Werror -D_GNU_SOURCE -g    -c -o platform/linux/linux_ptrace.o platform/linux/linux_ptrace.c
platform/linux/linux_ptrace.c: In function ‘ptrace_save_regs’:
platform/linux/linux_ptrace.c:214: error: ‘PTRACE_GETREGSET’ undeclared (first use in this function)
platform/linux/linux_ptrace.c:214: error: (Each undeclared identifier is reported only once
platform/linux/linux_ptrace.c:214: error: for each function it appears in.)
platform/linux/linux_ptrace.c: In function ‘ptrace_restore_regs’:
platform/linux/linux_ptrace.c:228: error: ‘PTRACE_SETREGSET’ undeclared (first use in this function)
platform/linux/linux_ptrace.c: In function ‘ptrace_remote_syscall’:
platform/linux/linux_ptrace.c:255: error: ‘PTRACE_GETREGSET’ undeclared (first use in this function)
platform/linux/linux_ptrace.c:265: error: ‘PTRACE_SETREGSET’ undeclared (first use in this function)
make: *** [platform/linux/linux_ptrace.o] Error 1
nelhage commented 5 years ago

fixed by #102