Mplayer Compile Error
When compiling MPlayer, I get the following message, and it stops compiling.
In file included from /usr/include/asm/byteorder.h:57, from /usr/include/linux/cdrom.h:14, from vcd_read.h:7, from stream_vcd.c:25: /usr/include/linux/byteorder/little_endian.h:43: error: parse error before "__cpu_to_le64p" /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le64p': /usr/include/linux/byteorder/little_endian.h:45: error: `__le64' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h:45: error: (Each undeclared identifier is reported only once /usr/include/linux/byteorder/little_endian.h:45: error: for each function it appears in.) /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:47: error: parse error before '*' token /usr/include/linux/byteorder/little_endian.h: In function `__le64_to_cpup': /usr/include/linux/byteorder/little_endian.h:49: error: `p' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:51: error: parse error before "__cpu_to_le32p" /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le32p': /usr/include/linux/byteorder/little_endian.h:53: error: `__le32' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:55: error: parse error before '*' token /usr/include/linux/byteorder/little_endian.h: In function `__le32_to_cpup': /usr/include/linux/byteorder/little_endian.h:57: error: `p' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:59: error: parse error before "__cpu_to_le16p" /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le16p': /usr/include/linux/byteorder/little_endian.h:61: error: `__le16' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:63: error: parse error before '*' token /usr/include/linux/byteorder/little_endian.h: In function `__le16_to_cpup': /usr/include/linux/byteorder/little_endian.h:65: error: `p' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:67: error: parse error before "__cpu_to_be64p" /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be64p': /usr/include/linux/byteorder/little_endian.h:69: error: `__be64' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h:69: error: parse error before "__swab64p" /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:71: error: parse error before '*' token /usr/include/linux/byteorder/little_endian.h: In function `__be64_to_cpup': /usr/include/linux/byteorder/little_endian.h:73: error: `p' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:75: error: parse error before "__cpu_to_be32p" /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be32p': /usr/include/linux/byteorder/little_endian.h:77: error: `__be32' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h:77: error: parse error before "__swab32p" /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:79: error: parse error before '*' token /usr/include/linux/byteorder/little_endian.h: In function `__be32_to_cpup': /usr/include/linux/byteorder/little_endian.h:81: error: `p' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:83: error: parse error before "__cpu_to_be16p" /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be16p': /usr/include/linux/byteorder/little_endian.h:85: error: `__be16' undeclared (first use in this function) /usr/include/linux/byteorder/little_endian.h:85: error: parse error before "__swab16p" /usr/include/linux/byteorder/little_endian.h: At top level: /usr/include/linux/byteorder/little_endian.h:87: error: parse error before '*' token /usr/include/linux/byteorder/little_endian.h: In function `__be16_to_cpup': /usr/include/linux/byteorder/little_endian.h:89: error: `p' undeclared (first use in this function) make[1]: *** [stream_vcd.o] Error 1 make[1]: Leaving directory `/home/kent/dl/MPlayer-20041107/libmpdemux' make: *** [libmpdemux/libmpdemux.a] Error 2 I've seen similar questions, but few useful answers. What is causing the problem and what do I do to fix it? Thanks Kent |
I think this problem can be resolved by using MPlayer v1.0pre5 instead of
the CVS. Try it out and post results. If you want to use the CVS and not 1.0pre5, sorry, but that one is byond me. gl, -tw |
Actually, the error occurs with both. I just tried the CVS to see if the problem went away.
Kent |
Just a tought, what is your kernel-header package version ?
(ls /var/log/packages/kernel-headers*) |
Kernel headers 2.6.9
|
I installed kernel-headers 2.4.27 and Mplayer compiled with no problems.
Kent |
Patchwork
This should help you out:
--- linux-2.6.9-rc2/include/linux/types.h 2004-09-13 02:33:23.000000000 -0300 +++ linux/include/linux/types.h 2004-09-18 14:16:27.000000000 -0300 @@ -140,6 +140,13 @@ #define pgoff_t unsigned long #endif +#endif /* __KERNEL_STRICT_NAMES */ + +/* + * Below are truly Linux-specific types that should never collide with + * any application/library that wants linux/types.h. + */ + #ifdef __CHECKER__ #define __bitwise __attribute__((bitwise)) #else @@ -153,13 +160,6 @@ typedef __u64 __bitwise __le64; typedef __u64 __bitwise __be64; -#endif /* __KERNEL_STRICT_NAMES */ - -/* - * Below are truly Linux-specific types that should never collide with - * any application/library that wants linux/types.h. - */ - struct ustat { __kernel_daddr_t f_tfree; __kernel_ino_t f_tinode; |
Thanks, but after I discovered how difficult MPlayer is to configure, I opted for Xine.
Kent |
Quote:
|
OK, you've shamed me into trying it again. Once I get gmplayer to find the skin files and then get plugins for Firefox, it should work ok. There doesn't seem to be much documentation for setting up the config files, but then, I'm a guy and don't read manuals anyway.
Kent |
All times are GMT -5. The time now is 06:46 PM. |