From owner-freebsd-emulation@FreeBSD.ORG Mon Oct 9 18:56:48 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1809816A416 for ; Mon, 9 Oct 2006 18:56:48 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from nibbel.kulnet.kuleuven.ac.be (nibbel.kulnet.kuleuven.ac.be [134.58.240.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id A20D243D93 for ; Mon, 9 Oct 2006 18:54:11 +0000 (GMT) (envelope-from tijl@ulyssis.org) Received: from localhost (localhost [127.0.0.1]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id F1DA74D2D9; Mon, 9 Oct 2006 20:53:59 +0200 (CEST) Received: from smtps01 (octavianus.kulnet.kuleuven.ac.be [134.58.240.71]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 65EFE4D2C1; Mon, 9 Oct 2006 20:53:59 +0200 (CEST) Received: from kalimero.kotnet.org (kalimero.kotnet.org [10.4.16.222]) by smtps01 (Postfix) with ESMTP id 7C8152E68CC; Mon, 9 Oct 2006 20:53:55 +0200 (CEST) Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.13.8/8.13.8) with ESMTP id k99IrnVA005873; Mon, 9 Oct 2006 20:53:53 +0200 (CEST) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: Boris Samorodov Date: Mon, 9 Oct 2006 20:53:45 +0200 User-Agent: KMail/1.9.4 References: <20061005231338.GB59300@math.jussieu.fr> <200610071257.21544.tijl@ulyssis.org> <92567122@srv.sem.ipt.ru> In-Reply-To: <92567122@srv.sem.ipt.ru> MIME-Version: 1.0 Content-Disposition: inline X-Length: 1645 X-UID: 2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200610092053.48369.tijl@ulyssis.org> X-Virus-Scanned: by KULeuven Antivirus Cluster Cc: freebsd-emulation@freebsd.org Subject: Re: Linux & Maple X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 18:56:48 -0000 On Saturday 07 October 2006 18:21, Boris Samorodov wrote: > On Sat, 7 Oct 2006 12:57:19 +0200 Tijl Coosemans wrote: > > In my case I've nailed it down to a problem with ls. The following > > shell script works with /bin/sh, but not with > > /usr/compat/linux/bin/sh. In the latter case it errors out with: > > > > ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF > > file OS ABI invalid > > That case seems to be a different one. Please, make sure that you > followed advices given at /usr/ports/UPDATING about upgrading (and > using) linux_base-fc4. Ok, I followed that. The sysctl values are the default ones: compat.linux.oss_version: 198144 compat.linux.osrelease: 2.4.2 compat.linux.osname: Linux There are no LD_* variables, so next I removed every linux port and /compat/linux and reinstalled linux_base-fc4. That made no difference. (This is an up to date current and ports have all recently been rebuilt.) The following programs under /compat/linux have this problem: /bin/date /bin/ls /bin/sleep Running /compat/linux/bin/date for instance gives: /compat/linux/bin/date: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid I think I've found the cause though. "/compat/linux/sbin/ldconfig -p" gives the following for librt.so.1: librt.so.1 (libc6, OS ABI: Linux 2.4.20) => /lib/librt.so.1 Changing the compat.linux.osrelease sysctl value from 2.4.2 to 2.4.20 solves the problem (matlab works in console mode, there's still a problem with java however so no graphical mode). The advice in /usr/ports/UPDATING mentioned that this sysctl value shouldn't be changed though, so perhaps this is simply a typo in the default value?