From 33b15d8306a1d6377f5e97d8921c2cbdd9dbccef Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 9 Nov 2026 08:42:15 -0800 Subject: [PATCH] wtmpdb: Fix build with lld The pam module version script lists pam_sm_chauthtok(), which pam_wtmpdb does not implement, so lld fails with: error: version script assignment of 'global' to symbol 'pam_sm_chauthtok' failed: symbol not defined Drop it from the version script. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...pam_sm_chauthtok-from-the-version-sc.patch | 28 +++++++++++++++++++ .../recipes-extended/wtmpdb/wtmpdb_0.76.0.bb | 4 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch diff --git a/meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch b/meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch new file mode 100644 index 0000000000..6593b8b0d9 --- /dev/null +++ b/meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch @@ -0,0 +1,28 @@ +From 37f2e346c259e946258f95d89bf310fe463d2d92 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 9 Nov 2026 08:37:30 -0800 +Subject: [PATCH] pam_wtmpdb: Drop pam_sm_chauthtok from the version script + +pam_wtmpdb does not implement pam_sm_chauthtok(), so linkers that check +the version script, like lld, fail with: + + error: version script assignment of 'global' to symbol 'pam_sm_chauthtok' failed: symbol not defined + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/pam_wtmpdb.map | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/pam_wtmpdb.map b/src/pam_wtmpdb.map +index 369b047..dcc94d8 100644 +--- a/src/pam_wtmpdb.map ++++ b/src/pam_wtmpdb.map +@@ -2,7 +2,6 @@ + global: + pam_sm_acct_mgmt; + pam_sm_authenticate; +- pam_sm_chauthtok; + pam_sm_close_session; + pam_sm_open_session; + pam_sm_setcred; diff --git a/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb b/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb index ebbfc7e994..392ec0a452 100644 --- a/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb +++ b/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb @@ -7,7 +7,9 @@ SECTION = "libs" SRCREV = "89c0861f74e576c5ad0ec9f5302aa635a4e50dc6" -SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https;tag=v${PV}" +SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https;tag=v${PV} \ + file://0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch \ + " inherit meson pkgconfig systemd features_check