This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]