Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!hookup!swrinde!howland.reston.ans.net!agate!barrnet.net!Reason.cdrom.com!news.cdrom.com!jkh From: jkh@freefall.cdrom.com (Jordan K. Hubbard) Newsgroups: comp.os.386bsd.apps Subject: Running NetBSD 1.0 or BSDI 1.1 apps under FreeBSD 2.0. Date: 11 Nov 1994 01:48:31 GMT Organization: Walnut Creek CDROM Lines: 59 Message-ID: <JKH.94Nov10174831@freefall.cdrom.com> NNTP-Posting-Host: freefall.cdrom.com Ok, after all the questions and occasional flaming, I decided to go check into this. Here's what I found out: Ok, I've just logged into sun-lamp and see that it's running 1.0. Good. Now we grab a couple of static binaries, let's say csh and pax out of /bin.. jkh@time-> ls csh pax jkh@time-> ./csh % ls csh pax % set argv () cwd /tmp home /home/jkh path (/sbin /usr/sbin /usr/local/bin /usr/gnu/bin /usr/ucb /bin /usr/bin /etc /usr/X11R6/bin /usr/X386/bin /home/jkh/bin .) prompt % prompt2 ? shell /bin/csh status 0 term xterm user jkh % ./pax -vf /tmp/test.tar drwxr-xr-x 2 jkh 502 0 Sep 2 09:34 . -rw-r--r-- 1 jkh 502 1790 Aug 30 11:12 east_asian -rw-r--r-- 1 jkh 502 620 Aug 30 11:00 generic pax: ustar vol 1, 3 files, 10240 bytes read, 0 bytes written. Yup, both pax and csh, at least, appear to work just fine under 2.0! I can see no reason why a NetBSD 0.9 exec wouldn't also work just fine, since we deal with the old system call numbers for FreeBSD 1.x compatibility. Now, let's see about the BSDI 1.1 compatibilty. I'll go to a BSDI 1.1 box here and suck off some binaries.. Lesse, we'll go for broke and grab something LARGE, like perl and gnu tar. jkh@time-> ls -l total 1172 -rwxr-xr-x 1 jkh bin 188416 Nov 10 15:06 gnutar -rwxr-xr-x 1 jkh bin 385024 Nov 10 15:06 perl -rw-rw-r-- 1 jkh bin 10240 Nov 10 15:07 test.tar jkh@time-> ./gnutar -tvf test.tar drwxr-xr-x jkh/502 0 Sep 2 09:34 1994 ./ -rw-r--r-- jkh/502 1790 Aug 30 11:12 1994 east_asian -rw-r--r-- jkh/502 620 Aug 30 11:00 1994 generic jkh@time-> ./perl print "Hi there, I'm BSDI compatible!\n" ; Hi there, I'm BSDI compatible! jkh@time-> file csh* csh.bsdi: BSD/386 demand paged (first page unmapped) pure ex csh.freebsd: FreeBSD/i386 demand paged executable csh.netbsd: NetBSD/i386 demand paged executable Looks like we even identify them correctly.. :-) Jordan