内核模块编程WARNING:"func"[modulename]. undefined

发布于 2022-10-15 04:21:42 字数 4390 浏览 19 评论 0

[root@localhost TestTsp]# make
make -C /usr/src/kernels/2.6.18-194.32.1.el5-i686 M=/home/kai/Desktop/TSM/TestTsp modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.32.1.el5-i686'
  Building modules, stage 2.
  MODPOST
WARNING: "Tspi_TCM_GetTestResult" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_GetCapability" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_SelfTestFull" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_CreateEndorsementKey" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_NV_DefineSpace" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Hash_GetHashValue" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_GetEventLog" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_NV_WriteValue" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Hash_VerifySignature" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_PcrComposite_GetCompositeHash" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_GetAuditDigest" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_ReadCounter" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Policy_AssignToObject" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_GetRandom" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_CreateCounter" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_SetAttribUint32" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_PcrRead" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_TakeOwnership" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Context_FreeMemory" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Hash_Sign" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Data_Unenvelop" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_PcrExtend" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_NV_ReadValue" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_PcrReset" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_ReadCurrentTicks" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Hash_UpdateHashValue" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_SetStatus" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_GetPubEndorsementKey" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_NV_ReleaseSpace" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_GetEvent" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_GetPolicyObject" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_Quote" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Policy_SetSecret" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_PcrComposite_SelectPcrIndex" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_ClearOwner" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_TCM_GetEvents" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_ChangeAuth" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
WARNING: "Tspi_Hash_TickStampBlob" [/home/kai/Desktop/TSM/TestTsp/kmain.ko] undefined!
  CC      /home/kai/Desktop/TSM/TestTsp/kmain.mod.o
  LD [M]  /home/kai/Desktop/TSM/TestTsp/kmain.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.32.1.el5-i686'

请问这中问题怎么解决?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三五鸿雁 2022-10-22 04:21:42

要被别的模块引用的函数要EXPORT_SYMBOL(XXXXXXXX);

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文