Bug#32468: Conflict between .../sys/ptrace.h and .../asm/ptrace.h (libc6-dev 2.0.105-1.2/sparc)
Package: libc6-dev
Version: 2.0.105-1.2
Arch: Sparc
Including signal.h first breaks /usr/include/sys/ptrace.h. The first
thing that causes a problem is the definition of PTRACE_GETREGS, that
is becomes a statement "12=12"...
Including the files in the reverse order seems to work thou.
(This problem prevents GDB form compiling out of the box...)
A small example to reproduce the error:
---------------------------------------
bash-2.01$ cat >bug.c
#include <signal.h>
#include <sys/ptrace.h>
bash-2.01$ gcc -c bug.c
In file included from bug.c:2:
/usr/include/sys/ptrace.h:75: parse error before `12'
bash-2.01$
/usr/include/sys/ptrace.h and /usr/include/asm/ptrace.h conflict:
=================================================================
#define PTRACE_SUNATTACH 10 -- not in sys/ptrace.h
#define PTRACE_SUNDETACH 11 -- not in sys/ptrace.h
#define PTRACE_GETREGS 12 -- both
#define PTRACE_SETREGS 13 -- both
#define PTRACE_GETFPREGS 14 -- both
#define PTRACE_SETFPREGS 15 -- both
#define PTRACE_READDATA 16 -- conflict PTRACE_ATTACH
#define PTRACE_WRITEDATA 17 -- conflict PTRACE_DETACH
#define PTRACE_READTEXT 18 -- not in sys/ptrace.h
#define PTRACE_WRITETEXT 19 -- not in sys/ptrace.h
#define PTRACE_GETFPAREGS 20 -- not in sys/ptrace.h
#define PTRACE_SETFPAREGS 21 -- not in sys/ptrace.h
PTRACE_SYSCALL = 24 -- not in asm/ptrace.h
#define PTRACE_SYSCALL PTRACE_SYSCALL
/Stefan
-----------------------------------------------------------------------
Smail: Stefan Björnelund EMail: stefanb@update.uu.se
Kullavägen 15 WWW: http://www.update.uu.se/~stefanb/
194 34 Upplands-Väsby
Sweden
Reply to: