home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.admin:9392 comp.unix.shell:5049
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.sys.sun.admin,comp.unix.shell
- Subject: Re: Aren't SunOS 4.1.2 and Solaris 2.1 compatible?
- Message-ID: <15866@auspex-gw.auspex.com>
- Date: 13 Dec 92 20:36:53 GMT
- References: <1992Dec4.150456.8605@dragon.acadiau.ca> <jp5q9l@lynx.unm.edu> <1992Dec11.184938.19511@hyphen.com>
- Sender: news@auspex-gw.auspex.com
- Followup-To: comp.sys.sun.admin
- Organization: Auspex Systems, Santa Clara
- Lines: 28
- Nntp-Posting-Host: auspex.auspex.com
-
- >What's changed? The system calls are numbered differently. The errnos
- >are numbered differently.
-
- And some signal numbers and flags to system calls are different, and
- "ttyslot()" has to scan "/etc/utmp" rather than "/etc/ttytab", and....
-
- No, "ttyslot()" isn't a "system call". It's a library routine; the BCP
- could (and may) still provide binary compatibility, as it only supports
- images dynamically linked with "libc", and a dynamically-linked image
- gets "ttyslot()" from the shared library, rather than from code in the
- image, so it can get a different version when run under 5.x than when
- run under 4.x (or, in fact, can get different versions when run under
- 5.y than when run under 5.x, or can get different versions when run
- under 4.y than when run under 4.x, for that matter).
-
- >The executable header format is no longer
- >a.out, but something different (I'm not sure, but I think it's COFF).
-
- No, it's ELF. COFF is the pre-SVR4 SV executable/object file format;
- ELF is the SVR4 one.
-
- >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.
-
- And should not try to manipulate any files that 1) changed their
- location (without a symlink being planted) or their format and 2) don't
- have their format and location hidden behind a procedure in "libc".
-