Multiple Compiler Versions One Machine

Hi All,

My company has deployment rollout needs which require me to work with different versions of the Sun Studio C++ Compiler. We need to upgrade to Sun Studio 10 C++ Version 5.7 but yet I still need to work with an older Sun C++ Compiler and older versions of certain shared libraries like libCstd.so . My question is how to deal with multiple versions of shared libraries on ONE system.

I am linking to "/usr/lib/ libCstd.so.1". The install directory /opt/SUNWspro/lib DOES NOT HAVE the file "libCstd.so", it only has symbolic links as /opt/SUNWspro/lib/libCstd.so -> /usr/lib/..

If I install another version of Sun Studio C++ into a different directory and it puts libCstd.so over in /usr/lib, it will overwrite the previous libCstd. Our production env has the older shared libraries and for production support work, I NEED TO COMPILE, LINK, and TEST WITH SAME LIBRARIES as they have. But for future release, I need to use C++ 5.7 and I have ONE SunBlade to work with.

If the install always puts libCstd.so in /usr/lib and sets up sym links, how can you have older shared lib versions on ONE box?

Sun has extensive documentation on "Supporting Multiple Compiler Versions" but I cannot find anything that addresses this issue..

Do I need to manually archive them prior to new compiler install and overide with LD_LIBRARY_PATH? It would be nice if install placed additional libCstd.so file somewhere under /opt/SUNWspro/.. instead of only in /usr/lib..

I greatly appreciate any advice.

Joe

[1550 byte] By [dj-joek] at [2007-11-26 10:55:55]
# 1

I don't really think that this is a problem, i normally have at least four different Sun Studio/Forte versions installed at any given time and so far that haven't caused me any problems.

I think you have overlooked the fact that libCstd.so is boundled with Solaris, it will be there even if you don't install any Sun Studio Version, it wont be changed unless you add a Solaris patch which upgrades it.

Here is a grep of /var/sadm/install/contents of a machine that have no Sun Studio installed:

/usr/lib/libCstd.so.1 f none 0755 root bin 1822152 65450 1144428504 SUNWlibC

.7/M.

mAbrante at 2007-7-7 3:09:06 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...