LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-18-2004, 10:19 PM   #1
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
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
 
Old 11-18-2004, 10:42 PM   #2
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
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
 
Old 11-19-2004, 07:38 AM   #3
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Original Poster
Rep: Reputation: 30
Actually, the error occurs with both. I just tried the CVS to see if the problem went away.

Kent
 
Old 11-19-2004, 08:00 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Just a tought, what is your kernel-header package version ?

(ls /var/log/packages/kernel-headers*)
 
Old 11-19-2004, 05:08 PM   #5
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Original Poster
Rep: Reputation: 30
Kernel headers 2.6.9
 
Old 11-19-2004, 06:26 PM   #6
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Original Poster
Rep: Reputation: 30
I installed kernel-headers 2.4.27 and Mplayer compiled with no problems.

Kent
 
Old 12-10-2004, 10:03 AM   #7
asmbuster
LQ Newbie
 
Registered: Dec 2004
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
Wink 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;
 
Old 12-10-2004, 10:26 AM   #8
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Original Poster
Rep: Reputation: 30
Thanks, but after I discovered how difficult MPlayer is to configure, I opted for Xine.

Kent
 
Old 12-10-2004, 03:34 PM   #9
kpex
Member
 
Registered: Apr 2004
Distribution: Slackware -current, Gentoo, FC3
Posts: 41

Rep: Reputation: 15
Quote:
Originally posted by oxleyk
Thanks, but after I discovered how difficult MPlayer is to configure, I opted for Xine.

Kent
Actually mplayer is quite easy to configure - it auto-detects what codecs are on your system. Or do you mean configuration at playtime?
 
Old 12-13-2004, 10:42 AM   #10
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SuSE] Mplayer won't compile Harkov Linux - Software 14 01-16-2005 06:23 AM
mplayer compile error Dokke Linux - Software 0 10-24-2004 01:24 PM
mplayer compile problem hkl8324 Fedora 7 08-11-2004 03:42 PM
compile mplayer from source shanenin Linux - Software 2 09-21-2003 02:38 PM
MPlayer-0.90rc2 compile error. Obi Perrin Linux - Software 10 06-23-2003 06:00 AM


All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration