From owner-freebsd-current Sun Sep 22 21:54:51 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D954C37B401; Sun, 22 Sep 2002 21:54:49 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D04643E42; Sun, 22 Sep 2002 21:54:49 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 0F8B09E57; Mon, 23 Sep 2002 00:48:01 -0400 (EDT) Date: Mon, 23 Sep 2002 00:48:01 -0400 From: Mike Barcroft To: Tim Robbins Cc: Garrett Wollman , Steve Kargl , Poul-Henning Kamp , current@FreeBSD.ORG Subject: Re: Who broke sort(1) ? Message-ID: <20020923004801.I91924@espresso.q9media.com> References: <63403.1032725861@critter.freebsd.dk> <20020922204338.GA4971@troutmask.apl.washington.edu> <20020923122935.A6108@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020923122935.A6108@dilbert.robbins.dropbear.id.au>; from tjr@FreeBSD.ORG on Mon, Sep 23, 2002 at 12:29:35PM +1000 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tim Robbins writes: > On Sun, Sep 22, 2002 at 01:43:38PM -0700, Steve Kargl wrote: > > On Sun, Sep 22, 2002 at 10:17:41PM +0200, Poul-Henning Kamp wrote: > > > > > > flat# date | sort +5n > > > sort: open failed: +5n: No such file or directory > > > > > > This breaks the build in libncurses... > > > > > > > POSIX via wollman. > > > > See revision 1.58 of /usr/include/unistd.h, i.e., > > > > /* Define the versions we target for compliance. */ > > #define _POSIX_VERSION 200112L > > #define _POSIX2_VERSION 200112L > > > > > > See email in the last 24 hours from walt about > > problems building libc and Tim Robbins response > > to the problem. > > I didn't read src/contrib/gnu-sort/lib/posixver.c carefully enough to > notice that it uses the the _POSIX2_VERSION macro, I thought it only used > the environment variable by that same name. > > A workaround might be to #undef _POSIX2_VERSION after #include'ing > in posixver.c but I don't think that would be correct. It's probably better > to either change all the scripts that use the obsolescent +pos -pos syntax > to use the new -k syntax or to change _POSIX2_VERSION back to whatever it > was before. I think the second is more realistic. I think we'd really like to target POSIX 2001 for 5.0-RELEASE, so the first solution would be best. Temporarily backing out the updated POSIX version bump might not be a bad idea if this is a task which will take a while. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message