From 5ab81ffe0097a22a774957df28c5223cf0201de3 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 5 Aug 2024 10:39:50 +0200 Subject: [PATCH] fix plugins.rpl_auth failure in bintars in bintars the server is linked with wolfssl, while the connector is linked with gnutls. Thus client_ed25519.so gets gnutls dependency, unresolved symbols and it cannot be loaded into the server and gnutls symbols aren't present there. linking the plugin statically with gnutls fixes that and the test passes. but when such a plugin is loaded into the client, the client gets two copies of gnutls - they conflict and ssl doesn't work at all. let's detect this and disable the test for now. --- mysql-test/suite/plugins/r/rpl_auth.result | 2 ++ mysql-test/suite/plugins/t/rpl_auth.test | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/mysql-test/suite/plugins/r/rpl_auth.result b/mysql-test/suite/plugins/r/rpl_auth.result index 967cab167f7..e7eff75ec73 100644 --- a/mysql-test/suite/plugins/r/rpl_auth.result +++ b/mysql-test/suite/plugins/r/rpl_auth.result @@ -1,3 +1,5 @@ +install soname 'client_ed25519'; +Got one of the listed errors include/master-slave.inc [connection master] connection slave; diff --git a/mysql-test/suite/plugins/t/rpl_auth.test b/mysql-test/suite/plugins/t/rpl_auth.test index b0b13124760..9abba0092e5 100644 --- a/mysql-test/suite/plugins/t/rpl_auth.test +++ b/mysql-test/suite/plugins/t/rpl_auth.test @@ -5,6 +5,12 @@ if (!$AUTH_ED25519_SO) { if (!$CLIENT_ED25519_SO) { skip No client_ed25519 plugin; } +--error ER_CANT_OPEN_LIBRARY,ER_CANT_FIND_DL_ENTRY +install soname 'client_ed25519'; +if ($errno == 1126) { + # this happens in bintars when C/C is linked with gnutls + skip client_ed25519 contains unresolved symbols; +} source include/master-slave.inc;