Confused about kernel module build

Confused about kernel module build

the source code for my running kernel redhat 2.4.20-13.7smp
is in /usr/src

The file

file:///mnt/raid/opt/intel/vtune/doc/howto-build-kernel-for-sampling.htm

is not at all clear to me on how to get the module built.

Should I:

su
cd /opt/intel/vtune/analyzer/drivers/src
./configure
make
make install

?

I'm getting an error on ./configure

[root@lyta src]# ./configure
checking for template makefile ... Makefile.in
checking for kernel exports file ... /usr/src/linux/kernel/ksyms.c
checking for kernel includes ... /usr/src/linux/include
checking if gcc supports anonymous structs and unions ... yes
checking architecture ... i686
checking kernel version ... 2.4.20-13.7smp
checking if UP or SMP ... SMP
checking for module license ... GPL
checking if mmap_*_read is supported ... no
checking if mm header is available ... yes
checking if for_each_process is exported ... no
checking if sys_call_table symbol is exported ... no (only defined)
checking if kallsyms_symbol_to_address is exported ... no (only defined)
checking if kallsyms_address_to_symbol is exported ... no (only defined)
checking if sys_open is exported ... no

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hey phillong69,

Is there a sysadmin for your server that you can talk to about the specifics of upgrading your server's kernel, or are you it?

If you're it (tag!), you need to follow all steps in the howto-build-kernel-for-sampling.htm, not just the ./configure part.

(From the below, it looks like you'll at least have to export the sys_call_table symbol...)

cheers

jdg

Leave a Comment

Please sign in to add a comment. Not a member? Join today