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

Can't compile gdb-4.17


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?

I remember I could compile gdb-4.16 succesfully under Debian Bo 1.3.1


Jose Rodriguez          jrguez@inm.es
Instituto Nacional de Meteorologia          SPAIN
Reply to: