Date: Thu, 27 Apr 2000 09:39:40 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Max Sivkov <maxx@itprojects.net> Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: linux calls emulation Message-ID: <20000427093940.A16656@dan.emsphone.com> In-Reply-To: <8e8ugs$cm4$1@news.lucky.net>; from "Max Sivkov" on Thu Apr 27 11:42:34 GMT 2000 References: <8e8ugs$cm4$1@news.lucky.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000427093940.A16656>
