[comp.unix.ultrix] Ultrix 2.3 and 4.3 BSD not binary compatible?

kg@elan.UUCP (Ken Greer) (01/31/89)

Reply-to: kg@elan.UUCP (Ken Greer)


We ran into a problem today in that a program compiled on a Vax running
Ultrix 2.3 got a "Bad System Call" and core dumped on a 4.3 BSD system.
Anyone known what works and what doesn't?
---
Ken Greer
Elan Computer Group, Inc.
{ames,hplabs,uunet}!elan!kg
415-322-2450

dan@hplabs.UUCP (02/04/89)

Reply-to: dan@hplabs.UUCP

> We ran into a problem today in that a program compiled on a Vax running
> Ultrix 2.3 got a "Bad System Call" and core dumped on a 4.3 BSD system.
> Anyone known what works and what doesn't?

When we tried this with one of our programs, it turned out to be a difference
in the way the directory reading routines were implemented.  That is, although
the same system call interface routines existed on both systems, internally
(inside libc) those interfaces turned into different system calls.

That was as far as we got; I suspect that there were more problems like this.
You might have better luck carrying over the .o files and relinking.

	Dan Franklin

D. Allen [CGL]) (03/18/89)

Reply-to: idallen@watcgl.UUCP (Ian! D. Allen [CGL])


4.3bsd does not have the "getdirentries()" system call needed by
Ultrix to handle NFS file systems.  You can run 4.3 binaries on
Ultrix; but, they won't understand NFS directories.  (They will
understand simple files on NFS file systems, however.)  You can't run
Ultrix binaries on 4.3 unless you reverse-engineer the getdirentries()
system call and install it on 4.3.  One of our systems people did that
just to see if it could be done.  Seems to work.

Unfortunately, all our software effort migrates software from the 4.3bsd
machines for which we have source to the binary Ultrix machines, so we
never use Ultrix binaries on 4.3bsd.  We copy the 4.3 source and
recompile (relinking is often all that is needed) for Ultrix.
-- 
-IAN! (Ian! D. Allen) IDAllen@watcgl.UWaterloo.CA IDAllen@watcgl.Waterloo.edu
 Computer Graphics Lab    University of Waterloo    Ontario, Canada

marc@okeeffe.Berkeley.EDU (Marc Teitelbaum) (03/23/89)

Reply-to: marc@okeeffe.Berkeley.EDU (Marc Teitelbaum)

4.4BSD will have the filesystem switch, vnodes, etc etc.
You'll have to recompile sources...

Marc

-------------------------------
Marc Teitelbaum			+1-415-643-6448
457 Evans Hall
Computer Systems Research Group,  CSRG / DEC
University of California
Berkeley, CA 94720