Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98548 - vmware-workstation fails with kernel-2.6.12-r4 and linux-headers-2.6.11-r2
Summary: vmware-workstation fails with kernel-2.6.12-r4 and linux-headers-2.6.11-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 98228 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-10 03:25 UTC by Dan Johansson
Modified: 2005-07-13 10:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Johansson 2005-07-10 03:25:46 UTC
After upgrading to 2.6.12-r4 and linux-headers-2.6.11-r2 vmware-config.pl fails 
to compile the vmnet module. This sometimes results in a kernel oops when the 
modules are loaded. 
It seems that the linux kerenl API sk_alloc was changed between minor releases 
2.6.11 and 2.6.12 Two arguments changed places a pointer and a Boolean which 
cause the kernel to oops. 
 
 

Reproducible: Always
Steps to Reproduce:
1.vmware-config.pl 
2. 
3. 
 
Actual Results:  
Output of vmware-config.pl (shortened): 
Making sure services for VMware Workstation are stopped. 
 
Stopping VMware services: 
   Virtual machine monitor done 
   Bridged networking on /dev/vmnet0 done 
   Virtual ethernet done 
 
<...SNIP...> 
 
Building the vmnet module. 
 
Building for VMware Workstation 4.5.2 or VMware GSX Server 3.1.0. 
Using 2.6.x kernel build system. 
make: Entering directory `/tmp/vmware-config0/vmnet-only' 
make -C /lib/modules/2.6.12-gentoo-r4/build/include/.. SUBDIRS=$PWD 
SRCROOT=$PWD/. modules 
make[1]: Entering directory `/usr/src/linux-2.6.12-gentoo-r4' 
  CC [M]  /tmp/vmware-config0/vmnet-only/driver.o 
  CC [M]  /tmp/vmware-config0/vmnet-only/hub.o 
  CC [M]  /tmp/vmware-config0/vmnet-only/userif.o 
/tmp/vmware-config0/vmnet-only/userif.c: In function `VNetUserIfMapUint32Ptr': 
/tmp/vmware-config0/vmnet-only/userif.c:154: warning: `verify_area' is 
deprecated (declared at include/asm/uaccess.h:105) 
/tmp/vmware-config0/vmnet-only/userif.c:155: warning: `verify_area' is 
deprecated (declared at include/asm/uaccess.h:105) 
  CC [M]  /tmp/vmware-config0/vmnet-only/netif.o 
  CC [M]  /tmp/vmware-config0/vmnet-only/bridge.o 
/tmp/vmware-config0/vmnet-only/bridge.c: In function `VNetBridgeUp': 
/tmp/vmware-config0/vmnet-only/bridge.c:721: warning: passing arg 3 of 
`sk_alloc' makes pointer from integer without a cast 
/tmp/vmware-config0/vmnet-only/bridge.c:721: warning: passing arg 4 of 
`sk_alloc' makes integer from pointer without a cast 
  CC [M]  /tmp/vmware-config0/vmnet-only/procfs.o 
  LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.o 
  Building modules, stage 2. 
  MODPOST 
  CC      /tmp/vmware-config0/vmnet-only/vmnet.mod.o 
  LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.ko 
make[1]: Leaving directory `/usr/src/linux-2.6.12-gentoo-r4' 
cp -f vmnet.ko ./../vmnet.o 
make: Leaving directory `/tmp/vmware-config0/vmnet-only' 
This program previously created the file 
/lib/modules/2.6.12-gentoo-r4/misc/vmnet.o, and was about to remove it. 
Somebody else apparently did it already. 
 
The module loads perfectly in the running kernel. 
 
This program previously created the file /dev/vmnet0, and was about to remove 
it.  Somebody else apparently did it already. 
 
You have already setup networking. 
 
<...SNIP...> 
 
Starting VMware services: 
   Virtual machine monitor done 
   Virtual ethernet done 
   Bridged networking on /dev/vmnet0failed 
 
The configuration of VMware Workstation 4.5.2 build-8848 for Linux for this 
running kernel completed successfully. 
 
You can now run VMware Workstation by invoking the following command: 
"/opt/vmware/bin/vmware". 
 
Enjoy, 
 
--the VMware team 
 


To solve the problem you have to download vmware-any-any-update92 
(ftp://platan.vc.cvut.cz/pub/vmware/) and install it before you 
run vmware-config.pl 
 
Maybe the patch should be added to portage?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-10 03:59:12 UTC
*** Bug 98228 has been marked as a duplicate of this bug. ***
Comment 2 Tim Redman 2005-07-11 05:59:03 UTC
Dan,

Excellent analysis.  I can confirm the same issue on my machine, with the same
symptoms, and your solution does seem to fix the problem.  I'll keep you posted
if I see any side effects.

Tim
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-07-11 07:28:48 UTC
You know it helps to mention what version of a package you're having trouble
with, right?

Anyway, I've updated VMware 3 and 4 to use update92 and I marked VMware 5 stable.

Just do an emerge sync and try again.
Comment 4 Tim Redman 2005-07-11 18:45:39 UTC
So sorry, Chris.  I'm can't speak for Dan, but I was getting the problem with
vmware-workstation-4.5.2.8848-r6.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2005-07-12 06:51:20 UTC
OK... I updated vmware 4 to any-any 92... so you should be good to go... I was
worried since vmware 5 was already on any-any 92.
Comment 6 Dan Johansson 2005-07-13 10:44:57 UTC
(In reply to comment #3)
> You know it helps to mention what version of a package you're having trouble
> with, right?
Sorry Chris that I forgot the version (but if you look at my "case-text" it says 
"VMware Workstation 4.5.2 build-8848").

By the way. Thanks!

--Dan