LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-12-2010, 04:32 PM   #1
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Rep: Reputation: 15
Compilation errors while compiling mplayer.


I'm using the latest BLFS book as a guide. For some reason, I get these errors:

Code:
vo_ivtv.c:60: warning: missing initializer
vo_ivtv.c:60: warning: (near initialization for 'subopts[0].set')
vo_ivtv.c:61: warning: missing initializer
vo_ivtv.c:61: warning: (near initialization for 'subopts[1].set')
vo_ivtv.c:62: warning: missing initializer
vo_ivtv.c:62: warning: (near initialization for 'subopts[2].type')
vo_ivtv.c: In function 'ivtv_reset':
vo_ivtv.c:79: error: storage size of 'sd' isn't known
vo_ivtv.c:80: error: storage size of 'sd1' isn't known
vo_ivtv.c:85: error: 'IVTV_IOC_STOP_DECODE' undeclared (first use in this function)
vo_ivtv.c:85: error: (Each undeclared identifier is reported only once
vo_ivtv.c:85: error: for each function it appears in.)
vo_ivtv.c:95: error: 'IVTV_IOC_START_DECODE' undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable 'sd1'
vo_ivtv.c:79: warning: unused variable 'sd'
make[1]: *** [vo_ivtv.o] Error 1
make[1]: Leaving directory `/home/harley/root_files/MPlayer-1.0rc1/libvo'
make: *** [libvo/libvo.a] Error 2
What does this mean? Am I missing a dependency?

Thanks in advance.
 
Old 08-12-2010, 04:48 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,617

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i am not 100% sure but this looks like a gcc version error
gcc has made a bunch of changes and headers need to be EXPLICITLY declared as #includes
-- that is one of the major reason for build errors


?? what version of gcc is the mplayer source ment for ?gcc3.4?( 3 4 was used up until just 2 or so years ago ) 4.0, 4.1, 4.2, 4.3, 4.4, 4.5 ?

all the 4's are new and all have had changes
also what version of gcc dose the " BLFS book as a guide" use in the examples ?
 
Old 08-12-2010, 04:58 PM   #3
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by John VV View Post
i am not 100% sure but this looks like a gcc version error
gcc has made a bunch of changes and headers need to be EXPLICITLY declared as #includes
-- that is one of the major reason for build errors


?? what version of gcc is the mplayer source ment for ?gcc3.4?( 3 4 was used up until just 2 or so years ago ) 4.0, 4.1, 4.2, 4.3, 4.4, 4.5 ?

all the 4's are new and all have had changes
also what version of gcc dose the " BLFS book as a guide" use in the examples ?
I'm using gcc 4.4.3 right now. To be honest I haven't upgraded my gcc version using the BLFS book. I only used the gcc version that was specified in LFS 6.6 (Latest stable). I'm not entirely sure, but I'll look at the version of gcc in BLFS. Thanks.

EDIT: This is a bit strange, but the latest BLFS book uses gcc 4.4.1. It's actually older than the version mentioned in stable LFS. However, do you think it wouli be worth the time to downgrade or install the older version?

Last edited by dragos240; 08-12-2010 at 05:03 PM.
 
Old 08-12-2010, 05:45 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Getting the new Mplayer source code :
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
.. or 'Subversion snapshot' / 'source snapshot' :
http://www.mplayerhq.hu/design7/dload.html


Mplayer-1.0rc1 is ancient : year 2006. Don't use it.

..
 
Old 08-12-2010, 05:49 PM   #5
dragos240
Member
 
Registered: Apr 2009
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Getting the new Mplayer source code :
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
.. or 'Subversion snapshot' / 'source snapshot' :
http://www.mplayerhq.hu/design7/dload.html


Mplayer-1.0rc1 is ancient : year 2006. Don't use it.

..
That's what I was using.......

You saved me lots of troubleshooting.

Thanks
 
Old 08-12-2010, 08:42 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,617

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
as i recall "Mplayer-1.0rc1" used gcc 3.2 ( an even older version )
i used to build in in mingw on XP
 
  


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
Compilation errors with compiling a program with boost libraries 1.39 Metal_Koola Programming 5 12-04-2009 08:13 PM
Code errors while compiling Mplayer deepumnit Linux - Software 3 07-10-2008 12:13 AM
Problems compiling kernel, after compilation modprobe errors! q6z4k Linux - Newbie 2 06-18-2006 06:04 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
Major compilation errors in emacs while compiling c code dualcyclone Linux - Software 0 03-26-2004 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:33 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
Open Source Consulting | Domain Registration