delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/24/13:36:01

X-Spam-Check-By: sourceware.org
Date: Tue, 24 Jan 2006 13:35:52 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Errors compiling cdrtools under cygwin 1.5.19
Message-ID: <20060124183552.GA2889@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <012420061825 DOT 2204 DOT 43D671090006A0AD0000089C22092299270A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <012420061825.2204.43D671090006A0AD0000089C22092299270A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Tue, Jan 24, 2006 at 06:25:13PM +0000, Eric Blake wrote:
>somebody wrote:
>>I don't know if cygwin's interface can easily be changed, but
>>considering that Jörg doesn't seem to be willing to modify his code,
>>what do you think that could be done to solve this problem?  I hope
>>that a solution can be found, because cdrdao and cdrtools are really
>>great software...
>
>The only thing cygwin could do here is to make sure that the definition
>of getline is not visible if _POSIX_SOURCE is defined, since it is an
>extension to POSIX.  From what I know about Joerg, he is pretty
>insistent that his programs stick to standards, so if he uses
>_POSIX_SOURCE to protect himself from inheriting getline from system
>headers, then it is cygwin's fault that we do not yet isolate
>non-standard interfaces properly.

Linux seems to protect the getline and getdelim declarations with
__USE_GNU which is turned on if _GNU_SOURCE is defined.

This falls into the same category as my previous discussion about
_POSIX_SOURCE.  If a program builds without problem on linux, the goal
is for it to build without problem on cygwin.  It seems like the
unconditional addition of getline to the headers moves us a step back
from that goal.

cgf

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