Hi,
I am testing Kaspersky Anti-Virus for Linux Workstation (version 5.7-17 reports as version 5.7.13/RELEASE under Webmin) on Fedora 9 with kernel 2.6.25.3-18.fc9.i686
It took me some time to work out that I needed to load the kernel-devel-2.6.25.3-18.fc9 (i686) RPM (in Add/Remove Software) which then gave me all the files I need for the kernel packages required to compile kavmon - if anybody at KL reads this can you improve the documentation about this aspect of running kavmon.pl - thanks.
Unfortunately when I run kavmon.pl the compilation exits with errors.
Here is the output of kavmon.pl:
[root@localhost setup]# /opt/kaspersky/kav4ws/src/kavmon.pl --build=/usr/src/kernels/2.6.25.3-18.fc9.i686
=== Configure kernel module using kernel sources from /usr/src/kernels/2.6.25.3-18.fc9.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.25.3-18.fc9.i686
checking for linux kernel version file... /usr/src/kernels/2.6.25.3-18.fc9.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 0xc0635a24
checking for sys_call_table readonly... yes
checking for sys_close... "not exported"
checking for sys_close... found, address 0xc048146d
checking for do_execve... "not exported"
checking for do_execve... found, address 0xc04878a8
checking for tasklist_lock... "not exported"
checking for tasklist_lock... found, address 0xc073ca00
checking for __d_path... "not exported"
checking for vfsmount_lock... found, address 0xc0744e00
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]: Entering directory `/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]: Leaving directory `/opt/kaspersky/kav4ws/src/module.linux'
Making link in module.linux
make[1]: Entering directory `/opt/kaspersky/kav4ws/src/module.linux'
make -C /usr/src/kernels/2.6.25.3-18.fc9.i686 SUBDIRS=/opt/kaspersky/kav4ws/src/module.linux modules
make[2]: Entering directory `/usr/src/kernels/2.6.25.3-18.fc9.i686'
CC [M] /opt/kaspersky/kav4ws/src/module.linux/utils.o
CC [M] /opt/kaspersky/kav4ws/src/module.linux/module.o
/opt/kaspersky/kav4ws/src/module.linux/module.c: In function ‘kavmon_init_module’:
/opt/kaspersky/kav4ws/src/module.linux/module.c:82: error: invalid operands to binary == (have ‘struct path’ and ‘void *’)
/opt/kaspersky/kav4ws/src/module.linux/module.c:86: error: ‘struct fs_struct’ has no member named ‘rootmnt’
/opt/kaspersky/kav4ws/src/module.linux/module.c:93: error: ‘struct fs_struct’ has no member named ‘rootmnt’
/opt/kaspersky/kav4ws/src/module.linux/module.c:94: error: incompatible type for argument 1 of ‘dget’
make[3]: *** [/opt/kaspersky/kav4ws/src/module.linux/module.o] Error 1
make[2]: *** [_module_/opt/kaspersky/kav4ws/src/module.linux] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.25.3-18.fc9.i686'
make[1]: *** [kavmon_build] Error 2
make[1]: Leaving directory `/opt/kaspersky/kav4ws/src/module.linux'
make: *** [all] Error 1
kavmon module compilation error
Can you help me to get this to compile?
Many thanks
Zero-not-hero
