Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know, if I can use the binary of a program without modification on the three systems? After all they are all Unices. I talk about the same architecture.

share|improve this question
up vote 4 down vote accepted

No, you cannot, as the ABIs differ. Some BSDs do have binary compability with Linux binaries, with some caveats (enabling virtual 8086 mode is a common issue). Often you may need to patch the source, however, as many binaries will make assumptions about their environment based on the fact that the source is developed for Linux. As far as I am aware there is no BSD-binary compatibility in the Linux kernel at this time.

Andrey Sokolov is working on providing Linux binary support on Illumos without zones, but as far as I am aware there is no BSD-binary compability on Illumos that is planned at this time.

share|improve this answer
Which ABI? As far as I know, most programs don't talk directly with the kernel, but with the libc (is that right?). Isn't it possible to provide a ABI-compatible libc? – Mnementh Sep 19 '11 at 15:41
The ABI depends on the platform the binary is being built for. This article has some good information about binary compatibility which should help you. – Chris Down Sep 19 '11 at 16:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.