From owner-freebsd-questions Thu Dec 26 14:11:13 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 EB6FF37B401; Thu, 26 Dec 2002 14:11:11 -0800 (PST) Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BA6043F0A; Thu, 26 Dec 2002 14:11:09 -0800 (PST) (envelope-from citylink.dinoex.sub.org!pmc@citylink.dinoex.sub.org) Received: from net2.dinoex.sub.org (uucp@net2.dinoex.de [212.184.201.182]) by net2.dinoex.sub.org (8.12.6/8.12.6) with ESMTP id gBQM7Lbc002168; Thu, 26 Dec 2002 23:07:23 +0100 (CET) (envelope-from citylink.dinoex.sub.org!pmc@citylink.dinoex.sub.org) X-Authentication-Warning: net2.dinoex.sub.org: Host uucp@net2.dinoex.de [212.184.201.182] claimed to be net2.dinoex.sub.org Received: from citylink.dinoex.sub.org (uucp@localhost) by net2.dinoex.sub.org (8.12.6/8.12.6/Submit) with UUCP id gBQM7KmN002167; Thu, 26 Dec 2002 23:07:20 +0100 (CET) (envelope-from citylink.dinoex.sub.org!pmc@citylink.dinoex.sub.org) Received: from disp.oper.dinoex.org by citylink.dinoex.sub.org (8.8.5/PMuch-B3b) with ESMTP id JAA11854; Thu, 26 Dec 2002 09:35:35 +0100 (CET) Received: (from pmc@localhost) by disp.oper.dinoex.org (8.11.6/8.11.6) id gBQ8j2H40859; Thu, 26 Dec 2002 09:45:02 +0100 (CET) (envelope-from pmc) From: Peter Much Message-Id: <200212260845.gBQ8j2H40859@disp.oper.dinoex.org> Subject: linux_base port install -> sig 12 (brandelf/SVR4) To: freebsd-questions@freebsd.org, freebsd-emulation@freebsd.org Date: Thu, 26 Dec 2002 09:45:02 +0100 (CET) Cc: david@skytrackercanada.com, andrey@hm.perm.ru, leth@primus.ca, unicorn@blackhats.org, dwcjr@inethouston.net X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Over last months, quite a couple of people complained that they couldn't install linux_base from ports. There is currently no clue given in replies about any reason for that failure. I am sure now that these people had activated the svr4.ko kernel module (rsp. svr4_enable="YES" in rc.conf). Some people also complained that various linux binaries did not work anymore since upgrading to 4.7. The point here is that nearly all of the linux binaries have an brandelf of "0", that is SYSV, and not "3" aka Linux. The behaviour of this looks a little fuzzy alltogether, but as long as svr4.ko is not loaded and sysctl kern.fallback_elf_brand is set to "3" (the port takes care of the latter), most things seem to work. If fallback_elf_brand is not set, then dynamic linked binaries will still work, but static ones will not work except after they get a "brandelf -t Linux". After svr4.ko is loaded, this looks a bit different: The kern.fallback_elf_brand variable has then no influence anymore. Static binaries with brandelf="0" will then run into sig-12, and those with brandelf="3" will complain about a missing ELF-Interpreter in /compat/svr4 (should this happen?). Dynamic binaries with brandelf="0" will also complain about the missing interpreter in /compat/svr4, only dynamic ones with brandelf="3" will still work. PMc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message