From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 06:26:26 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 127E216A4CE for ; Mon, 8 Mar 2004 06:26:26 -0800 (PST) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB0E843D1D for ; Mon, 8 Mar 2004 06:26:25 -0800 (PST) (envelope-from v_dm@mail.ru) Received: from [62.33.5.34] (port=49167 helo=anyhost.anywhere) by mx1.mail.ru with esmtp id 1B0Li4-000Nhg-00 for freebsd-questions@freebsd.org; Mon, 08 Mar 2004 17:26:24 +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: Mon, 08 Mar 2004 17:26:53 +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: Mon, 08 Mar 2004 14:26:26 -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.