openSUSE Forums > Applications » Failed to compile Vmware Server 2x Suse 11

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read


Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-Oct-2008, 14:22
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 2
marc22222 hasn't been rated much yet
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 #
Reply With Quote
  #2 (permalink)  
Old 05-Oct-2008, 23:10
buckesfeld's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Bochum, Germany
Posts: 2,561
buckesfeld has a spectacular reputation aura aboutbuckesfeld has a spectacular reputation aura aboutbuckesfeld has a spectacular reputation aura aboutbuckesfeld has a spectacular reputation aura about
Send a message via AIM to buckesfeld
Default Re: Failed to compile Vmware Server 2x Suse 11

marc,

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

Uwe
Reply With Quote
  #3 (permalink)  
Old 06-Oct-2008, 03:48
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 2
marc22222 hasn't been rated much yet
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 ?
Reply With Quote
  #4 (permalink)  
Old 06-Oct-2008, 04:44
buckesfeld's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Bochum, Germany
Posts: 2,561
buckesfeld has a spectacular reputation aura aboutbuckesfeld has a spectacular reputation aura aboutbuckesfeld has a spectacular reputation aura aboutbuckesfeld has a spectacular reputation aura about
Send a message via AIM to buckesfeld
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
Reply With Quote
  #5 (permalink)  
Old 21-Oct-2008, 03:37
Puzzled Penguin
 
Join Date: Oct 2008
Posts: 1
fockewulf hasn't been rated much yet
Talking Re: Failed to compile Vmware Server 2x Suse 11

let's try

install modules

automake
autoconf
Reply With Quote
  #6 (permalink)  
Old 24-Oct-2008, 17:13
Explorer Penguin
 
Join Date: Oct 2008
Posts: 156
LewsTherinTelemon hasn't been rated much yet
Send a message via AIM to LewsTherinTelemon
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.
Reply With Quote
Reply

Bookmarks

Tags
compile, kernel, server, vmware, workstation


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2