Bug #85985 remove dependencis on libstatomic.so on solaris
Submitted: 18 Apr 2017 13:23 Modified: 24 Apr 2017 15:00
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.19 OS:Any
Assigned to: CPU Architecture:Any

[18 Apr 2017 13:23] Tor Didriksen
Description:
man -M /opt/developerstudio12.5/man CC

       -xatomic=a

           Specify which atomics support runtime library is linked.

           a must be one of the following:

           studio    Link with the libstatomic  library  bundled  with  Oracle
                     Developer Studio.

           gcc       Link with the libatomic library in /usr/lib.

           none      Do not link with any atomics support library.

           The option -xatomic=studio is the default when neither -latomic nor
           -xatomic  is  specified,  and  the   compiler   is   compiling   in
           -std={c++03|c++11|c++14} mode.

So with -latomic we got dependency on
/opt/developerstudio12.5/lib/compilers/atomic/sparcv9/libstatomic.so

This breaks the build of e.g. the ODBC client library.

How to repeat:
Build with oracle studio on Solaris.
elfdump -devl libmysql/libmysqlclient.so

Suggested fix:
Build against /usr/lib/sparcv9/libatomic.so instead.
[24 Apr 2017 15:00] Paul DuBois
Posted by developer:
 
Noted in 5.7.19 changelog.

On Solaris, MySQL binary distributions are now linked against
libatomic.so, so they are no longer dependent on libstatomic.so.