Subject: Re: Linux emulation problems
To: Michael Rauch <>
From: Martti Kuparinen <>
List: tech-pkg
Date: 11/14/2001 10:46:10
>> I'm trying to install StarOffice 6.0 beta on my NetBSD/i386
>> 1.5.3_ALPHA laptop. The setup.bin program dumps core with
>> the following output:
> Add 'ktrace -t cenis' at the second last line in soffice (the else 
> branch in the shell script you start) after the exec, so the line should 

I started the installation, copied /tmp/sv* to /tmp/so6/ and cancelled
the installation, then restarted setup from /tmp/so6. There isn't any
problem in finding the libs as reported by gdb. Here's the result from

   770 ktrace   EMUL  "netbsd"
   770 ktrace   RET   ktrace 0
   770 ktrace   CALL  execve(0xbfbfd760,0xbfbfd684,0xbfbfd68c)
   770 ktrace   NAMI  "/tmp/so6/setup.bin"
   770 ktrace   NAMI  "/emul/linux/lib/"
   770 ktrace   NAMI  "/emul/linux"
   770 ktrace   NAMI  "/emul/linux/lib/"
   770 setup.bin EMUL  "linux"
   770 setup.bin CALL  gettimeofday(0xbfbfcecc,0)
   770 setup.bin RET   gettimeofday 0
   770 setup.bin CALL  sched_yield
   770 setup.bin RET   sched_yield 0
   770 setup.bin CALL  select(0x6,0xbfbfcf5c,0,0xbfbfcedc,0xbfbfcecc)
   770 setup.bin RET   select 0
   770 setup.bin CALL  rt_sigprocmask(0x2,0,0xbfbfccdc,0x8)
   770 setup.bin RET   rt_sigprocmask 0
   770 setup.bin CALL  rt_sigsuspend(0xbfbfccdc,0x8)
   770 setup.bin PSIG  SIGSEGV SIG_DFL
   770 setup.bin NAMI  "setup.bin.core"

Is it crashing in rt_sigsuspend or how should this be interpreted?
I looked at the README file (when nothing helps you read the docs :-)
and found this:

	System requirements:
	- Linux Kernel version 2.2.13 or higher
	- glibc2 version 2.1.2 or higher
Then I remembered that our Linux kernel emulation is not 2.2.* but 2.0.*.
Could this be the actual problem, i.e. too old Linux emulation in NetBSD.
There isn't any references to unimplemented system calls or anything like
that though.

	localhost:~> /emul/linux/bin/uname -rs
	Linux 2.0.38
	localhost:~> uname -rs
	NetBSD 1.5.3_ALPHA