ubuntu搭建TPM emulator过程中的错误

lenovoliulin 2017-07-02 09:21:08
各位大神,我在安装tpm_emulator-0.7.4时,输入make, 报了如下错误,哪位大神可以解答一下是什么问题。该如何解决
[ 96%] Generating linux/tpmd_dev.ko
/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.c: In function ‘tpmd_handle_command’:
/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.c:111:6: error: ‘struct msghdr’ has no member named ‘msg_iov’
msg.msg_iov = &iov;
^
/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.c:112:6: error: ‘struct msghdr’ has no member named ‘msg_iovlen’
msg.msg_iovlen = 1;
^
/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.c:113:9: error: too many arguments to function ‘sock_sendmsg’
res = sock_sendmsg(tpmd_sock, &msg, in_size);
^
In file included from /home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.c:25:0:
include/linux/net.h:219:5: note: declared here
int sock_sendmsg(struct socket sock, struct msghdr *msg);
^
/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.c:125:6: error: ‘struct msghdr’ has no member named ‘msg_iov’
msg.msg_iov = &iov;
^
/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.c:126:6: error: ‘struct msghdr’ has no member named ‘msg_iovlen’
msg.msg_iovlen = 1;
^
scripts/Makefile.build:264: recipe for target '/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.o' failed
make[5]: ** [/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux/tpmd_dev.o] Error 1
Makefile:1396: recipe for target '_module_/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux' failed
make[4]: *** [_module_/home/lin/TrustTPM/tpm_emulator-0.7.4/bulid/tpmd_dev/linux] Error 2
Makefile:20: recipe for target 'all' failed
make[3]: *** [all] Error 2
tpmd_dev/CMakeFiles/tpmd_dev.dir/build.make:62: recipe for target 'tpmd_dev/linux/tpmd_dev.ko' failed
make[2]: *** [tpmd_dev/linux/tpmd_dev.ko] Error 2
CMakeFiles/Makefile2:383: recipe for target 'tpmd_dev/CMakeFiles/tpmd_dev.dir/all' failed
make[1]: *** [tpmd_dev/CMakeFiles/tpmd_dev.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
请问出现这种错误该如何修改
...全文
422 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
kite_flyer 2018-07-25
  • 打赏
  • 举报
回复
是不是因为是虚拟机的问题?
我现在实在vmware上跑的ubuntu
kite_flyer 2018-07-25
  • 打赏
  • 举报
回复
我的内核版本是 Linux version 4.4.0-130-generic (buildd@lgw01-amd64-039)
lenovoliulin 2017-07-03
  • 打赏
  • 举报
回复
引用 1 楼 lgbxyz 的回复:
内核版本太低 需要高于3.19.0-26*
我的内核版本是Linux 4.4.0-21-generic,应该满足你说的要求啊。请问大神还有别的原因吗
lenovoliulin 2017-07-02
  • 打赏
  • 举报
回复
我的内核版本是Linux 4.4.0-21-generic,应该满足你说的要求啊。请问大神还有别的原因吗
LubinLew 2017-07-02
  • 打赏
  • 举报
回复
内核版本太低 需要高于3.19.0-26*

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