[MPlayer-users] Cannot compile: `CONFIG_X86_L1_CACHE_SHIFT' undeclared

D Richard Felker III dalias at aerifal.cx
Mon Nov 22 23:40:16 CET 2004


On Sun, Nov 21, 2004 at 12:22:42AM +0100, Roman Hausner wrote:
> I am trying to compile MPlayer-1.0pre5 on my linux system (Suse 9.1,
> 2.6.8-24-default).
> I do a default ./configure (with or without --enable-gui) 
> I get the following compiler error:
> 
> cc -c -I../libvo -I../../libvo -I/usr/X11/include -O4 -march=athlon-4
> -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I.. -I../osdep
> -I/usr/include/freetype2 -I/usr/include/SDL -D_REENTRANT
> -I/usr/X11/include   -I/usr/include/directfb -DMPG12PLAY  -o
> vo_fbdev.o vo_fbdev.c
> In file included from /usr/include/linux/list.h:7,
>                  from ../osdep/kerneltwosix.h:5,
>                  from vo_fbdev.c:21:
> /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_fbdev.o] Error 1
> make[1]: Leaving directory `<parentofinstall>/MPlayer-1.0pre5/libvo'
> make: *** [libvo/libvo.a] Error 2
> 
> I have no idea what to do now ... anyone able to help me there? 
> Many thanks in advance!

regardless of all the stuff i'll say about linux being broken, the
stuff in mplayer is horribly broken too. here is the contents of
osdep/kerneltwosix.h:

----------------------------------------------------------------------
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,70)
#define __KERNEL__
#include <linux/thread_info.h>
#include <linux/list.h>
#undef __KERNEL__
#endif
----------------------------------------------------------------------

as you can see, it #defines __KERNEL__ which is only supposed to be
done for KERNEL-INTERNAL CODE! it also includes headers that are
seemingly irrelevant. i have no rational explanation for why crap like
this should be included in vo_fbdev... :(

rich






More information about the MPlayer-users mailing list