Subject: Re: building tools fails
To: Werner Backes <werner@bit-1.de>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 06/05/2004 12:52:48
On Sat, Jun 05, 2004 at 08:20:52PM +0200, Werner Backes wrote:
>
>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?

if you can do that, that will work fine.  alternately, borrowing a
sysctl binary and libc from ~2.0E should work, too.

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

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."