From owner-freebsd-current Tue Sep 24 13:30:13 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 B511537B401; Tue, 24 Sep 2002 13:30:11 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73EBD43E86; Tue, 24 Sep 2002 13:30:11 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 5EF752A7D6; Tue, 24 Sep 2002 13:30:11 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Tim Robbins Cc: Steve Kargl , Poul-Henning Kamp , current@FreeBSD.ORG Subject: Re: Who broke sort(1) ? In-Reply-To: <20020923122935.A6108@dilbert.robbins.dropbear.id.au> Date: Tue, 24 Sep 2002 13:30:11 -0700 From: Peter Wemm Message-Id: <20020924203011.5EF752A7D6@canning.wemm.org> 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 wrote: > 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. Oh man, this is going to suck. There are thousands and thousands of third party scripts that use +n syntax. I am most unhappy with this change. :-( Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message