delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/14/17:39:51

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C1A7F4B.B0CDFA9D@t-online.de>
Date: Fri, 14 Dec 2001 23:38:03 +0100
From: 520066587150-0001 AT t-online DOT de (Jerome BENOIT)
Reply-To: JGMBenoit AT Wanadoo DOT fr
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: [Fwd: unistd.h for Cygwin]
References: <3C1A6E9F DOT C41AE273 AT t-online DOT de> <20011214224603 DOT U740 AT cygbert DOT vinschen DOT de>
X-Sender: 520066587150-0001 AT t-dialin DOT net

Thanks for the responses:

The `gtopt.h' "is part of the GNU C Library"
and the one distributed by cygwin is copytighted by
"The Regents of the University of California".

Is there a conventional way to avoid the reading of the first one
distributed by Cygwin in view to read only the distributed by `tetex' ?

Is it dangerous to define "__GETOPT_H__" somewhere to do that ?

Thanks in advance,
Jerome BENOIT  


Corinna Vinschen wrote:header file distributed within tetex 
> 
> On Fri, Dec 14, 2001 at 10:26:55PM +0100, Jerome BENOIT wrote:
> >
> >
> > Jerome BENOIT wrote:
> > >
> > > Bonjour:
> > >
> > > I am rebuilding the tetex-beta package:
> > > I have just encountered  an error message
> > > which did not occur during the last built.
> > >
> > > ../kpathsea/getopt.h:99: redefinition of `struct option'
> > >
> > > The error comes out because the `/usr/include/getopt.h' is read before
> > > by `/usr/include/unistd.h' which reads two headers:
> > >
> > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> > > /* unistd.h for Cygwin. */
> > >
> > > #ifndef _UNISTD_H_
> > > #define _UNISTD_H_
> > >
> > > # include <sys/unistd.h>
> > > # include <getopt.h>
> > >
> > > #endif /* _UNISTD_H_ */
> > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> > >
> > > Is it a bug or a feature ?
> 
> A feature.  At least it's supposed to be one.  According to
> SUSv2 you have to include unistd.h to include the declaration
> of getopt() and friends:
> 
> http://www.opengroup.org/onlinepubs/007908799/xsh/getopt.html
> 
> Corinna
> 
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin AT cygwin DOT com
> Red Hat, Inc.
> 
> --
> 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/

-- 
  *º¤., ¸¸,.¤º*¨¨¨*¤    Jerome BENOIT, Ph.D.    *º¤., ¸¸,.¤º*¨¨¨*¤
                  Institute of Molecular Biology
               Friedrich-Schiller University of Jena
             Winzerlaer Strasse 10, Jena 07745, Germany
  *º¤., ¸¸,.¤º*¨¨¨*¤    JGMBenoit AT wanadoo DOT fr    *º¤., ¸¸,.¤º*¨¨¨*¤

--
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