gcc-3.2-3: bootstrap build fails (HAVE_DECL_GETOPT not in config.h?)

Michael H. Cox mhcox@bluezoosoftware.com
Wed Nov 20 11:52:00 GMT 2002


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/



More information about the Cygwin mailing list