[debian] vmware-config : Unable to build the vmmon module.

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • Boudewijn
  • Registratie: Februari 2004
  • Niet online

Boudewijn

omdat het kan

Topicstarter
Hoihoi

Ik heb een schone debian installatie (stable) waar ik ivm mijn NICs een kernel van >2.6.26 op moet draaien (igb driver herkend de nics op mijn supermicro x8dtn+ anders niet).

Nu heb ik 2.6.30 geinstalleerd via backports:
code:
1
apt-get install -t lenny-backports linux-image-2.6-amd64 linux-headers-2.6-amd64


Prima, symlinkje aangmaakt:
code:
1
2
3
4
5
6
7
8
9
10
11
blackbox:/usr/src# ls -alh /usr/src/
total 32K
drwxrwsr-x  8 root src  4.0K 2009-11-18 16:31 .
drwxr-xr-x 11 root root 4.0K 2009-11-17 19:13 ..
lrwxrwxrwx  1 root src    33 2009-11-18 16:31 linux -> linux-headers-2.6.30-bpo.1-amd64/
drwxr-xr-x  4 root root 4.0K 2009-11-17 20:36 linux-headers-2.6.26-2-amd64
drwxr-xr-x 18 root root 4.0K 2009-11-17 20:36 linux-headers-2.6.26-2-common
drwxr-xr-x  4 root root 4.0K 2009-11-18 03:03 linux-headers-2.6.30-bpo.1-amd64
drwxr-xr-x  4 root root 4.0K 2009-11-18 03:03 linux-headers-2.6.30-bpo.1-common
drwxr-xr-x  3 root root 4.0K 2009-11-17 20:36 linux-kbuild-2.6.26
drwxr-xr-x  3 root root 4.0K 2009-11-18 03:03 linux-kbuild-2.6.30



Echter stopt de vmware installer er mee:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.30-bpo.1-amd64/build/include]                        

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /lib/modules/2.6.30-bpo.1-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.30-bpo.1-amd64'
  CC [M]  /tmp/vmware-config1/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config1/vmmon-only/linux/driver.c:31:
/tmp/vmware-config1/vmmon-only/./include/compat_wait.h:78: error: conflicting types for ‘poll_initwait’
/usr/src/linux-headers-2.6.30-bpo.1-common/include/linux/poll.h:67: error: previous declaration of ‘poll_initwait’ was here
/tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
/tmp/vmware-config1/vmmon-only/linux/driver.c:1423: error: too many arguments to function ‘smp_call_function’
/tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-config1/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘euid’
/tmp/vmware-config1/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-config1/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘fsuid’
/tmp/vmware-config1/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-config1/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘egid’
/tmp/vmware-config1/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-config1/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘fsgid’
/tmp/vmware-config1/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-config1/vmmon-only/linux/driver.c:2007: error: too many arguments to function ‘smp_call_function’
make[4]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] Error 1
make[3]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.30-bpo.1-amd64'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/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".


Uiteraard beide pages al bekeken.


Weet iemand wat ik hieraan kan doen?

[ Voor 3% gewijzigd door Boudewijn op 18-11-2009 16:43 ]

i3 + moederbord + geheugen kopen?


Acties:
  • 0 Henk 'm!

  • gertvdijk
  • Registratie: November 2003
  • Laatst online: 09-09 10:57
Boudewijn schreef op woensdag 18 november 2009 @ 16:26:
Weet iemand wat ik hieraan kan doen?
Misschien helpt het upgraden van de gcc versie naar de versie waarmee de kernel ook is gebouwd. Iets dergelijks moet je ook doen bij de installatie van de 'upstream' versie van de NVidia driver. Die miept dan ook over het verschil tussen bijv. gcc-4.1 en gcc-4.3.

Kia e-Niro 2021 64 kWh DynamicPlusLine. See my GitHub and my blog for articles on security and other stuff.


Acties:
  • 0 Henk 'm!

  • Boudewijn
  • Registratie: Februari 2004
  • Niet online

Boudewijn

omdat het kan

Topicstarter
gcc is al up to date, net als g++.
Heb net dit gedaan:
code:
1
apt-get install -t lenny-backports gcc g++ build-essential

Met als resultaat:
code:
1
2
3
4
5
6
blackbox:~/vmware-server-distrib# gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-cld --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)


Er is wel wat geupdate ivm build-essential, maar dat biedt ook geen soelaas.

Hmm fijn.

i3 + moederbord + geheugen kopen?


Acties:
  • 0 Henk 'm!

  • blaataaps
  • Registratie: Juli 2001
  • Niet online
Al eens bij de diverse andere mensen met dit probleem gekeken? Voor ubuntu is er een patch-set, in elk geval voor vmware workstation en de modules.
http://communities.vmware.com/thread/241271
http://www.linuxpro.co.za...nstall-crashes-solutions-
http://ubuntuforums.org/showthread.php?t=1230548

  • Boudewijn
  • Registratie: Februari 2004
  • Niet online

Boudewijn

omdat het kan

Topicstarter
Nee, ik had dit nog niet gelezen.
Nu echter wel, en ik snap niet helemaal wat die patch doet. Ik ben bekend met patches etc, maar snap de opzet hier niet.

Hier wordt het goed uitgelegd.
http://communities.vmware.com/message/1296880#1296880

Maar wat is nou de bedoeling?


Zoals uitgelegd in de gelinkte post, op wat spullen in /usr uitvoeren:
code:
1
2
3
4
5
blackbox:/usr/src/vmware-patches# pwd ;ls
/usr/src/vmware-patches
vmci.tar   vmware-server.2.0.1_x64-modules-2.6.30-fix.patch
vmmon.tar  vmware-server.2.0.1_x64-modules-2.6.30-fix.sh
vmnet.tar  vsock.tar

Dat gaat prima....

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Replacing original file vmnet.tar with patched file
Replacing original file vmmon.tar with patched file
Replacing original file vsock.tar with patched file
Replacing original file vmci.tar with patched file
Done!

I have changed the files in here:
/usr/lib/vmware/modules/source

I have placed a backup of the original files in here:
/usr/lib/vmware/modules/source-backup

The original VMware modules directory is still in the way.
Please move this directory somewhere else, because it confuses VMware:
/usr/lib/vmware/modules/binary

This command should work now, to install the modules:
vmware-config.pl -d



Daarna:

/usr/bin/vmware-config.pl

En dan werkt het :).
Woohoo!


Bedankt voor de tip.

i3 + moederbord + geheugen kopen?