This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: include/elf/hppa.h in gdb 4.18
- To: binutils@sourceware.cygnus.com
- Subject: Re: include/elf/hppa.h in gdb 4.18
- From: <joel@OARcorp.com>
- Date: Mon, 21 Jun 1999 14:14:19 -0500 (CDT)
I hate to reply to my own question but there is other code
(bfd/elf32-hppa.h around line 57 and bfd/elf32-hppa.c around line 943)
that requires hppa_elf_gen_reloc_type. So just deleting the typedef fixes
the first problem but creates others.
I don't know how this is supposed to be defined. :(
On Mon, 21 Jun 1999 joel@oarcorp.com wrote:
>
> Target: hppa1.1-rtems (a.k.a hppa*-*-*elf* | hppa*-*-lites* |
> hppa*-*-sysv4* )
>
> Since this is a bfd compilation problem for the version in gdb 4.18, I
> thought I would report this here first for a hint.
>
> gcc -DHAVE_CONFIG_H -I. -I../../gdb-4.18/bfd -I. -D_GNU_SOURCE -I.
> -I../../gdb-4.18/bfd -I../../gdb-4.18/bfd/../include -I../../gdb-4.18/bfd/../intl
> -I../intl -O2 -g -c ../../gdb-4.18/bfd/elf32-hppa.c
> In file included from ../../gdb-4.18/bfd/elf32-hppa.h:36,
> from ../../gdb-4.18/bfd/elf32-hppa.c:199:
> ../../gdb-4.18/bfd/../include/elf/hppa.h:184: `elf32_hppa_reloc_type'
> redeclared as different kind of symbol
> ../../gdb-4.18/bfd/../include/elf/hppa.h:100: previous declaration of
> `elf32_hppa_reloc_type'
>
> When I look at the file include/elf/hppa.h, I see that around line 184 is
> this:
>
> #ifndef RELOC_MACROS_GEN_FUNC
> typedef enum elf32_hppa_reloc_type elf32_hppa_reloc_type;
> #endif
>
> No other elf/*.h file has anything like this. Is the problem solution to
> remove these three lines?
>
> --joel
> Joel Sherrill, Ph.D. Director of Research & Development
> joel@OARcorp.com On-Line Applications Research
> Ask me about RTEMS: a free RTOS Huntsville AL 35805
> Support Available (256) 722-9985
>
>