Jeff Dike writes: > Nikita@Namesys.COM said: > > pte_addr_t and CLOCK_TICK_RATE were undefined. > > Undefined WHERE? You could send me a snippet of your build log. Oops, sorry. See below. > > > By the way, I am talking about Linus BK tree, rather than patches you > > have posted. > > I would not have sent it to Linus if it didn't build. Like I said, it builds > here fine. I want to know where it breaks, so I can see it for myself, so > I can be sure the fix is right. > make[1]: Entering directory `/home/nikita/projects/2.5/scripts' make[1]: Leaving directory `/home/nikita/projects/2.5/scripts' make -C arch/um/sys-i386/util mk_sc make[1]: Entering directory `/home/nikita/projects/2.5/arch/um/sys-i386/util' make[1]: `mk_sc' is up to date. make[1]: Leaving directory `/home/nikita/projects/2.5/arch/um/sys-i386/util' Generating include/linux/version.h (unchanged) Starting the build. KBUILD_BUILTIN=1 KBUILD_MODULES= make[1]: Entering directory `/home/nikita/projects/2.5/init' gcc -Wp,-MD,./.main.o.d -D__KERNEL__ -I/home/nikita/projects/2.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g -U__i386__ -Ui386 -D__arch_um__ -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE -I/home/nikita/projects/2.5/arch/um/include -Derrno=kernel_errno -nostdinc -iwithprefix include -DKBUILD_BASENAME=main -c -o main.o main.c In file included from /home/nikita/projects/2.5/include/linux/pagemap.h:7, from /home/nikita/projects/2.5/include/linux/blkdev.h:9, from /home/nikita/projects/2.5/include/linux/blk.h:4, from main.c:25: /home/nikita/projects/2.5/include/linux/mm.h:164: parse error before `pte_addr_t' /home/nikita/projects/2.5/include/linux/mm.h:164: warning: no semicolon at end of struct or union /home/nikita/projects/2.5/include/linux/mm.h:164: warning: no semicolon at end of struct or union /home/nikita/projects/2.5/include/linux/mm.h:165: warning: type defaults to `int' in declaration of `pte' /home/nikita/projects/2.5/include/linux/mm.h:165: warning: data definition has no type or storage class /home/nikita/projects/2.5/include/linux/mm.h:182: parse error before `}' In file included from /home/nikita/projects/2.5/include/linux/pagemap.h:7, from /home/nikita/projects/2.5/include/linux/blkdev.h:9, from /home/nikita/projects/2.5/include/linux/blk.h:4, from main.c:25: /home/nikita/projects/2.5/include/linux/mm.h: In function `put_page': /home/nikita/projects/2.5/include/linux/mm.h:217: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h:217: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h:217: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h:217: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h: In function `page_zone': /home/nikita/projects/2.5/include/linux/mm.h:282: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h:283: warning: control reaches end of non-void function /home/nikita/projects/2.5/include/linux/mm.h: In function `set_page_zone': /home/nikita/projects/2.5/include/linux/mm.h:287: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h:288: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h: In function `page_mapped': /home/nikita/projects/2.5/include/linux/mm.h:331: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h:332: warning: control reaches end of non-void function /home/nikita/projects/2.5/include/linux/mm.h: In function `set_page_dirty': /home/nikita/projects/2.5/include/linux/mm.h:387: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/mm.h:390: dereferencing pointer to incomplete type In file included from /home/nikita/projects/2.5/include/linux/pagemap.h:10, from /home/nikita/projects/2.5/include/linux/blkdev.h:9, from /home/nikita/projects/2.5/include/linux/blk.h:4, from main.c:25: /home/nikita/projects/2.5/include/linux/highmem.h: In function `kmap': /home/nikita/projects/2.5/include/linux/highmem.h:23: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h:23: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h: In function `clear_user_highpage': /home/nikita/projects/2.5/include/linux/highmem.h:36: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h:36: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h: In function `clear_highpage': /home/nikita/projects/2.5/include/linux/highmem.h:43: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h:43: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h: In function `memclear_highpage_flush': /home/nikita/projects/2.5/include/linux/highmem.h:58: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h:58: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h: In function `copy_user_highpage': /home/nikita/projects/2.5/include/linux/highmem.h:69: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h:69: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h:70: arithmetic on pointer to an incomplete type /home/nikita/projects/2.5/include/linux/highmem.h:70: arithmetic on pointer to an incomplete type In file included from /home/nikita/projects/2.5/include/linux/blkdev.h:9, from /home/nikita/projects/2.5/include/linux/blk.h:4, from main.c:25: /home/nikita/projects/2.5/include/linux/pagemap.h: In function `___add_to_page_cache': /home/nikita/projects/2.5/include/linux/pagemap.h:69: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/pagemap.h:70: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/pagemap.h:71: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/pagemap.h: In function `wait_on_page_locked': /home/nikita/projects/2.5/include/linux/pagemap.h:95: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/pagemap.h:95: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/pagemap.h: In function `wait_on_page_writeback': /home/nikita/projects/2.5/include/linux/pagemap.h:104: dereferencing pointer to incomplete type /home/nikita/projects/2.5/include/linux/pagemap.h:104: dereferencing pointer to incomplete type make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/home/nikita/projects/2.5/init' make: *** [init] Error 2 I am attaching .config > Jeff > Nikita.