delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/12/17/05:18:14

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
X-Authentication-Warning: atacama.four-d.de: mail set sender to <tpfaff AT gmx DOT net> using -f
Date: Tue, 17 Dec 2002 10:12:47 +0100 (=?ISO-8859-1?Q?Westeurop=E4ische_Normalzeit?=)
From: Thomas Pfaff <tpfaff AT gmx DOT net>
To: cygwin-developers AT cygwin DOT com
Subject: Re: building the gcc-3.2-3 bootstrap fails on libstdc++-v3
In-Reply-To: <F0E13277A26BD311944600500454CCD064EC3C@antarctica.intern.net>
Message-ID: <Pine.WNT.4.44.0212171005370.268-100000@algeria.intern.net>
X-X-Sender: pfaff AT antarctica DOT intern DOT net
MIME-Version: 1.0


On Mon, 16 Dec 2002, Christopher Faylor wrote:

> On Mon, Dec 16, 2002 at 03:26:27AM -0800, James Michael DuPont wrote:
> >As promised, I have started to check the releases
> >of cygwin by bootstrapping them.
> >This one got pretty far, all the way to libstdc++-v3.
> >
> >The error is :
> >../../../../include/getopt.h:115: declaration of C function `int
> >getopt()'
> >   conflicts with
> >/usr/include/sys/unistd.h:125: previous declaration `int getopt(int,
> >char*   const*, const char*)' here
>
> In case it isn't clear, I *do not care* about this problem. I am able to
> build gcc myself with no problem.  I *don't care* if it doesn't work for
> you since the fix is so completely trivial.
>
> If you want to suggest a fix that goes beyond making the obvious change
> to ../include/getopt.h, then send it to the gcc mailing list.
> Otherwise, these reports are just noise here.
>
> You've got a functional gcc compiler use it.  If you want to build it yourself,
> then fix the source and move on.
>
> How many times do I have to say this???


Chris,

IMHO the easiest way to fix this is to remove the getopt prototype from
unistd.h and include getopt.h instead. This will define HAVE_DECL_GETOPT
and the build will not fail. I might create a patch if you agree.

Otherwise you have to say this again and again i suppose.

Thomas

- Raw text -


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