This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: gcc-3.2-3: bootstrap build fails (HAVE_DECL_GETOPT not in config.h?)
- From: "Michael H. Cox" <mhcox at bluezoosoftware dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 20 Nov 2002 12:02:27 -0700
- Subject: RE: gcc-3.2-3: bootstrap build fails (HAVE_DECL_GETOPT not in config.h?)
- Reply-to: <mhcox at bluezoosoftware dot com>
I did a google search to try to find specs for unistd.h. I found this link:
http://www.opengroup.org/onlinepubs/007908799/xsh/unistd.h.html
Not sure how authoritative it is, but it seems to say unistd.h should either
directly or indirectly declare getopt(). I think getopt.h in gcc is an
implementation detail of gcc. There is a getopt.h in /usr/include but I
think that's an implementation detail of unistd.h. Also, noticed that the
getopt.h in
/usr/include is different from the getopt.h in gcc (?).
Mike
> -----Original Message-----
> I have the same problem and i suspect that this is due to the definition
> of getopt in unistd.h. IMHO this should be only in getopt.h or unistd.h
> should define HAVE_DECL_GETOPT too. As a workaround i have removed the
> declaration of getopt in gcc's getopt.h.
>
> Thomas
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/