[Build failure] Cygwin GDB multibuild failure

Dave Korn dave.korn.cygwin@googlemail.com
Tue Jun 23 00:04:00 GMT 2009


Pierre Muller wrote:
> When I try to build GDB
> with --enable-targets=all --enable-64bit-bfd
> I get the following error:

> ../../purecvs/bfd/plugin.c: In function `load_plugin':
> ../../purecvs/bfd/plugin.c:206: error: structure has no member named
> `d_type'

> There is no d_type field for dirent structure on the currently distributed 
> cygwin. It seems that this field has been added recently
> in winsup directory, but is it possible to fix that build failure
> nonetheless?

  As far as I can see, POSIX guarantees nothing beyond the presence of d_ino
and d_name[], so use of d_type should probably be protected by some kind of
autoconf test.  I don't know if there already is a suitable one or not.

    cheers,
      DaveK



More information about the Binutils mailing list