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

app-emulation/vmware-modules build failure with kernel >=6.4.10, patch needed #127

Closed
lourdas opened this issue Aug 12, 2023 · 4 comments
Closed

Comments

@lourdas
Copy link

lourdas commented Aug 12, 2023

After upgrading today to 6.4.10, vmware-modules could not build because 6.4.10 introduced a new header file and by default is not included in vmnet. mkubecek committed a patch here: mkubecek/vmware-host-modules@b75cd61

A temporary workaround is a small patch in user portage patches directory:

/etc/portage/patches/app-emulation/vmware-modules-17.0.2 # ls -l
total 12
4 drwxr-xr-x 2 root root 4096 Αυγ  12 10:31 ./
4 drwxr-xr-x 3 root root 4096 Αυγ  12 10:31 ../
4 -rw-r--r-- 1 root root  385 Αυγ  12 10:31 fix-6.4.10-breaks-vmnet-vmware-17.0.2.diff
/etc/portage/patches/app-emulation/vmware-modules-17.0.2 # cat fix-6.4.10-breaks-vmnet-vmware-17.0.2.diff
diff --git a/vmnet-only/bridge.c b/vmnet-only/bridge.c
index 2886be4..a498c32 100644
@@ -45,6 +45,13 @@
#include <net/tcp.h>
#include <net/ipv6.h>

+/* This fixes moving skb_gso_segment(skb, 0); to net/gso.h from kernel 6.4.10
+*  and later.
+*/
+#if LINUX_VERSION_CODE >= (6,4,10)
+#  include <net/gso.h>
+#endif
+
#ifdef CONFIG_NET_RADIO
#   include <linux/wireless.h>
#endif
@stefantalpalaru
Copy link
Owner

The upstream patch breaks compilation for older kernels: mkubecek/vmware-host-modules#204 (comment)

I used a patch similar to yours instead:

diff -ur vmware-host-modules-efc76a69acebb66409af5f267c51ccc027e057e6.orig/vmnet-only/bridge.c vmware-host-modules-efc76a69acebb66409af5f267c51ccc027e057e6/vmnet-only/bridge.c
--- vmware-host-modules-efc76a69acebb66409af5f267c51ccc027e057e6.orig/vmnet-only/bridge.c	2023-02-17 09:50:22.000000000 +0100
+++ vmware-host-modules-efc76a69acebb66409af5f267c51ccc027e057e6/vmnet-only/bridge.c	2023-08-12 15:50:11.915654613 +0200
@@ -45,6 +45,13 @@
 #include <net/tcp.h>
 #include <net/ipv6.h>
 
+/* This fixes moving skb_gso_segment(skb, 0); to net/gso.h from kernel 6.4.10
+*  and later.
+*/
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 10)
+#  include <net/gso.h>
+#endif
+
 #ifdef CONFIG_NET_RADIO
 #   include <linux/wireless.h>
 #endif

Thank you for the bug report and please test the latest version of the "vmware-modules" package on 6.4.10.

@lourdas
Copy link
Author

lourdas commented Aug 12, 2023

Yes, it builds fine, thanks for the excellent response!

@lourdas
Copy link
Author

lourdas commented Aug 13, 2023

Maybe it's worth integrating the latest fixes from mkubecek/vmware-host-modules@8b2d314

@stefantalpalaru
Copy link
Owner

If it's not broken, don't fix it.

We'll get those commits anyway, when upgrading for 6.5.

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

2 participants