LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2004, 05:00 PM   #1
realloc
LQ Newbie
 
Registered: Feb 2004
Location: St. Petersburg, Russia
Distribution: SlackWare Linux current
Posts: 2

Rep: Reputation: 0
Unhappy Mplayer compilation problem on linux 2.6.3 gcc 3.3.3 glibc 2.3.2


I use linux 2.6.3 with it's headers in /usr/include/linux/. When I try to compile mplayer (CVS-20040218 and 1.0pre3)and some other softwre (like grip), i receive the following errors:


make[1]: Entering directory `/usr/src/MPlayer-20040218/libmpdemux'
cc -c -I../libvo/ -I../../libvo -O4 -march=athlon-4 -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -I../loader -o stream_vcd.o stream_vcd.c
In file included from /usr/include/linux/cdrom.h:14,
from vcd_read.h:7,
from stream_vcd.c:23:
/usr/include/asm/byteorder.h:14: error: syntax error before "__u32"
/usr/include/asm/byteorder.h:28: error: syntax error before "__u64"
In file included from /usr/include/linux/byteorder/little_endian.h:11,
from /usr/include/asm/byteorder.h:57,
from /usr/include/linux/cdrom.h:14,
from vcd_read.h:7,
from stream_vcd.c:23:
/usr/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
/usr/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
/usr/include/linux/byteorder/swab.h:160: error: syntax error before "__u64"
make[1]: *** [stream_vcd.o] Error1
make[1]: Leaving directory `/usr/src/MPlayer-20040218/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2


How can i fix it???
 
Old 02-27-2004, 05:39 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can you compile a standard release? if not then i'd suggest mailing the mplayer-users email list for more specific help. CVS can't be guarenteed to compile correctly at any time.
 
Old 02-27-2004, 06:02 PM   #3
realloc
LQ Newbie
 
Registered: Feb 2004
Location: St. Petersburg, Russia
Distribution: SlackWare Linux current
Posts: 2

Original Poster
Rep: Reputation: 0
I can't compile not only mplayer. I think the problem is somewhere in my kernel headers, or gcc, or glibc... But I don't know where is it
Those errors come from incorrect definition of __inline__, may be in linux/compiler.h.
The kernel itself compiles perfectly, but other software, using "inline" in source, fails to compile because of this error (
 
Old 03-18-2004, 09:28 AM   #4
dingguijin
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
remove __attribute_const__

remove __attribute_const__ from the inline function definition, everything seem to be OK!
 
Old 10-22-2004, 04:44 PM   #5
polrus
Member
 
Registered: Oct 2004
Location: Poland
Distribution: yoper
Posts: 53

Rep: Reputation: 15
i'm kind of fresh and i have this problem - what should i change and in what file ? kernel files or mplayer files
 
  


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
Mplayer compilation problem Hellaxe Linux - Software 1 09-07-2005 06:06 PM
Role of glibc in Linux, gcc, and ld earksiinni Linux - Software 5 08-29-2005 05:04 PM
Sorry (Re: strange Glibc compilation problem) Blaza Linux - General 3 09-01-2004 06:28 PM
gcc / glibc problem matt_w_lambert Linux - Software 2 10-26-2003 01:37 AM
MPlayer compilation problem. pf76 Linux - Software 6 07-20-2003 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:48 AM.

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
Open Source Consulting | Domain Registration