编译 cmake 时出现以下错误。
error: 'AT_SYMLINK_NOFOLLOW' undeclared
请问这个错误的原因是什么。这是 Raspbian 中的错误,因为它是fcntl.h
根据谷歌在以下文件中定义的。
http://lxr.free-electrons.com/source/include/uapi/linux/fcntl.h#L44
[ 37%] Building C object Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_read_disk_posix.c.o
/home/ignite/rpi_package_sb2/cmake-2.8.10.2/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c: In function 'tree_current_lstat':
/home/ignite/rpi_package_sb2/cmake-2.8.10.2/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c:2139:7: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in this function)
/home/ignite/rpi_package_sb2/cmake-2.8.10.2/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c:2139:7: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_read_disk_posix.c.o] Error 1
make[1]: *** [Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/all] Error 2
make: *** [all] Error 2
请建议,我错过了哪些与 cmake 编译相关的依赖项?我在制作时遇到错误