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

Undefined symbols for architecture x86_64: _pam_syslog

    XMLWordPrintable

Details

    Description

      MacOS linker failed with following:

      [ 92%] Linking C shared module pam_user_map.so
      Undefined symbols for architecture x86_64:
        "_pam_syslog", referenced from:
            _pam_sm_authenticate in pam_user_map.c.o
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make[2]: *** [plugin/auth_pam/pam_user_map.so] Error 1
      make[1]: *** [plugin/auth_pam/CMakeFiles/pam_user_map.dir/all] Error 2
      make: *** [all] Error 2
      

      tried to build with following patch to solve MDEV-21592

      diff --git a/plugin/auth_pam/mapper/pam_user_map.c b/plugin/auth_pam/mapper/pam_user_map.c
      index e1d11acabb9..83a7626b427 100644
      --- a/plugin/auth_pam/mapper/pam_user_map.c
      +++ b/plugin/auth_pam/mapper/pam_user_map.c
      @@ -39,7 +39,11 @@ and usually end up in /var/log/secure file.
       #include <grp.h>
       #include <pwd.h>
       
      +#if defined (__APPLE__) || defined (__FreeBSD__)
      +#include <unistd.h>
      +#include <security/pam_appl.h>
      +#else
       #include <security/pam_ext.h>
      +#endif
       #include <security/pam_modules.h>
       
       #define FILENAME "/etc/security/user_map.conf"
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              abychko Alexey Bychko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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