You are not logged in.

#1 2009-07-14 15:02:59

det
Wiki Maintainer
Registered: 2009-07-11
Posts: 39

[Solved] "gcc and kernel headers must be installed"

Hellllooooooooooooo..

I've gotten myself into the point where you would recompile the modified and re-tarred modules and load them into memory with "vmware-modconfig --console --install-all". However I get this:

gcc and kernel headers must be installed

(Even though I have installed them.) Also when running "vmware", I get an error pop-up, claiming:

C header files matching your running kernel were not found. Refer to your distribution's documentation for installation instructions.

.. and then I have to enter the path of my kernel headers.

What to do? hmm


Info:
- I have base-devel (includes gcc) and kernel-headers installed
- kernel26's and kernel-headers's version: 2.6.30.1-1
- I used the patches from here: http://communities.vmware.com/thread/208963 (..and followed the instructions in here: http://wiki.archlinux.org/index.php/Installing_VMware)
- I am using VMware Workstation 6.5.2
- I did do "mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.old" before executing "vmware-modconfig --console --install-all"



Additional Info: this happens when executing the patch:

> ...
Found tar file for vmci module
Found tar file for vmmon module
Found tar file for vmnet module
Found tar file for vmblock module
Found tar file for vsock module
Found tar file for vmppuser module
Using patch file: /home/det/Desktop/vmware/vmware-6.5.2-modules-2.6.30-fix.patch
Using module directory: /usr/lib/vmware/modules/source
Using backup directory: /usr/lib/vmware/modules/source-backup
Backing up ./vmci.tar to /usr/lib/vmware/modules/source-backup/./vmci.tar
Backing up ./vmmon.tar to /usr/lib/vmware/modules/source-backup/./vmmon.tar
Backing up ./vmnet.tar to /usr/lib/vmware/modules/source-backup/./vmnet.tar
Backing up ./vmblock.tar to /usr/lib/vmware/modules/source-backup/./vmblock.tar
Backing up ./vsock.tar to /usr/lib/vmware/modules/source-backup/./vsock.tar
Backing up ./vmppuser.tar to /usr/lib/vmware/modules/source-backup/./vmppuser.tar
Untarring vmci.tar
Untarring vmmon.tar
Untarring vmnet.tar
Untarring vmblock.tar
Untarring vsock.tar
Untarring vmppuser.tar
Testing patch
patching file vmblock-only/linux/control.c
patching file vmblock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmci-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3424 (offset 1 line).
Hunk #2 succeeded at 3538 (offset 1 line).
Hunk #3 succeeded at 3662 (offset 1 line).
patching file vmmon-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
Applying patch!
patching file vmblock-only/linux/control.c
patching file vmblock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmci-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3424 (offset 1 line).
Hunk #2 succeeded at 3538 (offset 1 line).
Hunk #3 succeeded at 3662 (offset 1 line).
patching file vmmon-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
Preparing new tar file for vmci module
Preparing new tar file for vmmon module
Preparing new tar file for vmnet module
Preparing new tar file for vmblock module
Preparing new tar file for vsock module
Preparing new tar file for vmppuser module
Trying to compile vmci module to see if it works
Using standalone build system.
./autoconf/geninclude.c:19:28: error: linux/autoconf.h: No such file or directory        <-----
.././autoconf/geninclude.c:19:28: error: linux/autoconf.h: No such file or directory
Dependencies for driver.c
In file included from .././linux/driver.c:20:
.././include/driver-config.h:42:5: error: #error "No Module support in this kernel.  Please configure with CONFIG_MODULES"
make[1]: *** [driver.d] Error 1
make: *** [deps] Error 2
Sorry, problem compiling the vmci module after it was patched
You must restore from this backup directory:
/usr/lib/vmware/modules/source-backup

Last edited by det (2009-08-06 13:11:59)

Offline

#2 2009-07-14 18:41:07

det
Wiki Maintainer
Registered: 2009-07-11
Posts: 39

Re: [Solved] "gcc and kernel headers must be installed"

Bump! yikes

Offline

#3 2009-07-14 18:44:48

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: [Solved] "gcc and kernel headers must be installed"

Seriously, bump after 3 hours? mad


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#4 2009-07-14 21:29:34

det
Wiki Maintainer
Registered: 2009-07-11
Posts: 39

Re: [Solved] "gcc and kernel headers must be installed"

arkham wrote:

Seriously, bump after 3 hours? mad

This is important and that's not helping, is it?

Offline

#5 2009-07-14 21:40:20

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] "gcc and kernel headers must be installed"

det - please read the Forum Etiquette and familiarise yourself with the way things work around here. Bumping is not permitted. Everyone's issue is important - to them.

Arkham - your attention is appreciated, but in future please leave the modding to the mods. You can use the forum's report function if you wish to bring something to our attention.

Offline

#6 2009-07-15 23:14:08

det
Wiki Maintainer
Registered: 2009-07-11
Posts: 39

Re: [Solved] "gcc and kernel headers must be installed"

Solved.

Offline

#7 2009-07-28 15:35:15

corstar
Member
From: Perth, Western Australia
Registered: 2008-05-05
Posts: 27
Website

Re: [Solved] "gcc and kernel headers must be installed"

det wrote:

Solved.

Please let us know your steps to resolve this issue.

Offline

#8 2009-08-06 13:10:38

det
Wiki Maintainer
Registered: 2009-07-11
Posts: 39

Re: [Solved] "gcc and kernel headers must be installed"

corstar wrote:
det wrote:

Solved.

Please let us know your steps to resolve this issue.

Woops, sorry smile.

I don't really remember what worked then, but the new patch works every time, so it doesn't really matter: http://communities.vmware.com/thread/221724 (this means you should never get this error before something changes...).

Last edited by det (2009-08-06 13:11:39)

Offline

Board footer

Powered by FluxBB