Re: Compile differences between Linux and FreeBSD



On Apr 24, 12:24 am, Rex Mottram <r...@xxxxxxxx> wrote:
Doug McIntyre wrote:
drhowarddrfine <robbel...@xxxxxxxxx> writes:
I compiled this little program with Knoppix and it worked but I'm
still wondering if anyone would know of a workaround so I don't have
to run to a Linux boxevery time.

Linux and FreeBSD in general aren't binary comptible.

Actually FreeBSD has a feature such that it can run Linux binaries (a
kernel module that remaps the system call vector or some such). But
there's no such thing in reverse. Thus it might be easiest to compile on
Linux and run on either. Or to develop in Java :-)
Or use the simple standard procedure of compiling the code.
Stick to POSIX and it shouldn't matter whether you compile on freebsd
or linux or hp-ux.
It will also most likely run on more exotic systems than what Java can
afford.

.



Relevant Pages

  • Re: Confessions of a Linux Wannabe
    ... wouldn't be able to tell you if it is using Linux or FreeBSD. ... As for software installation: FreeBSD has a package management system ... download/build dependencies if applicable, configure and compile the ...
    (comp.os.linux.misc)
  • Re: Problem compiling cgi on 4.10 Release
    ... > won't run or compile on FreeBSD 4.10 Release? ... In the worst case I need one snippet of code for FreeBSD and a different ... snippet for Linux. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: where exactly can I get a copy of libdl.so.2 for FreeBSD-5.4 ?
    ... because no such FreeBSD library exists. ... I imagine you'll be able to get them if you check the docs on enabling linux compat. ... Linux java plugin. ... linux mozilla binary with the linux java plugin, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: FreeBSD 4.x Opteron Question
    ... the FreeBSD developers told everyone that 5.3 was da ... initially over linux not because there's a bunch of good guys on the ... My tests measure kernel performance; ... > a networking device is a key performance indicator. ...
    (freebsd-questions)
  • Re: Java5 and FreeBSD
    ... I made my way to Sun's java page, and then to the newest Java2 ... Yet no FreeBSD Java? ... The linux one will probably work ... > Server Platform Edition 8 is available for the following platforms: ...
    (freebsd-questions)