[MDEV-24518] Exported function get_charset() name conflicts with samba Created: 2021-01-03  Updated: 2021-01-12

Status: Open
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.5.8
Fix Version/s: 10.5

Type: Bug Priority: Minor
Reporter: Xu Zhao Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: Compatibility, Conflict
Environment:

openSUSE Tumbleweed 20201229



 Description   

MariaDB exports a few functions called "get_charset*" in libmariadbd.so.19. This conflicts with libsmbconf.so.0, which also exports a function with the same name "get_charset()".

Therefore, if an application (for example, Amarok on KDE) links both so libraries, a name conflict will happen and the application will crash.

It is a question whether MariaDB or Samba team should rename the function, but the best practice will be renaming the "get_charset" function to "mariadb_get_charset" and "samba_get_charset" function, respectively.

Related MariaDB code:

Related Samba code:


Generated at Thu Feb 08 09:30:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.