This content has been marked as final. Show 4 replies
The version of the system library libmtsk.so on your computer is out of date. Review the requirements for Solaris patches in the Release Notes for the version of Studio that you are using. You can find documentation, including release notes, from the Studio home page:
user13080471 wrote:Sorry, I didn't notice you were on Linux. It should not be possible to get this error on Linux using a correct Studio installation.
on centos 5, with sunstudio 12.2, i got this error when linking:
/opt/sun/SolarisStudio12.2-linux-x86-tar-ML/solstudio12.2/lib/amd64/libsunperf.so.3: undefined reference to `__mt_static_for_loop@SUNWprivate_1.5'
If i try to compile with SunStudio 12.3 beta, the error becomes:
exe: /opt/SUNWhpc/HPC8.2/sun/lib/64/libmtsk.so.1: version `SUNWprivate_1.5' not found (required by /opt/sun/solstudiodev/lib/amd64/libsunperf.so.3)
The path /opt/SUNWhpc/HPC8.2/sun/lib/64/libmtsk.so.1 does not look like anything that is part of Studio. Although Studio includes a libmtsk.so.1, the library is not on such a path. I suspect this library came from some other product, and is either an unrelated library with the same name, or is an out-of-date version of the Studio libmtsk.
Probably the executable's runpath (the list of directories searched for shared libraries) includes this HPC8.2 path. If that path is necessary, you will probably have to resolve the problem manually. You might be able to remove the old libmtsk, or replace it with a newer one, or adjust the runpath by using a custom ld command. None of these are likely to be good solutions, but the problem seems to be due to conflicting versions of libmtsk when there should be only one on the system.
ok, i understand the problem.
/opt/SUNWhpc/HPC8.2/sun/lib/64/libmtsk.so.1 comes from Sun HPC (renamed Oracle Message Passing Toolkit). The error is related to the usage of Sun Studio release > 12.1.
With Sun Studio 12.1, the error deosn't appear.
In fact, i simply did a nm in libsunperf.so.3, SUNWprivate_1.5 appears at 12.2 release. And as i cannot update the Message Passing Toolkit, i'm stuck with SunStudio 12.1
thanks again for your help,