[MPlayer-dev-eng] [PATCH] build fix for Mandrakelinux 2.6.7 kernel

Goetz Waschk waschk at informatik.uni-rostock.de
Thu Jul 15 09:24:32 CEST 2004


Hi,

I had to apply this small patch to make mplayer build on Mandrakelinux
10.1 Cooker with the kernel 2.6.7. Without the patch it would fail
here:
In file included from /usr/include/linux/list.h:7,
                 from ../osdep/kerneltwosix.h:5,
                 from vo_mga.c:17:
/usr/include/linux/prefetch.h: In function `prefetch_range':
/usr/include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
/usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
/usr/include/linux/prefetch.h:64: error: for each function it appears in.)
make[1]: *** [vo_mga.o] Error 1

Maybe this is a bug in mdk's kernel headers, maybe not.

CU, Götz
-- 
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
    Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"
-------------- next part --------------
Index: osdep/kerneltwosix.h
===================================================================
RCS file: /cvsroot/mplayer/main/osdep/kerneltwosix.h,v
retrieving revision 1.1
diff -u -r1.1 kerneltwosix.h
--- osdep/kerneltwosix.h	10 Jan 2004 09:48:15 -0000	1.1
+++ osdep/kerneltwosix.h	15 Jul 2004 07:20:36 -0000
@@ -2,6 +2,7 @@
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,70)
 #define __KERNEL__
 #include <linux/thread_info.h>
+#include <linux/autoconf.h>
 #include <linux/list.h>
 #undef __KERNEL__
 #endif


More information about the MPlayer-dev-eng mailing list