Problem compiling kernel module for VirtualBox 2.1.0 to run under 11.1

I dl’ed and Iinstalled the rpm for 11.0 (used --nodeps as per earlier thread to pass the ptython 2.5 requirement) and get a compilation error when compiling the kernel module

gcc: error trying to exec ‘cc1’: execvp: No such file or directory
make[4]: *** [/tmp/vbox.2/linux/SUPDrv-linux.o] Error 1
make[3]: *** [module/tmp/vbox.2] Error 2

note: after my upgrade to 11.1 I was able to compile the VirtualBox module from 2.0.6 (iirc)

Suse 11.1 x64, KDE 4.2beta (unstable repo), Opera 9.x weekly

I just upgraded to 2.1.0 (thanks for the heads-up) and didn’t encounter any problems except a strange message from a post-install action about not finding /etc/init.d/vboxnet. However I see that the vboxdrv.ko module is now included in the RPM and I didn’t get a compile step this time. I wonder how that will play out with people who do not have the exact same version of the kernel.

$ rpm -ql VirtualBox | grep ko
/lib/modules/2.6.25.18-0.2-default/misc/vboxdrv.ko
/lib/modules/2.6.25.18-0.2-default/misc/vboxnetflt.ko

ken yap wrote:

>
> I just upgraded to 2.1.0 (thanks for the heads-up) and didn’t encounter
> any problems except a strange message from a post-install action about
> not finding /etc/init.d/vboxnet. However I see that the vboxdrv.ko
> module is now included in the RPM and I didn’t get a compile step this
> time. I wonder how that will play out with people who do not have the
> exact same version of the kernel.
>
>> $ rpm -ql VirtualBox | grep ko
>> /lib/modules/2.6.25.18-0.2-default/misc/vboxdrv.ko
>> /lib/modules/2.6.25.18-0.2-default/misc/vboxnetflt.ko
>
>
when you install the rpm it will try to compile the kernel module

No precompiled module for this kernel found – trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.


Suse 11.0 x64, Kde 4.2beta (unstable repo), Opera 9.x weekly

Worked great on my 32-bit RC1 system:

Linux ernst 2.6.27.7-4-pae #1 SMP 2008-11-25 00:02:37 +0100 i686 athlon i386 GNU/Linux

with the following output:

No precompiled module for this kernel found – trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Success!

google01103 wrote:

> I dl’ed and Iinstalled the rpm for 11.0 (used --nodeps as per earlier
> thread to pass the ptython 2.5 requirement) and get a compilation error
> when compiling the kernel module
>
> gcc: error trying to exec ‘cc1’: execvp: No such file or directory
> make[4]: *** [/tmp/vbox.2/linux/SUPDrv-linux.o] Error 1
> make[3]: *** [module/tmp/vbox.2] Error 2
>
> note: after my upgrade to 11.1 I was able to compile the VirtualBox module
> from 2.0.6 (iirc)
When I upped to 11.1 something went amiss with the cc rpm’s - reinstalling them resolved the issue

Suse 11.0 x64, Kde 4.2beta (unstable repo), Opera 9.x weekly