From owner-freebsd-questions@FreeBSD.ORG Wed Sep 22 10:38:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF65116A4CE for ; Wed, 22 Sep 2004 10:38:51 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EDFE43D58 for ; Wed, 22 Sep 2004 10:38:48 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (host5.bedc.ondsl.gr [62.103.39.229])i8MAcjwv031631; Wed, 22 Sep 2004 13:38:45 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) i8MAcZwp085968; Wed, 22 Sep 2004 13:38:35 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)i8MAcZsS085967; Wed, 22 Sep 2004 13:38:35 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 22 Sep 2004 13:38:35 +0300 From: Giorgos Keramidas To: Phil Payne Message-ID: <20040922103835.GA85905@orion.daedalusnetworks.priv> References: <1095692181.643.3.camel@gw.internal> <1095708454.643.10.camel@gw.internal> <1095710679.643.12.camel@gw.internal> <1095848367.4475.15.camel@gw.internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1095848367.4475.15.camel@gw.internal> cc: freebsd-questions@freebsd.org Subject: Re: make installkernel help required. (ANSWER... sort of) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2004 10:38:52 -0000 On 2004-09-22 11:19, Phil Payne wrote: > After having another search of the archives and seeing someone suggest > they were having make problems in X: > (http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-September/058300.html) > > ... I ran the make installkernel outside of X (i.e. in a console) and it > works fine. > > Try to run it in aterm or xterm and you get the "can't shift that many" > error. > > I cannot pretend to know anything about why this is the case. This error seems to be caused by some sort of mishandling of nls.alias when this command runs: : cd /usr/share/nls; set - `grep "^[a-zA-Z]" /usr/src/etc/nls.alias`; : while [ $# -gt 0 ] ; do rm -rf "$1"; ln -s "$2" "$1"; shift; shift; : done : shift: can't shift that many : *** Error code 2 : : Stop in /usr/src/etc. For this to work correctly, the file /usr/src/etc/nls.alias should contain pairs of words, as shown below: : # $FreeBSD: src/etc/nls.alias,v 1.5 2003/06/10 01:22:30 ache Exp $ : : POSIX C : en_US.US-ASCII C Two questions that come to my mind are: 1. Have you changed this file in any way? 2. What are the locale settings of your environment when this fails, i.e. what does this print? $ env | grep '^L[AC]' | sort - Giorgos