PTRACE_GETSIGINFO not defined in x86 version of sys/ptrace.h, It is however defined in the ia64 version of the header. Despite the fact that in linux/ptrace.h it is defined, in fact doing: #define PTRACE_GETSIGINFO (__ptrace_request)0x4202 and using it with ptrace works perfectly. Unfortunately, because in sys/ptrace.h the constants are an enum and in linux/ptrace.h they are defines, in addition to the fact that glibc's definition of the ptrace function is slightly different to reflect an enum and thus conflicts, you cannot inlcude both headers at the same time (which would likely make things less of an issue). Likewise PTRACE_SETSIGINFO is also not defined. Evan Teran
Created attachment 97199 [details, diff] glibc-linux-ptrace-updates.patch this should do the trick
this has been merged upstream so this will be in the next glibc-2.4 release