From: Mads K. <md...@un...> - 2004-03-08 13:09:09
|
Hi list! I'm trying to compile oprofile 0.7.1-2 on a debian system. The system is a dual Itanium 2 with kernel revision 2.4.25-mckinley-smp. I have installed the kernel sources, copied the .config-file into the kernel source directory and done a 'make oldprofile && make dep'.=20 When I try to compile oprofile I then get the following error:=20 gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.25/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -ffixed-r13 -mfixed-range=3Df12-f15,f32-f127 -falign-functions=3D32 -DGAS_HAS_HINT_INSN -frename-registers --param max-inline-insns=3D5000 -DMODULE -DMODVERSIONS -include /usr/src/kernel-source-2.4.25/include/linux/modversions.h -DHAVE_LINUX_SPINLOCK_HEADER -DRTC_LOCK -DEXPECT_OK -D__NO_VERSION__ -I/usr/src/modules/oprofile/ -I/usr/src/modules/oprofile/libutil -I/usr/src/modules/oprofile/libop -I/usr/src/modules/oprofile/module -nostdinc -iwithprefix include -DKBUILD_BASENAME=3Dcpu_type -c -o cpu_type.o cpu_type.c In file included from /usr/src/kernel-source-2.4.25/include/linux/vmalloc.h:8, from /usr/src/modules/oprofile/module/oprofile.h:22, from cpu_type.c:13: /usr/src/kernel-source-2.4.25/include/linux/highmem.h: In function `clear_user_highpage': /usr/src/kernel-source-2.4.25/include/linux/highmem.h:87: error: too few arguments to function `clear_user_page' /usr/src/kernel-source-2.4.25/include/linux/highmem.h: In function `copy_user_highpage': /usr/src/kernel-source-2.4.25/include/linux/highmem.h:119: error: too few arguments to function `copy_user_page' In file included from /usr/src/kernel-source-2.4.25/include/linux/irq.h:69, from /usr/src/kernel-source-2.4.25/include/asm/hardirq.h:12, from /usr/src/kernel-source-2.4.25/include/linux/interrupt.h:53, from /usr/src/kernel-source-2.4.25/include/asm/smplock.h:6, from /usr/src/kernel-source-2.4.25/include/linux/smp_lock.h:16, from /usr/src/modules/oprofile/module/oprofile.h:25, from cpu_type.c:13: /usr/src/kernel-source-2.4.25/include/asm/hw_irq.h: At top level: /usr/src/kernel-source-2.4.25/include/asm/hw_irq.h:130: error: `irq_desc' redeclared as different kind of symbol /usr/src/kernel-source-2.4.25/include/linux/irq.h:67: error: previous declaration of `irq_desc' /usr/src/kernel-source-2.4.25/include/asm/hw_irq.h:130: warning: `irq_desc' was declared `extern' and later `static' make[4]: *** [cpu_type.o] Error 1 make[4]: Leaving directory `/usr/src/modules/oprofile/module/ia64' make[3]: *** [_mod_/usr/src/modules/oprofile/module/ia64] Error 2 make[3]: Leaving directory `/usr/src/kernel-source-2.4.25' make[2]: *** [kernel_module] Error 1 make[2]: Leaving directory `/usr/src/modules/oprofile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/modules/oprofile' make: *** [all] Error 2 Does anybody know what is causing this error? If more info is needed please don't hesitate to mail me (or the list). - Mads |