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

Re: Can't compile gdb-4.17 (Still)



Vincent Renardias wrote:
This one should be ok...
Are you sure nothing is interfering with it?
??? Don't know. :(

Some more clues:

gdb_4.17-0.1.diff.gz (The debian diff gz file)
gdb_4.17-0.1.dsc      (The dsc file)

gcc version 2.7.2.3
libc6 & libc6-dev    2.0.7-t1
 

> > > I remember I could compile gdb-4.16 succesfully under Debian Bo 1.3.1
> >
> > Yes, but 1.3.1 was libc5 based, and there were _MANY_ changes between gdb
> > 4.16 and 1.17...
>
> Perhaps the gdb 4.17 i'm used is libc5 based? Maybe I need to install
> libc5-dev or something like that?
 
No. libc6-dev is definatly okay for gdb-4.17.
Mhh. The file

/usr/src/gdb-4.17/gdb/config/i386/nm-i386v.h

is the one which #defines NO_PTRACE that makes /usr/src/gdb-4.17/gdb/infptrace.c to stop.

Removing this line, the compilation goes furter, but now it stops in the file shown below:

gcc -c -O2 -Wall    -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline -I../bfd -I./../bfd  -I./../include  core-regset.c
core-regset.c: In function `fetch_core_registers':
core-regset.c:97: warning: implicit declaration of function `supply_gregset'
core-regset.c:110: warning: implicit declaration of function `supply_fpregset'
gcc -c -O2 -Wall    -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline -I../bfd -I./../bfd  -I./../include  i386v-nat.c
i386v-nat.c:57: `EAX' undeclared here (not in a function)
i386v-nat.c:57: initializer element for `regmap[0]' is not constant
i386v-nat.c:57: `ECX' undeclared here (not in a function)
i386v-nat.c:57: initializer element for `regmap[1]' is not constant
i386v-nat.c:57: `EDX' undeclared here (not in a function)
i386v-nat.c:57: initializer element for `regmap[2]' is not constant
i386v-nat.c:57: `EBX' undeclared here (not in a function)
i386v-nat.c:57: initializer element for `regmap[3]' is not constant
i386v-nat.c:58: `UESP' undeclared here (not in a function)
i386v-nat.c:58: initializer element for `regmap[4]' is not constant
i386v-nat.c:58: `EBP' undeclared here (not in a function)
i386v-nat.c:58: initializer element for `regmap[5]' is not constant
i386v-nat.c:58: `ESI' undeclared here (not in a function)
i386v-nat.c:58: initializer element for `regmap[6]' is not constant
i386v-nat.c:58: `EDI' undeclared here (not in a function)
i386v-nat.c:58: initializer element for `regmap[7]' is not constant
i386v-nat.c:59: `EIP' undeclared here (not in a function)
i386v-nat.c:59: initializer element for `regmap[8]' is not constant
i386v-nat.c:59: `EFL' undeclared here (not in a function)
i386v-nat.c:59: initializer element for `regmap[9]' is not constant
i386v-nat.c:59: `CS' undeclared here (not in a function)
i386v-nat.c:59: initializer element for `regmap[10]' is not constant
i386v-nat.c:59: `SS' undeclared here (not in a function)
i386v-nat.c:59: initializer element for `regmap[11]' is not constant
i386v-nat.c:60: `DS' undeclared here (not in a function)
i386v-nat.c:60: initializer element for `regmap[12]' is not constant
i386v-nat.c:60: `ES' undeclared here (not in a function)
i386v-nat.c:60: initializer element for `regmap[13]' is not constant
i386v-nat.c:60: `FS' undeclared here (not in a function)
i386v-nat.c:60: initializer element for `regmap[14]' is not constant
i386v-nat.c:60: `GS' undeclared here (not in a function)
i386v-nat.c:60: initializer element for `regmap[15]' is not constant
i386v-nat.c: In function `i386_insert_aligned_watchpoint':
i386v-nat.c:188: warning: implicit declaration of function `ptrace'
make[2]: *** [i386v-nat.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
 

I hope this could help. I need to recompile gdb in order to compile an application called Rhide (The C IDE now for Linux).

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