Bug 286580 - pam_ssh.so.6: /usr/lib/libprivatessh.so.5: Undefined symbol "Fssh_sshsk_sign"
Summary: pam_ssh.so.6: /usr/lib/libprivatessh.so.5: Undefined symbol "Fssh_sshsk_sign"
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-04 15:50 UTC by Guido Falsi
Modified: 2025-05-06 07:59 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Falsi freebsd_committer freebsd_triage 2025-05-04 15:50:02 UTC
Hi,

I'm using the latest head (commit base 83507f9e6fedbc02d1acecc9fb5c09eae34b1ae6 date: Sun May 4 00:49:28 2025 -0700).

pam_ssh.so started reporting an undefined symbol.

This is very very similar to an issue I reported years ago in bug #258384

Looks like this is caused by commits base 1c99af1ebe61cbaf633792941640dcd254acf921 and base 65d8491719bbc88ed45637d2381931c2d29cfe87

The last one works fine for ssh parts itself, but leaves out pam_ssh, whcih now is missing the implementation of ssh-sk-client.

I have fixed the issue locally by adding back ssh-sk-client.c to libssh SRCS, but this is not the correct fix.

A first try at adding ssh-sk-client.c to pam_ssh SRCS fails, since it causes redefined symbols, some more glue is needed. I'm investigating  how to fix this properly.
Comment 1 Jose Luis Duran freebsd_committer freebsd_triage 2025-05-04 16:59:56 UTC
I would prefer to partially revert base 65d8491719bbc88ed45637d2381931c2d29cfe87.  I heed to change the commit log and test more, but here is the review:
https://reviews.freebsd.org/D50020

Let me know if you can test this review and see if it removes the warning.
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2025-05-04 20:53:33 UTC
(In reply to Jose Luis Duran from comment #1)

I've tested the patch in the review and it fixes the issue.