Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

having error while doing this "vmware-modconfig --console --install-all" #264

Open
jokerexe01 opened this issue Jul 27, 2024 · 6 comments
Open

Comments

@jokerexe01
Copy link

[AppLoader] Use shipped Linux kernel AIO access library.
An up-to-date "libaio" or "libaio1" package from your system is preferred.
[AppLoader] GLib does not have GSettings support.
Stopping VMware services:
VMware Authentication Daemon done
Virtual machine monitor done
make: Entering directory '/tmp/modconfig-DYQpmJ/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.8.0-40-generic/build/include/.. M=$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu122.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1
22.04) 12.3.0
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/comport.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/cpuid.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/crosspage.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/moduleloop.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/phystrack.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/sharedAreaVmmon.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/statVarsVmmon.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/task.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/common/vmx86.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/bootstrap/bootstrap.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/bootstrap/monLoader.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/bootstrap/monLoaderVmmon.o
CC [M] /tmp/modconfig-DYQpmJ/vmmon-only/bootstrap/vmmblob.o
/tmp/modconfig-DYQpmJ/vmmon-only/common/task.c:548:1: warning: no previous prototype for ‘TaskGetFlatWriteableDataSegment’ [-Wmissing-prototypes]
548 | TaskGetFlatWriteableDataSegment(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/modconfig-DYQpmJ/vmmon-only/common/vmx86.c:52:
./arch/x86/include/asm/timex.h: In function ‘random_get_entropy’:
./arch/x86/include/asm/timex.h:12:24: error: implicit declaration of function ‘random_get_entropy_fallback’; did you mean ‘random_get_entropy’? [-Werror=implicit-function-declaration]
12 | return random_get_entropy_fallback();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| random_get_entropy
/tmp/modconfig-DYQpmJ/vmmon-only/common/vmx86.c: At top level:
/tmp/modconfig-DYQpmJ/vmmon-only/common/vmx86.c:700:1: warning: no previous prototype for ‘Vmx86FreeVMDriver’ [-Wmissing-prototypes]
700 | Vmx86FreeVMDriver(VMDriver *vm)
| ^~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmmon-only/common/vmx86.c:733:1: warning: no previous prototype for ‘Vmx86AllocVMDriver’ [-Wmissing-prototypes]
733 | Vmx86AllocVMDriver(uint32 numVCPUs)
| ^~~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmmon-only/linux/hostif.c:2926:1: warning: no previous prototype for ‘HostIFCheckTrackedMPN’ [-Wmissing-prototypes]
2926 | HostIFCheckTrackedMPN(VMDriver *vm, // IN: The VM instance
| ^~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmmon-only/linux/hostif.c:3046:1: warning: no previous prototype for ‘HostIFWritePhysicalWork’ [-Wmissing-prototypes]
3046 | HostIFWritePhysicalWork(MA ma, // MA to be written to
| ^~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmmon-only/linux/hostif.c:3205:1: warning: no previous prototype for ‘HostIFStartTimer’ [-Wmissing-prototypes]
3205 | HostIFStartTimer(Bool rateChanged, //IN: Did rate change?
| ^~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmmon-only/linux/driver.c:271:1: warning: no previous prototype for ‘LinuxDriverInit’ [-Wmissing-prototypes]
271 | LinuxDriverInit(void)
| ^~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmmon-only/linux/driver.c:339:1: warning: no previous prototype for ‘LinuxDriverExit’ [-Wmissing-prototypes]
339 | LinuxDriverExit(void)
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /tmp/modconfig-DYQpmJ/vmmon-only/common/vmx86.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /tmp/modconfig-DYQpmJ/vmmon-only] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:117: vmmon.ko] Error 2
make: Leaving directory '/tmp/modconfig-DYQpmJ/vmmon-only'
make: Entering directory '/tmp/modconfig-DYQpmJ/vmnet-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.8.0-40-generic/build/include/.. M=$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu122.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1
22.04) 12.3.0
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/driver.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/hub.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/userif.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/netif.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/bridge.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/procfs.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/smac.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/vnetEvent.o
CC [M] /tmp/modconfig-DYQpmJ/vmnet-only/vnetUserListener.o
/tmp/modconfig-DYQpmJ/vmnet-only/vnetUserListener.c:85:1: warning: no previous prototype for ‘VNetUserListener_Create’ [-Wmissing-prototypes]
85 | VNetUserListener_Create(uint32 classMask, // IN: the listener's class mask
| ^~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmnet-only/userif.c:1087:1: warning: no previous prototype for ‘VNetUserIf_Create’ [-Wmissing-prototypes]
1087 | VNetUserIf_Create(VNetPort **ret) // OUT
| ^~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmnet-only/driver.c:299:1: warning: no previous prototype for ‘vmnet_init_module’ [-Wmissing-prototypes]
299 | vmnet_init_module(void)
| ^~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmnet-only/driver.c:378:1: warning: no previous prototype for ‘vmnet_cleanup_module’ [-Wmissing-prototypes]
378 | vmnet_cleanup_module(void)
| ^~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmnet-only/bridge.c:256:1: warning: no previous prototype for ‘VNetBridge_Create’ [-Wmissing-prototypes]
256 | VNetBridge_Create(const char *devName, // IN: name of device (e.g., "eth0")
| ^~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmnet-only/bridge.c:1411:1: warning: no previous prototype for ‘VNetBridgeSendLargePacket’ [-Wmissing-prototypes]
1411 | VNetBridgeSendLargePacket(struct sk_buff *skb, // IN: packet to split
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmnet-only/netif.c:175:1: warning: no previous prototype for ‘VNetNetIf_Create’ [-Wmissing-prototypes]
175 | VNetNetIf_Create(char *devName, // IN:
| ^~~~~~~~~~~~~~~~
/tmp/modconfig-DYQpmJ/vmnet-only/bridge.c: In function ‘VNetBridgeSendLargePacket’:
/tmp/modconfig-DYQpmJ/vmnet-only/bridge.c:1416:11: error: implicit declaration of function ‘skb_gso_segment’; did you mean ‘tcp_gso_segment’? [-Werror=implicit-function-declaration]
1416 | segs = skb_gso_segment(skb, 0);
| ^~~~~~~~~~~~~~~
| tcp_gso_segment
/tmp/modconfig-DYQpmJ/vmnet-only/bridge.c:1416:9: warning: assignment to ‘struct sk_buff *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1416 | segs = skb_gso_segment(skb, 0);
| ^
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /tmp/modconfig-DYQpmJ/vmnet-only/bridge.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /tmp/modconfig-DYQpmJ/vmnet-only] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: *** [Makefile:117: vmnet.ko] Error 2
make: Leaving directory '/tmp/modconfig-DYQpmJ/vmnet-only'
Unable to install all modules. See log for details.

@Crypticat
Copy link

I am having the same after updating to Linux Mint 22. Using kernel 6.8.0-39

@jokerexe01
Copy link
Author

i found the solution
git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git && cd vmware-host-modules/ && sudo make tarballs && sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ && sudo vmware-modconfig --console --install-all

@cubicle-jockey
Copy link

i found the solution git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git && cd vmware-host-modules/ && sudo make tarballs && sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ && sudo vmware-modconfig --console --install-all

This solution worked for me. Thanks!

@kaengo
Copy link

kaengo commented Aug 16, 2024

OK, I do not know, what I have done, but it worked for me! Thank you very much!

vmware player 17.5.2 on Ubuntu 22.04.4 LTS

Greetings, Holger

@richardbaldeon
Copy link

i found the solution git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git && cd vmware-host-modules/ && sudo make tarballs && sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ && sudo vmware-modconfig --console --install-all

This solution worked for me, on vmware 17.5.2 and K.6.10.6. Thanks!

@HarimbolaSantatra
Copy link

i found the solution git clone -b tmp/workstation-17.5.2-k6.9.1 https://github.com/nan0desu/vmware-host-modules.git && cd vmware-host-modules/ && sudo make tarballs && sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ && sudo vmware-modconfig --console --install-all

This solution worked! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants