| www.delorie.com/archives/browse.cgi | search |
| 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 |
| Date: | Tue, 17 Dec 2002 16:52:32 +0100 (CET) |
| From: | Joerg Schilling <schilling AT fokus DOT gmd DOT de> |
| Message-Id: | <200212171552.gBHFqWSJ006116@burner.fokus.gmd.de> |
| To: | cygwin-developers AT cygwin DOT com, tpfaff AT gmx DOT net |
| Subject: | Re: building the gcc-3.2-3 bootstrap fails on libstdc++-v3 |
>From: Thomas Pfaff <tpfaff AT gmx DOT net>
>> >../../../../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.
>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.
This would violate POSIX :-(
POSIX requires getopt() to be in unistd.h and does not even mention getopt.h
Jörg
EMail:joerg AT schily DOT isdn DOT cs DOT tu-berlin DOT de (home) Jörg Schilling D-13353 Berlin
js AT cs DOT tu-berlin DOT de (uni) If you don't have iso-8859-1
schilling AT fokus DOT fhg DOT de (work) chars I am J"org Schilling
URL: http://www.fokus.fhg.de/usr/schilling ftp://ftp.berlios.de/pub/schily
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |