【问题标题】:glibc 2.14 install error selinux.c: error: libaudit.h no such file or directoryglibc 2.14 install error selinux.c: error: libaudit.h no such file or directory
【发布时间】:2019-07-23 11:15:52
【问题描述】:

尝试按照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

【问题讨论】:

    标签: linux centos upgrade glibc


    【解决方案1】:

    --without-selinux 附加到您的configure 命令或为您的发行版安装SELinux 和libaudit 的-dev 包。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-01-22
      • 2022-07-11
      • 2012-06-03
      • 1970-01-01
      • 2018-11-22
      • 2014-01-20
      • 2017-02-08
      • 1970-01-01
      相关资源
      最近更新 更多