home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.admin:9377 comp.unix.shell:5045
- Newsgroups: comp.sys.sun.admin,comp.unix.shell
- Path: sparky!uunet!psinntp!hyphenw!dwight
- From: dwight@hyphen.com (Dwight Ernest)
- Subject: Re: Aren't SunOS 4.1.2 and Solaris 2.1 compatible?
- Message-ID: <1992Dec11.184938.19511@hyphen.com>
- Organization: Hyphen, Inc., Wilmington, MA 01887 USA / +1 508 988-0880
- References: <1992Dec4.150456.8605@dragon.acadiau.ca> <jp5q9l@lynx.unm.edu>
- Date: Fri, 11 Dec 1992 18:49:38 GMT
- Lines: 35
-
- khan%ssdvax.decnet@lbgwy.mdc.com (Naseer Khan) writes:
-
- >Peter Steele (peter@dragon.acadiau.ca) wrote:
- >: it just isn't the same. I tried moving the tcsh and zsh binaries over
- >: from a 4.1.2 system but neither work. If anyone has built either of
- >: these shells, I'd appreciate getting a copy of the binary. Thanks.
-
- >What's going on here? I heard a lot about binary compatibility between
- >Solaris 1.x and 2.1 (or SunOS 4.1.x and 5.x). Someone in that Solaris
- >2.1 discussion (Resistance to it....) even suggested keeping the old
- >cc around because it won't be bundled with 2.1. So why doesn't tcsh
- >work from a 4.1.2. system to Solaris 2.1 system?
-
- Solaris 2.x and 1.x are fundamentally different. 1.x is based primarily
- upon 4.[23] BSD UNIX, and 2.x is based primarily on SVR4. Executables
- from 1.x would not have run on 2.x at all except that Sun went to quite
- a bit of trouble to provide a Binary Compatibility Package (BCP). The
- BCP, which is transparent to the user, will detect a.out-type executables
- (from 1.x) and will automatically do the Right Thing (if possible; see
- caveats).
-
- What's changed? The system calls are numbered differently. The errnos
- are numbered differently. The executable header format is no longer
- a.out, but something different (I'm not sure, but I think it's COFF).
-
- Caveats: BCP can do the right thing if the 1.x program behaves itself.
- That means that it must have been linked dynamically instead of statically,
- and must not make any references to kvm or kmem. That leaves out quite
- a few commercial packages (e.g. Lotus 1-2-3) which may been linked statically
- to tweak out a few cycles' better performance, and it leaves out all device
- drivers.
- --
- --Dwight A. Ernest R&D Manager (USA) I speak only for myself.
- Hyphen, Inc./181 Ballardvale St./Wilmington, MA 01887/+1 508 988 0880 x125
- dwight@hyphen.com
-