Antoine, Antoine Martin wrote: > Urs Rau wrote: >> I get the error: >> arch/um/os-Linux/start_up.c: In function âstart_ptraced_childâ: >> arch/um/os-Linux/start_up.c:110: error: âPAGE_SIZEâ undeclared (first >> use in this function) >> arch/um/os-Linux/start_up.c:110: error: (Each undeclared identifier is >> reported only once >> arch/um/os-Linux/start_up.c:110: error: for each function it appears in.) >> arch/um/os-Linux/start_up.c: In function âstop_ptraced_childâ: >> arch/um/os-Linux/start_up.c:156: error: âPAGE_SIZEâ undeclared (first >> use in this function) >> make[1]: *** [arch/um/os-Linux/start_up.o] Error 1 >> make: *** [arch/um/os-Linux] Error 2 > Does start_up.c include asm/page.h?
Yes it does. > Do you have your kernel headers installed? Yes, I think so. I have to confess that has been 2 or 3 years since I last compiled a kernel under rhel. "rpm -qa | grep kernel" gives me: kernel-xen-2.6.18-8.el5 kernel-devel-2.6.18-8.1.4.el5 yum-kernel-module-1.0.4-2.el5.centos kernel-xen-devel-2.6.18-8.1.4.el5 kernel-doc-2.6.18-8.1.4.el5 kernel-xen-2.6.18-8.1.4.el5 kernel-headers-2.6.18-8.1.4.el5 kernel-2.6.18-8.1.4.el5 I have my kernel.org archive untarred into /usr/src/linux-2.6.21.5 and have a symlink /usr/src/linux -> /usr/src/linux-2.6.21.5 I guess I am missing something very basic and very obvious? cd /usr/src wget http://uml.nagafix.co.uk/kernels/kernel32-2.6.21.2-am1.config wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.21.5.tar.bz2 tar xvjf linux-2.6.21.5.tar.bz2 ln -s linux-2.6.21.5 linux cd linux cp ../kernel32-2.6.21.2-am1.config .config make mrproper ARCH=um make oldconfig ARCH=um (accepting all suggestions as they come) make linux ARCH=um and then it blows up with the errors when compiling start_up.c > >> Is there a certain set of patches I have to apply to the vanilla kernel >> before I can successfully compile a recent UML kernel? > No, patches are no longer needed for normal usage. > That is good news. -- Urs Rau ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user