Skip to content
  • Tor Didriksen's avatar
    3e9e9277
    Bug#30243901 SOLARIS SUPPORT COMPILATION WITH OPENSSL 1.1.1 FOR MYSQL 5.6 & 5.7 · 3e9e9277
    Tor Didriksen authored
    Patch for 5.7
    
    Workaround for compiler bug
    ld.so.1: mysqld: fatal: relocation error: file sql/mysqld:
             symbol OPENSSL_sk_new_null: referenced symbol not found
    openssl/safestack.h has lots of pragma weak <function>.
    All are tagged as WEAK in generated binaries.
    
    Taking the address of OPENSSL_sk_new_null solves the problem.
    We do it in sql/net_serv.cc because this file is used by both
    client and server and "embedded" versions of client and server.
    
    Change-Id: I63e1a1bf5ecd29bf7c3f0697295c533c4401af41
    3e9e9277
    Bug#30243901 SOLARIS SUPPORT COMPILATION WITH OPENSSL 1.1.1 FOR MYSQL 5.6 & 5.7
    Tor Didriksen authored
    Patch for 5.7
    
    Workaround for compiler bug
    ld.so.1: mysqld: fatal: relocation error: file sql/mysqld:
             symbol OPENSSL_sk_new_null: referenced symbol not found
    openssl/safestack.h has lots of pragma weak <function>.
    All are tagged as WEAK in generated binaries.
    
    Taking the address of OPENSSL_sk_new_null solves the problem.
    We do it in sql/net_serv.cc because this file is used by both
    client and server and "embedded" versions of client and server.
    
    Change-Id: I63e1a1bf5ecd29bf7c3f0697295c533c4401af41
Loading