From owner-freebsd-questions@FreeBSD.ORG Mon Feb 11 18:28:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEFEB16A47D for ; Mon, 11 Feb 2008 18:28:36 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id CA4CE13C43E for ; Mon, 11 Feb 2008 18:28:36 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [172.18.0.232] (showcase.tulsatech.org [70.168.226.150]) by a.cs.okstate.edu (Postfix) with ESMTP id E26BC154C0E; Mon, 11 Feb 2008 12:30:41 -0600 (CST) Message-ID: <47B09353.3030106@cs.okstate.edu> Date: Mon, 11 Feb 2008 12:26:27 -0600 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: stevefranks@ieee.org References: <539c60b90802110851x295fa8c1xd7bd7afefc094a4f@mail.gmail.com> <20080211181636.L4825@wojtek.tensor.gdynia.pl> <20080211185246.B5043@wojtek.tensor.gdynia.pl> <539c60b90802111011m4dd2609dmffc3f5bbe23e63bb@mail.gmail.com> In-Reply-To: <539c60b90802111011m4dd2609dmffc3f5bbe23e63bb@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Wojciech Puchar , User Questions , Michael Ross Subject: Re: linux compat: path problem? /compat/linux/bin/sh doesn't work! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2008 18:28:37 -0000 Written by Steve Franks on 02/11/08 12:11>> > I think my problem lies elsewhere: linux & abi started, but no > difference! I have the linux .so files right in compat/linux/usr/lib, > but it always finds the freeBSD versions first! > > Steve > > sh-3.00$ kldstat > Id Refs Address Size Name > 1 19 0xc0400000 926ed4 kernel > 2 1 0xc0d27000 5a74 snd_t4dwave.ko > 3 2 0xc0d2d000 4a5ac sound.ko > 4 1 0xc0d78000 22c98 radeon.ko > 5 2 0xc0d9b000 10e98 drm.ko > 6 1 0xc0dac000 6a1c4 acpi.ko > 7 1 0xc304a000 7000 linprocfs.ko > 8 1 0xc3051000 22000 linux.ko > sh-3.00$ sudo /etc/rc.d/abi start > Additional ABI support: linux. > sh-3.00$ ls > ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF > file OS ABI invalid It is not finding the FreeBSD versions of libraries. There is no /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if it's branded.