From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6c9e3b0a891e878e X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-02-04 07:52:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!harris Subject: Re: executables From: Bob Harris Newsgroups: comp.unix.tru64 Posted-And-Mailed: yes Message-ID: <040220021050591212%harris@zk3.dec.com> References: <3C5BCF7F.30C717A9@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit User-Agent: YA-NewsWatcher/5.0.1 Date: Mon, 04 Feb 2002 10:50:59 -0500 NNTP-Posting-Host: 16.140.32.194 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1012837935 16.140.32.194 (Mon, 04 Feb 2002 07:52:15 PST) NNTP-Posting-Date: Mon, 04 Feb 2002 07:52:15 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:6708 [[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article <3C5BCF7F.30C717A9@web.de>, Bernhard Mueck wrote: X Hi all, X i have two dec alpha boxes, X one is running on "OSF1 V4.0 1229 alpha" and the other on X "OSF1 V5.1 732 alpha" . X X On the V5.1 machine i have a compiler X f90 -version X Compaq Fortran V5.4-1283 X Compaq Fortran Compiler V5.4-1283-46ABA X X Is it possible to produce executables for the older V4.0 machines with X this compiler. X I tried the -non_shared option, but this did not work. X The error message was "Bad system call" . Highly unlikely, as v5.* added new system calls and the v5.1 compiled code is mostly calling them, so when you take the code back to v4.*, where the new calls do not exist, the program fails. Even if your program does not use any of the new calls, the libraries you are including in your code vai -non_shared may be calling them. And you may not even know that you are calling new calls, since some of them (like stat()) are really standard POSIX functions that have been given a face lift and vai some complex renaming tricks it looks like you are calling the same old function, but in reality, you are calling a new API in the kernel. The renaming tricks allows existing programs to continue to call the old syscall API and still work, while newly compiled programs learn to call the new (and improved) API. We maintain forward compatibility, while improving our APIs for newly compile code. But that will not allow you to compile code on v5.1 and take it back to v4.* Bob Harris