LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Compilation errors while compiling mplayer. (https://www.linuxquestions.org/questions/linux-from-scratch-13/compilation-errors-while-compiling-mplayer-825877/)

dragos240 08-12-2010 03:32 PM

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.

John VV 08-12-2010 03:48 PM

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 ?

dragos240 08-12-2010 03:58 PM

Quote:

Originally Posted by John VV (Post 4064539)
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?

knudfl 08-12-2010 04:45 PM

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.

..

dragos240 08-12-2010 04:49 PM

Quote:

Originally Posted by knudfl (Post 4064593)
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 :)

John VV 08-12-2010 07:42 PM

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


All times are GMT -5. The time now is 09:31 AM.