From owner-freebsd-questions@FreeBSD.ORG Mon Feb 11 19:56:45 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 0D25F16A418 for ; Mon, 11 Feb 2008 19:56:45 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.188]) by mx1.freebsd.org (Postfix) with ESMTP id A5AD613C44B for ; Mon, 11 Feb 2008 19:56:44 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by rn-out-0910.google.com with SMTP id s42so1983285rnb.13 for ; Mon, 11 Feb 2008 11:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=X5c9bzepVjBqr6BQvOrvzTZBDiA/2kv7hDPBQ5ei6uU=; b=D4ZTJQllLPISkt0LySzY4Ph/W6g/1Ub3lDpUO5khnC7z8b7sVuxVeqLz13um/jDnjCkNuKy0R6DfK1rWemsWgf01jhOnYEzLflo6IwTH237sCwkPiXPchK8YARpHvu0ZDbvOtljvsZnhEUxO5GB/UzQl2djFg+cAggCeEdOrQU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qYqGOEXLeIBZIK3xUVbUOoEcM0yPK5vFxB5YMLjSO3ITDvcTMDvIA/0bab7UYzulxRLOixrEO5dL6+4BuzCXynGf7z/ycc/ALnhpVTrv1+IqOC5OF5dqGOLcpZGA//va1qiTqZwZCoIQ7uQHSfOEQ3jYOabVuYNaKC6VkcdxWHg= Received: by 10.142.240.9 with SMTP id n9mr315819wfh.214.1202759801666; Mon, 11 Feb 2008 11:56:41 -0800 (PST) Received: by 10.142.194.10 with HTTP; Mon, 11 Feb 2008 11:56:41 -0800 (PST) Message-ID: <539c60b90802111156o63c06c49l9aa63cb62e686ec5@mail.gmail.com> Date: Mon, 11 Feb 2008 12:56:41 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: "Reid Linnemann" In-Reply-To: <47B09CD2.1000806@cs.okstate.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <539c60b90802110851x295fa8c1xd7bd7afefc094a4f@mail.gmail.com> <20080211181636.L4825@wojtek.tensor.gdynia.pl> <20080211185246.B5043@wojtek.tensor.gdynia.pl> <539c60b90802111011m4dd2609dmffc3f5bbe23e63bb@mail.gmail.com> <47B09353.3030106@cs.okstate.edu> <47B09CD2.1000806@cs.okstate.edu> X-Google-Sender-Auth: 5ea0c4d6005f9825 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 Reply-To: stevefranks@ieee.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2008 19:56:45 -0000 So my problem is that things are expecting libs in /usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when they don't find it in linux/lib they go straight to the FreeBSD version? So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? Steve On Feb 11, 2008 12:06 PM, Reid Linnemann wrote: > Written by Michael Ross on 02/11/08 12:42>> > > > Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann : > > > > > >> 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. > > > > > > [michael@serafina ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1 > > brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No > > such file or directory > > > > [michael@serafina ~]$ brandelf /usr/compat/linux/lib/librt.so.1 > > File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0). > > > > [michael@serafina ~]$ brandelf /usr/lib/librt.so.1 > > File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9). > > > > > > Michael > > Okay, I need to proofread. /usr/compat/linux/lib/librt.so.1 is the right > path. I've never seen a librt in FreeBSD, but I guess I'm wrong. I've > dug a little deeper and seen other people work around this by linking > /usr/compat/linux/usr/lib/librt.so.1 to the actual lib at > > /usr/compat/linux/lib/librt.so.1 > -- Steve Franks, KE7BTE Staff Engineer La Palma Devices, LLC http://www.lapalmadevices.com (520) 312-0089