Subject: Re: Linux emulation and ELF
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Rick Byers <rickb@iaw.on.ca>
List: current-users
Date: 03/09/1997 12:38:09
Sorry, I should have included this in the first message, I figured it was
probably common though.  Anyway, it's #45 (unimplemented plock):

   205 ktrace   RET   ktrace 0
   205 ktrace   CALL  execve(0xf7bfdd1f,0xf7bfdcd0,0xf7bfdcd8)
   205 ktrace   NAMI  "./ldd"
   205 ldd      EMUL  "svr4"
   205 ldd      RET   execve 0
   205 ldd      CALL  setegid(0xf7bfdc94)
   205 ldd      RET   setegid 0
   205 ldd      CALL  #45 (unimplemented plock)
   205 ldd      PSIG  SIGSYS SIG_DFL

I see it's trying to use svr4 emulation.  When I tried to compile without
COMPAT_SVR4, I got:

ld -z -Ttext F8100000 -e start -S -o netbsd ${SYSTEM_OBJ} vers.o
exec_elf32.o: Undefined symbol `_svr4_elf32_probe' referenced from data segment
*** Error code 1

I was finally able to rebuild without COMPAT_SVR4, I had to completely
start from scratch.  It even gave me errors when I did "make clean && make
depend && make".  I just removed by compile directory, and
re-configed/compiled.

It seems to be working now...

Thanks!

On Sat, 8 Mar 1997, Jason Thorpe wrote:

> On Sun, 9 Mar 1997 01:13:15 -0500 (EST) 
>  Rick Byers <rickb@iaw.on.ca> wrote:
> 
>  > So I went hunting.  I downloaded ldd from ftp.redhat.com, and it said bad
>  > system call as well!  I see someone posted this question quite a while
> 
> ...can you ktrace it?  What was the bad system call?
> 
> Jason R. Thorpe                                       thorpej@nas.nasa.gov
> NASA Ames Research Center                               Home: 408.866.1912
> NAS: M/S 258-6                                          Work: 415.604.0935
> Moffett Field, CA 94035                                Pager: 415.428.6939
> 

=========================================================================
Rick Byers                                      Internet Access Worldwide
rickb@iaw.on.ca                                      System Administrator
Welland, Ontario, Canada                                    (905)714-1400
http://www.iaw.on.ca/rickb/                         http://www.iaw.on.ca/