gdb aix4.1.5 build failure

Clinton Popetz cpopetz@cygnus.com
Fri May 5 16:11:00 GMT 2000


On Fri, May 05, 2000 at 09:55:10PM +0200, Philippe De Muyter wrote:
> Andrew Cagney wrote :
> > Philippe De Muyter wrote:
> > > 
> > > For some days now, gdb does not compile anymore on aix4.1.5 :
> > > 
> > > gcc -c -g -O2    -I. -I/src/gdb -I/src /gdb/config -DHAVE_CONFIG_H
> > > -I/src/gdb/../include/opcode -I/src/gdb/../readline/.. -I../bfd
> > > -I/src/gdb/../bfd  -I/src/gdb/../include -I../intl -I/src/gdb/../intl
> > > -I/src/gdb/tui  -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
> > > -Wparentheses -Wpointer-arith  /src/gdb/rs6000-nat.c
> > > In file included from /usr/include/a.out.h:28,
> > >                  from /usr/include/sys/user.h:55,
> > >                  from /src/gdb/rs6000-nat.c:38:
> > > /src/gdb/../bfd/xcoff.h:127: warning: `struct internal_reloc' declared inside parameter list
> > > /src/gdb/../bfd/xcoff.h:127: warning: its scope is only this definition or declaration,
> > > /src/gdb/../bfd/xcoff.h:127: warning: which is probably not what you want.
> > > /src/gdb/../bfd/coffswap.h: In function `coff_swap_reloc_in':
> > > In file included from /src/gdb/../bfd/coffcode.h:310,
> > >                  from /src/gdb/../bfd/xcoff.h:151,
> > >                  from /usr/include/a.out.h:28,
> > >                  from /usr/include/sys/user.h:55,
> > >                  from /src/gdb/rs6000-nat.c:38:
> > > /src/gdb/../bfd/coffswap.h:229: `RELOC' undeclared (first use this function)
> > > /src/gdb/../bfd/coffswap.h:229: (Each undeclared identifier is reported only once
> > > /src/gdb/../bfd/coffswap.h:229: for each function it appears in.)
> > 
> > Was this the trunk or branch?  I have a feeling the problem is from
> > recent BFD changes.
> 
> It's from cvs without any option, so I suppose that's the trunk.
> I thought that Clinton Popetz read the list, but that does not seem to be
> the case.

Ok, my bfd/xcoff.h is being mistaken for the aix /usr/include/xcoff.h.  I'll
rename it to xcoff-target.h.

Sorry about that.

				-Clint


More information about the Gdb-patches mailing list