Krok dalej i znów błędy - Re: VMware - problem z kompilacją modułu "vmmon"
Dariusz Krzempek
darek w pekdar.net
Nie, 15 Sie 2010, 20:58:04 CEST
Witam,
On Wed, 11 Aug 2010 00:16:09 +0200, Arkadiusz Rdest <weed w punkt.pl>
wrote:
>>>> What is the location of the directory of C header files that match your
>>>> running
>>>> kernel? [/usr/src/linux/include] /usr/src/2.6.33.5-1/include
>>>>
>>>> The path "/usr/src/2.6.33.5-1/include" is not an existing directory.
>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> Nie /usr/src/2.6.33.5-1/include, a /usr/src/linux-2.6.33.5-1/include (a jak
>>> nie zadziała, spróbuj/usr/src/linux-2.6.33.5-1/include/linux). Ja bym
>>> dodatkowo zainstalował pakiet linux-libc-headers.
>>>
>>
>> Było już późno i walnąłem się. Moja wina.
>> Zrobiłem tak jak napisałeś i dalej ten sam problem.
>>
>> poldek:/all-avail> ls -I linux-libc-headers*
>> linux-libc-headers-2.6.34-1.i686
>> 1 pakiet
>> poldek:/all-avail>
>>
>> linux-libc-headers zainstalowane i ten sam problem.
>>
>> Mogę prosić o kolejne sugestie?
>
> sprawdz w skrypcie budujacym, czego dokaldnie szuka (jakiego pliku) ten
> instalator, albo jaki warunek musi byc spelniony.
> moze to cie napraowadzi na odpowiedni pakiet do zainstalowania.
Poszperałem trochę po sieci i znalazłem taki wątek:
http://www.atlink.it/~conti/2007/12/19/vmware-uts_release/
Pomogło wykonanie:
cat ./include/generated/utsrelease.h >> ./include/linux/version.h
Instalator rozpoczął kompilację potrzebnego modułu, jednak po kilku
liniach wyświetlił następne błędy :(
Building the vmmon module.
Using 2.6.x kernel build system.
make: Wejście do katalogu `/root/tmp/vmware-config2/vmmon-only'
make -C /lib/modules/2.6.34.3-1/build/include/.. SUBDIRS=$PWD
SRCROOT=$PWD/. modules
make[1]: Wejście do katalogu `/usr/src/linux-2.6.34.3'
CC [M] /root/tmp/vmware-config2/vmmon-only/linux/driver.o
In file included from
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:31:0:
/root/tmp/vmware-config2/vmmon-only/./include/compat_wait.h:78:13:
error: conflicting types for ‘poll_initwait’
include/linux/poll.h:72:13: note: previous declaration of
‘poll_initwait’ was here
In file included from
/root/tmp/vmware-config2/vmmon-only/./include/vmware.h:38:0,
from
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:99:
/root/tmp/vmware-config2/vmmon-only/./include/vm_basic_types.h:108:7:
warning: "__FreeBSD__" is not defined
In file included from
/root/tmp/vmware-config2/vmmon-only/./common/vmx86.h:32:0,
from
/root/tmp/vmware-config2/vmmon-only/linux/driver.h:29,
from
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:101:
/root/tmp/vmware-config2/vmmon-only/./include/x86msr.h:164:0: warning:
"MSR_THERM2_CTL" redefined
/usr/src/linux-2.6.34.3/arch/x86/include/asm/msr-index.h:231:0: note:
this is the location of the previous definition
In file included from
/root/tmp/vmware-config2/vmmon-only/./include/vcpuset.h:103:0,
from
/root/tmp/vmware-config2/vmmon-only/./include/modulecall.h:37,
from
/root/tmp/vmware-config2/vmmon-only/./common/vmx86.h:33,
from
/root/tmp/vmware-config2/vmmon-only/linux/driver.h:29,
from
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:101:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:329:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:333:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:401:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:407:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h: In function
‘Atomic_And’:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:506:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h: In function
‘Atomic_Or’:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:595:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h: In function
‘Atomic_Xor’:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:684:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h: In function
‘Atomic_Add’:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:773:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:775:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h: In function
‘Atomic_Sub’:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:860:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:862:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h: In function
‘Atomic_Inc’:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:945:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:947:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h: In function
‘Atomic_Dec’:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:1028:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:1030:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h: At top
level:
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:1223:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:1227:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:1536:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_atomic.h:1663:7:
warning: "_MSC_VER" is not defined
In file included from
/root/tmp/vmware-config2/vmmon-only/./include/vm_basic_asm.h:46:0,
from
/root/tmp/vmware-config2/vmmon-only/./include/rateconv.h:45,
from
/root/tmp/vmware-config2/vmmon-only/./include/modulecall.h:40,
from
/root/tmp/vmware-config2/vmmon-only/./common/vmx86.h:33,
from
/root/tmp/vmware-config2/vmmon-only/linux/driver.h:29,
from
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:101:
/root/tmp/vmware-config2/vmmon-only/./include/vm_basic_asm_x86.h:62:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_basic_asm_x86.h:177:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_basic_asm_x86.h:346:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_basic_asm_x86.h:453:7:
warning: "_MSC_VER" is not defined
In file included from
/root/tmp/vmware-config2/vmmon-only/./include/vm_asm.h:43:0,
from
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:103:
/root/tmp/vmware-config2/vmmon-only/./include/vm_asm_x86.h:486:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_asm_x86.h:779:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_asm_x86.h:820:7:
warning: "_MSC_VER" is not defined
/root/tmp/vmware-config2/vmmon-only/./include/vm_asm_x86.h:922:7:
warning: "_MSC_VER" is not defined
In file included from
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:119:0:
/root/tmp/vmware-config2/vmmon-only/./common/hostif.h:53:7: warning:
"WINNT_DDK" is not defined
/root/tmp/vmware-config2/vmmon-only/linux/driver.c: In function
‘LinuxDriverSyncCallOnEachCPU’:
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1423:4: error: too
many arguments to function ‘smp_call_function’
include/linux/smp.h:72:5: note: declared here
/root/tmp/vmware-config2/vmmon-only/linux/driver.c: In function
‘LinuxDriver_Ioctl’:
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1987:18: error:
‘struct task_struct’ has no member named ‘euid’
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1987:35: error:
‘struct task_struct’ has no member named ‘uid’
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1988:11: error:
‘struct task_struct’ has no member named ‘fsuid’
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1988:29: error:
‘struct task_struct’ has no member named ‘uid’
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1989:18: error:
‘struct task_struct’ has no member named ‘egid’
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1989:35: error:
‘struct task_struct’ has no member named ‘gid’
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1990:11: error:
‘struct task_struct’ has no member named ‘fsgid’
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:1990:29: error:
‘struct task_struct’ has no member named ‘gid’
/root/tmp/vmware-config2/vmmon-only/linux/driver.c:2007:7: error: too
many arguments to function ‘smp_call_function’
include/linux/smp.h:72:5: note: declared here
make[2]: *** [/root/tmp/vmware-config2/vmmon-only/linux/driver.o] Błąd
1
make[1]: *** [_module_/root/tmp/vmware-config2/vmmon-only] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-2.6.34.3'
make: *** [vmmon.ko] Błąd 2
make: Opuszczenie katalogu `/root/tmp/vmware-config2/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".
Execution aborted.
[root w apms vmware-server-distrib]#
Googlam za rozwiązaniem, co mu tym razem nie pasuje.
> pamietam, ze budowalem kiedys na TH vmware-toolsy do ESX'a z pakietow
> tar.gz dolaczonych do ESX'ow i byly jakies problemy, ale udalo mi sie je
> w kilkanascie minut rozwiazac bo sie to w koncu zbudowalo i dzialalo.
>
> Inna inszosc, ze linux pod vmware dziala OK bez instalacji tych toolsow
> i tak naprawde nie sa one wymagane do dzialania.
Dzięki za informacje.
--
Pozdrawiam
Darek
Więcej informacji o liście dyskusyjnej pld-users-pl