Skip to content

cmake: cryptlib_openssl: link missing TSS2 dependencies#3555

Merged
jyao1 merged 1 commit intoDMTF:mainfrom
Jino26:tpm2-tss-link-fix
Mar 13, 2026
Merged

cmake: cryptlib_openssl: link missing TSS2 dependencies#3555
jyao1 merged 1 commit intoDMTF:mainfrom
Jino26:tpm2-tss-link-fix

Conversation

@Jino26
Copy link
Contributor

@Jino26 Jino26 commented Mar 11, 2026

The tss2-esys library depends on tss2-sys and tss2-mu, but these dependencies are not always propagated automatically in certain build environments (e.g. Yocto). This results in unresolved symbols during linking.

Explicitly linking these libraries ensures successful builds when building libspdm with TPM support enabled.

The tss2-esys library depends on tss2-sys and tss2-mu, but these
dependencies are not always propagated automatically in certain
build environments (e.g. Yocto). This results in
unresolved symbols during linking.

Explicitly linking these libraries ensures successful builds when
building libspdm with TPM support enabled.

Signed-off-by: Jino Abraham <jinoabraham26@gmail.com>
@Jino26
Copy link
Contributor Author

Jino26 commented Mar 11, 2026

Linking errors:

/usr/src/debug/tpm2-tss/4.1.3/src/tss2-esys/esys_iutil.c:215:(.text+0x740): undefined reference to `Tss2_Sys_GetCommandCode'
...
/usr/src/debug/tpm2-tss/4.1.3/src/tss2-esys/esys_mu.c:557:(.text+0x2e18): undefined reference to `Tss2_MU_UINT32_Marshal'

@steven-bellock steven-bellock added bug Something isn't working build Build system labels Mar 11, 2026
@jyao1 jyao1 merged commit 5e1bba2 into DMTF:main Mar 13, 2026
97 checks passed
@Jino26 Jino26 deleted the tpm2-tss-link-fix branch March 13, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working build Build system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants