delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/11/11:16:50

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <4877793E.7000003@etr-usa.com>
Date: Fri, 11 Jul 2008 09:16:14 -0600
From: Warren Young <warren AT etr-usa DOT com>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
To: Cygwin-L <cygwin AT cygwin DOT com>
Subject: Re: Compiling cdecl and c++decl for cygwin?
References: <18404720 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <18404720.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

leeand00 wrote:
> 
> cdecl.c:141: error: conflicting types for 'setprogname'
> /usr/include/cygwin/stdlib.h:22: error: previous declaration of
> 'setprogname' was here

Remove line 141 from cdecl.c.  It's almost certainly a C prototype, 
included for some blinkered system where that function isn't declared in 
one of the system headers.  On Cygwin, it's obviously declared in stdlib.h.

> In file included from /usr/include/sys/unistd.h:159,
>                  from /usr/include/unistd.h:4,
>                  from lex.yy.c:588,
>                  from cdecl.c:193:
> /usr/include/getopt.h:52: error: conflicting types for 'getopt'
> cdecl.c:127: error: previous declaration of 'getopt' was here

Same thing here: line 127 doesn't need to be there, for Cygwin at least.

> cdecl.c:402: warning: assignment makes pointer from integer without a cast

You can ignore it, since it's just a warning.  If you want to fix it, 
it's probably trivial.  I'm not all that interested in downloading the 
source to debug it, though.

> cdecl.c:1255: warning: assignment from incompatible pointer type

Ditto.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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