0

当我尝试用新的 Fedora 16 编译一个使用 ext3 结构的旧程序时

我收到消息

# make
Compile main.c In file included from main.c:8:0:
giis.h:18:28: fatal error: linux/ext3_fs.h: No such file or directory
compilation terminated.

我做了 yum install kernel-devel 和 kernel-headers - 但它仍然给出了上述消息。

# uname -a
Linux space 3.2.9-2.fc16.x86_64 #1 SMP Mon Mar 5 20:55:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
4

1 回答 1

1

linux 内核不导出名为 的标头ext3_fs.h,或者不再这样做。编辑你giis.h做没有它。请参阅提交v2.6.25-rc8~52:“从 userpsace 包含的头文件都不会真正编译,也不应该提供,因为用户空间工具应该使用库或至少来自 e2fsprogs 的头文件。”</p>

于 2012-03-19T19:57:09.230 回答