delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/18/18:41:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
To: cygwin AT cygwin DOT com
Date: Wed, 19 Sep 2001 00:38:45 +0200
MIME-Version: 1.0
Subject: Re: Problems compiling rsync with latest update
Reply-to: gp AT familiehaase DOT de
Message-ID: <3BA7E915.20679.2A7B0EE1@localhost>
In-reply-to: <20010918142959.A4544@redhat.com>
References: <20010918182145 DOT 52059 DOT qmail AT web10403 DOT mail DOT yahoo DOT com>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)
X-Hops: 1
X-Sender: 320081107336-0001 AT t-dialin DOT net

Christopher Faylor schrieb am 2001-09-18, 14:29:

>On Tue, Sep 18, 2001 at 11:21:45AM -0700, Kevin Takenaga wrote:
>>I'm getting the following output when I try to compile
>>rsync against the latest sources:
>>
>>bash-2.05$ make
>>gcc -I. -I. -O -c rsync.c -o rsync.o
>>In file included from /usr/include/unistd.h:7,
>>                 from rsync.h:87,
>>                 from rsync.c:23:
>>/usr/include/getopt.h:41: redefinition of `struct
>>option'
>>/usr/include/getopt.h:56: conflicting types for
>>`getopt_long'
>>lib/getopt.h:107: previous declaration of
>>`getopt_long'
>>make: *** [rsync.o] Error 1
>>
>>I noticed there was a change to the getopt.h in the
>>last cygwin update.
>
>The last update to getopt.h was in 2000/10/28.
>
>cgf

Hi Chris,

I have problems, too now.
It is because getopt.h gets included by unistd.h now.

That is a saved unistd.h (saved at date 2001-05-21):
========================
#ifndef _UNISTD_H_
#define _UNISTD_H_

# include <sys/unistd.h>

#endif /* _UNISTD_H_ */

Now it looks like this:
========================
/* unistd.h for Cygwin. */

#ifndef _UNISTD_H_
#define _UNISTD_H_

# include <sys/unistd.h>
# include <getopt.h>

#endif /* _UNISTD_H_ */

I found no ChangeLog entries which refer to a change
in <unistd.h>. Is it recorded somewhere else?
I don't want to get <getopt.h> included automatically if I include
 <unistd.h>.
If I need <getopt.h> I would like to include it separatly.

I think this change in <unistd.h> causes my problems.

Gerrit


-- 
=^..^=

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