• [^] # Re: Remarques

    Posté par . En réponse au message Compilation kernel-headers avec kernel-source pour VMWare entre autre. Évalué à 1.

    Je viens de trouver un début de solution à cette adresse :
    http://hootbah.zingzam.com/2006/12/13/vmware-on-debian-etch-(...)

    Getting an error like:

    The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18-3-amd64). Even if the module were to compile successfully, it would not load into the running kernel.

    To fix this you need to copy the UTS_RELEASE information into the version.h file.

    Copy the line (or similar):

    #define UTS_RELEASE "2.6.18-3-amd64"

    from /usr/src/linux-headers-2.6.18-3-amd64/include/linux/utsrelease.h /usr/src/linux-headers-2.6.18-3-amd64/include/linux/version.h

    The vmmon module will then compile successfully.

    Et là, je me dit miracle ... mais je ne comprend pas trop ce qui est dit alors j'ajoute dans le fichier /usr/src/linux/include/linux/version.h ceci :
    #define UTS_RELEASE "2.6.33.4"

    Je relance mon /usr/bin/vmware-config.pl et il me donner une nouvelle erreur :
    The path "/usr/src/linux/include" is a kernel header file directory, but it does not contain the file "linux/autoconf.h" as expected. This can happen if the kernel has never been built, or if you have invoked the "make mrproper" command in your kernel directory. In any case, you may want to rebuild your kernel.

    En gros, il me demande de recompiler mon kernel ... Je vais me pendre ou pas ?

    Pour info :
    [12:31:16] root@everest:~/$ find /usr/src/ -name autoconf.h
    /usr/src/linux-2.6.33.4/include/generated/autoconf.h