Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Michael H. Cox" To: Subject: RE: gcc-3.2-3: bootstrap build fails (HAVE_DECL_GETOPT not in config.h?) Date: Wed, 20 Nov 2002 12:02:27 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: <3DDB79BE.8040006@gmx.net> 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/