From owner-freebsd-current Sun Sep 22 19:30: 0 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 BB15237B401; Sun, 22 Sep 2002 19:29:58 -0700 (PDT) Received: from smtp01.iprimus.net.au (smtp01.iprimus.net.au [210.50.30.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4EEB43E42; Sun, 22 Sep 2002 19:29:57 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au ([210.50.44.104]) by smtp01.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.4617); Mon, 23 Sep 2002 12:29:41 +1000 Received: from dilbert.robbins.dropbear.id.au (v57od2jfftolawyj@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id g8N2TcCj006655; Mon, 23 Sep 2002 12:29:39 +1000 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id g8N2TakG006654; Mon, 23 Sep 2002 12:29:36 +1000 (EST) (envelope-from tim) Date: Mon, 23 Sep 2002 12:29:35 +1000 From: Tim Robbins To: Steve Kargl Cc: Poul-Henning Kamp , current@FreeBSD.ORG Subject: Re: Who broke sort(1) ? Message-ID: <20020923122935.A6108@dilbert.robbins.dropbear.id.au> References: <63403.1032725861@critter.freebsd.dk> <20020922204338.GA4971@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020922204338.GA4971@troutmask.apl.washington.edu>; from sgk@troutmask.apl.washington.edu on Sun, Sep 22, 2002 at 01:43:38PM -0700 X-OriginalArrivalTime: 23 Sep 2002 02:29:42.0343 (UTC) FILETIME=[12C10570:01C262A9] 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 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. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message