Bug #82646 Fix dynamic library search paths issues on solaris
Submitted: 19 Aug 2016 9:05 Modified: 24 Aug 2016 14:56
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.1 OS:Any
Assigned to: CPU Architecture:Any

[19 Aug 2016 9:05] Tor Didriksen
Description:
The patch for WL#8688: Support ability to persist SET GLOBAL settings
uncovered bugs in our handling of search paths on Solaris.
The patch introduced C++11 dependencies in the 'mysys' library,
and these must be resolved correctly
 - either against the developerstudio version of libstdc++.so
 - or against the gcc version of libstdc++.so
The problem was resolved temporarily by disabling -R options,
and by *not* installing the gcc libstdc++.so into our own <install>/lib directory.

How to repeat:
-IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND DISABLED_CMAKE_COMPILER_IS_GNUCC)
+IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_COMPILER_IS_GNUCC)

Suggested fix:
Add proper -R and -L options when building on Solaris.
Remove LD_LIBRARY_PATH manipulation in mysql-test-run.pl.
Fix mysql_config to report proper library search paths.
[24 Aug 2016 14:56] Paul DuBois
Posted by developer:
 
Noted in 8.0.1 changelog.

Library search path handling on Solaris was incorrect.