Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 1997 12:21:29 +1030 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        terry@lambert.org (Terry Lambert)
Cc:        msmith@atrad.adelaide.edu.au, StevenR362@aol.com, rcarter@consys.com, current@freebsd.org
Subject:   Re: linux ELF codine no go on 2.2 Gamma
Message-ID:  <199702070151.MAA08739@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199702062207.PAA18009@phaeton.artisoft.com> from Terry Lambert at "Feb 6, 97 03:07:27 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert stands accused of saying:
> 
> % ln -s /compat/linux/.../somebinary ~/bin/somename
> % rehash
> % somename
> 
> ... BOOM!

Huh?  There's no earth-shattering KABOOM from that - that's what you get
now.

> Also, if I type "foo", it doesn't look for "foo" in my path, then for
> "foo" in the same path in the compat hierarchy using the subdirectories
> of compat as virtual "/".  The reason "compat" works at all is that
> it adulterates the path lookup using system calls *in the emulator's
> system call table*.  If you aren't running the program from a Linux
> binary (for instance, a Linux binary for your shell), then it won't
> look in compat when trying to find the program to run it.

... unless you have /compat/* on your path.

> But it's one mother of a kludge to get arough changing the ld program
> with the patches that John Polstra already submitted to the Linux and
> GNU people.  8-).

Given the latest glibc actually changes the dynamic linker to the _same_
path as the SysV one, I can only see the current situation getting worse.

All I'm proposing is adding an extra hint, that may help some people,
not trying to save the world.

> 					Terry Lambert

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702070151.MAA08739>