SUMMARY: Compiling for 2.4 under Solaris 2.6

From: Ning Zhang (
Date: Fri Jul 24 1998 - 12:19:58 CDT

    We have begun upgrading our systems to Solaris 2.6 and Sparcworks C
and fortran compilers. Currently, our development systems are up to 2.6,
while our application server is still at 2.4 as we resolve some problems
the upgrade will cause to our enviornment. In the meantime, one of our
applications is still being updated on the 2.4 machine.
    What would be the easiest way to compile applications for 2.4 on a
2.6 machine? Is there a compiletime switch? can I create a directory
with the 2.4 libaries and complie using them? The client does not want
us doing compiles on the 2.4 machines. Any help would be appreciated,
and will be summarized.

To compile for 2.4, you should:
- hand edit GNU autoconfig files (or run autoconfig on the 2.4 system)
- copy 2.4 include files and libraries
- invoke the compiler pointing at those files.

Since the APIs remain (largly) unchanged, you could try taking a copy of
/usr/lib form the 2.4 box and setting LD_LIBRARY_PATH accordingly.

Casper Dik <casper@holland.Sun.COM>
Sean Ward <>

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:44 CDT