Linux kernel 5.18 breaks OSS
Posted: Tue Dec 27, 2022 4:24 pm
Kernel v15.18 and later breaks the osscore module which won't install due to a macro called "memmove" being defined in <linux/fortify-string.h>.
When the installation script tries to build the osscore module GCCs pre-processor replaces the function name memmove in osscore.c with the expanded macro thereby creating a syntax error which prevents the compiler producing "osscore.o".
The following patch will cure and problem and have no effect on earlier kernel versions.
When the installation script tries to build the osscore module GCCs pre-processor replaces the function name memmove in osscore.c with the expanded macro thereby creating a syntax error which prevents the compiler producing "osscore.o".
The following patch will cure and problem and have no effect on earlier kernel versions.
Code: Select all
--- a/setup/Linux/oss/build/osscore.c
+++ b/setup/Linux/oss/build/osscore.c
@@ -138,6 +138,9 @@
return t;
}
+#ifdef memmove
+#undef memmove
+#endif
void *memmove(void *dest, const void *src, size_t n)
{
return oss_memcpy(dest, src, n);