gpt4 book ai didi

c - Systrace 1.6f 编译错误

转载 作者:行者123 更新时间:2023-11-30 17:59:00 25 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 12.04 32 位版本上编译 Systrace-1.6f。我发现以下错误。

root@sharma-VM:/home/sharma/Desktop/systrace-1.6f# makemake  all-recursivemake[1]: Entering directory `/home/sharma/Desktop/systrace-1.6f'Making all in .make[2]: Entering directory `/home/sharma/Desktop/systrace-1.6f'gcc -DHAVE_CONFIG_H -I.     -Wall  -c systrace-translate.cIn file included from systrace-translate.c:54:0:linux_fcntl.h:90:2: error: unknown type name ‘linux_off_t’linux_fcntl.h:91:2: error: unknown type name ‘linux_off_t’linux_fcntl.h:92:2: error: unknown type name ‘linux_pid_t’linux_fcntl.h:98:9: error: unknown type name ‘linux_loff_t’linux_fcntl.h:99:9: error: unknown type name ‘linux_loff_t’linux_fcntl.h:100:9: error: unknown type name ‘linux_pid_t’make[2]: *** [systrace-translate.o] Error 1make[2]: Leaving directory `/home/sharma/Desktop/systrace-1.6f'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/sharma/Desktop/systrace-1.6f'make: *** [all] Error 2

请为我提出上述错误的解决方案。

最佳答案

这个关于特定程序的问题太具体,无法在 SO 上提出。但是我遇到了同样的问题,这就是我找到它的方法。

grep 是你的 helper !您可以通过 grep -rsli linux_off_t 来查找它位于 linux_types.h 中。另一个问题是为什么它不起作用,但如果您只是想更进一步,请插入以下行

#undef _LINUX_TYPES_H
#include "linux_types.h"

位于 linux_fcntl.h 开头的某个位置。

然后你会遇到另一个问题。将所有对 cs 的引用替换为 xcs。自从我上次使用汇编程序以来,我花了一段时间。所以我不知道现在这个寄存器是否是这样调用的,但这就是我在 /usr/include/i386-linux-gnu/sys/user 中看到的 struct user_regs_struct .h.

尽管如此,它仍然没有通过第二次回归测试。

systrace 已经有一段时间没有更新了,并且可能与 3.x 内核不太兼容。不过我不是内核专家。

关于c - Systrace 1.6f 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11857021/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com