glibc 2.14安装错误selinux.c:错误:libaudit.h没有这样的文件或目录

时间:2019-03-01 12:06:38

标签: linux centos upgrade glibc

尝试按照this解决方案安装 glibc 2.14

但是我遇到了这个错误,我不确定如何解决它,并且在网上找不到很多东西

selinux.c:37:23: error: libaudit.h: No such file or directory
selinux.c: In function ‘log_callback’:
selinux.c:138: warning: implicit declaration of function ‘audit_log_user_avc_message’
selinux.c:138: error: ‘AUDIT_USER_AVC’ undeclared (first use in this function)
selinux.c:138: error: (Each undeclared identifier is reported only once
selinux.c:138: error: for each function it appears in.)
selinux.c: In function ‘audit_init’:
selinux.c:152: warning: implicit declaration of function ‘audit_open’
make[2]: *** [/home/me/glibc_install/glibc-2.14/build/nscd/selinux.o] Error 1
make[2]: Leaving directory `/local/home/me/glibc_install/glibc-2.14/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/local/home/me/glibc_install/glibc-2.14'
make: *** [all] Error 2

1 个答案:

答案 0 :(得分:0)

--without-selinux附加到您的configure命令或安装SELinux和libaudit的-dev软件包以进行分发。

不过,您可能应该安装glibc的较新版本。在新系统上安装旧版本很危险。