[MPlayer-users] undeclared symbol CONFIG_X86_L1_CACHE_SHIFT

Sascha Sommer saschasommer at freenet.de
Sun Oct 31 21:17:33 CET 2004


On Sunday 24 October 2004 15:56, Dr. Bernd Guenther wrote:
> Hi everyone,
> MPlayer 1.0pre5-3.3.4 doesn't compile on SuSE Linux 9.2 because of the
> undeclared symbol CONFIG_X86_L1_CACHE_SHIFT. I am appending the complete
> error message below. I manually included the line "#define
> CONFIG_X86_L1_CACHE_SHIFT 7" in libvo/vo_fbdev.c and libvo/vo_fbdev2.c and
> then it worked fine, but I tell you: I am not a C programmer. Better some
> experts look after it.
> And, probably needless to say, MPlayer is a great thing. Thanks to you
> guys! Bernd.
>
> cc -c -I../libvo -I../../libvo -I/usr/X11/include -O4 -march=pentium4
> -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -I/home/bergue/userprograms/misc/include -I/opt/gnome/include
> -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2
> -I/opt/gnome/lib/glib/include -I/usr/X11R6/include -I. -I.. -I../osdep
> -I/usr/include/freetype2 -I/usr/include/SDL -D_REENTRANT -I/usr/X11/include
> -I/home/bergue/userprograms/misc/include -I/opt/gnome/include
> -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2
> -I/opt/gnome/lib/glib/include -I/usr/X11R6/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 `/home/bergue/temp/MPlayer-1.0pre5/libvo'
> make: *** [libvo/libvo.a] Error 2
>

I think this bug was introduced by suse. There is no CONFIG_X86_L1_CACHE_SHIFT
in vanilla prefetch.h

Sascha




More information about the MPlayer-users mailing list