Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66673 - vmware-config.pl with 2.6 kernel using config-kernel fails to build kernel modules
Summary: vmware-config.pl with 2.6 kernel using config-kernel fails to build kernel mo...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-07 11:19 UTC by Eric Westbrook
Modified: 2005-09-21 03:56 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 Eric Westbrook 2004-10-07 11:19:15 UTC
I have a KBUILD_OUTPUT_PREFIX set to /var/tmp/kernel-output and have built my 2.6.8-gentoo-r7 kernel to output there.  After emerging app-emulation/vmware-workstation-4.5.2.8848-r1, I attempt to run /opt/vmware/bin/vmware-config.pl, and encounter the following "brick wall":

    What is the location of the directory of C header files that match your running 
    kernel? [/usr/src/linux/include] 

    The path "/usr/src/linux/include" is an existing directory, but it does not 
    contain at least one of these directories "linux", "asm", "net" as expected.

I presume the ebuild doesn't yet know about the config-kernel koutput options?

Please advise.
ptd


Reproducible: Always
Steps to Reproduce:
1.  config-kernel --set-symlink=2.6.8-gentoo-r7
2.  config-kernel --make-koutput=current
3.  cp <good config file> /var/tmp/kernel-output/.config
4.  cd /usr/src/linux
5.  make oldconfig
6.  emerge && emerge modules_install
7.  emerge vmware-workstation
8.  /opt/vmware/bin/vmware-config.pl

Actual Results:  
vmware-config.pl fails to find the files it needs, to wit:

    What is the location of the directory of C header files that match your running 
    kernel? [/usr/src/linux/include] 

    The path "/usr/src/linux/include" is an existing directory, but it does not 
    contain at least one of these directories "linux", "asm", "net" as expected.


Expected Results:  
Should have found the files under /var/tmp/kernel-config and proceeded to build
its modules successfully.
Comment 1 Michael Prager 2004-10-18 07:09:11 UTC
I can only confirm this, vmware can currently only be used by setting 'config-kernel --allow-writable=yes' which is considered a security risk!
Comment 2 Dirk Silkenbäumer 2004-10-22 10:54:01 UTC
From http://ftp.cvut.cz/vmware/readme.txt:
vmware-any-any-update
	--- update51 ---
	Added support for building modules for 2.6.x kernels built with
	    KBUILD_OUTPUT=... defined in the environment. Due to 
	    vmware-config.pl you cannot build modules in these configurations 
	    with simple 'vmware-config.pl', but direct 'make' in untarred vmmon
	    & vmnet packages should work.

Building vmmon works fine. But building vmnet gives:
/tmp/vmnet-only/bridge.c: In Funktion 
Comment 3 Dirk Silkenbäumer 2004-10-22 10:54:01 UTC
From http://ftp.cvut.cz/vmware/readme.txt:
vmware-any-any-update
	--- update51 ---
	Added support for building modules for 2.6.x kernels built with
	    KBUILD_OUTPUT=... defined in the environment. Due to 
	    vmware-config.pl you cannot build modules in these configurations 
	    with simple 'vmware-config.pl', but direct 'make' in untarred vmmon
	    & vmnet packages should work.

Building vmmon works fine. But building vmnet gives:
/tmp/vmnet-only/bridge.c: In Funktion »VNetBridgeReceiveFromVNet«:
/tmp/vmnet-only/bridge.c:464: error: structure has no member named `wmem_alloc'

Cause: In Makefile.kernel socket.c can't be compiled due to missing include.
Workaround: Use `GLOBAL_DEFS="-Iinclude2/asm/mach-default" make` to compile vmnet.o

Don't forget to copy vmnet.o and vmmon.o to /lib/modules/`uname -r`/misc

 
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2004-11-03 18:18:27 UTC
Try version 4.5.2.8848-r2 and see if this fixes your problem.
Comment 5 Sophie Hamilton 2005-04-21 16:30:34 UTC
Is this actually fixed? Using vmware-workstation-5.0.0.13124 still doesn't seem to solve it, and neither did the stable version before.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-04-21 18:12:33 UTC
It should have been NEEDINFO, not FIXED.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2005-09-21 03:56:19 UTC
Alright, since this is an error with VMWare-supplied code and not the ebuild, I
am going to recommend that you contact them for support on this commercial
product.  I don't feel that I should be spending my time providing support for a
commercial vendor's code.  I'm more than willing to add any necessary patches to
the ebuild to resolve this issue, but don't feel I should be providing VMWare
with my services without compensation, as they have their own technical staff.