From owner-freebsd-questions@FreeBSD.ORG Tue Mar 9 04:16:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E46B16A4CE for ; Tue, 9 Mar 2004 04:16:46 -0800 (PST) Received: from mx13.mail.ru (mx13.mail.ru [194.67.23.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6E7243D5A for ; Tue, 9 Mar 2004 04:16:45 -0800 (PST) (envelope-from v_dm@mail.ru) Received: from [217.150.40.9] (port=49183 helo=anyhost.anywhere) by mx13.mail.ru with esmtp id 1B0gA5-000Mmh-00 for freebsd-questions@freebsd.org; Tue, 09 Mar 2004 15:16:41 +0300 To: freebsd-questions@freebsd.org From: Dmitry Content-Type: text/plain; format=flowed; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Tue, 09 Mar 2004 15:16:12 +0300 Message-ID: User-Agent: Opera7.23/FreeBSD M2 build 518 X-Spam: Not detected Subject: Running Linux binaries X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 12:16:46 -0000 Hi all. I'm trying to run a Linux binary in FreeBSD 5.2. I have Linux compat installed and kld module linux.ko loaded I'm getting this error message: $ ./breve ./breve: error while loading sharing libraries: libglut.so.3: cannot open shared object file: No such file or directory It looks like it need libglut.so.3. I have it. I copy it from /usr/X11R6/lib to /compat/linux/lib and try to run the binary again: $ ./breve ./breve: error while loading sharing libraries: libglut.so.3: ELF file OS ABI invalid I tried branding it as written in Handbook but it changes nothing. Is there any way to use FreeBSD libraries to run Linux binaries or I have to get the Linux versions of them? And how to cross-compile libraries if i have sources? And the last question. If a binary uses a Linux proc filesystem will it be anought to mount linprocfs to /compat/linux/proc Thanks.