Hi Team,

When using mariadb-10.3.38, after upgrading Openssl from 1.1.1 to 3.1 strange compilation errors occur.
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_error'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_fetch_row'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_num_rows'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_select_db'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_num_fields'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_real_connect'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_close'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_init'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_free_result'
/xxxx/bin/ld: ../build/lib/libyyyy.so: undefined reference to `server_mysql_store_result'
collect2: error: ld returned 1 exit status
make[1]: *** [../rules.Make:461: cli] Error 1

libyyyy.so uses shared library libmysqlclient.so and both of them use mysql_xxxx. I don't know why prefix "server_" is added.

I found a simliar issue where valgrind is used. But in my scenario valgrind is not used.
https://jira.mariadb.org/browse/MDEV-28958?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel

Any constructive suggestions are welcomed. Many thanks in advance.

Regards,
Allen