Re: can't compile virtualbox or vmware modeules on 2.6.24.3-12.fc8



On Mon, Mar 10, 2008 at 4:05 AM, David Timms <dtimms@xxxxxxxxxxxx> wrote:
Valent Turkovic wrote:
> I updated fedora kernel to latest 2.6.24.3-12.fc8 and now I can't
> compile modules for virtualbox and vmware.
Did you run "the command" to try to compile ?

What was it ?

What was the result ?

Are you using the vmware-any-any patch ?

If the kernel is a koji build but not released to -test or updates, it
would be handy to mention that.

DaveT.

Until last fedora kernel update I used just to do this for VirtualBox:
/etc/init.d/vboxdrv setup
and for VMWare:
vmware-config.pl

that would build new kernel modules, but now I got errors, so I
thought that others have also hit this issue.

Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)

# cat /var/log/vbox-install.log
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.24.3-12.fc8/build
SUBDIRS=/tmp/vbox.2 SRCROOT=/tmp/vbox.2 modules
make[1]: Ulazim u direktorij `/usr/src/kernels/2.6.24.3-12.fc8-i686'
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)
mkdir -p /tmp/vbox.2/.tmp_versions ; rm -f /tmp/vbox.2/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.2
gcc -m32 -Wp,-MD,/tmp/vbox.2/linux/.SUPDrv-linux.o.d -nostdinc
-isystem /usr/lib/gcc/i386-redhat-linux/4.1.2/include -D__KERNEL__
-Iinclude -include include/linux/autoconf.h -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -pipe -msoft-float
-mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2
-march=i686 -mtune=generic -mtune=generic -ffreestanding
-maccumulate-outgoing-args -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-x86/mach-generic
-Iinclude/asm-x86/mach-default -fomit-frame-pointer -g
-fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign
-I/lib/modules/2.6.24.3-12.fc8/build/include -I/tmp/vbox.2/
-I/tmp/vbox.2/include -I/tmp/vbox.2/r0drv/linux -D__KERNEL__ -DMODULE
-DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0
-DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITHOUT_IDT_PATCHING
-DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"
-D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o
/tmp/vbox.2/linux/SUPDrv-linux.o /tmp/vbox.2/linux/SUPDrv-linux.c
In file included from /tmp/vbox.2/include/iprt/types.h:72,
from /tmp/vbox.2/include/VBox/types.h:21,
from /tmp/vbox.2/SUPDRV.h:26,
from /tmp/vbox.2/linux/SUPDrv-linux.c:22:
include/linux/types.h:40: error: redefinition of typedef 'uintptr_t'
/tmp/vbox.2/include/iprt/stdint.h:118: error: previous declaration of
'uintptr_t' was here
In file included from include/linux/thread_info.h:33,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from /tmp/vbox.2/SUPDRV.h:87,
from /tmp/vbox.2/linux/SUPDrv-linux.c:22:
include/linux/bitops.h:6:1: warning: "BIT" redefined
In file included from /tmp/vbox.2/include/VBox/cdefs.h:20,
from /tmp/vbox.2/SUPDRV.h:25,
from /tmp/vbox.2/linux/SUPDrv-linux.c:22:
/tmp/vbox.2/include/iprt/cdefs.h:1042:1: warning: this is the location
of the previous definition
make[2]: *** [/tmp/vbox.2/linux/SUPDrv-linux.o] Greška 1
make[1]: *** [_module_/tmp/vbox.2] Greška 2
make[1]: Izlazim iz direktorija `/usr/src/kernels/2.6.24.3-12.fc8-i686'
make: *** [vboxdrv] Greška 2


and for VMWare:

# vmware-config.pl
Making sure services for VMware Player are stopped.

