From: Raymond Toy on
Is it possible to build binaries on Solaris 10 that will run on Solaris
8? I'm not using any special libraries other than libc, libm, libnsl,
libsocket, and libdl.

What I currently see is that this app links in libm.so.2, which doesn't
exist on Solaris 8. But if I change the link command to link just
/lib/libm.so.1, the app links just fine and runs just fine on both 8 and
10. (Only a few quick tests were done, though.)

Is that ok, or will it eventually be doomed for failure?

Ray
From: Oscar del Rio on
Raymond Toy wrote:
> Is it possible to build binaries on Solaris 10 that will run on Solaris
> 8? I'm not using any special libraries other than libc, libm, libnsl,
> libsocket, and libdl.

Build the binaries on a Solaris 8 system, e.g.
http://www.sun.com/software/solaris/containers/index.jsp
From: Richard B. Gilbert on
Raymond Toy wrote:
> Is it possible to build binaries on Solaris 10 that will run on Solaris
> 8? I'm not using any special libraries other than libc, libm, libnsl,
> libsocket, and libdl.
>
> What I currently see is that this app links in libm.so.2, which doesn't
> exist on Solaris 8. But if I change the link command to link just
> /lib/libm.so.1, the app links just fine and runs just fine on both 8 and
> 10. (Only a few quick tests were done, though.)
>
> Is that ok, or will it eventually be doomed for failure?
>
> Ray

Building on release X to run on release X-N may work by sheer accident
but it's not something you can count on!!!! The O/S developers try very
hard to ensure that software built on X-N will work on Release X, X+1,
X+2, etc.

Many software developers purposely work under Release X-N in order to be
able to run on all reasonably current releases of the O/S. Today
"reasonably current" could be taken to mean Solaris 9 and Solaris 10.
Support for running under Solaris 8 MAY be available but you can't count
on it.

If I were developing software for sale I would work under S8 and test on
S8, S9, and S10. With Solaris 8 being something like seven years old now
many developers would not bother with supporting it.
From: Rich Teer on
On Wed, 6 Jan 2010, Raymond Toy wrote:

> Is it possible to build binaries on Solaris 10 that will run on Solaris
> 8? I'm not using any special libraries other than libc, libm, libnsl,
> libsocket, and libdl.

Out of the box? No. What you build may or (more likely) may not work,
and may break at random times. Don't do it.

If I were you, I'd strongly reconsider the need to support something as
ancient as Solaris 8. It passed its EOSL a couple of years ago; it really
is bereft of life!

That said, if Solaris 8 is still a must for you, you do have one way out:
use a Solaris 8 Container on one of your Solaris 10 machines. Build your
app within the S8 container, and all will be good.

HTH,

--
Rich Teer, Publisher
Vinylphile Magazine

www.vinylphilemag.com
From: Doug McIntyre on
"Richard B. Gilbert" <rgilbert88(a)comcast.net> writes:
>If I were developing software for sale I would work under S8 and test on
>S8, S9, and S10. With Solaris 8 being something like seven years old now
>many developers would not bother with supporting it.

S8 is coming up on 10 years old.
Even S10 is about 5 years old now this month.

But yes, I know of many software vendors still certifying their
software only for S8. Although that EoSupport in 3/2012 should scare
them somewhat.

Sigh.