PeterHuewe / tpm-emulator

The famous tpm-emulator by Mario Strasser, previously hosted on BerliOs. It supports TPM1.2 only!
GNU General Public License v2.0
177 stars 75 forks source link

expected declaration specifiers or ‘...’ before string constant #56

Open Lishuoyy opened 2 years ago

Lishuoyy commented 2 years ago

error: expected declaration specifiers or ‘...’ before string constant 33 | #define TPM_DEVICE_ID "tpm" | ^~~~~ I hope someone can answer for me, thanks!

fanrong1992 commented 2 years ago

Comment line 54 in tpmd_dev.c works for me. tpmd_dev/linux/tpmd_dev.c:

// MODULE_SUPPORTED_DEVICE(TPM_DEVICE_ID);
langcaijinjiangyan commented 1 year ago

error: expected declaration specifiers or ‘...’ before string constant 33 | #define TPM_DEVICE_ID "tpm" | ^~~~~ I hope someone can answer for me, thanks!

How did you solve it? I meet the same problem at ubuntu22.04. I tryied the method in this issue but it doesn't work.