Re: [PATCH v3 10/13] don't check for unistd.h

Eli Zaretskii
2013-11-19T21:08:07Z

> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Date: Tue, 19 Nov 2013 18:55:47 -0200
>
> I am not totally sure this is related,
> but I got a new error when trying to cross compile
> for i686-w64-mingw32 using cygwin.
> m32r-rom.o: dans la fonction Â« m32r_upload_command Â»:
> /home/Pierre/git/build/binu-gdb-mingw32/gdb/../../../binutils-gdb/gdb/m32r-r
> om.c:472: rÃ©fÃ©rence indÃ©finie vers Â«
> _imp__gethostname_used_without_requesting_gnulib_module_gethostname@8 Â»
> collect2: erreur: ld a retournÃ© 1 code d'Ã©tat d'exÃ©cution
>
> I tried to run ./config.status --recheck; make
> but that did not solve the problem...
>
> To double check, I completely erased the build directory
> and reran the "../build/XXX/configure" with required options
> and "make all-gdb": Same error...
>
> Could someone double-check if this is a general problem
> with mingw target?

It's a real problem, and comes with gnulib, see
gdb/gnulib/import/unistd.in.h. (Isn't the error message
self-explanatory enough?)