From owner-freebsd-emulation Thu Apr 27 7:39:57 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id C97A437B5DE for ; Thu, 27 Apr 2000 07:39:53 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id JAA18284; Thu, 27 Apr 2000 09:39:40 -0500 (CDT) (envelope-from dan) Date: Thu, 27 Apr 2000 09:39:40 -0500 From: Dan Nelson To: Max Sivkov Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: linux calls emulation Message-ID: <20000427093940.A16656@dan.emsphone.com> References: <8e8ugs$cm4$1@news.lucky.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.9i In-Reply-To: <8e8ugs$cm4$1@news.lucky.net>; from "Max Sivkov" on Thu Apr 27 11:42:34 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In the last episode (Apr 27), Max Sivkov said: > Hi > I've got a question: > Is it possible to run FreeBSD executable, that uses Linux libraries? > Has anyone tried to do that? No, since an executable and any shared libraries it uses have to agree on certain basic things, like what the layout of a struct FILE { } is, the size of an off_t, etc. Linux and BSD have completely different libc's, so you're probably better off installing the linux_devel port and compiling Linux binaries with that. The only case I can think of that would work is a Linux library that calls no external functions and references no data outside the library itself. A library implementing strcpy(), for example, would work. A library doing ANY file access, be it stdio or filedescriptor-based, will fail. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message