질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

2.6 커널 컴파일 에러입니다. 가르쳐 주세요..

작성자 정보

  • 서진수 작성
  • 작성일

컨텐츠 정보

본문

iptables 때문에 커널을 컴파일 중입니다.

RHEL ES4 버전이구요 커널은 2.6.9-5.EL 입니다.

이놈을 2.6.10으로 업글하려고 커널을 2.6.10을 다운받아서

/usr/src밑에 압축을 풀었습니다.

그리고 /usr/src/linux-2.6.10 으로 이동해서

1.make mrproper -> make menuconfig -> make bzImage 요렇게 작업을 진행중이었습니다.

근데 make bzImage 과정에서 아래의 에러가 나고 더 이상 진행이 되지 않았습니다.

make 만 입력해도 마찬가지여서 화면은 make 로 한 내용을 캡쳐했습니다.

서버관리 실무바이블에도 안나오는 에러여서 이렇게 질문 올립니다.

[root@test-test2 linux-2.6.10]# make
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm -> include/asm-i386
  SPLIT   include/linux/autoconf.h -> include/config/*
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/lex.c
  SHIPPED scripts/genksyms/parse.h
  SHIPPED scripts/genksyms/keywords.c
  HOSTCC  scripts/genksyms/lex.o
  SHIPPED scripts/genksyms/parse.c
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  CC      arch/i386/kernel/asm-offsets.s
In file included from include/asm/system.h:5,
                 from include/asm/processor.h:18,
                 from include/asm/thread_info.h:17,
                 from include/linux/thread_info.h:21,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/i386/kernel/asm-offsets.c:7:
include/linux/kernel.h:10:20: stdarg.h: No such file or directory
In file included from include/asm/system.h:5,
                 from include/asm/processor.h:18,
                 from include/asm/thread_info.h:17,
                 from include/linux/thread_info.h:21,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/i386/kernel/asm-offsets.c:7:
include/linux/kernel.h:82: error: syntax error before "va_list"
include/linux/kernel.h:82: warning: function declaration isn't a prototype
include/linux/kernel.h:85: error: syntax error before "va_list"
include/linux/kernel.h:85: warning: function declaration isn't a prototype
include/linux/kernel.h:88: error: syntax error before "va_list"
include/linux/kernel.h:88: warning: function declaration isn't a prototype
include/linux/kernel.h:92: error: syntax error before "va_list"
include/linux/kernel.h:92: warning: function declaration isn't a prototype
include/linux/kernel.h:102: error: syntax error before "va_list"
include/linux/kernel.h:102: warning: function declaration isn't a prototype
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [arch/i386/kernel/asm-offsets.s] Error 2
[root@test-test2 linux-2.6.10]#

무슨에러일까요?

어떻게 해야 해결이 될까요?

도와주세요. 감사합니다.

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,390 명
  • 현재 강좌수 :  37,072 개
  • 현재 접속자 :  349 명