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

Attila Kinali attila at kinali.ch
Sun Aug 1 16:36:53 CEST 2004


On Thu, Jul 15, 2004 at 09:24:32AM +0200, Goetz Waschk wrote:
> 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.

> +#include <linux/autoconf.h>

Can someone with a 2.6 kernel tell me what this include file does and
why it should be included. And more important does it work with a vanila
kernel, do other kernels need it etc pp.


			Attila Kinali




More information about the MPlayer-dev-eng mailing list