From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 2 15:24:57 2005 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A4AE16A4CE for ; Wed, 2 Mar 2005 15:24:57 +0000 (GMT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EEB243D1F for ; Wed, 2 Mar 2005 15:24:56 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) j22FOsWW055045; Wed, 2 Mar 2005 16:24:54 +0100 (CET) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.11/8.12.10/Submit) id j22FOnlI055044; Wed, 2 Mar 2005 16:24:49 +0100 (CET) (envelope-from marius) Date: Wed, 2 Mar 2005 16:24:49 +0100 From: Marius Strobl To: Joerg Wunsch Message-ID: <20050302162448.A54517@newtrinity.zeist.de> References: <20050302145151.GC2266@ida.interface-business.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20050302145151.GC2266@ida.interface-business.de>; from j@ida.interface-business.de on Wed, Mar 02, 2005 at 03:51:51PM +0100 X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-6; AVE: 6.30.0.2; VDF: 6.30.0.8; host: newtrinity.zeist.de) cc: freebsd-sparc64@freebsd.org Subject: Re: RELENG_5: zs(4) does not link without sbus X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 15:24:57 -0000 On Wed, Mar 02, 2005 at 03:51:51PM +0100, Joerg Wunsch wrote: > When trying to configure a kernel that has "device zs" but no > "device sbus", linking fails: > > linking kernel > zs.o(.text+0x4a4): In function `zstty_attach': > : undefined reference to `zstty_console' > zs.o(.text+0x1064): In function `zstty_param': > : undefined reference to `zstty_set_speed' > *** Error code 1 > > Is zs supposed to depend on sbus? There's no man page for it, so I > can't tell. > Sort of, one needs either fhc(4) or sbus(4) (or powermac(4) on powerpc) so the front-end is built. Not sure if it is a good idea to change sys/conf/files to build zs.c only when the respective front-end is also built, if a machine doesn't have a bus zs(4) can hang off from it doesn't make much sense to add zs(4) to its kernel config file in the first place. The current behaviour at least serves as a hint that zs(4) can be removed from the kernel config file... Marius