From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/678 Path: news.gmane.org!not-for-mail From: Isaac Dunham 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 17:18:00 -0700 Message-ID: <20120403171800.02e68fac@newbook> References: <20120403160925.745f0985@newbook> <20120403231623.GC19703@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1333498698 7066 80.91.229.3 (4 Apr 2012 00:18:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2012 00:18:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-679-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 04 02:18:17 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 1SFDvT-0000DZ-Na for gllmg-musl@plane.gmane.org; Wed, 04 Apr 2012 02:18:15 +0200 Original-Received: (qmail 30245 invoked by uid 550); 4 Apr 2012 00:18:15 -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 30237 invoked from network); 4 Apr 2012 00:18:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=37EQnfhGaowTA/BRBfR0zvHhmFsuaWQDuSQU/8/c3uW6VIdtyLv0BsTVedL2LIggRc9lyeTKpcV6UTIRgHHTaZmCPyto1g9sd2j+tdx10ZibwrjnLH6OVjZM/nDhlSJdl17GIFTQFhbrf2IHg0F9JexOZetvqGXPwTKJNJ+TQXk=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20120403231623.GC19703@brightrain.aerifal.cx> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:678 Archived-At: On Tue, 3 Apr 2012 19:16:23 -0400 Rich Felker wrote: > 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. > Figured out the problem: I had CFLAGS = -fno-stack-protector instead of CFLAGS += -fno-stack-protector In theory, it would be possible to avoid erroring on this by moving -include config.mak to the top, using ?= instead of = for most variables, and using += for CFLAGS. But this might also allow other problems for those with less sane default CFLAGS... Also, putting *_LIBS in the section before config.mak does allow freedom to shoot oneself in the foot in a similar manner--but if someone can figure out that, they can probably find several more ways to break it.