From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/676 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: FTBFS on i386: aio_cancel.c relies on macro-protected defines in aio.h Date: Tue, 3 Apr 2012 19:16:23 -0400 Message-ID: <20120403231623.GC19703@brightrain.aerifal.cx> References: <20120403160925.745f0985@newbook> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1333494901 16460 80.91.229.3 (3 Apr 2012 23:15:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2012 23:15:01 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-677-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 04 01:14:58 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SFCwE-00035j-FS for gllmg-musl@plane.gmane.org; Wed, 04 Apr 2012 01:14:58 +0200 Original-Received: (qmail 5493 invoked by uid 550); 3 Apr 2012 23:14:58 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5485 invoked from network); 3 Apr 2012 23:14:57 -0000 Content-Disposition: inline In-Reply-To: <20120403160925.745f0985@newbook> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:676 Archived-At: On Tue, Apr 03, 2012 at 04:09:25PM -0700, Isaac Dunham wrote: > aio_cancel.c won't build. > It seems one of the _*_SOURCE macros must be defined to build it, and > I'm not sure which one (guessing it's _POSIX_SOURCE or _XOPEN_SOURCE ?). The default Makefile for musl has -D_XOPEN_SOURCE=700 in the CFLAGS. You cannot build the vast majority of musl if you remove this. > Just out of curiosity, is there a reason to macro-protect headers that > are not part of ANSI C when all other flavors support them? Indeed, this protection in aio.h seems to be a mistake. Normally I avoid that sort of thing; I'll fix it. But the rest of musl will still fail to build with the missing feature test macro. Rich