Recently, I asked the following:
>I just upgraded a 3/280 to a SparcServer 380, and have immediately run into
>a fairly serious problem. C programs compiled on the 4/380 fail when run
>on a SparcStation 1+. Sample output is below:
>nsslsun% cd /export/common
>nsslsun% head -1 /etc/motd
>SunOS Release 4.1 (nsslsun) #3: Thu Oct 18 23:50:03 CDT 1990
>nsslsun% cat test.c
> printf("hello, world\n");
>nsslsun% cc test.c
>nsslsun% rlogin tinman
>tinman% head -1 /etc/motd
>SunOS Release 4.0.3c (tinman) #3: Fri Oct 12 15:43:17 CDT 1990
>tinman% cd /export/common
>ld.so: warning: /usr/lib/libc.so.1.3.5 has older revision than expected 5
>ld.so: call to undefined procedure start_float from 0x4070
>Both workstations have fortran 1.3.1 on them. Fortran programs get the
>warning message, but at least they seem to run.
>Anyone have any ideas?
> Kevin W. Thomas
I received many answers. The concensus is that I either need to upgrade
"tinman" to 4.1, or compile programs on "tinman". I've decided to compile
things on "tinman" now, and upgrade later.
I've included one response below, which seems to summarize what I learned.
>executables are upward compatible only, not downward compatible.
>your 4/380 is running 4.1; your ss-1 is running 4.0.3C. if you
>upgrade the ss-1 to 4.1, then your problem will go away.
>start_float() is part of the 4.1 c initialization; it's not in
>4.0.3. since executables are dynamically linked with libc.so,
>the linker just expects to find start_float() at run time in libc.so.
>you can *try* to get around this by linking things statically
>(use the -Bstatic flag) but there is still no guarantee it will
>run correctly. linking statically, you will bind in the 4.1 startup
>sequence, but there are still system calls that work differently
>and may produce surprising results.
>in general: only move executables to higher-numbered OS releases.
> sun microsystems
> northeast area consulting group
I find it someone disturbing that Hal says that there is no guarantee
with static links. For non-kernel related programs, I would hope static
links would work, but I'm not going to test his answer.
Thanks go to the following people for their replies:
"Dr Gareth J. Barker" <email@example.com>
Kerien Fitzpatrick <firstname.lastname@example.org>
Michael S. Maiten <email@example.com>
firstname.lastname@example.org (Doug A. Chan)
email@example.com (Casper H.S. Dik)
firstname.lastname@example.org (Claude Scarpelli)
dagobah!mis@uunet.UU.NET (Mark Seiden)
email@example.com (Daniel Strick)
firstname.lastname@example.org (Frank P. Bresz)
halstern@Sun.COM (Hal Stern - Consultant)
email@example.com (Phil Hammar)
firstname.lastname@example.org (John Brownie)
email@example.com (mark kraitchman)
firstname.lastname@example.org (Mark Wiederspahn)
email@example.com (Mitch Baltuch)
firstname.lastname@example.org (Scott Paisley)
email@example.com (Per Hedeland)
firstname.lastname@example.org (Peter J. Welcher)
email@example.com (Michael Baumann)
firstname.lastname@example.org (Sandeep Varma)
email@example.com.EDU (Joe Van Andel)
firstname.lastname@example.org (Ron Vasey)
email@example.com (Benny Yih)
Kevin W. Thomas
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:05:59 CDT