Author Topic: Enabling Linux Binary Compatibility using Darwin  (Read 634 times)

dot.this

  • Member
  • **
  • Posts: 55
  • Kudos: 0
Enabling Linux Binary Compatibility using Darwin
« on: 11 December 2002, 06:40 »
I need someone familiar with both freeBSD and Darwin to answer me a question:

I'm a Mac OS X user with Xdarwin. (Xwindows for Darwin.) I'm interested in enabling Linux Binary Compatibility to help run Linux apps under Xwindows. I know that in freeBSD, you must add the line "linux_enable=YES" to /etc/rc.conf to enable Linux binary compatibility, but OS X doesn't have an rc.conf file.

Is Linux compatibility enabled by default with Dawin, or do I need to modify another file, like rc.boot? Recompiling the kernel is obviously not an option. Well, I could recompile GNU-Darwin, but let's not go there...
This APT has Super Cow Powers.

choasforages

  • VIP
  • Member
  • ***
  • Posts: 1,729
  • Kudos: 7
    • http://it died
Enabling Linux Binary Compatibility using Darwin
« Reply #1 on: 11 December 2002, 07:42 »
err, it sounds like you want to run x86 stuff under ppc darwin. bochs might help you with that.
x86: a hack on a hack of a hackway
alpha, hewlett packed it A-way
ppc: the fruity way
mips: the graphical way
sparc: the sunny way
4:20.....forget the DMCA for a while!!!

dot.this

  • Member
  • **
  • Posts: 55
  • Kudos: 0
Enabling Linux Binary Compatibility using Darwin
« Reply #2 on: 11 December 2002, 08:02 »
That's exactly right. I've got a setup of Xfree86, Xdarwin, and OroborOSX, and it's basically an Xwindows environment on top of Darwin.

Right now, I'm downloading and installing all the various libraries I need. Eventually, I'll run MacGIMP and some or all of OpenOffice. I'm also interested in running some Linux programs, and that's where the Binary Compatibility comes in.
This APT has Super Cow Powers.

choasforages

  • VIP
  • Member
  • ***
  • Posts: 1,729
  • Kudos: 7
    • http://it died
Enabling Linux Binary Compatibility using Darwin
« Reply #3 on: 11 December 2002, 08:18 »
err, whitch linux programs? most are source based
x86: a hack on a hack of a hackway
alpha, hewlett packed it A-way
ppc: the fruity way
mips: the graphical way
sparc: the sunny way
4:20.....forget the DMCA for a while!!!

hm_murdock

  • VIP
  • Member
  • ***
  • Posts: 2,629
  • Kudos: 378
  • The Lord of Thyme
Enabling Linux Binary Compatibility using Darwin
« Reply #4 on: 11 December 2002, 08:23 »
PPC processors can natively emulate x8 code, which makes binary compatibility more possible. But I think that the apps would need a recompile anyway. I think the best binary compatibility you'll get is between Mac OS X and PPC Linux, not x86 Linux.
Go the fuck ~

dot.this

  • Member
  • **
  • Posts: 55
  • Kudos: 0
Enabling Linux Binary Compatibility using Darwin
« Reply #5 on: 11 December 2002, 10:18 »
I have no problem with compiling; the OS X Developer Tools disk provides all the necessities. Just open the terminal, cd to the source directory, and enter ./configure ppc, make, and make install. Pretty simple, really.

Binaries are also an option. PPC ones of course, which is a hassle because there are so many x86 binaries to wade through until I find the PPC ones.

As far as I can tell, the best compatibility is actually with freeBSD, because the kernels are so similar. So I always look for freeBSD sources first. It's just that there are tons more apps available for Linux, and I'd like to be able to use them.
This APT has Super Cow Powers.

choasforages

  • VIP
  • Member
  • ***
  • Posts: 1,729
  • Kudos: 7
    • http://it died
Enabling Linux Binary Compatibility using Darwin
« Reply #6 on: 11 December 2002, 16:13 »
aslong as the sourcecode doesn't have any endian issues, and is posix compliant or close, it should just compile on darwin or whatever.
x86: a hack on a hack of a hackway
alpha, hewlett packed it A-way
ppc: the fruity way
mips: the graphical way
sparc: the sunny way
4:20.....forget the DMCA for a while!!!

xyle_one

  • VIP
  • Member
  • ***
  • Posts: 2,213
  • Kudos: 135
Enabling Linux Binary Compatibility using Darwin
« Reply #7 on: 11 December 2002, 20:30 »
now, could i apply this same thing to a driver. the driver for the sound blaster live works real well under linux, and since no one is going to develop a driver for osx, maybe i could get the linux one to work under osX???
*note: there is someone developing drivers for osX (Brian Sounder), its just not moving along as quickly as i had hoped. i have had this card just sitting there for like 6 months...
anyways, just a thought.