Results 1 to 6 of 6

Thread: Failed to compile Vmware Server 2x Suse 11

  1. #1
    marc22222 NNTP User

    Default Failed to compile Vmware Server 2x Suse 11

    Hi,

    Welcome, to all community members.
    This is my first post.

    I have problem, I'm try to install Vmware Server 2x on my SUSE 11 Workstation.

    I Downloaded a RPM file, and install it.


    Next, i installed Kernel source, and gcc, gcc++, make.
    This is output from installation:
    Code:
    admin-pc:/home/admin # yast2 --install kernel-source
    admin-pc:/home/admin # yast2 --install gcc
    admin-pc:/home/admin # yast2 --install gcc-c++
    admin-pc:/home/admin # yast2 --install make
    admin-pc:/home/admin # rpm -qa kernel* gcc* make
    gcc-c++-4.3-39.1
    kernel-pae-2.6.25.16-0.1
    kernel-source-2.6.25.16-0.1
    gcc43-c++-4.3.1_20080507-6.1
    gcc43-4.3.1_20080507-6.1
    kernel-default-2.6.25.16-0.1
    make-3.81-103.1
    gcc-4.3-39.1
    admin-pc:/home/admin #
    As you can see, installed properly...

    Next I run vmware-config.pl to make vmware server usable, but it can't compile kernel...

    Please look at this output, mayby you can get any idea...

    Code:
    admin-pc:/home/admin/Desktop # vmware-config.pl
    Making sure services for VMware Server are stopped.
    
    Stopping VMware autostart virtual machines:
       Virtual machines                                                   failed
    Stopping VMware management services:
       VMware Virtual Infrastructure Web Access
       VMware Server Host Agent                                           failed
    Stopping VMware services:
       VMware Authentication Daemon                                        done
       Virtual machine monitor                                             done
    
    None of the pre-built vmmon modules for VMware Server 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.
    
    Your kernel was built with "gcc" version "4.3.1", while you are trying to use 
    "/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware 
    Server may crash if you'll continue. Please try to use exactly same compiler as
    one used for building your kernel. Do you want to go with compiler 
    "/usr/bin/gcc" version "4.3" anyway? [no] yes
    
    What is the location of the directory of C header files that match your running
    kernel? [/lib/modules/2.6.25.16-0.1-default/build/include] 
    
    Extracting the sources of the vmmon module.
    
    Building the vmmon module.
    
    Unknown VMware Server 2.0.0 build 116503 detected. Building for Server 1.0.0.
    Using 2.6.x kernel build system.
    make: Wejście do katalogu `/tmp/vmware-config3/vmmon-only'
    make -C /lib/modules/2.6.25.16-0.1-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Wejście do katalogu `/usr/src/linux-2.6.25.16-0.1-obj/i386/default'
    make -C /usr/src/linux-2.6.25.16-0.1 O=/usr/src/linux-2.6.25.16-0.1-obj/i386/default/. modules
      CC [M]  /tmp/vmware-config3/vmmon-only/linux/driver.o
      CC [M]  /tmp/vmware-config3/vmmon-only/linux/driverLog.o
      CC [M]  /tmp/vmware-config3/vmmon-only/linux/hostif.o
      CC [M]  /tmp/vmware-config3/vmmon-only/common/comport.o
      CC [M]  /tmp/vmware-config3/vmmon-only/common/cpuid.o
    In file included from /tmp/vmware-config3/vmmon-only/./include/vcpuset.h:74,
                     from /tmp/vmware-config3/vmmon-only/./include/modulecall.h:23,
                     from /tmp/vmware-config3/vmmon-only/common/vmx86.h:19,
                     from /tmp/vmware-config3/vmmon-only/common/hostif.h:18,
                     from /tmp/vmware-config3/vmmon-only/common/cpuid.c:15:
    include2/asm/bitops.h:9:2: error: #error only <linux/bitops.h> can be included directly
    In file included from include2/asm/cpufeature.h:118,
                     from include2/asm/alternative.h:42,
                     from include2/asm/bitops.h:13,
                     from /tmp/vmware-config3/vmmon-only/./include/vcpuset.h:74,
                     from /tmp/vmware-config3/vmmon-only/./include/modulecall.h:23,
                     from /tmp/vmware-config3/vmmon-only/common/vmx86.h:19,
                     from /tmp/vmware-config3/vmmon-only/common/hostif.h:18,
                     from /tmp/vmware-config3/vmmon-only/common/cpuid.c:15:
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h: In function get_bitmask_order:
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h:29: error: implicit declaration of function fls
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h: In function hweight_long:
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h:45: error: implicit declaration of function hweight32
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h:45: error: implicit declaration of function hweight64
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h: In function fls_long:
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h:112: error: implicit declaration of function fls64
    In file included from include2/asm/bitops.h:316,
                     from /tmp/vmware-config3/vmmon-only/./include/vcpuset.h:74,
                     from /tmp/vmware-config3/vmmon-only/./include/modulecall.h:23,
                     from /tmp/vmware-config3/vmmon-only/common/vmx86.h:19,
                     from /tmp/vmware-config3/vmmon-only/common/hostif.h:18,
                     from /tmp/vmware-config3/vmmon-only/common/cpuid.c:15:
    include2/asm/bitops_32.h: At top level:
    include2/asm/bitops_32.h:134: error: static declaration of fls follows non-static declaration
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h:29: error: previous implicit declaration of fls was here
    In file included from include2/asm/bitops_32.h:145,
                     from include2/asm/bitops.h:316,
                     from /tmp/vmware-config3/vmmon-only/./include/vcpuset.h:74,
                     from /tmp/vmware-config3/vmmon-only/./include/modulecall.h:23,
                     from /tmp/vmware-config3/vmmon-only/common/vmx86.h:19,
                     from /tmp/vmware-config3/vmmon-only/common/hostif.h:18,
                     from /tmp/vmware-config3/vmmon-only/common/cpuid.c:15:
    /usr/src/linux-2.6.25.16-0.1/include/asm-generic/bitops/hweight.h:6: error: conflicting types for hweight32
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h:45: error: previous implicit declaration of hweight32 was here
    /usr/src/linux-2.6.25.16-0.1/include/asm-generic/bitops/hweight.h:9: error: conflicting types for hweight64
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h:45: error: previous implicit declaration of hweight64 was here
    In file included from include2/asm/bitops_32.h:149,
                     from include2/asm/bitops.h:316,
                     from /tmp/vmware-config3/vmmon-only/./include/vcpuset.h:74,
                     from /tmp/vmware-config3/vmmon-only/./include/modulecall.h:23,
                     from /tmp/vmware-config3/vmmon-only/common/vmx86.h:19,
                     from /tmp/vmware-config3/vmmon-only/common/hostif.h:18,
                     from /tmp/vmware-config3/vmmon-only/common/cpuid.c:15:
    /usr/src/linux-2.6.25.16-0.1/include/asm-generic/bitops/fls64.h:6: error: static declaration of fls64 follows non-static declaration
    /usr/src/linux-2.6.25.16-0.1/include/linux/bitops.h:112: error: previous implicit declaration of fls64 was here
    make[4]: *** [/tmp/vmware-config3/vmmon-only/common/cpuid.o] Błąd 1
    make[3]: *** [_module_/tmp/vmware-config3/vmmon-only] Błąd 2
    make[2]: *** [sub-make] Błąd 2
    make[1]: *** [all] Błąd 2
    make[1]: Opuszczenie katalogu `/usr/src/linux-2.6.25.16-0.1-obj/i386/default'
    make: *** [vmmon.ko] Błąd 2
    make: Opuszczenie katalogu `/tmp/vmware-config3/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/go/unsup-linux-products" and 
    "http://www.vmware.com/go/unsup-linux-tools".
    
    Execution aborted.
    
    admin-pc:/home/admin/Desktop #

  2. #2
    Join Date
    Mar 2008
    Location
    Bochum, Germany
    Posts
    3,587

    Default Re: Failed to compile Vmware Server 2x Suse 11

    marc,

    also install "linux-kernel-headers" and see if it makes a difference.

    Uwe

  3. #3
    marc22222 NNTP User

    Default Re: Failed to compile Vmware Server 2x Suse 11

    Hi,

    I'm try to install kernell headers:
    That's output from installed package.

    Code:
    admin-pc:/home/admin/Desktop # rpm -qa linux-kernel-headers*
    linux-kernel-headers-2.6.25-8.1
    admin-pc:/home/admin/Desktop #
    But it won't help.
    I'm getting this same error.

    Do you have any other idea ?

  4. #4
    Join Date
    Mar 2008
    Location
    Bochum, Germany
    Posts
    3,587

    Default Re: Failed to compile Vmware Server 2x Suse 11

    * marc22222
    > Do you have any other idea ?


    Not really, it isn't obvious. In Yast Software Management, try installing the "Linux Kernel Development" pattern.

    Uwe

  5. #5
    fockewulf NNTP User

    Talking Re: Failed to compile Vmware Server 2x Suse 11

    let's try

    install modules

    automake
    autoconf

  6. #6

    Default Re: Failed to compile Vmware Server 2x Suse 11

    I had the same issue with unmatching kernel vs. headers - turns out they don't have to be the same after all:

    C header files location -- VMWare Fusion and OpenSUSE 11 - Page 2 - openSUSE Forums

    After I did this above VMWare Server 2x config run fine.

Tags for this Thread

Posting Permissions

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