Juggle4Evr | 1 Nov 2004 07:34
Picon
Picon

Re: Problems compiling MPlayer on Suse 9.2

Am Sonntag, 31. Oktober 2004 16:25 schrieb Juggle4Evr:
> Hi,
>
> I've downloaded the MPlayer-1.0pre5.tar.bz2 source archive and all the
> other needed packages and tried to compile MPlayer. configure runs
> successfully but after make (and a lot of success messages) I get the
> following error:
>
> 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/juergen/MPlayer-1.0pre5/libvo'
> make: *** [libvo/libvo.a] Error 2
>
>
> What's wrong here? Is there any file missing?

After googling around I found a workaround for this. By calling

./configure --disable-fbdev

MPlayer compiles. But I have no idea what else this switch does...
(Continue reading)

Dirk Vornheder | 6 Nov 2004 19:28
Picon
Favicon

Re: Problems compiling MPlayer on Suse 9.2


> >
> > 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/juergen/MPlayer-1.0pre5/libvo'
> > make: *** [libvo/libvo.a] Error 2
> >
> >
> > What's wrong here? Is there any file missing?
>
> After googling around I found a workaround for this. By calling
>
> ./configure --disable-fbdev
>
> MPlayer compiles. But I have no idea what else this switch does...
>

But compiling mplayer with

 ./configure --disable-fbdev

fails again:
(Continue reading)

Dr. Bernd Guenther | 7 Nov 2004 10:05
Picon
Favicon

Re: Problems compiling MPlayer on Suse 9.2


I believe I figured out what's wrong: SuSE have mixed up their installation 
rpms, and thus have produced an inconsistent set of header files. For 
instance, linux/config.h is NOT from the kernel package but from the glibc 
developers package. I already tried to submit a bug report but their bug 
tracking system has not yet progressed beyond 9.1.
Bernd.

On Saturday 06 November 2004 19:28, Dirk Vornheder wrote:
> > > 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/juergen/MPlayer-1.0pre5/libvo'
> > > make: *** [libvo/libvo.a] Error 2
> > >
> > >
> > > What's wrong here? Is there any file missing?
> >
> > After googling around I found a workaround for this. By calling
> >
> > ./configure --disable-fbdev
> >
> > MPlayer compiles. But I have no idea what else this switch does...
(Continue reading)

DVornheder | 7 Nov 2004 17:51
Picon
Favicon

Re: Problems compiling MPlayer on Suse 9.2

Hi !

Compiling latest cvs version of mplayer, ffmpeg and the options

--disable-fbdev --disable-directfb

works here.

Dirk

> I believe I figured out what's wrong: SuSE have mixed up their installation
> rpms, and thus have produced an inconsistent set of header files. For
> instance, linux/config.h is NOT from the kernel package but from the glibc
> developers package. I already tried to submit a bug report but their bug
> tracking system has not yet progressed beyond 9.1.
> Bernd.
>
> On Saturday 06 November 2004 19:28, Dirk Vornheder wrote:
> > > > 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/juergen/MPlayer-1.0pre5/libvo'
> > > > make: *** [libvo/libvo.a] Error 2
(Continue reading)

Martin Simmons | 7 Nov 2004 13:03

Re: : Re: Problems compiling MPlayer on Suse 9.2

>>>>> On Sun, 7 Nov 2004 10:05:33 +0100, bergue <at> t-online.de (Dr. Bernd Guenther) said:

> I believe I figured out what's wrong: SuSE have mixed up their installation 
> rpms, and thus have produced an inconsistent set of header files. For 
> instance, linux/config.h is NOT from the kernel package but from the glibc 
> developers package.

I think that is intentional, because glibc devel supplies the headers in
linux/ that were used to build glibc.  They are not the headers for the kernel
you are running.

It looks like the bug is in SuSE's glibc patches, which chop out some of the
kernel headers.  They should probably chop out the prefetch_range macro too.

__Martin
Reimar Döffinger | 6 Nov 2004 18:59
Picon
Picon

Re: Problems compiling MPlayer on Suse 9.2

Hi,
> But compiling mplayer with
> 
>  ./configure --disable-fbdev
> 
> fails again:
> 
> make -C libaf
> make[1]: Entering directory `/privat/tv/main/libaf'
> cc -c -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4 
> -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math-fomit-frame-pointer 
> -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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. -Wall 
> -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 -o af_lavcresample.o af_lavcresample.c
> af_lavcresample.c: In function `control':
> af_lavcresample.c:64: error: too many arguments to function `av_resample_init'
> make[1]: *** [af_lavcresample.o] Error 1
> make[1]: Leaving directory `/privat/tv/main/libaf'
> make: *** [libaf/libaf.a] Error 2
> 
> What's wrong ?

Your libavcodec version is too old. It seems you use CVS. You have to do
either

cd libavcodec; cvs -z6 up -dPA

(Continue reading)

Torinthiel | 1 Nov 2004 08:35
Picon

Re: Problems compiling MPlayer on Suse 9.2

On Mon, Nov 01, 2004 at 07:34:40AM +0100, Juggle4Evr wrote:
> After googling around I found a workaround for this. By calling
> 
> ./configure --disable-fbdev
> 
> MPlayer compiles. But I have no idea what else this switch does...

Disables framebuffer. As the name suggests ;)
And I agree that your problem is probably caused by SuSE. I don't have
such constant anywhere, so probably they've modified something.
Torinthiel

--

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
_______________________________________________
MPlayer-users mailing list
MPlayer-users <at> mplayerhq.hu
http://mplayerhq.hu/mailman/listinfo/mplayer-users
D Richard Felker III | 1 Nov 2004 08:25

Re: Problems compiling MPlayer on Suse 9.2

On Mon, Nov 01, 2004 at 07:34:40AM +0100, Juggle4Evr wrote:
> Am Sonntag, 31. Oktober 2004 16:25 schrieb Juggle4Evr:
> > Hi,
> >
> > I've downloaded the MPlayer-1.0pre5.tar.bz2 source archive and all the
> > other needed packages and tried to compile MPlayer. configure runs
> > successfully but after make (and a lot of success messages) I get the
> > following error:
> >
> > 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/juergen/MPlayer-1.0pre5/libvo'
> > make: *** [libvo/libvo.a] Error 2
> >
> >
> > What's wrong here? Is there any file missing?
> 
> After googling around I found a workaround for this. By calling
> 
> ./configure --disable-fbdev
> 
> MPlayer compiles. But I have no idea what else this switch does...
(Continue reading)


Gmane