Mailinglist Archive: opensuse-security (499 mails)

< Previous Next >
Re: [suse-security] Kaspersky AntiVirus Trouble
  • From: Andreas Lauser <and@xxxxxxxxxx>
  • Date: Wed, 5 Jun 2002 13:46:40 +0200
  • Message-id: <200206051341.29430.and@xxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 04 June 2002 14:38, sc@xxxxxxxxxx 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-----


< Previous Next >
References