HI,
 
I am getting some problem while compiling my Redhat 9 kernel 2.4.20
 
#cd /usr/src/linux
#make menuconfig
 
I enabled OProfile in the profiling menu and set CONFIG_PROFILING=y and CONFIG_OPROFILE=y in the .config file. Also enabled Local APIC and IO-APIC in the "Processor type and features" menu.
 
#make dep
#make bzImage
 
Now i am getting errors:
 

arch/i386/oprofile/oprofile.o(.text+0x1470): In function `dcache_dir_close':
: multiple definition of `dcache_dir_close'
fs/fs.o(.text+0x117e0): first defined here
arch/i386/oprofile/oprofile.o(.text+0x1430): In function `dcache_dir_open':
: multiple definition of `dcache_dir_open'
fs/fs.o(.text+0x117a0): first defined here
arch/i386/oprofile/oprofile.o(.text+0x1490): In function `dcache_dir_lseek':
: multiple definition of `dcache_dir_lseek'
fs/fs.o(.text+0x11800): first defined here
arch/i386/oprofile/oprofile.o(.text+0x264): In function `__free_cpu_buffers':
: undefined reference to `cpu_possible'
arch/i386/oprofile/oprofile.o(.text+0x2a5): In function `alloc_cpu_buffers':
: undefined reference to `cpu_possible'
arch/i386/oprofile/oprofile.o(.text+0x902): In function `sync_cpu_buffers':
: undefined reference to `cpu_possible'
arch/i386/oprofile/oprofile.o(.text+0x19ab): In function `oprofile_reset_stats':
: undefined reference to `cpu_possible'
arch/i386/oprofile/oprofile.o(.text+0x1a2d): In function `oprofile_create_stats_files':
: undefined reference to `cpu_possible'
make[1]: *** [kallsyms] Error 1
make[1]: Leaving directory `/usr/src/linux- 2.4.20-8'
make: *** [vmlinux] Error 2

 

any solutions ???

 

Regards