Hello,

            I have been trying to compile a module against the uml kernel (linus 2.4.19 + uml patch). Against the normal linux kernel the module compiles fine, however against the uml kernel I am getting a lot of errors (I have included the make transcript below). The errors seem to indicate some kind of ‘path’ problem, because it can’t find some of the included files inside the uml files ? Has anyone got errors like this and does anyone know how to fix ?

 

Thanks

Kunal

 

 

gcc -O2 -g -nostdinc -fomit-frame-pointer  -Wall -Wstrict-prototypes -Wno-format -Wmissing-prototypes -Wmissing-declarations  -ICommon/inc -ILinux/inc -I/usr/src/uml/linux-2.4.19/include -I/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DMODULE -DLINUX -D__KERNEL__  -DPARANOID_LOCKS -DRECLAIM_SPACE_ON_TRUNCATE -DNO_CACHE -DSYSFILE_EXTMAP_FIX -DTRACE -DDEBUG  -o Common/ocfsgenalloc.o -c Common/ocfsgenalloc.c

In file included from /usr/src/uml/linux-2.4.19/arch/um/include/sysdep/ptrace.h:12,

                 from /usr/src/uml/linux-2.4.19/include/asm/ptrace.h:9,

                 from /usr/src/uml/linux-2.4.19/include/linux/ptrace.h:24,

                 from /usr/src/uml/linux-2.4.19/include/asm/arch/user.h:5,

                 from /usr/src/uml/linux-2.4.19/include/asm/processor.h:20,

                 from /usr/src/uml/linux-2.4.19/include/linux/prefetch.h:13,

                 from /usr/src/uml/linux-2.4.19/include/linux/list.h:6,

                 from /usr/src/uml/linux-2.4.19/include/linux/module.h:12,

                 from Common/inc/ocfs.h:41,

                 from Common/ocfsgenalloc.c:28:

/usr/src/uml/linux-2.4.19/arch/um/kernel/tt/include/ptrace-tt.h:9:24: uml-config.h: No such file or directory

/usr/src/uml/linux-2.4.19/arch/um/kernel/tt/include/ptrace-tt.h:12:23: sysdep/sc.h: No such file or directory

In file included from /usr/src/uml/linux-2.4.19/arch/um/include/sysdep/ptrace.h:16,

                 from /usr/src/uml/linux-2.4.19/include/asm/ptrace.h:9,

                 from /usr/src/uml/linux-2.4.19/include/linux/ptrace.h:24,

                 from /usr/src/uml/linux-2.4.19/include/asm/arch/user.h:5,

                 from /usr/src/uml/linux-2.4.19/include/asm/processor.h:20,

                 from /usr/src/uml/linux-2.4.19/include/linux/prefetch.h:13,

                 from /usr/src/uml/linux-2.4.19/include/linux/list.h:6,

                 from /usr/src/uml/linux-2.4.19/include/linux/module.h:12,

                 from Common/inc/ocfs.h:41,

                 from Common/ocfsgenalloc.c:28:

/usr/src/uml/linux-2.4.19/arch/um/kernel/skas/include/ptrace-skas.h:9:24: uml-config.h: No such file or directory

In file included from /usr/src/uml/linux-2.4.19/include/asm/ptrace.h:10,

                 from /usr/src/uml/linux-2.4.19/include/linux/ptrace.h:24,

                 from /usr/src/uml/linux-2.4.19/include/asm/arch/user.h:5,

                 from /usr/src/uml/linux-2.4.19/include/asm/processor.h:20,

                 from /usr/src/uml/linux-2.4.19/include/linux/prefetch.h:13,

                 from /usr/src/uml/linux-2.4.19/include/linux/list.h:6,

                 from /usr/src/uml/linux-2.4.19/include/linux/module.h:12,

                 from Common/inc/ocfs.h:41,

                 from Common/ocfsgenalloc.c:28:

/usr/src/uml/linux-2.4.19/include/asm/ptrace-generic.h:25:27: sysdep/ptrace.h: N

o such file or directory

/usr/src/uml/linux-2.4.19/include/asm/ptrace-generic.h:26:25: skas_ptrace.h: No

such file or directory

In file included from /usr/src/uml/linux-2.4.19/include/asm/processor.h:22,

                 from /usr/src/uml/linux-2.4.19/include/linux/prefetch.h:13,

                 from /usr/src/uml/linux-2.4.19/include/linux/list.h:6,

                 from /usr/src/uml/linux-2.4.19/include/linux/module.h:12,

                 from Common/inc/ocfs.h:41,

                 from Common/ocfsgenalloc.c:28:

/usr/src/uml/linux-2.4.19/include/asm/processor-generic.h:17:25: choose-mode.h:

No such file or directory

In file included from /usr/src/uml/linux-2.4.19/include/linux/a.out.h:8,

                 from /usr/src/uml/linux-2.4.19/include/linux/affs_fs_i.h:4,

                 from /usr/src/uml/linux-2.4.19/include/linux/fs.h:304,

                 from /usr/src/uml/linux-2.4.19/include/linux/capability.h:17,

                 from /usr/src/uml/linux-2.4.19/include/linux/binfmts.h:5,

                 from /usr/src/uml/linux-2.4.19/include/linux/sched.h:9,

                 from /usr/src/uml/linux-2.4.19/include/linux/mm.h:4,

                 from /usr/src/uml/linux-2.4.19/include/linux/slab.h:14,

                 from Common/inc/ocfs.h:46,

                 from Common/ocfsgenalloc.c:28:

/usr/src/uml/linux-2.4.19/include/asm/a.out.h:6:25: choose-mode.h: No such file

or directory

In file included from /usr/src/uml/linux-2.4.19/include/linux/sched.h:21,

                 from /usr/src/uml/linux-2.4.19/include/linux/mm.h:4,

                 from /usr/src/uml/linux-2.4.19/include/linux/slab.h:14,

                 from Common/inc/ocfs.h:46,

                 from Common/ocfsgenalloc.c:28:

/usr/src/uml/linux-2.4.19/include/asm/mmu.h:9:20: um_mmu.h: No such file or dire

ctory

In file included from /usr/src/uml/linux-2.4.19/include/linux/highmem.h:5,

                 from /usr/src/uml/linux-2.4.19/include/linux/pagemap.h:16,

                 from Common/inc/ocfs.h:53,

                 from Common/ocfsgenalloc.c:28:

/usr/src/uml/linux-2.4.19/include/asm/pgalloc.h:13:25: choose-mode.h: No such fi

le or directory

In file included from /usr/src/uml/linux-2.4.19/include/asm/unistd.h:10,

                 from /usr/src/uml/linux-2.4.19/include/linux/unistd.h:9,

                 from Common/inc/ocfs.h:62,

                 from Common/ocfsgenalloc.c:28:

/usr/src/uml/linux-2.4.19/include/asm/uaccess.h:31:24: um_uaccess.h: No such fil

e or directory

make[1]: *** [Common/ocfsgenalloc.o] Error 1

make[1]: Leaving directory `/home/kunalt/RAC/ocfs-1.0/ocfs2'

make: *** [ocfs2] Error 2

bash-2.05a$