* Trouble with forward compatibility
@ 1998-02-12 5:00 Jesper Eskilson
1998-02-13 5:00 ` Jeff Denham
0 siblings, 1 reply; 7+ messages in thread
From: Jesper Eskilson @ 1998-02-12 5:00 UTC (permalink / raw)
Hi!
I'm having trouble using software compiled on Digital Unix 4.0 on earlier
versions, mostly 3.2. The problem is that the runtime linker fails to locate the
symbol
_OtsRemainder32Unsigned
and a couple of others in the same library. This occurs when executing a binary
(compiled on 4.0) on 3.2. The error does not occur when executing it on 4.0.
--
/Jesper
-----------------------------------------------------------------
Jesper Eskilson Email: jojo@sics.se
Intelligent Systems Lab Phone: +46-8-7521570
Swedish Institute of Computer Science Fax: +46-8-7517230
P.O. Box 1263, SE-164 28 Kista, Sweden WWW: www.sics.se/~jojo
-----------------------------------------------------------------
BARTH'S DISTINCTION
There are two types of people: those who
divide people into two types, and those who don't.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with forward compatibility
1998-02-12 5:00 Trouble with forward compatibility Jesper Eskilson
@ 1998-02-13 5:00 ` Jeff Denham
1998-02-16 5:00 ` Jesper Eskilson
0 siblings, 1 reply; 7+ messages in thread
From: Jeff Denham @ 1998-02-13 5:00 UTC (permalink / raw)
Jesper Eskilson wrote:
> Hi!
>
> I'm having trouble using software compiled on Digital Unix 4.0 on earlier
> versions, mostly 3.2. The problem is that the runtime linker fails to locate the
> symbol
>
> _OtsRemainder32Unsigned
>
> and a couple of others in the same library. This occurs when executing a binary
> (compiled on 4.0) on 3.2. The error does not occur when executing it on 4.0.
>
> --
> /Jesper
>
> -----------------------------------------------------------------
> Jesper Eskilson Email: jojo@sics.se
> Intelligent Systems Lab Phone: +46-8-7521570
> Swedish Institute of Computer Science Fax: +46-8-7517230
> P.O. Box 1263, SE-164 28 Kista, Sweden WWW: www.sics.se/~jojo
What you're doing isn't supported. Sometimes it works, though, and sometimes it
doesn't. If you want to run code on both 3.2X and 4.0, you *must* build on 3.2X.
"Upward" binary compatibility (earlier version to later version) is strongly
supported; "backward" (later to earlier) isn't.
To support backward compat would seriously inhibit the enhancement of the OS.
Lord knows, supporting upward compatitibity makes it hard enough sometimes!
__________________________________________________
Jeff Denham (jdenham@brighttiger.com)
Bright Tiger Technologies
SmartCluster� Software for Distributed Web Servers
http://www.brighttiger.com
125 Nagog Park
Acton, MA 01720
Phone: (978) 263-5455 x177
Fax: (978) 263-5547
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with forward compatibility
1998-02-13 5:00 ` Jeff Denham
@ 1998-02-16 5:00 ` Jesper Eskilson
1998-02-16 5:00 ` Gerald A. Feldman
1998-02-17 5:00 ` Charles M Richmond
0 siblings, 2 replies; 7+ messages in thread
From: Jesper Eskilson @ 1998-02-16 5:00 UTC (permalink / raw)
To: Jeff Denham
Jeff Denham wrote:
> What you're doing isn't supported. Sometimes it works, though, and sometimes it
> doesn't. If you want to run code on both 3.2X and 4.0, you *must* build on 3.2X.
> "Upward" binary compatibility (earlier version to later version) is strongly
> supported; "backward" (later to earlier) isn't.
>
> To support backward compat would seriously inhibit the enhancement of the OS.
> Lord knows, supporting upward compatitibity makes it hard enough sometimes!
Yes, I get your point, forward compatibility is nothing on which you can
count on. However, it would be very helpful if I could get this particular
instance to work. Is 4.0 such a major revision compared to 3.2 that any
attempts to use 4.0 binaries on a 3.2-machine is doomed to fail? I have
customers out there which aren't too happy with a "please upgrade your system"-
answer to their bug-reports.
/Jesper
-----------------------------------------------------------------
Jesper Eskilson Email: jojo@sics.se
Intelligent Systems Lab Phone: +46-8-7521570
Swedish Institute of Computer Science Fax: +46-8-7517230
P.O. Box 1263, SE-164 28 Kista, Sweden WWW: www.sics.se/~jojo
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with forward compatibility
1998-02-16 5:00 ` Jesper Eskilson
@ 1998-02-16 5:00 ` Gerald A. Feldman
1998-02-17 5:00 ` Charles M Richmond
1 sibling, 0 replies; 7+ messages in thread
From: Gerald A. Feldman @ 1998-02-16 5:00 UTC (permalink / raw)
Jesper Eskilson wrote:
> Yes, I get your point, forward compatibility is nothing on which you can
> count on. However, it would be very helpful if I could get this particular
> instance to work. Is 4.0 such a major revision compared to 3.2 that any
> attempts to use 4.0 binaries on a 3.2-machine is doomed to fail? I have
> customers out there which aren't too happy with a "please upgrade your system"-
> answer to their bug-reports.
One of the main difference from Version 3.x to version 4.x is that
Digital switched compilers from CFE, which is what was used from the
first release to DECC. Another reason why forward compatibility will not
always work is that new features and system calls. It is never a good
idea to use base system binaries accross releases. All of the binaries
shipped on the base system are compiled with the compiler released with
the base system, as is the OS. Even in the case of 4.0 and 4.0B or 4.0D,
there are utilities on the base system that probably would not work.
--
Jerry Feldman <gaf@mediaone.net>
Boston Computer Solutions and Consulting
http://gaf.ne.mediaone.net/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with forward compatibility
1998-02-16 5:00 ` Jesper Eskilson
1998-02-16 5:00 ` Gerald A. Feldman
@ 1998-02-17 5:00 ` Charles M Richmond
1998-02-23 5:00 ` Jeff Denham
1 sibling, 1 reply; 7+ messages in thread
From: Charles M Richmond @ 1998-02-17 5:00 UTC (permalink / raw)
Jesper Eskilson wrote:
>
> Jeff Denham wrote:
>
> > What you're doing isn't supported. Sometimes it works, though, and sometimes it
> > doesn't. If you want to run code on both 3.2X and 4.0, you *must* build on 3.2X.
> > "Upward" binary compatibility (earlier version to later version) is strongly
> > supported; "backward" (later to earlier) isn't.
> >
> > To support backward compat would seriously inhibit the enhancement of the OS.
> > Lord knows, supporting upward compatitibity makes it hard enough sometimes!
>
> Yes, I get your point, forward compatibility is nothing on which you can
> count on. However, it would be very helpful if I could get this particular
> instance to work. Is 4.0 such a major revision compared to 3.2 that any
> attempts to use 4.0 binaries on a 3.2-machine is doomed to fail? I have
> customers out there which aren't too happy with a "please upgrade your system"-
> answer to their bug-reports.
>
The answer is relatively easy. If you want to compile on 4.0 and to
have your binaries run on 3.2 then you must compile statically linked
binaries. Try using the "-non_shared" option to ld.
Charlie
--
***********************************************************************
* Charles Richmond Integrated International Systems Corporation *
* cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net *
* UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W *
* One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 *
* (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 *
***********************************************************************
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with forward compatibility
1998-02-17 5:00 ` Charles M Richmond
@ 1998-02-23 5:00 ` Jeff Denham
1998-02-24 5:00 ` John Kohl
0 siblings, 1 reply; 7+ messages in thread
From: Jeff Denham @ 1998-02-23 5:00 UTC (permalink / raw)
Charles M Richmond wrote:
> Jesper Eskilson wrote:
> >
> > Jeff Denham wrote:
> >
> > > What you're doing isn't supported. Sometimes it works, though, and sometimes it
> > > doesn't. If you want to run code on both 3.2X and 4.0, you *must* build on 3.2X.
> > > "Upward" binary compatibility (earlier version to later version) is strongly
> > > supported; "backward" (later to earlier) isn't.
> > >
> > > To support backward compat would seriously inhibit the enhancement of the OS.
> > > Lord knows, supporting upward compatitibity makes it hard enough sometimes!
> >
> > Yes, I get your point, forward compatibility is nothing on which you can
> > count on. However, it would be very helpful if I could get this particular
> > instance to work. Is 4.0 such a major revision compared to 3.2 that any
> > attempts to use 4.0 binaries on a 3.2-machine is doomed to fail? I have
> > customers out there which aren't too happy with a "please upgrade your system"-
> > answer to their bug-reports.
> >
>
> The answer is relatively easy. If you want to compile on 4.0 and to
> have your binaries run on 3.2 then you must compile statically linked
> binaries. Try using the "-non_shared" option to ld.
>
> Charlie
>
> --
> ***********************************************************************
> * Charles Richmond Integrated International Systems Corporation *
> * cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net *
> * UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W *
> * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 *
> * (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 *
> ***********************************************************************
If you're lucky, that will work. But all it takes is a new syscall used by
something you're using in libc.a, and you're out of luck. In this case,
the original poster has already tried the static on v4.0 trick, and it didn't
work. From a support standpoint, it's no different that trying to run 4.0
call-shared images on 3.2. You want to run on 3.2, you need to build
with 3.2 tools and libraries. Doesn't mean you have to be running
the 3.2 OS. It just means you need to use the 3.2 tools and libraries, including
crt0.o.
__________________________________________________
Jeff Denham (jdenham@brighttiger.com)
Bright Tiger Technologies
SmartCluster� Software for Distributed Web Servers
http://www.brighttiger.com
125 Nagog Park
Acton, MA 01720
Phone: (978) 263-5455 x177
Fax: (978) 263-5547
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Trouble with forward compatibility
1998-02-23 5:00 ` Jeff Denham
@ 1998-02-24 5:00 ` John Kohl
0 siblings, 0 replies; 7+ messages in thread
From: John Kohl @ 1998-02-24 5:00 UTC (permalink / raw)
Jeff Denham <jdenham@brighttiger.com> writes:
> ... From a support standpoint, it's no different that trying to run 4.0
> call-shared images on 3.2. You want to run on 3.2, you need to build
> with 3.2 tools and libraries. Doesn't mean you have to be running
> the 3.2 OS. It just means you need to use the 3.2 tools and libraries, including
> crt0.o.
And thankfully, Digital makes this very easy to do!
Read the manual pages for the compilers, paying particular attention to
the COMP_HOST_ROOT and COMP_TARGET_ROOT environment variables--these
make it easy to use alternate compiler tools. Add in appropriate -I and
-L directives, and you're all set.
--
John Kohl <jtk@rational.com> or <john_kohl@alum.mit.edu>
working for but not representing: Rational Software
sometimes hacking on: NetBSD/i386
Filter annoying Web Ads! See <URL:http://www.intermute.com/>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1998-02-24 5:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-12 5:00 Trouble with forward compatibility Jesper Eskilson
1998-02-13 5:00 ` Jeff Denham
1998-02-16 5:00 ` Jesper Eskilson
1998-02-16 5:00 ` Gerald A. Feldman
1998-02-17 5:00 ` Charles M Richmond
1998-02-23 5:00 ` Jeff Denham
1998-02-24 5:00 ` John Kohl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox