From owner-freebsd-doc Mon Jul 29 5:20:29 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEBBA37B400 for ; Mon, 29 Jul 2002 05:20:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48BCC43E3B for ; Mon, 29 Jul 2002 05:20:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6TCK6JU044114 for ; Mon, 29 Jul 2002 05:20:06 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6TCK6Bn044112; Mon, 29 Jul 2002 05:20:06 -0700 (PDT) Date: Mon, 29 Jul 2002 05:20:06 -0700 (PDT) Message-Id: <200207291220.g6TCK6Bn044112@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: John Baldwin Subject: RE: docs/41110: "apropos linux" doesn't find brandelf Reply-To: John Baldwin Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/41110; it has been noted by GNATS. From: John Baldwin To: Rich Morin Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: RE: docs/41110: "apropos linux" doesn't find brandelf Date: Mon, 29 Jul 2002 08:14:35 -0400 (EDT) On 29-Jul-2002 Rich Morin wrote: > >>Number: 41110 >>Category: docs >>Synopsis: "apropos linux" doesn't find brandelf >>Confidential: no >>Severity: non-critical >>Priority: low >>Responsible: freebsd-doc >>State: open >>Quarter: >>Keywords: >>Date-Required: >>Class: doc-bug >>Submitter-Id: current-users >>Arrival-Date: Mon Jul 29 00:40:04 PDT 2002 >>Closed-Date: >>Last-Modified: >>Originator: Rich Morin >>Release: FreeBSD 4.5-RELEASE i386 >>Organization: > Canta Forda Computer Laboratory >>Environment: > > FreeBSD cfcl.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: > Mon Jan 28 14:31:56 GMT 2002 > murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386 > >>Description: > > I recently tried to run a Linux binary on my FreeBSD 4.5 > system, getting the following nastygram: > > ELF binary type "0" not known. > Abort trap > > Using file(1) on the binary, I got: > > ELF 32-bit LSB executable, Intel 80386, version 1, statically > > I tried an "apropos linux" with no success, and had to be > bailed out by someone on freebsd-questions. > > >>How-To-Repeat: > > % apropos linux > >>Fix: > > One possible fix would be to expand the brandelf "NAME" line: > > brandelf - mark an ELF binary for a specific ABI (eg, Linux) > > A more general solution would be to add a "linux" page (eg, in > section 7), talking about known issues with Linux compatibility > mode, etc. Since brandelf can be used for OSF/1 binaries (on alpha), Solaris binaries, etc., the more general solution is preferred. :) linux(7) (or maybe linux(4)) could also explain the /compat/linux magic. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message