#include<include/asm-i386/unistd.h>
_syscall0(int.newsyscall);
main()
{
int i;
i=newsyscall();
}
gcc 컴파일을 하면
[root@localhost linux-2.4.24]# gcc test.c
test.c:1:37: include/asm-i386/unistd.h: 그런 파일이나 디렉토리가 없 음
test.c:2: parse error before '.' token
test.c:2: warning: data definition has no type or storage class
제가 가지고 있는 CD의 커널 버전이 2.4.2 여서 업그레이드를 하려고 커널 2.6.0 다운 받고 또 Documentaion Changes 에서 필요 한 Util도 받아서 업그레이드 했는데 커널 컴파일 하는데 에러메시지가 나오네요. 어떻게 해결해야 하는지 모르겠네요. 에러메시지는
Quote:
init/main.c:
This compiler cannot compile correctly with frame pointers enabled
2.4.2 커널 소스는 제대로 컴파일 되거든요. 왜 2.6.0은 안되는건지..
그리고 gcc 가 include 하는 path 가 어디에 있는거죠? /usr/include 아닌가요?