Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL)
-
None
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
- is blocked by
-
MDEV-21592 Build broken on OpenPAM systems
- Closed