Stopping VMware services:
Virtual machine monitor [ U redu ]
Blocking file system: [ U redu ]
Bridged networking on /dev/vmnet0 [ U redu ]
Host network detection [ U redu ]
DHCP server on /dev/vmnet1 [ U redu ]
Host-only networking on /dev/vmnet1 [ U redu ]
DHCP server on /dev/vmnet8 [ U redu ]
NAT service on /dev/vmnet8 [ U redu ]
Host-only networking on /dev/vmnet8 [ U redu ]
Virtual ethernet [ U redu ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Player is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.24.3-12.fc8/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Ulazim u direktorij `/tmp/vmware-config2/vmmon-only'
make -C /lib/modules/2.6.24.3-12.fc8/build/include/.. SUBDIRS=$PWD
SRCROOT=$PWD/. modules
make[1]: Ulazim u direktorij `/usr/src/kernels/2.6.24.3-12.fc8-i686'
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config2/vmmon-only/./include/vmware.h:25,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:83:
/tmp/vmware-config2/vmmon-only/./include/vm_basic_types.h:170: error:
conflicting types for 'uintptr_t'
include/linux/types.h:40: error: previous declaration of 'uintptr_t' was here
In file included from /tmp/vmware-config2/vmmon-only/./include/x86.h:23,
from /tmp/vmware-config2/vmmon-only/linux/driver.h:15,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:84:
/tmp/vmware-config2/vmmon-only/./include/x86cpuid.h:383:1: warning:
"BIT_MASK" redefined
In file included from include/linux/kernel.h:15,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:11:
include/linux/bitops.h:7:1: warning: this is the location of the
previous definition
In file included from
/tmp/vmware-config2/vmmon-only/./include/vmci_kernel_defs.h:26,
from /tmp/vmware-config2/vmmon-only/./common/vmciContext.h:19,
from /tmp/vmware-config2/vmmon-only/linux/driver.h:21,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:84:
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:37:5: warning:
"VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:43:5: warning:
"VMW_HAVE_EPOLL" is not defined
In file included from
/tmp/vmware-config2/vmmon-only/./include/vmci_kernel_defs.h:26,
from /tmp/vmware-config2/vmmon-only/./common/vmciContext.h:19,
from /tmp/vmware-config2/vmmon-only/linux/driver.h:21,
from /tmp/vmware-config2/vmmon-only/linux/driver.c:84:
/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:60: error:
conflicting types for 'poll_initwait'
include/linux/poll.h:65: error: previous declaration of 'poll_initwait' was here
/tmp/vmware-config2/vmmon-only/linux/driver.c:198: warning:
initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config2/vmmon-only/linux/driver.o] Greška 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Greška 2
make[1]: Izlazim iz direktorija `/usr/src/kernels/2.6.24.3-12.fc8-i686'
make: *** [vmmon.ko] Greška 2
make: Izlazim iz direktorija `/tmp/vmware-config2/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html"; and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html";.

Execution aborted.


--
http://kernelreloaded.blog385.com/
linux, blog, anime, spirituality, windsurf, wireless
registered as user #367004 with the Linux Counter, http://counter.li.org.
ICQ: 2125241, Skype: valent.turkovic

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • SUSE 9.1 - VMware 4.5.2
    ... I uninstalled VMware and loaded 4.5.2 and same issue. ... I think the kernel sources are not there. ... Trying to find a suitable vmmon module for your running kernel. ...
    (alt.os.linux.suse)
  • Re: [SLE] Trying to get VMWare 4.5.1 installed on SUSE 9.1
    ... >> Configuring VMware requires that the kernel sources be installed also. ... >Trying to find a suitable vmmon module for your running kernel. ...
    (SuSE)
  • Broken things in kernel 2.6.6-mm2 and 2.6.6-mm3
    ... Making sure VMware Workstation's services are stopped. ... Trying to find a suitable vmmon module for your running kernel. ... Using compiler "/usr/bin/gcc". ...
    (Linux-Kernel)
  • Re: [SLE] Trying to get VMWare 4.5.1 installed on SUSE 9.1
    ... Trying to get VMWare 4.5.1 installed on SUSE 9.1 ... >> Configuring VMware requires that the kernel sources be installed ... > Trying to find a suitable vmmon module for your running kernel. ...
    (SuSE)
  • VMware and Kernel 2.6.6-1.427
    ... I am trying to compile VMware torun on the 2.6.6-1.427 kernel, ... suitable vmmon module for your running kernel. ...
    (Fedora)