Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-24518

Exported function get_charset() name conflicts with samba

    XMLWordPrintable

Details

    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:

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            xzhao Xu Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.