From owner-freebsd-ports@FreeBSD.ORG Sat Jun 23 10:10:48 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 54AA0106566C for ; Sat, 23 Jun 2012 10:10:48 +0000 (UTC) (envelope-from byu17@uclive.ac.nz) Received: from am1outboundpool.messaging.microsoft.com (am1ehsobe003.messaging.microsoft.com [213.199.154.206]) by mx1.freebsd.org (Postfix) with ESMTP id A941E8FC1A for ; Sat, 23 Jun 2012 10:10:47 +0000 (UTC) Received: from mail100-am1-R.bigfish.com (10.3.201.254) by AM1EHSOBE008.bigfish.com (10.3.204.28) with Microsoft SMTP Server id 14.1.225.23; Sat, 23 Jun 2012 09:53:58 +0000 Received: from mail100-am1 (localhost [127.0.0.1]) by mail100-am1-R.bigfish.com (Postfix) with ESMTP id 2AA142603C3 for ; Sat, 23 Jun 2012 09:53:58 +0000 (UTC) X-Forefront-Antispam-Report: CIP:207.46.4.139; KIP:(null); UIP:(null); IPV:NLI; H:SN2PRD0202HT013.namprd02.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: -4 X-BigFish: PS-4(zzbb2dI98dI1432I14ffIzz1202hzzz2dh2a8h668h839hd25he5bhf0ah) Received: from mail100-am1 (localhost.localdomain [127.0.0.1]) by mail100-am1 (MessageSwitch) id 1340445236880205_8042; Sat, 23 Jun 2012 09:53:56 +0000 (UTC) Received: from AM1EHSMHS005.bigfish.com (unknown [10.3.201.254]) by mail100-am1.bigfish.com (Postfix) with ESMTP id D47DF22004E for ; Sat, 23 Jun 2012 09:53:56 +0000 (UTC) Received: from SN2PRD0202HT013.namprd02.prod.outlook.com (207.46.4.139) by AM1EHSMHS005.bigfish.com (10.3.207.105) with Microsoft SMTP Server (TLS) id 14.1.225.23; Sat, 23 Jun 2012 09:53:57 +0000 Received: from blackbox.hansons (121.73.118.140) by pod51004.outlook.com (10.27.51.107) with Microsoft SMTP Server (TLS) id 14.15.86.1; Sat, 23 Jun 2012 09:55:26 +0000 Message-ID: <4FE5928A.8030207@uclive.ac.nz> Date: Sat, 23 Jun 2012 21:55:22 +1200 From: Benjamin User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120526 Thunderbird/12.0.1 MIME-Version: 1.0 CC: References: <4FE528AE.8070005@uclive.ac.nz> <20120623085716.GM2337@deviant.kiev.zoral.com.ua> In-Reply-To: <20120623085716.GM2337@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 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 10:10:48 -0000 On 06/23/12 20:57, Konstantin Belousov wrote: > On Sat, Jun 23, 2012 at 02:23:42PM +1200, Benjamin wrote: >> Hi all. I have posted this question on the forums, and it was suggested >> that I post it here. >> >> I am currently porting Altera Quartus II design software to FreeBSD. I >> have got it installing, but running the binary requires /proc/cpuinfo to >> exist, and it dies when it can't find it. >> >> I have both procfs and linprocfs mounted. > To be sure, show us the mount -v output. > [snipped] linprocfs on /usr/compat/linux/proc (linprocfs, local) procfs on /proc (procfs, local) [/snipped] >> >> As a workaround (read hack) I can do the following to make the binary >> execute. >> >> 1. unmount procfs. >> 2. symlink /compat/linux/proc/cpuinfo to /proc/cpuinfo >> >> Since this problem has no doubt come up before, what is the best way to >> get around this issue? > No, it did not came up before. > > Show the file(1) output on the binary which exhibit the faulty behaviour. Aha. I think you've identified the problem quartus_sh: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped brandelf(1)ing this to Linux seems to have worked. What does SYSV represent anyway? "brandelf -l" only lists known ELF types are: FreeBSD(9) Linux(3) Solaris(6) SVR4(0) so what does SYSV mean? Cheers.