Subject: Re: Object compatibility between BSDs
To: Allen Briggs <briggs@ninthwonder.com>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: port-i386
Date: 01/20/2000 11:17:39
On Thu, Jan 20, 2000 at 11:13:23AM -0500, Allen Briggs wrote:
> >      Having ported our project to NetBSD 1.3.3, we are obviously interested
> > in porting to FreeBSD and OpenBSD as well.  A colleague claimed that BSD
> > a.out objects should be usable as-is on all three OS's, but I've tried our
> > exe's on OpenBSD 2.5 with no luck ("Bad system call").  And we are even
> > statically linked with ALL libraries (libc, etc.), so it shouldn't be a lib
> > compatibility problem.
> 
> My understanding is that OpenBSD and NetBSD have both added system calls
> since the source trees diverged, and OpenBSD has never distinguished its
> executables from NetBSD's so there's no easy way to do the emulation that
> we do with FreeBSD, Linux, SVR4, et al.
> 
> For i386, anyway, you should be able to generate FreeBSD executables and
> run them on all three.

If you're willing to statically link them and to assume that the user
has a bunch of compatibility gunk turned on.  If that was what you were
after, IMHO, you might as well just build Linux executables...

-- 
Thor Lancelot Simon	                                      tls@rek.tjls.com
	"And where do all these highways go, now that we are free?"