Subject: Re: FATAL: kernel too old
To: None <current-users@NetBSD.org>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: current-users
Date: 05/19/2002 12:45:15
On April 17, 2002 01:04 pm, D'Arcy J.M. Cain wrote:
> I get this message when I try to build any Linux program from pkgsrc.
> Here is a sample of the actual output.
>
> /usr/pkg/emul/linux/sbin/ldconfig -r /usr/pkg/emul/linux
> FATAL: kernel too old
> *** Signal 6

I have tried to find this problem but it seems to be in the Linux binaries.  
Here is a ktrace I did when I see the problem.

 21854 ktrace   EMUL  "netbsd"
 21854 ktrace   RET   ktrace 0
 21854 ktrace   CALL  execve(0xbfbfda57,0xbfbfd98c,0xbfbfd99c)
 21854 ktrace   NAMI  "/usr/pkg/emul/linux/sbin/ldconfig"
 21854 ldconfig EMUL  "linux"
 21854 ldconfig RET   oldolduname -1 errno -2 No such file or directory
 21854 ldconfig CALL  [221]
 21854 ldconfig RET   [221] -1 errno -38 Too many processes
 21854 ldconfig CALL  fcntl(0,0x1,0)
 21854 ldconfig RET   fcntl 0
 21854 ldconfig CALL  fcntl(0x1,0x1,0xbfbfd928)
 21854 ldconfig RET   fcntl 0
 21854 ldconfig CALL  fcntl(0x2,0x1,0)
 21854 ldconfig RET   fcntl 0
 21854 ldconfig CALL  uname(0xbfbfd750)
 21854 ldconfig RET   uname 0
 21854 ldconfig CALL  write(0x2,0x8094d69,0x16)
 21854 ldconfig GIO   fd 2 wrote 22 bytes
       "FATAL: kernel too old
       "
 21854 ldconfig RET   write 22/0x16
 21854 ldconfig CALL  rt_sigprocmask(0x1,0xbfbfd5ec,0,0x8)
 21854 ldconfig RET   rt_sigprocmask 0
 21854 ldconfig CALL  getpid
 21854 ldconfig RET   getpid 21854/0x555e
 21854 ldconfig CALL  kill(0x555e,0x6)
 21854 ldconfig PSIG  SIGABRT SIG_DFL
 21854 ldconfig NAMI  "ldconfig.core"

Am I reading this right that it is a problem with uname emulation?  I tried 
running a Linux uname binary with the same result.

-- 
D'Arcy J.M. Cain <darcy@netbsd.org>
http://www.NetBSD.org/