Jump to content

Compilation error under Gentoo Linux

Recommended Posts

We are having some trouble installing the KAV antivirus on gentoo. Although we understand that Gentoo is not officially supported by KAV, we would apreciate some assistance if it is possible.


The antivirus engine works and we can manually scan any files we want. The real-time portion is called kavmonitor and we are having issues compiling it.


Below is the session transcript including the error. What we suspect is that the kavmonitor is not compatible with kernel 2.6.13 ...


Any help is apreciated... (we are using the latest SRC files from the web)


tr-backup1 setup # ./setup.pl

Would you like to compile the kavmonitor module [Y]:

head: `-1' option is obsolete; use `-n 1' since this will be removed in

the future

Enter the linux kernel source path [/lib/modules/2.6.13-gentoo-r3/build]:


checking for gcc... gcc

checking for C compiler default output... 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

head: `-1' option is obsolete; use `-n 1' since this will be removed in

the future

Gentoo Base System version 1.6.12

checking for linux kernel sources... /lib/modules/2.6.13-gentoo-r3/build

checking for linux kernel version... 2.6

checking for vmlinux... /lib/modules/2.6.13-gentoo-r3/build/vmlinux

checking for sys_close is exported... "yes"

checking for do_execve is exported... no, do_execve address=0xc0169880

configure: creating ./config.status

config.status: creating Makefile

config.status: creating kavmon.h

config.status: creating osdef.h

config.status: creating module.linux/Makefile

Cleaning module.linux

make[1]: Entering directory `/opt/kav/5.5/kav4unix/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 Makefile.in

make[1]: Leaving directory `/opt/kav/5.5/kav4unix/src/module.linux'

Making link in module.linux

make[1]: Entering directory `/opt/kav/5.5/kav4unix/src/module.linux'

make -C /lib/modules/2.6.13-gentoo-r3/build

SUBDIRS=/opt/kav/5.5/kav4unix/src/module.linux modules

make[2]: Entering directory `/usr/src/linux-2.6.13-gentoo-r3'

CC [M] /opt/kav/5.5/kav4unix/src/module.linux/utils.o

CC [M] /opt/kav/5.5/kav4unix/src/module.linux/module.o

CC [M] /opt/kav/5.5/kav4unix/src/module.linux/interface.o

CC [M] /opt/kav/5.5/kav4unix/src/module.linux/interface_monitor.o

CC [M] /opt/kav/5.5/kav4unix/src/module.linux/interface_exploit.o

CC [M] /opt/kav/5.5/kav4unix/src/module.linux/interceptor.o

/opt/kav/5.5/kav4unix/src/module.linux/interceptor.c: In function


/opt/kav/5.5/kav4unix/src/module.linux/interceptor.c:272: error:

structure has no member named `i_sock'

make[3]: *** [/opt/kav/5.5/kav4unix/src/module.linux/interceptor.o] Error 1

make[2]: *** [_module_/opt/kav/5.5/kav4unix/src/module.linux] Error 2

make[2]: Leaving directory `/usr/src/linux-2.6.13-gentoo-r3'

make[1]: *** [kavmon_build] Error 2

make[1]: Leaving directory `/opt/kav/5.5/kav4unix/src/module.linux'

make: *** [all] Error 1

Kavmon module compilation error

Share this post

Link to post

I am impressed with the level of support of KAV !

Minutes after posting the thread I have just recieved an unofficial patch by KAV to solve the problem.


:) Really impressed -- thanks to Valery Shvetsov



Share this post

Link to post



You are welcome :-).

This problem discussed already here

As i understand kavmonitor compiled successfully?

Thank you for your feedback.



Shvetsov Valery

Share this post

Link to post


I have the same problem.

I can't found the solution !! :(


Can you help me !??

Where i can found the patch??


Sorry for my english, i'm french.


best regards


Share this post

Link to post



Please send mail to support@kaspersky.com and describe problem in the mail.




Shvetsov Valery.

Share this post

Link to post

  • Create New...

Important Information

We use cookies to make your experience of our websites better. By using and further navigating this website you accept this. Detailed information about the use of cookies on this website is available by clicking on more information.