From owner-freebsd-ports@FreeBSD.ORG Sat Jun 23 11:49:49 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23A611065670 for ; Sat, 23 Jun 2012 11:49:49 +0000 (UTC) (envelope-from byu17@uclive.ac.nz) Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe002.messaging.microsoft.com [216.32.180.12]) by mx1.freebsd.org (Postfix) with ESMTP id C394C8FC15 for ; Sat, 23 Jun 2012 11:49:48 +0000 (UTC) Received: from mail114-va3-R.bigfish.com (10.7.14.240) by VA3EHSOBE009.bigfish.com (10.7.40.29) with Microsoft SMTP Server id 14.1.225.23; Sat, 23 Jun 2012 11:17:57 +0000 Received: from mail114-va3 (localhost [127.0.0.1]) by mail114-va3-R.bigfish.com (Postfix) with ESMTP id 6F150602CD; Sat, 23 Jun 2012 11:17:57 +0000 (UTC) X-Forefront-Antispam-Report: CIP:207.46.4.139; KIP:(null); UIP:(null); IPV:NLI; H:SN2PRD0202HT027.namprd02.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: PS0(zzzz1202hzzz2dh2a8h668h839hd25he5bhf0ah) Received: from mail114-va3 (localhost.localdomain [127.0.0.1]) by mail114-va3 (MessageSwitch) id 1340450275959200_2782; Sat, 23 Jun 2012 11:17:55 +0000 (UTC) Received: from VA3EHSMHS031.bigfish.com (unknown [10.7.14.243]) by mail114-va3.bigfish.com (Postfix) with ESMTP id DD0B938003F; Sat, 23 Jun 2012 11:17:55 +0000 (UTC) Received: from SN2PRD0202HT027.namprd02.prod.outlook.com (207.46.4.139) by VA3EHSMHS031.bigfish.com (10.7.99.41) with Microsoft SMTP Server (TLS) id 14.1.225.23; Sat, 23 Jun 2012 11:17:56 +0000 Received: from blackbox.hansons (121.73.118.140) by pod51004.outlook.com (10.27.91.62) with Microsoft SMTP Server (TLS) id 14.15.86.1; Sat, 23 Jun 2012 11:19:26 +0000 Message-ID: <4FE5A63B.1040303@uclive.ac.nz> Date: Sat, 23 Jun 2012 23:19:23 +1200 From: Benjamin User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120526 Thunderbird/12.0.1 MIME-Version: 1.0 To: Konstantin Belousov , References: <4FE528AE.8070005@uclive.ac.nz> <20120623085716.GM2337@deviant.kiev.zoral.com.ua> <4FE5928A.8030207@uclive.ac.nz> <20120623102039.GR2337@deviant.kiev.zoral.com.ua> <4FE5A0E6.2010101@uclive.ac.nz> <20120623111337.GS2337@deviant.kiev.zoral.com.ua> In-Reply-To: <20120623111337.GS2337@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [121.73.118.140] X-OriginatorOrg: uclive.ac.nz Cc: Subject: Re: Linux binary looks for /proc/cpuinfo, dies when cannot be found, even when linprocfs mounted. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 11:49:49 -0000 >> grep: /proc/cpuinfo: No such file or directory > Err, so it was an error from grep ? I bet that some script run the > host (FreeBSD) version of external utility, simply because there is > no /compat/linux/usr/bin/grep installed. Then, since FreeBSD binary > has FreeBSD branding, it indeed accessed native /proc, and not translated > /compat/linux/proc. > Correct. But this wasn't a script, it was an executable. In any case, using brandelf to mark in as Linux seems to have solved the problem.