delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/20/14:03:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <mhcox AT bluezoosoftware DOT com>
From: "Michael H. Cox" <mhcox AT bluezoosoftware DOT com>
To: <cygwin AT cygwin DOT com>
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: <NDBBJEBGAAGAIKPGOOFIIEBMDMAA.mhcox@bluezoosoftware.com>
MIME-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019