Subject: Re: building tools fails
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Werner Backes <werner@bit-1.de>
List: current-users
Date: 06/05/2004 20:20:52
Izumi Tsutsui wrote:

>
>What does "sysctl -n hw.machine_arch" show on your system?
>(kernel vs userland version mismatch?)
>  
>
bash-2.05b# sysctl -n hw.machine_arch
sysctl: top level name 'hw' in 'hw.machine_arch' is invalid

I think you are right, this seems like a version mismatch:

bash-2.05b# uname -a
NetBSD firebird 2.0E NetBSD 2.0E (FIREBIRD) #3: Mon Apr 26 01:53:30 CEST 
2004  root@firebird:/usr/src/sys/arch/i386/compile/FIREBIRD i386

bash-2.05b# file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
for NetBSD 1.6ZK, dynamically linked (uses shared libs), not stripped

It seems that I forgot to update userland when I went from 1.6ZK to 2.0E.
What is the easiest way to recover from this? Get an older (1.6ZK) kernel
and try to recompile userland?

Werner

p.s.: thanks for the fast response :)