hi all, i am trying to install Kaspersky AV Linux, but having serious trouble while compiling the monitor (better "klmon" module - for on access scans) i folled the handbook-instructions (just a few) but this ends up in more than 40 lines of errors....at the end of this mail, www.kaspersky.com, google + groups doesn't helped so far... any kind of help is welcome - thank you Andreas (Rainer, could you help again ?) -------------------------------------------------------------------------------------------------------------- comp1:/opt/AVP/kavmonitor/module.linux # make gcc -c -D__KERNEL__ -I/usr/src/linux/include -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DMODULE handle_execve.c In file included from module.h:8, from handle_execve.c:6: /usr/include/linux/version.h:2: #error "=======================================================" /usr/include/linux/version.h:3: #error "You should not include/usr/include/{linux,asm}/ header" /usr/include/linux/version.h:4: #error "files directly for the compilation of kernel modules." /usr/include/linux/version.h:5: #error "" /usr/include/linux/version.h:6: #error "glibc now uses kernel header files from a well-defined" /usr/include/linux/version.h:7: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/version.h:8: #error "These files are glibc internal and may not match the" /usr/include/linux/version.h:9: #error "currently running kernel. They should only be" /usr/include/linux/version.h:10: #error "included via other system header files - user space" /usr/include/linux/version.h:11: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/version.h:12: #error "<asm/*.h> as well." /usr/include/linux/version.h:13: #error "" /usr/include/linux/version.h:14: #error "To build kernel modules please do the following:" /usr/include/linux/version.h:15: #error "" /usr/include/linux/version.h:16: #error " o Have the kernel sources installed" /usr/include/linux/version.h:17: #error "" /usr/include/linux/version.h:18: #error " o Make sure that the symbolic link" /usr/include/linux/version.h:19: #error " /lib/modules/`uname -r`/build exists and points to" /usr/include/linux/version.h:20: #error " the matching kernel source directory" /usr/include/linux/version.h:21: #error "" /usr/include/linux/version.h:22: #error " o Now copy /boot/vmlinuz.version.h to" /usr/include/linux/version.h:23: #error " /lib/modules/`uname -r`/build/include/linux/version.h" /usr/include/linux/version.h:24: #error "" /usr/include/linux/version.h:25: #error " o When compiling, make sure to use the following" /usr/include/linux/version.h:26: #error " compiler option to use the correct include files:" /usr/include/linux/version.h:27: #error "" /usr/include/linux/version.h:28: #error " -I/lib/modules/`uname -r`/build/include" /usr/include/linux/version.h:29: #error "" /usr/include/linux/version.h:30: #error " instead of" /usr/include/linux/version.h:31: #error "" /usr/include/linux/version.h:32: #error " -I/usr/include/linux" /usr/include/linux/version.h:33: #error "" /usr/include/linux/version.h:34: #error " Please adjust the Makefile accordingly." /usr/include/linux/version.h:35: #error "======================================================="
On Tue, 4 Jun 2002, sc@optomed.de wrote:
i am trying to install Kaspersky AV Linux, but having serious trouble while compiling the monitor (better "klmon" module - for on access scans)
Hum? klmon? Looks like KAV 4.0 (beta) to me, as 3.5 build 136 doesn't ship such a module IIRC But probably I own only the desktop version and not the server version.
(Rainer, could you help again ?)
--------------------------------------------------------------------------------------------------------------
comp1:/opt/AVP/kavmonitor/module.linux # make
gcc -c -D__KERNEL__ -I/usr/src/linux/include -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DMODULE handle_execve.c
At the first glance I would say the Makefile is wrong (or the module is only suitable for 2.2.x kernels). I'd suggest to contact Christian Hofmann <Christian.Hofmann@datsec.de> (german distributor) or Vyacheslav Medvedev <slava@avp.ru>. Vyacheslav has been quite helpful in the past wrt several AvpDaemon / kavdaemon related problems (although we have not been in contact for some month now, so hopefully he still works for Kaspersky Labs). Sorry, my time is simply to limited to have a closer look at this issue (/me still has to do the slides for his talk at LinuxTag and some organisational stuff for the offical OpenAntiVirus meeting). best regards, Rainer Link (SuSE Labs) -- Rainer Link | SuSE Linux AG - The Linux Experts link@suse.de | Developer of A Mail Virus Scanner (www.amavis.org) www.suse.de | Founder OpenAntiVirus Project (www.openantivirus.org)
On Tue, 4 Jun 2002, Rainer Link wrote:
comp1:/opt/AVP/kavmonitor/module.linux # make
gcc -c -D__KERNEL__ -I/usr/src/linux/include -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DMODULE handle_execve.c
Hum, sorry, the module builds just fine for me on SuLi 7.3 running 2.4.18.SuSE and SuLi 8.0 running 2.4.18.SuSE, too. (I assume you're using one of the most recent SuSE Linux versions and kernels, as you're mail did not provide any details) best regards, Rainer Link (SuSE Labs) -- Rainer Link | SuSE Linux AG - The Linux Experts link@suse.de | Developer of A Mail Virus Scanner (www.amavis.org) www.suse.de | Founder OpenAntiVirus Project (www.openantivirus.org)
Am Dienstag, 4. Juni 2002 15:20 schrieben Sie:
i am trying to install Kaspersky AV Linux, but having serious trouble while compiling the monitor (better "klmon" module - for on access scans)
i thinkl that the kernel-source package are maybe not installed. Hendrik
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 04 June 2002 14:38, sc@optomed.de wrote:
comp1:/opt/AVP/kavmonitor/module.linux # make
gcc -c -D__KERNEL__ -I/usr/src/linux/include -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DMODULE handle_execve.c
In file included from module.h:8, from handle_execve.c:6: /usr/include/linux/version.h:2: #error "=======================================================" /usr/include/linux/version.h:3: #error "You should not include/usr/include/{linux,asm}/ header" /usr/include/linux/version.h:4: #error "files directly for the compilation of kernel modules." /usr/include/linux/version.h:5: #error "" /usr/include/linux/version.h:6: #error "glibc now uses kernel header files from a well-defined" /usr/include/linux/version.h:7: #error "working kernel version (as recommended by Linus Torvalds)"
I've also got this error once (when compiling the nvidea kernel module). It results from glibc 'dummy' headers in /usr/include/linux and /usr/include/asm (see the error message). To fix it you can do the following (you need a source distribution of the linux kernel installed in /usr/src/linux): snip--------------------------------------------------- # delete the glibc dummy headers rm -rf /usr/include/linux rm -rf /usr/include/asm # set a symlink to the directory with the 'real' linux kernel headers # note: I may need to do a 'make bzImage' to make sure that all headers # and links are available ln -s /usr/src/linux/include/linux /usr/include/linux ln -s /usr/src/linux/include/asm /usr/include/asm snap--------------------------------------------------- That did the trick for me. cheers AND - -- I doubt, therefore I might be. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8/foihlekfiEFJv4RAnBGAJ9eMeNlfpWUdfY55GZyp9QfQQdr0gCfV1fN /m1/zo8PdeI0fXQnmbybyQ4= =LcA5 -----END PGP SIGNATURE-----
participants (4)
-
Andreas Lauser
-
Hendrik Brandenburger
-
Rainer Link
-
sc@optomed.de