Results 1 to 8 of 8

Thread: Unable to compile vboxdrv

  1. #1

    Default Unable to compile vboxdrv

    The module vboxdrv cannot be succesfully compiled on my system.
    It has OpenSuSE 11.2 with kernel 2.6.31.12-0.1-desktop
    The following rpms are installed:

    kernel-source-2.6.31.12-0.2.1.noarch
    kernel-desktop-2.6.31.12-0.1.1.x86_64
    kernel-default-devel-2.6.31.12-0.2.1.x86_64
    kernel-desktop-devel-2.6.31.12-0.2.1.x86_64
    linux-kernel-headers-2.6.31-3.4.noarch

    gcc, make, autoconf, automake and pam-devel are present too.

    The command

    /etc/init.d/vboxdrv setup

    leads to an error message:

    Stopping VirtualBox kernel module done
    Recompiling VirtualBox kernel module failed
    (Look at /var/log/vbox-install.log to find out what went wrong)

    The log contains these lines in the first part:

    Makefile:155: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
    make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
    echo; \
    echo " ERROR: Kernel configuration is invalid."; \
    echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
    echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
    echo; \
    /bin/false)

    ERROR: Kernel configuration is invalid.
    include/linux/autoconf.h or include/config/auto.conf are missing.
    Run 'make oldconfig && make prepare' on kernel src to fix it.

    mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

    WARNING: Symbol version dump /usr/src/linux-2.6.31.12-0.2/Module.symvers
    is missing; modules will have no dependencies and modversions.


    Is something wrong with the kernel headers or source?


    Ed

  2. #2
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,565
    Blog Entries
    38

    Default Re: Unable to compile vboxdrv

    Quote Originally Posted by vaessen View Post
    It has OpenSuSE 11.2 with kernel 2.6.31.12-0.1-desktop
    The following rpms are installed:

    kernel-source-2.6.31.12-0.2.1.noarch
    kernel-desktop-2.6.31.12-0.1.1.x86_64
    kernel-default-devel-2.6.31.12-0.2.1.x86_64
    kernel-desktop-devel-2.6.31.12-0.2.1.x86_64
    linux-kernel-headers-2.6.31-3.4.noarch

    gcc, make, autoconf, automake and pam-devel are present too.
    I typically also have kernel-syms installed. I do not know if it is needed for virtual box, but my virtual box builds fine, so you could install kernel-syms and try.

  3. #3
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,746

    Default Re: Unable to compile vboxdrv

    You have both default and desktop development installed. Probably causing the confusion. Try uninstalling default development.

    If you are not sure which kernel you are running

    uname -r

    will tell you.

  4. #4
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,565
    Blog Entries
    38

    Default Re: Unable to compile vboxdrv

    Quote Originally Posted by gogalthorp View Post
    You have both default and desktop development installed. Probably causing the confusion. Try uninstalling default development.
    I think when one installs kernel-source, it drags in every kernel-yyyyy-devel under the sun (as a dependency).

  5. #5
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,746

    Default Re: Unable to compile vboxdrv

    Did not here I just use the source and development. Did not need syms or headers either. The source has the header files. In theory you should only need the headers. But have never tried it with just that package. Not sure you need development. I suspect that development would drag in the source but not the other way around.

  6. #6

    Default Re: Unable to compile vboxdrv

    I threw away a few packages and started with this:

    kernel-source-2.6.31.12-0.2.1.noarch
    kernel-firmware-20090821-4.1.noarch
    kernel-desktop-2.6.31.12-0.1.1.x86_64
    linux-kernel-headers-2.6.31-3.4.noarch

    Compilation however no succes.
    Then I added kernel-syms, which also brings some extra devel packages. This list now is:

    kernel-source-2.6.31.12-0.2.1.noarch
    kernel-xen-devel-2.6.31.12-0.2.1.x86_64
    kernel-firmware-20090821-4.1.noarch
    kernel-desktop-devel-2.6.31.12-0.2.1.x86_64
    kernel-desktop-2.6.31.12-0.1.1.x86_64
    kernel-debug-devel-2.6.31.12-0.2.1.x86_64
    kernel-syms-2.6.31.12-0.2.1.x86_64
    linux-kernel-headers-2.6.31-3.4.noarch
    kernel-default-devel-2.6.31.12-0.2.1.x86_64

    Compilation however no succes and the errors are the same.

  7. #7
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,746

    Default Re: Unable to compile vboxdrv

    Mis match

    kernel-source-2.6.31.12-0.2.1.noarch <- 0.2
    kernel-firmware-20090821-4.1.noarch
    kernel-desktop-2.6.31.12-0.1.1.x86_64 <- 0.1
    linux-kernel-headers-2.6.31-3.4.noarch

  8. #8

    Default Re: Unable to compile vboxdrv

    Boy, next time I should check more carefully.

    Thanks.

    Ed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •