Using stlport4

Hi all,

because I use boost libraries I compile and link my stuff completly with stlport4. What I have to do, if I deploy my software? Can I assume that all what needed is on the target machines or do I have to pack some stlport4 stuff in my installation package.

All programs are build with sunstudio 11 and should run from solaris 5.8

Thanks in advance

Arno

[390 byte] By [ScAra] at [2007-11-27 10:28:33]
# 1

Hi

You'll need libstlport.so.1.

Paul

Paul_Floyda at 2007-7-28 17:52:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Is it always backward compatible?

Lets say you install one application compiled with an unpatched Sun Studio 10, and later add one compiled with the current Sun Studio 11, is it safe to replace the library?

Lars_Va at 2007-7-28 17:52:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

Hi Paul,

thanks for the fast answer. I made the experience on an older Solaris 5.8 host, that after I copied the libstlport.so.1 and start the Application I got the following error message:

ld.so.1: ManagementServer: fatal: libm.so.1: version `SUNW_1.1.1' not found (required by file /opt/sqs/nl/8.0.4/bin/libstlport.so.1)

So I thought I have also to look for dependend libraries. After I move also the libm.so.1 in my private library path the application starts, but chrashes directly in some thread initialisation stuff.

Is this only because of missing Patches? If yes, how can I find out what is required for my deployment on 5.8 and greater versions?

regards

Arno

ScAra at 2007-7-28 17:52:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

There is a patch for SunOS 5.8 containing libm.so - 111721 (I assume you have sparc).

Try to install it and check

pvs -d /usr/lib/libm.so

If it tells SUNW_1.1.1 then you are set.

regards,

__Fedor.

SFVa at 2007-7-28 17:52:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 5

Is this also valid for the solaris versions greater 5.8? And is this patch neccessary for the using of stlport4?

regards

Arno

(yes it is sparc)

ScAra at 2007-7-28 17:52:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 6

Can you run

[code]

> version <path_to_your_prod/lib/stlport4/libstlport.so.1 installed file>

[/code]

It should tell you a patch that this stlport comes from.

Documentation on the patch should (theoretically) list required patches.

And yes, if stlport library has a dependency on the updated libm you will need a patch

to use it.

As for Solaris 5.9 - I have checked out one that I have access to and it has libm 1.1.1 version.

So the chance is its fine.

regards,

__Fedor.

SFVa at 2007-7-28 17:52:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 7

here is the version information from my dev-machine

version of "/opt/SUNWstudio11/SUNWspro/lib/stlport4/libstlport.so.1": Sun C++ 5.8 Patch 121017-06 2006/10/19

this patch say, that it require 120760-03, but it seems that this patch is not installed on my machine? Is there some tool to check the consistency of my sparc? Or what is the best way to be on the right side?

regards

Arno

ScAra at 2007-7-28 17:52:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 8

Check out http://developers.sun.com/sunstudio/downloads/patches/ss11_patches.html

Refer to Solaris 8 Sparc part of the table.

Seems that you should install at least:

10843432-bit shared library patch for C++

10843564-bit shared library patch for C++

111721SunOS 5.8 Math Library libm patch

If you use parallelization or openmp:

117557OpenMP support libmtsk

And probably

109147Linker patch

There is a corresponding list for Solaris 9 and Solaris 10 there as well.

regards,

__Fedor.

SFVa at 2007-7-28 17:52:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...