2009-10-11 13 views
0

리눅스 커널을 컴파일하려했지만 오류가 발생했습니다. 상단 메이크 나는 다음과 같은 오류가 점점 오전을 실행하는 동안 -리눅스 커널을 컴파일하는 중 오류가 발생했습니다.

CHK  include/linux/version.h 
    CHK  include/linux/utsrelease.h 
    SYMLINK include/asm -> include/asm-x86 
    HOSTCC scripts/selinux/mdp/mdp 
scripts/selinux/mdp/mdp.c:32:19: error: flask.h: No such file or directory 
scripts/selinux/mdp/mdp.c:56:29: error: class_to_string.h: No such file or directory 
scripts/selinux/mdp/mdp.c:61:35: error: initial_sid_to_string.h: No such file or directory 
scripts/selinux/mdp/mdp.c:66:35: error: common_perm_to_string.h: No such file or directory 
scripts/selinux/mdp/mdp.c:91:24: error: av_inherit.h: No such file or directory 
scripts/selinux/mdp/mdp.c:95:28: error: av_permissions.h: No such file or directory 
scripts/selinux/mdp/mdp.c:103:31: error: av_perm_to_string.h: No such file or directory 
scripts/selinux/mdp/mdp.c: In function ‘main’: 
scripts/selinux/mdp/mdp.c:140: error: ‘initial_sid_to_string’ undeclared (first use in this function) 
scripts/selinux/mdp/mdp.c:140: error: (Each undeclared identifier is reported only once 
scripts/selinux/mdp/mdp.c:140: error: for each function it appears in.) 
make[3]: *** [scripts/selinux/mdp/mdp] Error 1 
make[2]: *** [scripts/selinux/mdp] Error 2 
make[1]: *** [scripts/selinux] Error 2 
make: *** [scripts] Error 2 

내가

오류 로그 파일이 구성 중에 생성하기로했다 보인다 oldconfig 만드는 사용 를 구성 구축에 앞서. 하지만 어떻게 든 그들은 생성되지 않으므로 오류가 발생합니다. 그물을 검색했지만 여전히 오류를 수정할 수 없습니다. 커널 프로그래밍을 처음 접했습니다. 도움이 될 것입니다.

감사합니다.

답변

0

SELinux 기능에 대한 일부 내용이 누락 된 것 같습니다. 적절한 selinux dev 패키지가 설치되어 있는지 확인하십시오. 우분투에서는 libselinux1-dev가 필요하다고 생각합니다.

+0

빠른 응답을 주셔서 감사합니다. 페도라 코어의 경우 "libselinux1-dev"에 해당하는 내용이 다른 경우이를 알려주시겠습니까? 어디에서 패키지를 얻을 수 있으며 커널 소스 트리에서 어디에 보관해야합니까? 고마워요. –

+0

일반적으로 패키지를 설치하고 "make"가 패키지를 찾도록하십시오. 나는 그것이 무엇인지 모르지만, 이것이 selinux가 필요로하는 것으로 보이기 때문에, 나는 그 일반적인 영역을 검색하기 시작할 것입니다. –

관련 문제