From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,8c76c4f85a3f2472 X-Google-Attributes: gidfee84,public From: Jeff Denham Subject: Re: Trouble with forward compatibility Date: 1998/02/23 Message-ID: <34F136C5.5708212D@brighttiger.com>#1/1 X-Deja-AN: 327836395 Content-Transfer-Encoding: 8bit References: <34E32B46.CA8691BC@sics.se> <34E40730.9BB75FD9@brighttiger.com> <34E7FCAA.FE3DB0A0@sics.se> <34E9FFF4.11791BDF@iisc.com> Content-Type: text/plain; charset=iso-8859-1 Organization: Bright Tiger Technologies Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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