![](/zbxe/layouts/mr_layouts_1st/images/default/blank.gif)
도와주세요!!
글 수 15,339
2008.09.17 13:54:33 (*.55.127.122)
28909
http://forum.falinux.com/zbxe/?document_srl=468577 를 보고 커널 컴파일을 하려는데
make zImage를 실행하니
위와 같은 오류로 진행이 안되더군요.
make zImage를 실행하니
scripts/mod/sumversion.c: In function ‘get_src_version’:
scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable ‘filelist’
make[3]: *** [scripts/mod/sumversion.o] Error 1
make[2]: *** [scripts/mod] Error 2
make[1]: *** [scripts] Error 2
scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable ‘filelist’
make[3]: *** [scripts/mod/sumversion.o] Error 1
make[2]: *** [scripts/mod] Error 2
make[1]: *** [scripts] Error 2
위와 같은 오류로 진행이 안되더군요.
검색을 해보니
페도라 9에서는 표준 라이브러리 최신 버젼만 지원해줘서
발생하는 문자라는군요.
1. 이전 라이브러리를 중복 설치
2. 코드 수정
라이브러리 중복 설치는 야근을 유발할 수 있으니
2번을 추천합니다.
scripts/mod/sumversion.c 코드
사이에 아래와 같이 #include <limits.h> 를 추가하면 됩니다.
그래도 오류가 나면
를 추가해주세요.
페도라 9에서는 표준 라이브러리 최신 버젼만 지원해줘서
발생하는 문자라는군요.
1. 이전 라이브러리를 중복 설치
2. 코드 수정
라이브러리 중복 설치는 야근을 유발할 수 있으니
2번을 추천합니다.
scripts/mod/sumversion.c 코드
#include <string.h>
#include "modpost.h"
#include "modpost.h"
사이에 아래와 같이 #include <limits.h> 를 추가하면 됩니다.
#include <string.h>
#include <limits.h>
#include "modpost.h"
#include <limits.h>
#include "modpost.h"
그래도 오류가 나면
#include <linux/limits.h>
를 추가해주세요.
팁에 올려도 좋은 글이라 복사해 놓게습니다.