>> Delete No. 27144 article
No. [질문]gcc로 module compile하는데요...

등록 2001-04-13 22:30:00 By localhost     조회 2
이름 차상열    

		전 지금 한빛미디어에서 나온 Linux device drivers
라는 책을 공부하고 있습니다...
 책에 2.2.x kernel에서 예제가 된다구 해서....
suse를 2.2.18로 부팅한 다음에 compile한 것이거든요...
sorce는 무지 간단하던데...
 #define MODULE
#include <linux/module.h>
 int init_module(void)      { printk("<1>Hello, world"); return 0; }
void cleanup_module(void)  { printk("<1>Goodbye cruel world"); }
 위 소스를 compile한 후
 insmod hello.o를 하면
다음과 같은 error message가 나옵니다.
hello.o was compiled for kernel version 2.4.2
while this kernel is version 2.2.18
 그래서 kernel 2.4.2에서 하면
hello.o was compiled for kernel version 2.4.2
whiel this kernel is version 2.4.2-4G
라는 message가 나옵니다...
  현재 전 suse 7.1k를 사용하고 있습니다...
 고수님들 도와주세요...
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved