Hello all,
I am trying Kaspersky antivirus for Linux Workstation 5.7.17 on Fedora Core 8 with kernel 2.6.24.7-92.fc8
When I launch kavmon.pl, the compilation works fine and the module kavmon.ko is created.
But, when the module is about to be installed (modprobe), it makes an error : "invalid module format"
I am running whith this kernel (uname -r) : 2.6.24.7-92.fc8 (on i686 32 bits)
Here the output of kavmon.pl:
=== Configure kernel module using kernel sources from /usr/src/kernels/2.6.24.7-92.fc8-i686/
command configure = ./configure --with-kernelsrc=/usr/src/kernels/2.6.24.7-92.fc8-i686/
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for linux kernel sources... /usr/src/kernels/2.6.24.7-92.fc8-i686/
checking for linux kernel version file... /usr/src/kernels/2.6.24.7-92.fc8-i686//include/linux/utsrelease.h
checking for linux kernel version... 2.6
checking for linux/syscalls.h... yes
checking for module arch... 32
checking for sys_call_table... found, address 0xc06357a0
checking for sys_call_table readonly... yes
checking for sys_close... "not exported"
checking for sys_close... found, address 0xc0488782
checking for do_execve... "not exported"
checking for do_execve... found, address 0xc048d516
checking for tasklist_lock... "not exported"
checking for tasklist_lock... found, address 0xc073fa00
checking for __d_path... "not exported"
checking for vfsmount_lock... found, address 0xc0747c80
configure: creating ./config.status
config.status: creating Makefile
config.status: creating kavmon.h
config.status: creating osdef.h
config.status: creating module.linux/Makefile
=== Compiling Linux kernel module
Cleaning module.linux
make[1]: entrant dans le répertoire « /opt/kaspersky/kav4ws/src/module.linux »
rm -f **.o *.ko ../bin//kavmon.ko monitor_helpers.c kernel.c queue.c md5.c cache.c util.c cache.h kavmon.h kernel.h md5.h monitor.h monitor_helpers.h osdef.h queue.h util.h *.mod.c .*.cmd Makefile.in
make[1]: quittant le répertoire « /opt/kaspersky/kav4ws/src/module.linux »
Making link in module.linux
make[1]: entrant dans le répertoire « /opt/kaspersky/kav4ws/src/module.linux »
make -C /usr/src/kernels/2.6.24.7-92.fc8-i686/ SUBDIRS=/opt/kaspersky/kav4ws/src/module.linux modules
make[2]: entrant dans le répertoire « /usr/src/kernels/2.6.24.7-92.fc8-i686 »
CC [M] /opt/kaspersky/kav4ws/src/module.linux/utils.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/module.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/interface.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/interface_monitor.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/interface_exploit.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/interceptor.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/files.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/monitor_helpers.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/kernel.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/queue.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/md5.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/cache.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/util.o
LD [M] /opt/kaspersky/kav4ws/src/module.linux/kavmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /opt/kaspersky/kav4ws/src/module.linux/kavmon.mod.o
LD [M] /opt/kaspersky/kav4ws/src/module.linux/kavmon.ko
make[2]: quittant le répertoire « /usr/src/kernels/2.6.24.7-92.fc8-i686 »
make[1]: quittant le répertoire « /opt/kaspersky/kav4ws/src/module.linux »
=== Install module as /lib/modules/2.6.24.7-92.fc8/misc/kavmon.ko
=== Rebuild modules.dep
=== Probe new module
FATAL: Error inserting kavmon (/lib/modules/2.6.24.7-92.fc8/misc/kavmon.ko): Invalid module format
=== Delete /lib/modules/2.6.24.7-92.fc8/misc/kavmon.ko
Cannot install the kavmon module. Probably you didn't install the appropriate source code for the kernel version you are using. Correct this problem, and run setup again.
Thanks
Sevaeldric