Subject: Re: Linux emulation problems
To: Brian de Alwis <bsd@cs.ubc.ca>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-users
Date: 06/05/2000 21:39:46
On Wed, May 31, 2000 at 10:48:17PM -0700, Brian de Alwis wrote:
> I've just installed a new system with 1.4.2, and installed
> a freshly compiled kernel (a GENERIC variant, stripping out
> some of the unneeded pseudo-devices). COMPAT_LINUX is there
> as is EXEC_ELF32. I've installed all the /usr/pkgsrc/emulators/suse_*
> packages. 
> 
> But I'm having two problems which seems to be related to
> unimplemented system calls.  I can't even run the Linux bash
> (/emul/linux/bin/bash), which it smells really fishy! It dumps core
> due to a `Bad system call':
> 
>     fifty:/emul/linux/bin[21](2)$ ../usr/bin/lddlibc5 ./bash
> 	    libncurses.so.4 => /lib/libncurses.so.4 (0x480d4000)
> 	    libdl.so.2 => /lib/libdl.so.2 (0x4811d000)
> 	    libc.so.6 => /lib/libc.so.6 (0x48120000)
> 	    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x480b9000)
>     fifty:/emul/linux/bin[22](2)$ ./bash
>     Bad system call
>     fifty:/emul/linux/bin[23](2)$ 
> 
> Here's the end of the ktrace of the execution:
> 
>     9805 bash     RET   getuid 1859/0x743
>     9805 bash     CALL  #164 (unimplemented setresuid)
>     9805 bash     PSIG  SIGSYS SIG_DFL
>     9805 bash     NAMI  "bash.core"

Are you root when you're running this ?
I don't know what setresuid is supposed to do ...

> 
> Now I *know* this works: I've a nearly identical system at home,
> which runs this with no problem.
> 
> Since one of my goals for this system is to run VisualAge for Java
> for Linux, I gave it a try. Running it produces a bunch of warnings:
> [...]
>     1078 ide      CALL  #120 (unimplemented clone)
>     1078 ide      PSIG  SIGSYS SIG_DFL
>     1078 ide      NAMI  "ide.core"
> 

No luck here; only -current implements clone.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--