[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't compile gdb-4.17

Jose Rodriguez wrote:
> Hi!
> I need to recompile the package gdb (gdb-4.16 or gdb-4.17) and it stops
> with an error (copied below).
> I installed the source package as root in /usr/src with dpkg-source -x
> <The gdb .dsc file>
> Then cd to the gdb-4.16 (or 17) dir
> cd /usr/src/gd-4.17
> and finally debian/rules
> After a while (some minutes) it stops with the following msgs:
> gcc -c -O2 -Wall    -I. -I. -I./config -DHAVE_CONFIG_H
> -I./../include/opcode -I./../readline -I../bfd -I./../bfd
> -I./../include  infptrace.c
> infptrace.c: In function `call_ptrace':
> infptrace.c:117: warning: implicit declaration of function `ptrace'
> infptrace.c: In function `kill_inferior':
> infptrace.c:147: warning: implicit declaration of function `wait'
> infptrace.c: In function `attach':
> infptrace.c:206: `PTRACE_ATTACH' undeclared (first use this function)
> infptrace.c:206: (Each undeclared identifier is reported only once
> infptrace.c:206: for each function it appears in.)
> infptrace.c: In function `detach':
> infptrace.c:222: `PTRACE_DETACH' undeclared (first use this function)
> make[2]: *** [infptrace.o] Error 1
> make[2]: Leaving directory `/usr/src/gdb-4.17/gdb'
> make[1]: *** [all-gdb] Error 2
> make[1]: Leaving directory `/usr/src/gdb-4.17'
> make: *** [build] Error 2
> Note: PTRACE_DETACH and PTRACE_ATTACH is defined in </sys/ptrace.h>, but
> this file is not included due to a #define NO_PTRACE. Any ideas?

What about defining it then?  Find out why it is undefined.

Err well, and examine why ptrace stuff is still needed although it
is undefined.  Please send an appropriate patch as wishlist bug
to the bug tracking system.



We all know Linux is great... it does infinite loops in 5 seconds.
        - Linus Torvalds

Reply to: