尝试按照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
答案 0 :(得分:0)
将--without-selinux
附加到您的configure
命令或安装SELinux和libaudit的-dev
软件包以进行分发。
不过,您可能应该安装glibc
的较新版本。在新系统上安装旧版本很危险。