Hi, I've been thinking of using UML to prototype RHEL v4 based solutions before deployment in real environments. I therefore want the kernel to be as close as possible to the Red Hat supported kernel. I found a similar thread about a month ago (https://www.redhat.com/archives/nahant-list/2006-August/msg00299.html) but unfortunately, Rik didn't follow up on the thread. The problem is as follows:
1) I download the src rpm 2) I installed it and then ran rpmbuild -bp --target=i686 kernel-2.6.spec (unfortunately, there is no --target=i386) 3) I then cd into /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/ and cp configs/kernel-2.6.9-i686.config .config 4) I then run: make ARCH=um and I select some options. However, it then exits giving the following error: ... In file included from include/asm/ptrace.h:9, from include/asm/processor-generic.h:14, from include/asm/processor.h:29, from include/asm/thread_info.h:11, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/time.h:27, from arch/um/util/mk_constants_kern.c:3: arch/um/include/sysdep/ptrace.h:16:25: ptrace-skas.h: No such file or directory In file included from include/asm/ptrace.h:9, from include/asm/processor-generic.h:14, from include/asm/processor.h:29, from include/asm/thread_info.h:11, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/time.h:27, from arch/um/util/mk_constants_kern.c:3: arch/um/include/sysdep/ptrace.h:30: error: `HOST_FRAME_SIZE' undeclared here (not in a function) arch/um/include/sysdep/ptrace.h:31: error: `HOST_FP_SIZE' undeclared here (not in a function) arch/um/include/sysdep/ptrace.h:32: error: `HOST_XFP_SIZE' undeclared here (not in a function) In file included from include/asm/processor.h:29, from include/asm/thread_info.h:11, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/time.h:27, from arch/um/util/mk_constants_kern.c:3: include/asm/processor-generic.h:110:1: warning: "TASK_SIZE" redefined In file included from include/asm/page.h:11, from include/asm/arch/user.h:4, from include/asm/processor.h:20, from include/asm/thread_info.h:11, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/time.h:27, from arch/um/util/mk_constants_kern.c:3: include/asm/arch/page.h:107:1: warning: this is the location of the previous definition make[1]: *** [arch/um/util/mk_constants_kern.o] Error 1 make: *** [arch/um/util] Error 2 Running it again gives the following: [EMAIL PROTECTED] linux-2.6.9]# make ARCH=um CHK include/linux/version.h make[1]: `arch/um/sys-i386/util/mk_sc' is up to date. CHK arch/um/include/skas_ptregs.h CHK arch/um/include/sysdep-i386/sc.h CHK arch/um/include/task.h CHK arch/um/include/kern_constants.h make[1]: `arch/um/sys-i386/util/mk_thread' is up to date. CHK arch/um/include/sysdep-i386/thread.h SYMLINK arch/um/kernel/vmlinux.lds.S CC init/main.o In file included from include/asm/processor.h:29, from include/asm/thread_info.h:11, 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 include/linux/module.h:10, from init/main.c:16: include/asm/processor-generic.h:110:1: warning: "TASK_SIZE" redefined In file included from include/asm/page.h:11, from include/asm/arch/user.h:4, from include/asm/processor.h:20, from include/asm/thread_info.h:11, 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 include/linux/module.h:10, from init/main.c:16: include/asm/arch/page.h:107:1: warning: this is the location of the previous definition In file included from init/main.c:16: include/linux/module.h: In function `__module_get': include/linux/module.h:373: warning: implicit declaration of function `smp_processor_id' In file included from include/asm/kmap_types.h:9, from include/asm/fixmap.h:5, from include/asm/pgtable.h:13, from include/linux/bootmem.h:7, from init/main.c:30: include/asm/arch/kmap_types.h: At top level: include/asm/arch/kmap_types.h:14: error: `STACK_PAGE_COUNT' undeclared here (not in a function) include/asm/arch/kmap_types.h:14: error: enumerator value for `KM_VSTACK_TOP' not integer constant make[1]: *** [init/main.o] Error 1 make: *** [init] Error 2 Any ideas? Thanks for your help. -- Mathew Brown [EMAIL PROTECTED] -- http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user