From owner-freebsd-current Thu Feb 6 17:53:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA22289 for current-outgoing; Thu, 6 Feb 1997 17:53:36 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA22280 for ; Thu, 6 Feb 1997 17:53:32 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id MAA08739; Fri, 7 Feb 1997 12:21:30 +1030 (CST) From: Michael Smith Message-Id: <199702070151.MAA08739@genesis.atrad.adelaide.edu.au> Subject: Re: linux ELF codine no go on 2.2 Gamma In-Reply-To: <199702062207.PAA18009@phaeton.artisoft.com> from Terry Lambert at "Feb 6, 97 03:07:27 pm" To: terry@lambert.org (Terry Lambert) Date: Fri, 7 Feb 1997 12:21:29 +1030 (CST) Cc: msmith@atrad.adelaide.edu.au, StevenR362@aol.com, rcarter@consys.com, current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 [[