[SunHELP] Building on Solaris

Nicholas Dronen sunhelp at sunhelp.org
Thu Oct 25 18:42:59 CDT 2001


On Thu, Oct 25, 2001 at 05:09:41PM -0500, Mike's List wrote:
> Programs on Solaris are not forward/backward compatible.  You cannot
> compile a program under Solaris 6 and run under 8 or vice versa.
> 
> The keyword is compile, of course if you doing it under shell scripting or
> perl, etc. then 99.99% of the time it'll run on any Solaris machine (with
> the appropriate interpreter installed).

This is somewhat of an artificial example.

$ uname -r 
5.6
$ cat foo.c
int main() { return(0); }
$ /usr/ccs/bin/make foo
cc    -o foo foo.c 
$ ./foo

Now, on another machine:

$ uname -r
5.8
$ ./foo
$ rm foo
$ /usr/ccs/bin/make foo
cc    -o foo foo.c 
$ ./foo

Back on the first machine, after recompiling
foo on Solaris 8:

$ ./foo

But it does show that what you said about compiled programs
being neither forward nor backward compatible doesn't apply
without at least some qualification.

Regards,

Nicholas Dronen



More information about the SunHELP mailing list