-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tpm2_ptool - Undefined sybol: TSS2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal #840
Comments
I've uninstalled
edit: my bad, it has a Seems related to tpm2-software/tpm2-pytss#496 workaround Installing from pip fixes it :)
However, it seems that, at least on Arch, the Fixing on Arch (at least)Rebuilding sudo pacman -Rsn tpm2-pkcs11 python-tpm2-pytss
curl -sS https://gitlab.archlinux.org/archlinux/packaging/packages/tpm2-pkcs11/-/raw/main/keys/pgp/5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1.asc\?inline\=false | gpg --import
git clone https://gitlab.archlinux.org/archlinux/packaging/packages/python-tpm2-pytss.git
cd python-tpm2-pytss
makepkg -si
sudo pacman -S tpm2-pkcs11 |
@whooo can you give advice on how to solve this problem? |
Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal and Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal where removed in tpm2-tss 4.0.0, so it looks like the tpm2-pytss package was built with an older release of tpm2-tss and then the tpm2-tss libraries where upgraded, can you check which version of tpm2-tss you have installed on your systems? How did you install tpm2-pytss? |
Wrong project, moving it over to tpm2-pkcs11 |
Sorry, but I cannot test against this issue currently. On Arch it "just works"?! I had the problems on Fedora, but the distro didnt work out. But I guess @retpolanne did find a possible solution or workaround :) |
Also make sure you don't have multiple .so's on the system. I've seen this happens where it builds against the correct headers but links to a library that wasn't expected. ldd on the shared object will give you where its resolving all the dependencies. |
Hi, I can confirm the issuer is present on Arch as of now.
Searching for leftovers with ldd is fine too
I could only surmise that the current Arch package is to blame according to what I read above. |
I can not speak for the issue with Fedora (but I suspect the same). So no package is really to blame, rebuilding the package in Arch should be enough (and might include some new extras then as well). @diabonas, do you have any insight on the Arch parts? |
tpm2-tss has indeed been updated to 4.0.1 (https://gitlab.archlinux.org/archlinux/packaging/packages/tpm2-tss/-/commit/a6479bce838a3a653495704a0bd4419ac4ff6e4d) after updating python-tpm2-pytss to 2.1.0 (https://gitlab.archlinux.org/archlinux/packaging/packages/python-tpm2-pytss/-/commit/9ef963c16c86b4e0ee8b13735c245178531a23dd). Not sure what exactly happened there, but did we miss a soname change, or was none introduced? (maybe @arojas remembers)
Since he is M.I.A. I have rebuilt our |
To add further information on the tpm2-tss upgrade (3 -> 4): There are no soname changes introduced, yet @whooo mentioned the removal of For reference: Using soname changes downstreams are able to detect ABI changes, which then lead to rebuilds of all affected consumers of a library. If there is no soname change, then there is no way of knowing if the ABI has changed (and things break, as they did here). The below provides the repod-file output for tpm2-tss
|
I didn't have time to test the latest changes yet. Thank you very much! |
Hey,
I wanted to use my TPM2 module for storing ssh keys, but I received an error from the tpm2-tools suite.
I ran "tpm2_ptool --help" and received the following stacktrace:
I added myself to the tss group and running the command using root does nothing else.
However, I did ran tpm2_clear before, tho I suspect that it is unrelated to the issue.
The text was updated successfully, but these errors were encountered: