From owner-freebsd-questions Wed Jul 24 21:50: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7132D37B41D for ; Wed, 24 Jul 2002 21:49:53 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB20743E88 for ; Wed, 24 Jul 2002 21:49:52 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g6P4nn3E078849; Wed, 24 Jul 2002 23:49:49 -0500 (CDT) (envelope-from dan) Date: Wed, 24 Jul 2002 23:49:49 -0500 From: Dan Nelson To: Eric Dedrick Cc: Adam Weinberger , freebsd-questions@FreeBSD.ORG Subject: Re: linux compatability broken Message-ID: <20020725044949.GD68693@dan.emsphone.com> References: <20020725032456.GC68693@dan.emsphone.com> <20020724225105.L21520-100000@dsl-146-127.resnet.purdue.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020724225105.L21520-100000@dsl-146-127.resnet.purdue.edu> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jul 24), Eric Dedrick said: > Okay, we got it. I had to run linux_base-6 and *not* any type of > linux_base (7.1) whatsoever. > > Since it would appear that running linux_base-6 and linux_base(7.1) are > mutually exclusive (after all, they run non-compatable versions of glibc), > here's a question: I have some software I can't upgrade (proprietary) > that requires linux_base-6. If I install linux software from the ports, > is it going to require linux_base 7.1? You should be able to install both ports at once. > Here was the hangup: In order to install linux_base-6, svr4.ko had to be > unloaded from the kernel. Once linux_base-6 was installed, svr4.ko could > be loaded again and things still worked just fine. At least that's what I > think the solution was. > > At any rate, I can run my linux binaries now, though I am still somewhat > dis-satisfied. Why do things break under 7.1 and not 6? Dunno. It looks like all your linux binaries got branded to the wrong type (svr4 instead of Linux), so the svr4 layer grabbed them first if it was loaded. Try this: find /compat/linux -type f -perm +a+x -ls | xargs brandelf -t Linux , which should rebrand all the Linux binaries to Linux. It shouldn't be necessary though. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message