[MPlayer-users] undeclared symbol
rince
j80 at rince.net
Tue Nov 2 00:44:32 CET 2004
I haven't been following this thread, but in the past, I've had the CONFIG_X86_L1_CACHE_SHIFT problem with mplayer when manually upgrading the kernel without updating /usr/include/linux.
For some reason, most distributions seem to inlude /usr/include/linux as a separate tree to the linux source code, when in fact it should be a symlink to /usr/src/linux/include/linux
Fix that, and I suspect mplayer'll compile fine.
Ta,
Karl.
------------------------------
Message: 8
Date: Mon, 1 Nov 2004 20:05:56 +0100
From: bergue at t-online.de (Dr. Bernd Guenther)
Subject: Re: [MPlayer-users] undeclared symbol
CONFIG_X86_L1_CACHE_SHIFT
To: mplayer-users at mplayerhq.hu
Message-ID: <200411012006.10332.bergue at t-online.de>
Content-Type: Text/Plain; charset="iso-8859-1"
-----BEGIN PGP SIGNED MESSAGE-----
Hi Sascha,
I believe that's not quite so. prefetch.h resolve the function prefetch_range
(apparently used indirectly by MPLAYER - I didn't yet find out how) to
something containing the symbol PREFETCH_STRIDE. This in turn resolves in
prefetch.h to 4*L1_CACHE_BYTES and this in turn in asm/cache.h to
1<<L1_CACHE_SHIFT and this in asm/cache.h to CONFIG_X86_L1_CACHE_SHIFT. The
latter does NOT resolve, so some include file is apparently missing. I cannot
figure out if this is a Suse Linux problem (it would be a kernel problem,
rather, because I understand that these include files are part of the kernel
source) or an MPLAYER problem.
I switched simultaneously from Suse Linux 9.1 to 9.2 and from MPlayer 1.0pre4
to 1.0pre5 so I cannot tell which affected the change!
Bernd.
On Sunday 31 October 2004 21:17, Sascha Sommer wrote:
>> 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
>>
>> _______________________________________________
>> MPlayer-users mailing list
>> MPlayer-users at mplayerhq.hu
>> http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
>
- --
Type Bits/KeyID Date User ID
pub 2048/19BD2CF9 2001/05/16 Dr. Bernd Guenther <bergue at t-online.de>
- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3i
mQENAzsCz/sAAAEIAKEVZE/td6S7h3fB3sUCMfdDfOQ+Vxt1B9DYynOoBBUEbhct
1IVW0EimXD3U9INqtq39v5TtZcAMlMcdapMjPNHYmcyd7ixN4G9X1qxt85Okc34w
f44gOhgGL8i3iSMXxWJKFECsdVvnVQnSvfVewy5Wq+BBW172CWsvSGngxyw8nFMj
KBhtxOZsJHXKtDFgwG5ZqjXQmIFGt3A+Q7P1XT0Bm5+jYw7U4pA0HIcDXrIqtteD
Ncl9RtzWnwGCXlt4d7XdwsJbnfsw4B4telRltB+sG1NFkz0n1FUNyC/qGSBGPXOQ
ZYwAUumiXlLSkXKkI5EtipK4cIvRmy1MiRm9LPkABRG0J0RyLiBCZXJuZCBHdWVu
dGhlciA8YmVyZ3VlQHQtb25saW5lLmRlPokBFQMFEDsCz/ubLUyJGb0s+QEBLTcH
/Rg5hSGiZUIzmF3pKUHYSYWNqUDXhZffOOpJWfptXrD9hDX247kFdAx9SLgn5rEF
beJ5XcYRUV0Rv9bhQWhYB4mpiNkNhpn3nwuhd2tz9YNw6I4OQgcC4KCu4mzUsFsw
joxpHmbCnbqMIEBj09pdvKEKw+lloAiNSneHimd48ReLiJ7QoRUZsPrhfpyJCAlo
cyd02LQlrFGtaZfpi5p871M013Mt5NQv4C2cjssq2759gsC+mnmkoqMss2WNRVLr
uLyiZEVUpepOD5guMcDCXWLcQCL6lky3LLSLbxWEqpPGFE4HD9GXgyaQ1fFr6lj6
U9aXp8epZwwAR3mfKVlEajw=
=o68i
- -----END PGP PUBLIC KEY BLOCK-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iQEVAwUBQYaJG5stTIkZvSz5AQFZBggAkaSXeyAc+Wt32NR+Y6mhJsGNF5MWsq//
ZlVbAsmjvgKpAVbPJmDF9bErlkQgYCgGXKzmGfI8FSjAG8fotlO2kJv+tVBJV4ms
BIxWyf8+NnVr7ojieS+IpO2K0A3Dijmt9Tnr+Djhc+CYnbaoaVXwWDrJAOuoWgFT
Rv3VV0wJfpEUvwMZeZHZNrXXnolkRQ87no4FRC4ksnjUANelmgYpWT8BNzqNcFWa
yCNIJscEK5/U/lTeVUuh8Ld/7E7i+9/BYW3afUuc9zFq0iW8+vu6gy9/EMVvtWtx
4I98PE5szAfkS+cKAaXX4ZXt+Xq5PmEw9TMjt9roVr8fRsApTBXKPA==
=Uzd8
-----END PGP SIGNATURE-----
------------------------------
More information about the MPlayer-users
mailing list