Jump to content

where are the c headers? [solved]


Guest Nanda Sunu
 Share

Recommended Posts

Guest Nanda Sunu

Hi, I am a recent Mandriva (2007) convert and am trying to get vmware workstation running. After running the vmware-config.pl vmware asks where the c headers for my running kernel are, they are not in the default folder (/usr/src/linux/include), any ideas how to find them or fix this problem so I can install vmware? I would be very grateful for any help, thanks.

Edited by Nanda Sunu
Link to comment
Share on other sites

You have to install kernel-source or kernel-source-stripped matching to your running kernel. The latter is smaller and IMHO should be enough though I never used vmware.

If your package manager can't find kernel-source you have to setup your sources first mandrivauser.de/smarturpmi. Kernel-source should be in main.

Link to comment
Share on other sites

Guest Nanda Sunu

thanks for the help, I installed the headers, but its still not working for me. This is what I get:

 

This is the message I am getting:

 

What is the location of the directory of C header files that match your running

kernel? [/usr/src/linux/include]

 

The kernel defined by this directory of header files does not have the same

address space size as your running kernel.

 

I've even tried upgrading my kernel as someone on the irc channel advised me, but that just caused to break my system... :wall:

Link to comment
Share on other sites

thanks for the help, I installed the headers, but its still not working for me. This is what I get:

 

This is the message I am getting:

 

What is the location of the directory of C header files that match your running

kernel? [/usr/src/linux/include]

 

The kernel defined by this directory of header files does not have the same

address space size as your running kernel.

 

I've even tried upgrading my kernel as someone on the irc channel advised me, but that just caused to break my system... :wall:

Th prob is the source is not the source used for the kernel....

This is something weird in mandriva and I don't wanna start ranting about it...

basically there must be some patches compiled into the kernel which are not applied to kernel-source but if you get past this you then probably find the kernel hooks and symbols are different....

 

Two basic options

1/ Compile the source yourself and install it then it HAS to be right

2/ try and use the vmware-any hack...

 

3rd option try different kernels until you find one with the source=compiled kernel

 

If you do 1/ your missing some optimsations ??? if you do 2 it might not work....

Link to comment
Share on other sites

Guest Nanda Sunu

Thanks for the replys.

 

Post the output of the following commands:

 uname -r

2.6.17-5mdv

 

 file /usr/src/linux

/usr/src/linux: symbolic link to `linux-2.6.17-5mdv'

 

2/ try and use the vmware-any hack...

I've tried that and it now gets past the headers part, but gets stuck a bit further on. This is what happens:

 

make[1]: Entering directory `/usr/src/linux-2.6.17-5mdv'

 WARNING: Symbol version dump /usr/src/linux-2.6.17-5mdv/Module.symvers
	   is missing; modules will have no dependencies and modversions.

 CC [M]  /root/tmp/vmware-config4/vmmon-only/linux/driver.o
 CC [M]  /root/tmp/vmware-config4/vmmon-only/linux/hostif.o
 CC [M]  /root/tmp/vmware-config4/vmmon-only/common/cpuid.o
 CC [M]  /root/tmp/vmware-config4/vmmon-only/common/hash.o
 CC [M]  /root/tmp/vmware-config4/vmmon-only/common/memtrack.o
 CC [M]  /root/tmp/vmware-config4/vmmon-only/common/phystrack.o
 CC [M]  /root/tmp/vmware-config4/vmmon-only/common/task.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
make[2]: *** [/root/tmp/vmware-config4/vmmon-only/common/task.o] Error 1
make[1]: *** [_module_/root/tmp/vmware-config4/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17-5mdv'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/root/tmp/vmware-config4/vmmon-only'
Unable to build the vmmon module.

 

I'm starting to give up... fingers still crossed though :thumbs: thanks for all the help

Link to comment
Share on other sites

It's more you're missing gcc components than anything else, what gcc stuff do you have installed? Post the output from:

 

rpm -qa | grep gcc

 

this is what I have installed on mine:

 

[ian@europa linux]$ rpm -qa | grep gcc
libgcc1-4.1.1-3mdk
gcc-4.1.1-3mdk
gcc-c++-4.1.1-3mdk
gcc-cpp-4.1.1-3mdk

 

you need all these. I never used the vmware hack, and mine worked fine. This is the kernel and kernel-source I'm running:

 

[ian@europa linux]$ rpm -qa | grep kernel
kernel-2.6.17.5mdv-1-1mdv2007.0
kernel-source-stripped-2.6.17.5mdv-1-1mdv2007.0

 

so you should be fine if you have all this.

Link to comment
Share on other sites

It's more you're missing gcc components than anything else, what gcc stuff do you have installed? Post the output from:

 

rpm -qa | grep gcc

 

this is what I have installed on mine:

 

[ian@europa linux]$ rpm -qa | grep gcc
libgcc1-4.1.1-3mdk
gcc-4.1.1-3mdk
gcc-c++-4.1.1-3mdk
gcc-cpp-4.1.1-3mdk

 

you need all these. I never used the vmware hack, and mine worked fine. This is the kernel and kernel-source I'm running:

 

[ian@europa linux]$ rpm -qa | grep kernel
kernel-2.6.17.5mdv-1-1mdv2007.0
kernel-source-stripped-2.6.17.5mdv-1-1mdv2007.0

so you should be fine if you have all this.

 

Nanda

I strongly recommend the above....

If you have to compile your own kernel then you will have to do the same with drivers etc. and it gets to be a pain.

I used to think mandriva "hid" the configs and patches deliberatly (to stop people copying their optimisations) but it seems so random I think its just poor organisation.

 

Using your own customised kernel is a big step... not the kernel compile and stuff that's easy but IMHO you then end up with having to add your own modules ... etc. and then when you try a new kernel in the future you have lots more headaches (perhaps) so its fun ;) if you like playing but since your installing vmware Im guessing your not playing and just want the damned thing to work....

 

Im of the same opinion with package management... I try and always use native package management because if you don't sooner or later you end up messing something about ...

Link to comment
Share on other sites

Guest Nanda Sunu

You guys are best, thank you so much! It turns out I was missing the gcc-c++-4.1.1-3mdk package missing, I installed that and now I have vmware running!! :P

 

For the record, this is what I had previous to it working:

[root@unknown00904bb68c75 nanda]# rpm -qa | grep gcc
gcc-cpp-4.1.1-3mdk
gcc-4.1.1-3mdk
libgcc1-4.1.1-3mdk

[root@unknown00904bb68c75 nanda]# rpm -qa | grep kernel
kernel-2.6.17.5mdv-1-1mdv2007.0
kernel-source-2.6.17.5mdv-1-1mdv2007.0
kernel-source-stripped-2.6.17.5mdv-1-1mdv2007.0
nvidia-kernel-2.6.17-5mdv-8774-1mdk

 

And now, with it working:

[root@unknown00904bb68c75 nanda]# rpm -qa | grep gcc
gcc-cpp-4.1.1-3mdk
gcc-4.1.1-3mdk
gcc-c++-4.1.1-3mdk
libgcc1-4.1.1-3mdk

 

Kernel sources stay the same.

 

Thanks again! :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...